7#include <qpa/qplatformwindow.h>
10#include <QtCore/QScopedPointer>
11#include <QtCore/QLoggingCategory>
13#if !defined(QT_NO_OPENGL)
17#include <screen/screen.h>
24#define MAX_BUFFER_COUNT 2
34 explicit QQnxWindow(QWindow *window, screen_context_t context,
bool needRootWindow);
35 explicit QQnxWindow(QWindow *window, screen_context_t context, screen_window_t screenWindow);
44 WId winId()
const override {
return (WId)m_window; }
52 void setParent(
const QPlatformWindow *window)
override;
89 void collectWindowGroup();
90 void createWindowGroup();
91 void setGeometryHelper(
const QRect &rect);
92 void removeFromParent();
93 void updateVisibility(
bool parentVisible);
94 void updateZorder(
int &topZorder);
95 void updateZorder(screen_window_t window,
int &zOrder);
96 void applyWindowState();
97 void setFocus(screen_window_t newFocusWindow);
98 bool showWithoutActivating()
const;
99 bool focusable()
const;
100 void notifyManager(
const QString &msg);
102 void addContextPermission();
103 void removeContextPermission();
105 screen_window_t m_window;
110 QList<QQnxWindow*> m_childWindows;
111 QScopedPointer<QQnxAbstractCover> m_cover;
115 QRect m_unmaximizedGeometry;
116 Qt::WindowStates m_windowState;
119 QByteArray m_windowGroupName;
121 QByteArray m_parentGroupName;
124 bool m_firstActivateHandled;
128 DesktopNotifyTitle = 0x1,
129 DesktopNotifyPosition = 0x2,
130 DesktopNotifyVisible = 0x2
bool isInitialized() const
void resetBuffers() override
QQnxEglWindow(QWindow *window, screen_context_t context, bool needRootWindow)
QSurfaceFormat format() const override
Returns the actual surface format of the window.
int pixelFormat() const override
EGLSurface surface() const
void ensureInitialized(QQnxGLContext *context)
void setGeometry(const QRect &rect) override
This function is called by Qt whenever a window is moved or resized using the QWindow API.
void doneCurrent() override
The QQnxWindow is the base class of the various classes used as instances of QPlatformWindow in the Q...
screen_context_t m_screenContext
void setExposed(bool exposed)
void requestActivateWindow() override
Reimplement to let Qt be able to request activation/focus for a window.
virtual int pixelFormat() const =0
QQnxWindow(QWindow *window, screen_context_t context, screen_window_t screenWindow)
QQnxWindow * findWindow(screen_window_t windowHandle)
void setParent(const QPlatformWindow *window) override
This function is called to enable native child window in QPA.
bool shouldMakeFullScreen() const
void setVisible(bool visible) override
Reimplemented in subclasses to show the surface if visible is true, and hide it if visible is false.
virtual void resetBuffers()=0
bool isExposed() const override
Returns if this window is exposed in the windowing system.
void raise() override
Reimplement to be able to let Qt raise windows to the top of the desktop.
QQnxWindow(QWindow *window, screen_context_t context, bool needRootWindow)
void joinWindowGroup(const QByteArray &groupName)
void propagateSizeHints() override
Reimplement to propagate the size hints of the QWindow.
void setWindowTitle(const QString &title)
Reimplement to set the window title to title.
QByteArray groupName() const
const QList< QQnxWindow * > & children() const
screen_window_t nativeHandle() const
void setScreen(QQnxScreen *platformScreen)
WId winId() const override
Reimplement in subclasses to return a handle to the native window.
void setBufferSize(const QSize &size)
void setWindowState(Qt::WindowStates state) override
Requests setting the window state of this surface to type.
QPlatformScreen * screen() const override
Returns the platform screen handle corresponding to this platform window, or null if the window is no...
void setRotation(int rotation)
void handleActivationEvent()
void lower() override
Reimplement to be able to let Qt lower windows to the bottom of the desktop.
void setGeometry(const QRect &rect) override
This function is called by Qt whenever a window is moved or resized using the QWindow API.
void setOpacity(qreal level) override
Reimplement to be able to let Qt set the opacity level of a window.
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcEventDispatcher)
#define _SCREEN_MAKE_VERSION(major, minor, patch)