Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qfbwindow_p.h
Go to the documentation of this file.
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
22
23class QFbBackingStore;
24class QFbScreen;
25
27{
28public:
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
46
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
55protected:
56 friend class QFbScreen;
57
60 Qt::WindowFlags mWindowFlags;
61 Qt::WindowStates mWindowState;
62
64};
65
67
68#endif // QFBWINDOW_P_H
69
QFbWindow(QWindow *window)
Definition qfbwindow.cpp:14
QFbBackingStore * backingStore() const
Definition qfbwindow_p.h:45
Qt::WindowFlags windowFlags() const
Definition qfbwindow.cpp:85
QFbScreen * platformScreen() const
Definition qfbwindow.cpp:24
void setVisible(bool visible) override
Reimplemented in subclasses to show the surface if visible is true, and hide it if visible is false.
Definition qfbwindow.cpp:42
QRect mOldGeometry
Definition qfbwindow_p.h:59
virtual void repaint(const QRegion &)
void setBackingStore(QFbBackingStore *store)
Definition qfbwindow_p.h:44
Qt::WindowFlags mWindowFlags
Definition qfbwindow_p.h:60
bool setKeyboardGrabEnabled(bool) override
Definition qfbwindow_p.h:52
WId winId() const override
Reimplement in subclasses to return a handle to the native window.
Definition qfbwindow_p.h:42
void setGeometry(const QRect &rect) override
This function is called by Qt whenever a window is moved or resized using the QWindow API.
Definition qfbwindow.cpp:29
void propagateSizeHints() override
Reimplement to propagate the size hints of the QWindow.
Definition qfbwindow_p.h:51
Qt::WindowStates mWindowState
Definition qfbwindow_p.h:61
bool setMouseGrabEnabled(bool) override
Definition qfbwindow_p.h:53
QFbBackingStore * mBackingStore
Definition qfbwindow_p.h:58
void lower() override
Reimplement to be able to let Qt lower windows to the bottom of the desktop.
Definition qfbwindow.cpp:96
void raise() override
Reimplement to be able to let Qt raise windows to the top of the desktop.
Definition qfbwindow.cpp:90
void setWindowFlags(Qt::WindowFlags type) override
Requests setting the window flags of this surface to flags.
Definition qfbwindow.cpp:80
void setWindowState(Qt::WindowStates state) override
Requests setting the window state of this surface to type.
Definition qfbwindow.cpp:74
WId mWindowId
Definition qfbwindow_p.h:63
The QPlatformWindow class provides an abstraction for top-level windows.
QWindow * window() const
Returns the window which belongs to the QPlatformWindow.
\inmodule QtCore\reentrant
Definition qrect.h:30
The QRegion class specifies a clip region for a painter.
Definition qregion.h:27
\inmodule QtGui
Definition qwindow.h:63
rect
[4]
else opt state
[0]
Combined button and popup list for selecting options.
GLenum type