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
qlinuxfbdrmscreen.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 QLINUXFBDRMSCREEN_H
5#define QLINUXFBDRMSCREEN_H
6
7#include <QtFbSupport/private/qfbscreen_p.h>
8
9QT_BEGIN_NAMESPACE
10
11class QKmsScreenConfig;
12class QLinuxFbDevice;
13
15{
17public:
20
21 bool initialize() override;
22 QRegion doRedraw() override;
23 QPixmap grabWindow(WId wid, int x, int y, int width, int height) const override;
24
25private:
26 QKmsScreenConfig *m_screenConfig;
27 QLinuxFbDevice *m_device;
28};
29
30QT_END_NAMESPACE
31
32#endif // QLINUXFBDRMSCREEN_H
QPlatformScreen * createScreen(const QKmsOutput &output) override
Output * output(int idx)
int outputCount() const
QLinuxFbDevice(QKmsScreenConfig *screenConfig)
void close() override
bool open() override
void * nativeDisplay() const override
void swapBuffers(Output *output)
void registerScreen(QPlatformScreen *screen, bool isPrimary, const QPoint &virtualPos, const QList< QPlatformScreen * > &virtualSiblings) override
bool initialize() override
QPixmap grabWindow(WId wid, int x, int y, int width, int height) const override
This function is called when Qt needs to be able to grab the content of a window.
QRegion doRedraw() override
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")
static uint32_t bppForDrmFormat(uint32_t drmFormat)
static QT_BEGIN_NAMESPACE const int BUFFER_COUNT
static QImage::Format formatForDrmFormat(uint32_t drmFormat)
static int depthForDrmFormat(uint32_t drmFormat)
#define MAP_FAILED
QRegion dirty[BUFFER_COUNT]
Framebuffer fb[BUFFER_COUNT]