#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 namespace QWK { class CocoaWindowContext : public AbstractWindowContext { Q_OBJECT public: CocoaWindowContext(); ~CocoaWindowContext() override; QString key() const override; void virtual_hook(int id, void *data) override; QVariant windowAttribute(const QString &key) const override; protected: void winIdChanged() override; bool windowAttributeChanged(const QString &key, const QVariant &attribute, const QVariant &oldAttribute) override; protected: WId windowId = 0; std::unique_ptr cocoaWindowEventFilter; }; } #endif // COCOAWINDOWCONTEXT_P_H