Sine Striker
2023-12-19 57c155148acfb1b4c806eee3d0f687ead699ac1f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef COCOAWINDOWCONTEXT_P_H
#define COCOAWINDOWCONTEXT_P_H
 
//
//  W A R N I N G !!!
//  -----------------
//
// This file is not part of the QWindowKit API. It is used purely as an
// implementation detail. This header file may change from version to
// version without notice, or may even be removed.
//
 
#include <QWKCore/private/abstractwindowcontext_p.h>
 
namespace QWK {
 
    class CocoaWindowContext : public AbstractWindowContext {
        Q_OBJECT
    public:
        CocoaWindowContext();
        ~CocoaWindowContext() override;
 
        QString key() const override;
        void virtual_hook(int id, void *data) override;
 
    protected:
        void winIdChanged(QWindow *oldWindow) override;
 
    protected:
        WId windowId = 0;
 
        std::unique_ptr<QObject> cocoaWindowEventFilter;
    };
 
}
 
#endif // COCOAWINDOWCONTEXT_P_H