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
qdirectfbwindow.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 QDIRECTFBWINDOW_H
5#define QDIRECTFBWINDOW_H
6
7#include <qpa/qplatformwindow.h>
8
10#include "qdirectfbinput.h"
11
13
15{
16public:
17 QDirectFbWindow(QWindow *tlw, QDirectFbInput *inputhandler);
18 ~QDirectFbWindow() override;
19
20 void setGeometry(const QRect &rect) override;
21 void setOpacity(qreal level) override;
22
23 void setVisible(bool visible) override;
24
25 void setWindowFlags(Qt::WindowFlags flags) override;
26 bool setKeyboardGrabEnabled(bool grab) override;
27 bool setMouseGrabEnabled(bool grab) override;
28 void raise() override;
29 void lower() override;
30 WId winId() const override;
31
32 virtual void createDirectFBWindow();
33 IDirectFBWindow *dfbWindow() const;
34
35 // helper to get access to DirectFB types
36 IDirectFBSurface *dfbSurface();
37
38protected:
39 QDirectFBPointer<IDirectFBSurface> m_dfbSurface;
40 QDirectFBPointer<IDirectFBWindow> m_dfbWindow;
42};
43
45
46#endif // QDIRECTFBWINDOW_H
void lower() override
Reimplement to be able to let Qt lower windows to the bottom of the desktop.
void raise() override
Reimplement to be able to let Qt raise windows to the top of the desktop.
WId winId() const override
Reimplement in subclasses to return a handle to the native window.
QDirectFbInput * m_inputHandler
void setGeometry(const QRect &rect) override
This function is called by Qt whenever a window is moved or resized using the QWindow API.
~QDirectFbWindow() override
QDirectFBPointer< IDirectFBSurface > m_dfbSurface
QDirectFbWindow(QWindow *tlw, QDirectFbInput *inputhandler)
bool setKeyboardGrabEnabled(bool grab) override
QDirectFBPointer< IDirectFBWindow > m_dfbWindow
void setOpacity(qreal level) override
Reimplement to be able to let Qt set the opacity level of a window.
bool setMouseGrabEnabled(bool grab) override
void setWindowFlags(Qt::WindowFlags flags) override
Requests setting the window flags of this surface to flags.
IDirectFBWindow * dfbWindow() const
virtual void createDirectFBWindow()
IDirectFBSurface * dfbSurface()
void setVisible(bool visible) override
Reimplemented in subclasses to show the surface if visible is true, and hide it if visible is false.
The QPlatformWindow class provides an abstraction for top-level windows.
\inmodule QtCore\reentrant
Definition qrect.h:30
\inmodule QtGui
Definition qwindow.h:63
rect
[4]
Combined button and popup list for selecting options.
GLenum GLuint GLint level
GLbitfield flags
double qreal
Definition qtypes.h:187