38 #if QT_VERSION < 0x050000 39 #include <QAbstractEventDispatcher> 41 #include <QAbstractNativeEventFilter> 44 #include <X11/Xdefs.h> 52 typedef unsigned long Window;
62 #if QT_VERSION >= 0x050000 63 ,
public QAbstractNativeEventFilter
71 QHash<QString, Atom> Atoms_;
73 #if QT_VERSION < 0x050000 74 const QAbstractEventDispatcher::EventFilter PrevFilter_;
88 Display* GetDisplay ()
const;
89 Window GetRootWindow ()
const;
91 #if QT_VERSION < 0x050000 94 bool nativeEventFilter (
const QByteArray& eventType,
void *message,
long *result)
override;
100 QString GetWindowTitle (
Window);
101 QIcon GetWindowIcon (
Window);
102 WinStateFlags GetWindowState (
Window);
103 AllowedActionFlags GetWindowActions (
Window);
112 void SetStrut (QWidget*, Qt::ToolBarArea);
113 void ClearStrut (QWidget*);
114 void SetStrut (
Window wid,
115 int left,
int right,
int top,
int bottom,
116 int leftStartY,
int leftEndY,
117 int rightStartY,
int rightEndY,
118 int topStartX,
int topEndX,
119 int bottomStartX,
int bottomEndX);
121 void RaiseWindow (
Window);
122 void MinimizeWindow (
Window);
123 void MaximizeWindow (
Window);
124 void UnmaximizeWindow (
Window);
125 void ShadeWindow (
Window);
126 void UnshadeWindow (
Window);
128 void CloseWindow (
Window);
130 void ResizeWindow (
Window,
int,
int);
132 int GetDesktopCount ();
133 int GetCurrentDesktop ();
134 void SetCurrentDesktop (
int);
135 QStringList GetDesktopNames ();
136 QString GetDesktopName (
int,
const QString& = QString ());
137 int GetWindowDesktop (
Window);
138 void MoveWindowToDesktop (
Window,
int);
140 QRect GetAvailableGeometry (
int screen = -1);
141 QRect GetAvailableGeometry (QWidget*);
143 Atom GetAtom (
const QString&);
146 void HandlePropNotify (T);
148 Window GetActiveWindow ();
150 bool GetWinProp (
Window, Atom, ulong*, uchar**, Atom = static_cast<Atom> (0))
const;
151 bool GetRootWinProp (Atom, ulong*, uchar**, Atom = static_cast<Atom> (0))
const;
154 bool SendMessage (
Window, Atom, ulong, ulong = 0, ulong = 0, ulong = 0, ulong = 0);
158 void windowListChanged ();
159 void activeWindowChanged ();
160 void desktopChanged ();
162 void windowNameChanged (ulong);
163 void windowIconChanged (ulong);
164 void windowDesktopChanged (ulong);
165 void windowStateChanged (ulong);
166 void windowActionsChanged (ulong);
Container< T > Filter(const Container< T > &c, F f)