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)
46 int depth()
const override;
59 int rotation()
const {
return m_currentRotation; }
63 int nativeFormat()
const {
return (
depth() == 32) ? SCREEN_FORMAT_RGBA8888 : SCREEN_FORMAT_RGB565; }
97 void keyboardHeightChanged(
int height);
100 void resizeNativeWidgetWindow(
QQnxWindow *
w,
const QRect &previousScreenGeometry)
const;
101 void resizeTopLevelWindow(
QQnxWindow *
w,
const QRect &previousScreenGeometry)
const;
102 void resizeWindows(
const QRect &previousScreenGeometry);
103 void addOverlayWindow(screen_window_t
window);
104 void addUnderlayWindow(screen_window_t
window);
105 void removeOverlayOrUnderlayWindow(screen_window_t
window);
107 screen_context_t m_screenContext;
108 screen_display_t m_display;
110 const bool m_primaryScreen;
112 int m_initialRotation;
113 int m_currentRotation;
114 int m_keyboardHeight;
116 QSize m_initialPhysicalSize;
117 QSize m_currentPhysicalSize;
119 QRect m_initialGeometry;
120 QRect m_currentGeometry;
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)
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.
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