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
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;
44 QQnxBuffer m_buffers[MAX_BUFFER_COUNT];
45};
46
47QT_END_NAMESPACE
48
49#endif // QQNXRASTERWINDOW_H
QAbstractEventDispatcher * createEventDispatcher() const override
Factory function for the GUI event dispatcher.
bool hasCapability(QPlatformIntegration::Capability cap) const override
QPlatformNativeInterface * nativeInterface() const override
QQnxNavigatorEventHandler * navigatorEventHandler()
QPlatformBackingStore * createPlatformBackingStore(QWindow *window) const override
Factory function for QPlatformBackingStore.
QPlatformWindow * createPlatformWindow(QWindow *window) const override
Factory function for QPlatformWindow.
QPlatformWindow * createForeignWindow(QWindow *window, WId nativeHandle) const override
Options options() const
QQnxScreen * primaryDisplay() const
void removeDisplay(QQnxScreen *screen)
QVariant styleHint(StyleHint hint) const override
QPlatformServices * services() const override
void moveToScreen(QWindow *window, int screen)
QPlatformInputContext * inputContext() const override
Returns the platforms input context.
QByteArray screenContextId()
QQnxScreen * screenForNative(screen_display_t qnxScreen) const
void createDisplay(screen_display_t display, bool isPrimary)
screen_context_t screenContext()
QWindow * window(screen_window_t qnxWindow) const
QPlatformClipboard * clipboard() const override
Accessor for the platform integration's clipboard.
bool supportsNavigatorEvents() const
void * nativeResourceForScreen(const QByteArray &resource, QScreen *screen) override
void * nativeResourceForWindow(const QByteArray &resource, QWindow *window) override
void * nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context) override
QQnxNativeInterface(QQnxIntegration *integration)
void * nativeResourceForIntegration(const QByteArray &resource) override
NativeResourceForIntegrationFunction nativeResourceFunctionForIntegration(const QByteArray &resource) override
void setWindowProperty(QPlatformWindow *window, const QString &name, const QVariant &value) override
Sets a window property with name to value.
void windowGroupActivated(const QByteArray &id)
void windowGroupStateChanged(const QByteArray &id, Qt::WindowState state)
void handleWindowGroupStateChanged(const QByteArray &id, Qt::WindowState state)
void windowGroupDeactivated(const QByteArray &id)
void handleWindowGroupActivated(const QByteArray &id)
void handleWindowGroupDeactivated(const QByteArray &id)
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.
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)
void setScreenEventThread(QQnxScreenEventThread *eventThread)
screen_context_t context() const
int depth() const override
Reimplement in subclass to return current depth of the screen.
void adjustOrientation()
QQnxServices(QQnxAbstractNavigator *navigator)
The QQnxWindow is the base class of the various classes used as instances of QPlatformWindow in the Q...
Definition qqnxwindow.h:31
void setScreen(QQnxScreen *platformScreen)
#define Q_SCREEN_CRITICALERROR(x, message)
Definition qqnxglobal.h:16
#define Q_SCREEN_CHECKERROR(x, message)
Definition qqnxglobal.h:13
static bool getRequestedDisplays(QJsonArray &requestedDisplays)
Read JSON configuration file for the QNX display order.
static int getIdOfDisplay(screen_display_t display)
Get display ID for given display.
static int getContextCapabilities(const QStringList &paramList)
static QQnxIntegration::Options parseOptions(const QStringList &paramList)
#define MAX_BUFFER_COUNT
Definition qqnxwindow.h:24