7#include <qpa/qplatformscreen.h>
11#include <QtCore/QObject>
12#include <QtCore/QScopedPointer>
14#include <screen/screen.h>
16#if !defined(_SCREEN_VERSION)
17#define _SCREEN_MAKE_VERSION(major, minor, patch) (((major) * 10000) + ((minor) * 100) + (patch))
18#define _SCREEN_VERSION _SCREEN_MAKE_VERSION(0, 0, 0)
23#if _SCREEN_VERSION < _SCREEN_MAKE_VERSION(1, 0, 0)
50 int depth()
const override;
63 int rotation()
const {
return m_currentRotation; }
67 int nativeFormat()
const {
return (
depth() == 32) ? SCREEN_FORMAT_RGBA8888 : SCREEN_FORMAT_RGB565; }
101 void keyboardHeightChanged(
int height);
104 void resizeNativeWidgetWindow(
QQnxWindow *
w,
const QRect &previousScreenGeometry)
const;
105 void resizeTopLevelWindow(
QQnxWindow *
w,
const QRect &previousScreenGeometry)
const;
106 void resizeWindows(
const QRect &previousScreenGeometry);
107 void addOverlayWindow(screen_window_t
window);
108 void addUnderlayWindow(screen_window_t
window);
109 void removeOverlayOrUnderlayWindow(screen_window_t
window);
111 screen_context_t m_screenContext;
112 screen_display_t m_display;
114 const bool m_primaryScreen;
116 int m_initialRotation;
117 int m_currentRotation;
118 int m_keyboardHeight;
120 QSize m_initialPhysicalSize;
121 QSize m_currentPhysicalSize;
123 QRect m_initialGeometry;
124 QRect m_currentGeometry;
126 QList<QQnxWindow *> m_childWindows;
128 QList<screen_window_t> m_overlays;
129 QList<screen_window_t> m_underlays;
const char * constData() const noexcept
Returns a pointer to the const data stored in the byte array.
Format
The following image formats are available in Qt.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\inmodule QtCore\reentrant
void windowClosed(void *window)
QQnxScreen(screen_context_t context, screen_display_t display, bool primaryScreen)
const char * windowGroupName() const
Qt::ScreenOrientation nativeOrientation() const override
Reimplement this function in subclass to return the native orientation of the screen,...
QRect geometry() const override
Reimplement in subclass to return the pixel geometry of the screen.
QPlatformCursor * cursor() const override
Reimplement this function in subclass to return the cursor of the screen.
Qt::ScreenOrientation orientation() const override
Reimplement this function in subclass to return the current orientation of the screen,...
QWindow * topLevelAt(const QPoint &point) const override
Return the given top level window for a given position.
void lowerWindow(QQnxWindow *window)
bool isPrimaryScreen() const
void raiseWindow(QQnxWindow *window)
void activateWindowGroup(const QByteArray &id)
void foreignWindowClosed(void *window)
void removeWindow(QQnxWindow *child)
void addWindow(QQnxWindow *child)
QRect availableGeometry() const override
Reimplement in subclass to return the pixel geometry of the available space This normally is the desk...
screen_context_t nativeContext() const
void deactivateWindowGroup(const QByteArray &id)
QImage::Format format() const override
Reimplement in subclass to return the image format which corresponds to the screen format.
QPixmap grabWindow(WId window, int x, int y, int width, int height) const override
This function is called when Qt needs to be able to grab the content of a window.
QQnxWindow * findWindow(screen_window_t windowHandle) const
void foreignWindowCreated(void *window)
QSizeF physicalSize() const override
Reimplement this function in subclass to return the physical size of the screen, in millimeters.
QString name() const override
void setRootWindow(QQnxWindow *)
int depth() const override
Reimplement in subclass to return current depth of the screen.
screen_display_t nativeDisplay() const
void setRotation(int rotation)
QQnxWindow * rootWindow() const
void newWindowCreated(void *window)
qreal refreshRate() const override
Reimplement this function in subclass to return the vertical refresh rate of the screen,...
void windowGroupStateChanged(const QByteArray &id, Qt::WindowState state)
The QQnxWindow is the base class of the various classes used as instances of QPlatformWindow in the Q...
QByteArray groupName() const
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
struct wl_display * display
Combined button and popup list for selecting options.
#define Q_DECLARE_LOGGING_CATEGORY(name)
GLint GLint GLint GLint GLint x
[0]
GLfloat GLfloat GLfloat w
[0]
GLint GLsizei GLsizei height
const int SCREEN_PROPERTY_SYM
const int SCREEN_PROPERTY_SCAN
const int SCREEN_PROPERTY_FOCUS
const int SCREEN_PROPERTY_MODIFIERS
const int SCREEN_PROPERTY_FLAGS