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
qhaikurasterbackingstore.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 QHAIKURASTERWINDOWSURFACE_H
5#define QHAIKURASTERWINDOWSURFACE_H
6
7#include <qpa/qplatformbackingstore.h>
8
9#include "qhaikubuffer.h"
10
12
13class BBitmap;
15
17{
18public:
21
22 QPaintDevice *paintDevice() override;
23 void flush(QWindow *window, const QRegion &region, const QPoint &offset) override;
24 void resize(const QSize &size, const QRegion &staticContents) override;
25
26private:
27 BBitmap *m_bitmap;
28 QHaikuBuffer m_buffer;
29 QSize m_bufferSize;
30};
31
33
34#endif
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.
The QPlatformBackingStore class provides the drawing area for top-level windows.
QWindow * window() const
Returns a pointer to the top-level window associated with this surface.
\inmodule QtCore\reentrant
Definition qpoint.h:25
The QRegion class specifies a clip region for a painter.
Definition qregion.h:27
\inmodule QtCore
Definition qsize.h:25
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLintptr offset