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
qdirectfbscreen.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 QDIRECTFBSCREEN_H
5#define QDIRECTFBSCREEN_H
6
8#include "qdirectfbcursor.h"
9
10#include <qpa/qplatformintegration.h>
11
12#include <directfb.h>
13
15
16
18{
19public:
21
22 QRect geometry() const override { return m_geometry; }
23 int depth() const override { return m_depth; }
24 QImage::Format format() const override { return m_format; }
25 QSizeF physicalSize() const override { return m_physicalSize; }
26 QPlatformCursor *cursor() const override { return m_cursor.data(); }
27
28 // DirectFb helpers
29 IDirectFBDisplayLayer *dfbLayer() const;
30
31public:
36
37 QDirectFBPointer<IDirectFBDisplayLayer> m_layer;
38
39private:
40 QScopedPointer<QDirectFBCursor> m_cursor;
41};
42
44
45#endif
IDirectFBDisplayLayer * dfbLayer() const
QImage::Format m_format
QSizeF physicalSize() const override
Reimplement this function in subclass to return the physical size of the screen, in millimeters.
int depth() const override
Reimplement in subclass to return current depth of the screen.
QDirectFbScreen(int display)
QRect geometry() const override
Reimplement in subclass to return the pixel geometry of the screen.
QImage::Format format() const override
Reimplement in subclass to return the image format which corresponds to the screen format.
QDirectFBPointer< IDirectFBDisplayLayer > m_layer
QPlatformCursor * cursor() const override
Reimplement this function in subclass to return the cursor of the screen.
Format
The following image formats are available in Qt.
Definition qimage.h:41
The QPlatformCursor class provides information about pointer device events (movement,...
The QPlatformScreen class provides an abstraction for visual displays.
\inmodule QtCore\reentrant
Definition qrect.h:30
T * data() const noexcept
Returns the value of the pointer referenced by this object.
\inmodule QtCore
Definition qsize.h:208
struct wl_display * display
Definition linuxdmabuf.h:41
Combined button and popup list for selecting options.