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
qqnxrasterbackingstore.h
Go to the documentation of this file.
1// Copyright (C) 2011 - 2012 Research In Motion
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 QQNXRASTERWINDOWSURFACE_H
5#define QQNXRASTERWINDOWSURFACE_H
6
7#include <qpa/qplatformbackingstore.h>
8
9#include <screen/screen.h>
10
12
14
16{
17public:
20
21 QPaintDevice *paintDevice() override;
22 void flush(QWindow *window, const QRegion &region, const QPoint &offset) override;
23 void resize(const QSize &size, const QRegion &staticContents) override;
24 bool scroll(const QRegion &area, int dx, int dy) override;
25 void beginPaint(const QRegion &region) override;
26 void endPaint() override;
27
28private:
29 QQnxRasterWindow *platformWindow() const;
30
31 QWindow *m_window;
32 bool m_needsPosting;
33 bool m_scrolled;
34};
35
37
38#endif // QQNXRASTERWINDOWSURFACE_H
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
void beginPaint(const QRegion &region) override
This function is called before painting onto the surface begins, with the region in which the paintin...
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
void resize(const QSize &size, const QRegion &staticContents) override
bool scroll(const QRegion &area, int dx, int dy) override
Scrolls the given area dx pixels to the right and dy downward; both dx and dy may be negative.
QQnxRasterBackingStore(QWindow *window)
void flush(QWindow *window, const QRegion &region, const QPoint &offset) override
Flushes the given region from the specified window.
void endPaint() override
This function is called after painting onto the surface has ended.
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.
static int area(const QSize &s)
Definition qicon.cpp:153
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLintptr offset