Zhao Yuhang
2023-12-22 61cb997e4e9ebf50bcff835841fbd1ecc9499e49
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
38
39
#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() override;
        bool windowAttributeChanged(const QString &key, const QVariant &attribute,
                                    const QVariant &oldAttribute) override;
 
    protected:
        WId windowId = 0;
 
        std::unique_ptr<QObject> cocoaWindowEventFilter;
    };
 
}
 
#endif // COCOAWINDOWCONTEXT_P_H