Qx v0.5.7
Qt Extensions Library
Loading...
Searching...
No Matches
qx-winguieventfilter_p.h
1#ifndef QX_WINGUIEVENTFILTER_H
2#define QX_WINGUIEVENTFILTER_H
3
4// Qt Includes
5#include <QAbstractNativeEventFilter>
6#include <QWindow>
7
8namespace Qx
9{
10 // So doxygen ignores this class
11
12// Singleton class for filtering GUI related Windows events
13class WinGuiEventFilter : public QAbstractNativeEventFilter
14{
15//-Class Members------------------------------------------------------------------------------------------------------
16private:
17 static inline WinGuiEventFilter* instance = nullptr;
18
19//-Instance Members---------------------------------------------------------------------------------------------------
20private:
21 unsigned int mTaskbarButtonCreatedMsgId;
22
23//-Constructor-------------------------------------------------------------------------------------------------------
24private:
25 WinGuiEventFilter();
26
27//-Class Functions---------------------------------------------------------------------------------------------------
28public:
29 static void installGlobally();
30
31//-Instance Functions---------------------------------------------------------------------------------------------------
32private:
33 QWindow* getQtWindow(HWND nativeWindowHandle);
34
35public:
36 bool nativeEventFilter(const QByteArray& eventType, void* message, qintptr* result) override;
37};
38
39 // So doxygen ignores this class
40}
41
42#endif // QX_WINGUIEVENTFILTER_H
The Qx namespace is the main namespace through which all non-global functionality of the Qx library i...
Definition qx-processwaiter.cpp:5