Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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:
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
46
48
49 virtual void repaint(const QRegion&);
50
52 bool setKeyboardGrabEnabled(bool) override { return false; }
53 bool setMouseGrabEnabled(bool) override { return false; }
54
55protected:
56 friend class QFbScreen;
57
62
64};
65
66QT_END_NAMESPACE
67
68#endif // QFBWINDOW_P_H
void resize(const QSize &size, const QRegion &region) override
void flush(QWindow *window, const QRegion &region, const QPoint &offset) override
Flushes the given region from the specified window.
QImage toImage() const override
Implemented in subclasses to return the content of the backingstore as a QImage.
void endPaint() override
This function is called after painting onto the surface has ended.
void beginPaint(const QRegion &) override
This function is called before painting onto the surface begins, with the region in which the paintin...
const QImage image()
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
QFbBackingStore(QWindow *window)
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
friend class QPainter
Combined button and popup list for selecting options.