QtBase  v6.3.1
Public Slots | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
QAndroidPlatformScreen Class Reference

#include <qandroidplatformscreen.h>

Inheritance diagram for QAndroidPlatformScreen:
Inheritance graph
[legend]
Collaboration diagram for QAndroidPlatformScreen:
Collaboration graph
[legend]

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 ()
 

Public Member Functions

 QAndroidPlatformScreen ()
 
 ~QAndroidPlatformScreen ()
 
QRect geometry () const override
 
QRect availableGeometry () const override
 
int depth () const override
 
QImage::Format format () const override
 
QSizeF physicalSize () const override
 
QString name () const override
 
QList< Modemodes () const override
 
int currentMode () const override
 
int preferredMode () const override
 
qreal refreshRate () const override
 
QWindowtopWindow () const
 
QWindowtopLevelAt (const QPoint &p) const override
 
void addWindow (QAndroidPlatformWindow *window)
 
void removeWindow (QAndroidPlatformWindow *window)
 
void raise (QAndroidPlatformWindow *window)
 
void lower (QAndroidPlatformWindow *window)
 
void scheduleUpdate ()
 
void topWindowChanged (QWindow *w)
 
int rasterSurfaces ()
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 
virtual ~QObject ()
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
QBindable< QStringbindableObjectName ()
 
bool isWidgetType () const
 
bool isWindowType () const
 
bool signalsBlocked () const noexcept
 
bool blockSignals (bool b) noexcept
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 
void killTimer (int id)
 
template<typename T >
T findChild (const QString &aName=QString(), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
template<typename T >
QList< TfindChildren (const QString &aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
template<typename T >
QList< TfindChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
const QObjectListchildren () const
 
void setParent (QObject *parent)
 
void installEventFilter (QObject *filterObj)
 
void removeEventFilter (QObject *obj)
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
 
bool disconnect (const QObject *receiver, const char *member=nullptr) const
 
void dumpObjectTree () const
 
void dumpObjectInfo () const
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
QBindingStoragebindingStorage ()
 
const QBindingStoragebindingStorage () const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 
- Public Member Functions inherited from QPlatformScreen
 QPlatformScreen ()
 
virtual ~QPlatformScreen ()
 
virtual bool isPlaceholder () const
 
virtual QColorSpace colorSpace () const
 
virtual qreal devicePixelRatio () const
 
QWindowList windows () const
 
virtual QList< QPlatformScreen * > virtualSiblings () const
 
const QPlatformScreenscreenForPosition (const QPoint &point) const
 
QScreenscreen () const
 
virtual QString manufacturer () const
 
virtual QString model () const
 
virtual QString serialNumber () const
 
virtual QPlatformCursorcursor () const
 
virtual SubpixelAntialiasingType subpixelAntialiasingTypeHint () const
 
virtual PowerState powerState () const
 
virtual void setPowerState (PowerState state)
 
QRect deviceIndependentGeometry () const
 
- Public Member Functions inherited from AndroidSurfaceClient
void lockSurface ()
 
void unlockSurface ()
 

Protected Types

typedef QList< QAndroidPlatformWindow * > WindowStackType
 

Protected Member Functions

bool event (QEvent *event) override
 
- Protected Member Functions inherited from QObject
QObjectsender () 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< Modem_modes
 
int m_currentMode = 0
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Protected Attributes inherited from QPlatformScreen
QScopedPointer< QPlatformScreenPrivated_ptr
 
- Protected Attributes inherited from AndroidSurfaceClient
QMutex m_surfaceMutex
 

Additional Inherited Members

- Public Types inherited from QPlatformScreen
enum  SubpixelAntialiasingType {
  Subpixel_None , Subpixel_RGB , Subpixel_BGR , Subpixel_VRGB ,
  Subpixel_VBGR
}
 
enum  PowerState { PowerStateOn , PowerStateStandby , PowerStateSuspend , PowerStateOff }
 
- Signals inherited from QObject
void destroyed (QObject *=nullptr)
 
void objectNameChanged (const QString &objectName, QPrivateSignal)
 
- Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
static QMetaObject::Connection ::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 slot)
 
static QMetaObject::Connection ::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *context, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static std::enable_if< QtPrivate::FunctionPointer< Func2 >::ArgumentCount==-1 &&!std::is_convertible_v< Func2, const char * >, QMetaObject::Connection >::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 slot)
 
template<typename Func1 , typename Func2 >
static std::enable_if< QtPrivate::FunctionPointer< Func2 >::ArgumentCount==-1 &&!std::is_convertible_v< Func2, const char * >, QMetaObject::Connection >::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *context, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static bool disconnect (const QMetaObject::Connection &)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
 
template<typename Func1 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
 
- Static Public Member Functions inherited from QPlatformScreen
static QPlatformScreenplatformScreenForWindow (const QWindow *window)
 
static int angleBetween (Qt::ScreenOrientation a, Qt::ScreenOrientation b)
 
static QTransform transformBetween (Qt::ScreenOrientation a, Qt::ScreenOrientation b, const QRect &target)
 
static QRect mapBetween (Qt::ScreenOrientation a, Qt::ScreenOrientation b, const QRect &rect)
 
static QDpi overrideDpi (const QDpi &in)
 
- Properties inherited from QObject
QString objectName
 the name of this object More...
 

Detailed Description

Definition at line 59 of file qandroidplatformscreen.h.

Member Typedef Documentation

◆ WindowStackType

Definition at line 104 of file qandroidplatformscreen.h.

Constructor & Destructor Documentation

◆ QAndroidPlatformScreen()

QAndroidPlatformScreen::QAndroidPlatformScreen ( )

Definition at line 91 of file qandroidplatformscreen.cpp.

Here is the call graph for this function:

◆ ~QAndroidPlatformScreen()

QAndroidPlatformScreen::~QAndroidPlatformScreen ( )

Definition at line 149 of file qandroidplatformscreen.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ addWindow()

void QAndroidPlatformScreen::addWindow ( QAndroidPlatformWindow window)

Definition at line 189 of file qandroidplatformscreen.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ availableGeometry()

QRect QAndroidPlatformScreen::availableGeometry ( ) const
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.

Here is the caller graph for this function:

◆ currentMode()

int QAndroidPlatformScreen::currentMode ( ) const
inlineoverridevirtual

Reimplement this function in subclass to return the index of the current mode from the modes list.

The default implementation returns 0.

See also
QPlatformScreen::modes
Since
5.9

Reimplemented from QPlatformScreen.

Definition at line 74 of file qandroidplatformscreen.h.

Here is the caller graph for this function:

◆ depth()

int QAndroidPlatformScreen::depth ( ) const
inlineoverridevirtual

Reimplement in subclass to return current depth of the screen

Implements QPlatformScreen.

Definition at line 68 of file qandroidplatformscreen.h.

◆ event()

bool QAndroidPlatformScreen::event ( QEvent e)
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:

See also
installEventFilter(), timerEvent(), QCoreApplication::sendEvent(), QCoreApplication::postEvent()

Reimplemented from QObject.

Definition at line 179 of file qandroidplatformscreen.cpp.

Here is the call graph for this function:

◆ format()

QImage::Format QAndroidPlatformScreen::format ( ) const
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.

◆ geometry()

QRect QAndroidPlatformScreen::geometry ( ) const
inlineoverridevirtual

Reimplement in subclass to return the pixel geometry of the screen

Implements QPlatformScreen.

Definition at line 66 of file qandroidplatformscreen.h.

Here is the caller graph for this function:

◆ lower()

void QAndroidPlatformScreen::lower ( QAndroidPlatformWindow window)

Definition at line 245 of file qandroidplatformscreen.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ modes()

QList<Mode> QAndroidPlatformScreen::modes ( ) const
inlineoverridevirtual

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.

See also
QPlatformScreen::geometry
QPlatformScreen::refreshRate
Since
5.9

Reimplemented from QPlatformScreen.

Definition at line 73 of file qandroidplatformscreen.h.

Here is the caller graph for this function:

◆ name()

QString QAndroidPlatformScreen::name ( ) const
inlineoverridevirtual

Reimplemented from QPlatformScreen.

Definition at line 72 of file qandroidplatformscreen.h.

Here is the caller graph for this function:

◆ physicalSize()

QSizeF QAndroidPlatformScreen::physicalSize ( ) const
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.

See also
logcalDpi

Reimplemented from QPlatformScreen.

Definition at line 70 of file qandroidplatformscreen.h.

Here is the caller graph for this function:

◆ preferredMode()

int QAndroidPlatformScreen::preferredMode ( ) const
inlineoverridevirtual

Reimplement this function in subclass to return the preferred mode index from the modes list.

The default implementation returns 0.

See also
QPlatformScreen::modes
Since
5.9

Reimplemented from QPlatformScreen.

Definition at line 75 of file qandroidplatformscreen.h.

◆ raise()

void QAndroidPlatformScreen::raise ( QAndroidPlatformWindow window)

Definition at line 228 of file qandroidplatformscreen.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rasterSurfaces()

int QAndroidPlatformScreen::rasterSurfaces ( )

Definition at line 374 of file qandroidplatformscreen.cpp.

◆ refreshRate()

qreal QAndroidPlatformScreen::refreshRate ( ) const
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.

Here is the caller graph for this function:

◆ removeWindow()

void QAndroidPlatformScreen::removeWindow ( QAndroidPlatformWindow window)

Definition at line 208 of file qandroidplatformscreen.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ scheduleUpdate()

void QAndroidPlatformScreen::scheduleUpdate ( )

Definition at line 262 of file qandroidplatformscreen.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAvailableGeometry

void QAndroidPlatformScreen::setAvailableGeometry ( const QRect rect)
slot

Definition at line 319 of file qandroidplatformscreen.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDirty

void QAndroidPlatformScreen::setDirty ( const QRect rect)
slot

Definition at line 270 of file qandroidplatformscreen.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setOrientation

void QAndroidPlatformScreen::setOrientation ( Qt::ScreenOrientation  orientation)
slot

Definition at line 314 of file qandroidplatformscreen.cpp.

Here is the call graph for this function:

◆ setPhysicalSize

void QAndroidPlatformScreen::setPhysicalSize ( const QSize size)
slot

Definition at line 277 of file qandroidplatformscreen.cpp.

◆ setRefreshRate

void QAndroidPlatformScreen::setRefreshRate ( qreal  refreshRate)
slot

Definition at line 306 of file qandroidplatformscreen.cpp.

Here is the call graph for this function:

◆ setSize

void QAndroidPlatformScreen::setSize ( const QSize size)
slot

Definition at line 282 of file qandroidplatformscreen.cpp.

Here is the call graph for this function:

◆ setSizeParameters

void QAndroidPlatformScreen::setSizeParameters ( const QSize physicalSize,
const QSize size,
const QRect availableGeometry 
)
slot

Definition at line 288 of file qandroidplatformscreen.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ topLevelAt()

QWindow * QAndroidPlatformScreen::topLevelAt ( const QPoint pos) const
overridevirtual

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.

◆ topWindow()

QWindow * QAndroidPlatformScreen::topWindow ( ) const
inline

Definition at line 158 of file qandroidplatformscreen.cpp.

Here is the caller graph for this function:

◆ topWindowChanged()

void QAndroidPlatformScreen::topWindowChanged ( QWindow w)

Definition at line 363 of file qandroidplatformscreen.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_availableGeometry

QRect QAndroidPlatformScreen::m_availableGeometry
protected

Definition at line 109 of file qandroidplatformscreen.h.

◆ m_currentMode

int QAndroidPlatformScreen::m_currentMode = 0
protected

Definition at line 116 of file qandroidplatformscreen.h.

◆ m_depth

int QAndroidPlatformScreen::m_depth
protected

Definition at line 110 of file qandroidplatformscreen.h.

◆ m_dirtyRect

QRect QAndroidPlatformScreen::m_dirtyRect
protected

Definition at line 106 of file qandroidplatformscreen.h.

◆ m_format

QImage::Format QAndroidPlatformScreen::m_format
protected

Definition at line 111 of file qandroidplatformscreen.h.

◆ m_modes

QList<Mode> QAndroidPlatformScreen::m_modes
protected

Definition at line 115 of file qandroidplatformscreen.h.

◆ m_name

QString QAndroidPlatformScreen::m_name
protected

Definition at line 114 of file qandroidplatformscreen.h.

◆ m_physicalSize

QSizeF QAndroidPlatformScreen::m_physicalSize
protected

Definition at line 112 of file qandroidplatformscreen.h.

◆ m_refreshRate

qreal QAndroidPlatformScreen::m_refreshRate
protected

Definition at line 113 of file qandroidplatformscreen.h.

◆ m_updatePending

bool QAndroidPlatformScreen::m_updatePending = false
protected

Definition at line 107 of file qandroidplatformscreen.h.

◆ m_windowStack

WindowStackType QAndroidPlatformScreen::m_windowStack
protected

Definition at line 105 of file qandroidplatformscreen.h.


The documentation for this class was generated from the following files: