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
qqnxrasterwindow.h
Go to the documentation of this file.
1// Copyright (C) 2013 BlackBerry Limited. All rights reserved.
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 QQNXRASTERWINDOW_H
5#define QQNXRASTERWINDOW_H
6
7#include "qqnxwindow.h"
8#include "qqnxbuffer.h"
9
11
13{
14public:
15 QQnxRasterWindow(QWindow *window, screen_context_t context, bool needRootWindow);
16
17 void post(const QRegion &dirty);
18
19 void scroll(const QRegion &region, int dx, int dy, bool flush=false);
20
22
23 bool hasBuffers() const { return !bufferSize().isEmpty(); }
24
25 void setParent(const QPlatformWindow *window) override;
26
27 void adjustBufferSize();
28
29protected:
30 int pixelFormat() const override;
31 void resetBuffers() override;
32
33 // Copies content from the previous buffer (back buffer) to the current buffer (front buffer)
34 void blitPreviousToCurrent(const QRegion &region, int dx, int dy, bool flush=false);
35
36 void blitHelper(QQnxBuffer &source, QQnxBuffer &target, const QPoint &sourceOffset,
37 const QPoint &targetOffset, const QRegion &region, bool flush = false);
38
39private:
40 QRegion m_previousDirty;
41 QRegion m_scrolled;
42 int m_currentBufferIndex;
43 int m_previousBufferIndex;
45};
46
48
49#endif // QQNXRASTERWINDOW_H
The QPlatformWindow class provides an abstraction for top-level windows.
QWindow * window() const
Returns the window which belongs to the QPlatformWindow.
\inmodule QtCore\reentrant
Definition qpoint.h:25
void blitPreviousToCurrent(const QRegion &region, int dx, int dy, bool flush=false)
QQnxBuffer & renderBuffer()
void setParent(const QPlatformWindow *window) override
This function is called to enable native child window in QPA.
void blitHelper(QQnxBuffer &source, QQnxBuffer &target, const QPoint &sourceOffset, const QPoint &targetOffset, const QRegion &region, bool flush=false)
bool hasBuffers() const
int pixelFormat() const override
void scroll(const QRegion &region, int dx, int dy, bool flush=false)
QQnxRasterWindow(QWindow *window, screen_context_t context, bool needRootWindow)
void resetBuffers() override
void post(const QRegion &dirty)
The QQnxWindow is the base class of the various classes used as instances of QPlatformWindow in the Q...
Definition qqnxwindow.h:31
QSize bufferSize() const
Definition qqnxwindow.h:48
The QRegion class specifies a clip region for a painter.
Definition qregion.h:27
constexpr bool isEmpty() const noexcept
Returns true if either of the width and height is less than or equal to 0; otherwise returns false.
Definition qsize.h:124
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
static void * context
GLenum target
GLsizei GLsizei GLchar * source
#define MAX_BUFFER_COUNT
Definition qqnxwindow.h:24