QtBase
v6.3.1
|
#include <qandroidplatformscreen.h>
Public Slots | |
void | setDirty (const QRect &rect) |
void | setPhysicalSize (const QSize &size) |
void | setAvailableGeometry (const QRect &rect) |
void | setSize (const QSize &size) |
void | setSizeParameters (const QSize &physicalSize, const QSize &size, const QRect &availableGeometry) |
void | setRefreshRate (qreal refreshRate) |
void | setOrientation (Qt::ScreenOrientation orientation) |
Public Slots inherited from QObject | |
void | deleteLater () |
Protected Types | |
typedef QList< QAndroidPlatformWindow * > | WindowStackType |
Protected Member Functions | |
bool | event (QEvent *event) override |
Protected Member Functions inherited from QObject | |
QObject * | sender () const |
int | senderSignalIndex () const |
int | receivers (const char *signal) const |
bool | isSignalConnected (const QMetaMethod &signal) const |
virtual void | timerEvent (QTimerEvent *event) |
virtual void | childEvent (QChildEvent *event) |
virtual void | customEvent (QEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
QObject (QObjectPrivate &dd, QObject *parent=nullptr) | |
Protected Member Functions inherited from QPlatformScreen | |
void | resizeMaximizedWindows () |
Protected Attributes | |
WindowStackType | m_windowStack |
QRect | m_dirtyRect |
bool | m_updatePending = false |
QRect | m_availableGeometry |
int | m_depth |
QImage::Format | m_format |
QSizeF | m_physicalSize |
qreal | m_refreshRate |
QString | m_name |
QList< Mode > | m_modes |
int | m_currentMode = 0 |
Protected Attributes inherited from QObject | |
QScopedPointer< QObjectData > | d_ptr |
Protected Attributes inherited from QPlatformScreen | |
QScopedPointer< QPlatformScreenPrivate > | d_ptr |
Protected Attributes inherited from AndroidSurfaceClient | |
QMutex | m_surfaceMutex |
Definition at line 59 of file qandroidplatformscreen.h.
|
protected |
Definition at line 104 of file qandroidplatformscreen.h.
QAndroidPlatformScreen::QAndroidPlatformScreen | ( | ) |
QAndroidPlatformScreen::~QAndroidPlatformScreen | ( | ) |
Definition at line 149 of file qandroidplatformscreen.cpp.
void QAndroidPlatformScreen::addWindow | ( | QAndroidPlatformWindow * | window | ) |
Definition at line 189 of file qandroidplatformscreen.cpp.
|
inlineoverridevirtual |
Reimplement in subclass to return the pixel geometry of the available space This normally is the desktop screen minus the task manager, global menubar etc.
Reimplemented from QPlatformScreen.
Definition at line 67 of file qandroidplatformscreen.h.
|
inlineoverridevirtual |
Reimplement this function in subclass to return the index of the current mode from the modes list.
The default implementation returns 0.
Reimplemented from QPlatformScreen.
Definition at line 74 of file qandroidplatformscreen.h.
|
inlineoverridevirtual |
Reimplement in subclass to return current depth of the screen
Implements QPlatformScreen.
Definition at line 68 of file qandroidplatformscreen.h.
|
overrideprotectedvirtual |
This virtual function receives events to an object and should return true if the event e was recognized and processed.
The event() function can be reimplemented to customize the behavior of an object.
Make sure you call the parent event class implementation for all the events you did not handle.
Example:
Reimplemented from QObject.
Definition at line 179 of file qandroidplatformscreen.cpp.
|
inlineoverridevirtual |
Reimplement in subclass to return the image format which corresponds to the screen format
Implements QPlatformScreen.
Definition at line 69 of file qandroidplatformscreen.h.
|
inlineoverridevirtual |
Reimplement in subclass to return the pixel geometry of the screen
Implements QPlatformScreen.
Definition at line 66 of file qandroidplatformscreen.h.
void QAndroidPlatformScreen::lower | ( | QAndroidPlatformWindow * | window | ) |
Definition at line 245 of file qandroidplatformscreen.cpp.
Reimplement this function in subclass to return the list of modes for this screen.
The default implementation returns a list with only one mode from the current screen size and refresh rate.
Reimplemented from QPlatformScreen.
Definition at line 73 of file qandroidplatformscreen.h.
|
inlineoverridevirtual |
Reimplemented from QPlatformScreen.
Definition at line 72 of file qandroidplatformscreen.h.
|
inlineoverridevirtual |
Reimplement this function in subclass to return the physical size of the screen, in millimeters. The physical size represents the actual physical dimensions of the display.
The default implementation takes the pixel size of the screen, considers a resolution of 100 dots per inch, and returns the calculated physical size. A device with a screen that has different resolutions will need to be supported by a suitable reimplementation of this function.
Reimplemented from QPlatformScreen.
Definition at line 70 of file qandroidplatformscreen.h.
|
inlineoverridevirtual |
Reimplement this function in subclass to return the preferred mode index from the modes list.
The default implementation returns 0.
Reimplemented from QPlatformScreen.
Definition at line 75 of file qandroidplatformscreen.h.
void QAndroidPlatformScreen::raise | ( | QAndroidPlatformWindow * | window | ) |
Definition at line 228 of file qandroidplatformscreen.cpp.
int QAndroidPlatformScreen::rasterSurfaces | ( | ) |
Definition at line 374 of file qandroidplatformscreen.cpp.
|
inlineoverridevirtual |
Reimplement this function in subclass to return the vertical refresh rate of the screen, in Hz.
The default returns 60, a sensible default for modern displays.
Reimplemented from QPlatformScreen.
Definition at line 76 of file qandroidplatformscreen.h.
void QAndroidPlatformScreen::removeWindow | ( | QAndroidPlatformWindow * | window | ) |
Definition at line 208 of file qandroidplatformscreen.cpp.
void QAndroidPlatformScreen::scheduleUpdate | ( | ) |
Definition at line 262 of file qandroidplatformscreen.cpp.
Definition at line 319 of file qandroidplatformscreen.cpp.
Definition at line 270 of file qandroidplatformscreen.cpp.
|
slot |
Definition at line 314 of file qandroidplatformscreen.cpp.
Definition at line 277 of file qandroidplatformscreen.cpp.
Definition at line 306 of file qandroidplatformscreen.cpp.
Definition at line 282 of file qandroidplatformscreen.cpp.
|
slot |
Definition at line 288 of file qandroidplatformscreen.cpp.
Return the given top level window for a given position.
Default implementation retrieves a list of all top level windows and finds the first window which contains point pos
Reimplemented from QPlatformScreen.
Definition at line 170 of file qandroidplatformscreen.cpp.
|
inline |
Definition at line 158 of file qandroidplatformscreen.cpp.
Definition at line 363 of file qandroidplatformscreen.cpp.
|
protected |
Definition at line 109 of file qandroidplatformscreen.h.
|
protected |
Definition at line 116 of file qandroidplatformscreen.h.
|
protected |
Definition at line 110 of file qandroidplatformscreen.h.
|
protected |
Definition at line 106 of file qandroidplatformscreen.h.
|
protected |
Definition at line 111 of file qandroidplatformscreen.h.
Definition at line 115 of file qandroidplatformscreen.h.
|
protected |
Definition at line 114 of file qandroidplatformscreen.h.
|
protected |
Definition at line 112 of file qandroidplatformscreen.h.
|
protected |
Definition at line 113 of file qandroidplatformscreen.h.
|
protected |
Definition at line 107 of file qandroidplatformscreen.h.
|
protected |
Definition at line 105 of file qandroidplatformscreen.h.