1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QFBWINDOW_P_H |
5 | #define QFBWINDOW_P_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists purely as an |
12 | // implementation detail. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <qpa/qplatformwindow.h> |
19 | #include <private/qglobal_p.h> |
20 | |
21 | QT_BEGIN_NAMESPACE |
22 | |
23 | class QFbBackingStore; |
24 | class QFbScreen; |
25 | |
26 | class QFbWindow : public QPlatformWindow |
27 | { |
28 | public: |
29 | QFbWindow(QWindow *window); |
30 | ~QFbWindow(); |
31 | |
32 | void raise() override; |
33 | void lower() override; |
34 | |
35 | void setGeometry(const QRect &rect) override; |
36 | void setVisible(bool visible) override; |
37 | |
38 | void setWindowState(Qt::WindowStates state) override; |
39 | void setWindowFlags(Qt::WindowFlags type) override; |
40 | Qt::WindowFlags windowFlags() const; |
41 | |
42 | WId winId() const override { return mWindowId; } |
43 | |
44 | void setBackingStore(QFbBackingStore *store) { mBackingStore = store; } |
45 | QFbBackingStore *backingStore() const { return mBackingStore; } |
46 | |
47 | QFbScreen *platformScreen() const; |
48 | |
49 | virtual void repaint(const QRegion&); |
50 | |
51 | void propagateSizeHints() override { } |
52 | bool setKeyboardGrabEnabled(bool) override { return false; } |
53 | bool setMouseGrabEnabled(bool) override { return false; } |
54 | |
55 | protected: |
56 | friend class QFbScreen; |
57 | |
58 | QFbBackingStore *mBackingStore; |
59 | QRect mOldGeometry; |
60 | Qt::WindowFlags mWindowFlags; |
61 | Qt::WindowStates mWindowState; |
62 | |
63 | WId mWindowId; |
64 | }; |
65 | |
66 | QT_END_NAMESPACE |
67 | |
68 | #endif // QFBWINDOW_P_H |
69 | |
70 | |