36 ,
public QAbstractNativeEventFilter
40 xcb_connection_t *Conn_ =
nullptr;
44 QHash<QByteArray, Atom> Atoms_;
57 xcb_connection_t* GetConnection ()
const;
59 Window GetRootWindow ()
const;
61 bool nativeEventFilter (
const QByteArray& eventType,
void *message, qintptr *result)
override;
66 QString GetWindowTitle (
Window);
67 QIcon GetWindowIcon (
Window);
68 WinStateFlags GetWindowState (
Window);
69 AllowedActionFlags GetWindowActions (
Window);
78 void SetStrut (QWidget*, Qt::ToolBarArea);
79 void ClearStrut (QWidget*);
81 ulong left, ulong right, ulong top, ulong bottom,
82 ulong leftStartY, ulong leftEndY,
83 ulong rightStartY, ulong rightEndY,
84 ulong topStartX, ulong topEndX,
85 ulong bottomStartX, ulong bottomEndX);
88 void MinimizeWindow (
Window);
89 void MaximizeWindow (
Window);
90 void UnmaximizeWindow (
Window);
92 void UnshadeWindow (
Window);
93 void MoveWindowTo (
Window, Layer);
96 void ResizeWindow (
Window,
int,
int);
98 int GetDesktopCount ();
99 int GetCurrentDesktop ();
100 void SetCurrentDesktop (
int);
101 QStringList GetDesktopNames ();
102 QString GetDesktopName (
int,
const QString& = QString ());
103 int GetWindowDesktop (
Window);
104 void MoveWindowToDesktop (
Window,
int);
106 QRect GetAvailableGeometry (QScreen&);
107 QRect GetAvailableGeometry (QWidget*);
117 Atom GetAtom (std::string_view str);
120 void HandlePropNotify (T);
122 template<
typename Flag>
123 QFlags<Flag> GetFlagsList (
Window wid, Atom property,
const QHash<Atom, Flag>& atom2flag)
const;
125 Window GetActiveWindow ();
127 bool GetWinProp (
Window, Atom, ulong*, uchar**, Atom =
static_cast<Atom
> (0))
const;
128 bool GetRootWinProp (Atom, ulong*, uchar**, Atom =
static_cast<Atom
> (0))
const;
131 bool SendMessage (
Window, Atom, ulong, ulong = 0, ulong = 0, ulong = 0, ulong = 0);