QWindowKit  1.5.1.0
Cross-platform window customization framework
Loading...
Searching...
No Matches
cocoawindowcontext_p.h
1// Copyright (C) 2023-present Stdware Collections (https://www.github.com/stdware)
2// Copyright (C) 2021-2023 wangwenx190 (Yuhang Zhao)
3// SPDX-License-Identifier: Apache-2.0
4
5#ifndef COCOAWINDOWCONTEXT_P_H
6#define COCOAWINDOWCONTEXT_P_H
7
8//
9// W A R N I N G !!!
10// -----------------
11//
12// This file is not part of the QWindowKit API. It is used purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or may even be removed.
15//
16
17#include <QWKCore/private/abstractwindowcontext_p.h>
18
19namespace QWK {
20
21 class CocoaWindowContext : public AbstractWindowContext {
22 Q_OBJECT
23 public:
24 CocoaWindowContext();
25 ~CocoaWindowContext() override;
26
27 QString key() const override;
28 void virtual_hook(int id, void *data) override;
29
30 QVariant windowAttribute(const QString &key) const override;
31
32 protected:
33 void winIdChanged(WId winId, WId oldWinId) override;
34 bool windowAttributeChanged(const QString &key, const QVariant &attribute,
35 const QVariant &oldAttribute) override;
36
37 protected:
38 std::unique_ptr<SharedEventFilter> cocoaWindowEventFilter;
39 };
40
41}
42
43#endif // COCOAWINDOWCONTEXT_P_H
QWindowKit namespace.
Definition abstractwindowcontext.cpp:13