Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qxcbsystemtraytracker.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QXCBSYSTEMTRAYTRACKER_H
5#define QXCBSYSTEMTRAYTRACKER_H
6
7#include "qxcbconnection.h"
8
9#include <xcb/xcb.h>
10
12
13class QXcbConnection;
14class QScreen;
15
17{
19public:
21
22 xcb_window_t trayWindow();
23 void requestSystemTrayWindowDock(xcb_window_t window) const;
24
25 void notifyManagerClientMessageEvent(const xcb_client_message_event_t *);
26
27 void handleDestroyNotifyEvent(const xcb_destroy_notify_event_t *) override;
28
29 xcb_visualid_t visualId();
32
33private:
35 xcb_atom_t trayAtom,
36 xcb_atom_t selection);
37
38 void emitSystemTrayWindowChanged();
39 xcb_visualid_t netSystemTrayVisual();
40
41 const xcb_atom_t m_selection;
42 const xcb_atom_t m_trayAtom;
43 QXcbConnection *m_connection;
44 xcb_window_t m_trayWindow = 0;
45};
46
48
49#endif // QXCBSYSTEMTRAYTRACKER_H
\inmodule QtCore
Definition qobject.h:103
The QScreen class is used to query screen properties. \inmodule QtGui.
Definition qscreen.h:32
void systemTrayWindowChanged(QScreen *screen)
void requestSystemTrayWindowDock(xcb_window_t window) const
void notifyManagerClientMessageEvent(const xcb_client_message_event_t *)
void handleDestroyNotifyEvent(const xcb_destroy_notify_event_t *) override
Combined button and popup list for selecting options.
DBusConnection * connection
QScreen * screen
[1]
Definition main.cpp:29
#define Q_OBJECT
#define signals
QItemSelection * selection
[0]
aWidget window() -> setWindowTitle("New Window Title")
[2]
view create()