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
qhaikuscreen.h
Go to the documentation of this file.
1// Copyright (C) 2015 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Tobias Koenig <tobias.koenig@kdab.com>
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 QHAIKUSCREEN_H
5#define QHAIKUSCREEN_H
6
7#include <qpa/qplatformscreen.h>
8
9class BScreen;
10class QHaikuCursor;
11
13
15{
16public:
19
20 QPixmap grabWindow(WId window, int x, int y, int width, int height) const override;
21
22 QRect geometry() const override;
23 int depth() const override;
24 QImage::Format format() const override;
25
26 QPlatformCursor *cursor() const override;
27
28private:
29 BScreen *m_screen;
30
31 QHaikuCursor *m_cursor;
32};
33
35
36#endif
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.
QPlatformCursor * cursor() const override
Reimplement this function in subclass to return the cursor of the screen.
int depth() const override
Reimplement in subclass to return current depth of the screen.
QPixmap grabWindow(WId window, 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.
Format
The following image formats are available in Qt.
Definition qimage.h:41
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
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
Combined button and popup list for selecting options.
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei height
GLint GLsizei width
GLint y
aWidget window() -> setWindowTitle("New Window Title")
[2]