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
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
12QT_BEGIN_NAMESPACE
13
14class QHaikuScreen : public QPlatformScreen
15{
16public:
17 QHaikuScreen();
18 ~QHaikuScreen();
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
34QT_END_NAMESPACE
35
36#endif
bool hasCapability(QPlatformIntegration::Capability cap) const override
QHaikuIntegration(const QStringList &paramList)
QAbstractEventDispatcher * createEventDispatcher() const override
Factory function for the GUI event dispatcher.
QPlatformBackingStore * createPlatformBackingStore(QWindow *window) const override
Factory function for QPlatformBackingStore.
QPlatformClipboard * clipboard() const override
Accessor for the platform integration's clipboard.
QPlatformFontDatabase * fontDatabase() const override
Accessor for the platform integration's fontdatabase.
QPlatformWindow * createPlatformWindow(QWindow *window) const override
Factory function for QPlatformWindow.
QPlatformServices * services() const override
void flush(QWindow *window, const QRegion &region, const QPoint &offset) override
Flushes the given region from the specified window.
void resize(const QSize &size, const QRegion &staticContents) override
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
static long int startApplicationThread(void *data)