Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QAndroidPlatformIntegration Class Reference

#include <qandroidplatformintegration.h>

Inheritance diagram for QAndroidPlatformIntegration:
Collaboration diagram for QAndroidPlatformIntegration:

Public Member Functions

 QAndroidPlatformIntegration (const QStringList &paramList)
 ~QAndroidPlatformIntegration ()
void initialize () override
 Performs initialization steps that depend on having an event dispatcher available.
bool hasCapability (QPlatformIntegration::Capability cap) const override
QPlatformWindowcreatePlatformWindow (QWindow *window) const override
 Factory function for QPlatformWindow.
QPlatformWindowcreateForeignWindow (QWindow *window, WId nativeHandle) const override
QPlatformBackingStorecreatePlatformBackingStore (QWindow *window) const override
 Factory function for QPlatformBackingStore.
QAbstractEventDispatchercreateEventDispatcher () const override
 Factory function for the GUI event dispatcher.
QAndroidPlatformScreenscreen ()
void setAvailableGeometry (const QRect &availableGeometry)
void setPhysicalSize (int width, int height)
void setScreenSize (int width, int height)
void setRefreshRate (qreal refreshRate)
bool isVirtualDesktop ()
QPlatformFontDatabasefontDatabase () const override
 Accessor for the platform integration's fontdatabase.
void handleScreenAdded (int displayId)
void handleScreenChanged (int displayId)
void handleScreenRemoved (int displayId)
QPlatformClipboardclipboard () const override
 Accessor for the platform integration's clipboard.
QPlatformInputContextinputContext () const override
 Returns the platforms input context.
QPlatformNativeInterfacenativeInterface () const override
QPlatformServicesservices () const override
QVariant styleHint (StyleHint hint) const override
Qt::WindowState defaultWindowState (Qt::WindowFlags flags) const override
QStringList themeNames () const override
QPlatformThemecreatePlatformTheme (const QString &name) const override
QPointingDevicetouchDevice () const
void setTouchDevice (QPointingDevice *touchDevice)
void flushPendingUpdates ()
Public Member Functions inherited from QPlatformIntegration
virtual ~QPlatformIntegration ()
virtual QPlatformPixmapcreatePlatformPixmap (QPlatformPixmap::PixelType type) const
 Factory function for QPlatformPixmap.
virtual QPlatformOpenGLContextcreatePlatformOpenGLContext (QOpenGLContext *context) const
 Factory function for QPlatformOpenGLContext.
virtual QPlatformSharedGraphicsCachecreatePlatformSharedGraphicsCache (const char *cacheId) const
 Factory function for QPlatformSharedGraphicsCache.
virtual QPaintEnginecreateImagePaintEngine (QPaintDevice *paintDevice) const
 Factory function for QPaintEngine.
virtual void destroy ()
 Called before the platform integration is deleted.
virtual QPlatformKeyMapperkeyMapper () const
 Accessor for the platform integration's key mapper.
virtual QPlatformOffscreenSurfacecreatePlatformOffscreenSurface (QOffscreenSurface *surface) const
 Factory function for QOffscreenSurface.
virtual QPlatformSessionManagercreatePlatformSessionManager (const QString &id, const QString &key) const
virtual void sync ()
virtual QOpenGLContext::OpenGLModuleType openGLModuleType ()
 Platform integration function for querying the OpenGL implementation type.
virtual void setApplicationIcon (const QIcon &icon) const
virtual void setApplicationBadge (qint64 number)
virtual void beep () const
virtual void quit () const
template<auto func, typename... Args>
auto call (Args... args)

Static Public Member Functions

static void setScreenOrientation (Qt::ScreenOrientation currentOrientation, Qt::ScreenOrientation nativeOrientation)
static void updateColorScheme (Qt::ColorScheme colorScheme)
static Qt::ColorScheme colorScheme ()

Friends

class QAndroidPlatformScreen

Additional Inherited Members

Public Types inherited from QPlatformIntegration
enum  Capability {
  ThreadedPixmaps = 1 , OpenGL , ThreadedOpenGL , SharedGraphicsCache ,
  BufferQueueingOpenGL , WindowMasks , MultipleWindows , ApplicationState ,
  ForeignWindows , NonFullScreenWindows , NativeWidgets , WindowManagement ,
  WindowActivation , SyncState , AllGLFunctionsQueryable , ApplicationIcon ,
  SwitchableWidgetComposition , TopStackedNativeChildWindows , OpenGLOnRasterSurface , MaximizeUsingFullscreenGeometry ,
  PaintEvents , RhiBasedRendering , ScreenWindowGrabbing , BackingStoreStaticContents
}
 Capabilities are used to determine specific features of a platform integration. More...
enum  StyleHint {
  CursorFlashTime , KeyboardInputInterval , MouseDoubleClickInterval , StartDragDistance ,
  StartDragTime , KeyboardAutoRepeatRate , ShowIsFullScreen , PasswordMaskDelay ,
  FontSmoothingGamma , StartDragVelocity , UseRtlExtensions , PasswordMaskCharacter ,
  SetFocusOnTouchRelease , ShowIsMaximized , MousePressAndHoldInterval , TabFocusBehavior ,
  ReplayMousePressOutsidePopup , ItemViewActivateItemOnSingleClick , UiEffects , WheelScrollLines ,
  ShowShortcutsInContextMenus , MouseQuickSelectionThreshold , MouseDoubleClickDistance , FlickStartDistance ,
  FlickMaximumVelocity , FlickDeceleration , UnderlineShortcut
}
Protected Member Functions inherited from QPlatformIntegration
virtual Qt::KeyboardModifiers queryKeyboardModifiers () const
virtual QList< int > possibleKeys (const QKeyEvent *) const
 Should be used to obtain a list of possible shortcuts for the given key event.
 QPlatformIntegration ()=default

Detailed Description

Definition at line 42 of file qandroidplatformintegration.h.

Constructor & Destructor Documentation

◆ QAndroidPlatformIntegration()

QAndroidPlatformIntegration::QAndroidPlatformIntegration ( const QStringList & paramList)

Definition at line 178 of file qandroidplatformintegration.cpp.

References QAndroidPlatformIntegration().

Referenced by QAndroidPlatformIntegration().

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

◆ ~QAndroidPlatformIntegration()

QAndroidPlatformIntegration::~QAndroidPlatformIntegration ( )

Definition at line 432 of file qandroidplatformintegration.cpp.

Member Function Documentation

◆ clipboard()

QPlatformClipboard * QAndroidPlatformIntegration::clipboard ( ) const
overridevirtual

Accessor for the platform integration's clipboard.

Default implementation returns a default QPlatformClipboard.

See also
QPlatformClipboard

Reimplemented from QPlatformIntegration.

Definition at line 456 of file qandroidplatformintegration.cpp.

◆ colorScheme()

Qt::ColorScheme QAndroidPlatformIntegration::colorScheme ( )
inlinestatic

Definition at line 111 of file qandroidplatformintegration.h.

◆ createEventDispatcher()

QAbstractEventDispatcher * QAndroidPlatformIntegration::createEventDispatcher ( ) const
overridevirtual

Factory function for the GUI event dispatcher.

The platform plugin should create and return a QAbstractEventDispatcher subclass when this function is called.

If the platform plugin for some reason creates the event dispatcher outside of this function (for example in the constructor), it needs to handle the case where this function is never called, ensuring that the event dispatcher is still deleted at some point (typically in the destructor).

Note that the platform plugin should never explicitly set the event dispatcher itself, using QCoreApplication::setEventDispatcher(), but let QCoreApplication decide when and which event dispatcher to create.

Since
5.2

Implements QPlatformIntegration.

Definition at line 427 of file qandroidplatformintegration.cpp.

◆ createForeignWindow()

QPlatformWindow * QAndroidPlatformIntegration::createForeignWindow ( QWindow * window,
WId nativeHandle ) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 422 of file qandroidplatformintegration.cpp.

◆ createPlatformBackingStore()

QPlatformBackingStore * QAndroidPlatformIntegration::createPlatformBackingStore ( QWindow * window) const
overridevirtual

Factory function for QPlatformBackingStore.

The QWindow parameter is a pointer to the top level widget(tlw) the window surface is created for. A QPlatformWindow is always created before the QPlatformBackingStore for tlw where the widget also requires a backing store.

See also
QBackingStore
createPlatformWindow()

Implements QPlatformIntegration.

Definition at line 352 of file qandroidplatformintegration.cpp.

◆ createPlatformTheme()

QPlatformTheme * QAndroidPlatformIntegration::createPlatformTheme ( const QString & name) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 505 of file qandroidplatformintegration.cpp.

References androidThemeName, and QAndroidPlatformTheme::instance().

Here is the call graph for this function:

◆ createPlatformWindow()

QPlatformWindow * QAndroidPlatformIntegration::createPlatformWindow ( QWindow * window) const
overridevirtual

Factory function for QPlatformWindow.

The window parameter is a pointer to the window which the QPlatformWindow is supposed to be created for.

All windows have to have a QPlatformWindow, and it will be created on-demand when the QWindow is made visible for the first time, or explicitly through calling QWindow::create().

In the constructor, of the QPlatformWindow, the window flags, state, title and geometry of the window should be applied to the underlying window. If the resulting flags or state differs, the resulting values should be set on the window using QWindow::setWindowFlags() or QWindow::setWindowState(), respectively.

See also
QPlatformWindow, QPlatformWindowFormat
createPlatformBackingStore()

Implements QPlatformIntegration.

Definition at line 405 of file qandroidplatformintegration.cpp.

◆ defaultWindowState()

Qt::WindowState QAndroidPlatformIntegration::defaultWindowState ( Qt::WindowFlags flags) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 490 of file qandroidplatformintegration.cpp.

◆ flushPendingUpdates()

void QAndroidPlatformIntegration::flushPendingUpdates ( )

Definition at line 520 of file qandroidplatformintegration.cpp.

Referenced by QAndroidPlatformNativeInterface::customEvent().

Here is the caller graph for this function:

◆ fontDatabase()

QPlatformFontDatabase * QAndroidPlatformIntegration::fontDatabase ( ) const
overridevirtual

Accessor for the platform integration's fontdatabase.

Default implementation returns a default QPlatformFontDatabase.

See also
QPlatformFontDatabase

Reimplemented from QPlatformIntegration.

Definition at line 450 of file qandroidplatformintegration.cpp.

◆ handleScreenAdded()

void QAndroidPlatformIntegration::handleScreenAdded ( int displayId)

Definition at line 580 of file qandroidplatformintegration.cpp.

Referenced by handleScreenChanged().

Here is the caller graph for this function:

◆ handleScreenChanged()

void QAndroidPlatformIntegration::handleScreenChanged ( int displayId)

Definition at line 597 of file qandroidplatformintegration.cpp.

References handleScreenAdded().

Here is the call graph for this function:

◆ handleScreenRemoved()

void QAndroidPlatformIntegration::handleScreenRemoved ( int displayId)

Definition at line 616 of file qandroidplatformintegration.cpp.

◆ hasCapability()

bool QAndroidPlatformIntegration::hasCapability ( QPlatformIntegration::Capability cap) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 330 of file qandroidplatformintegration.cpp.

References needsBasicRenderloopWorkaround().

Here is the call graph for this function:

◆ initialize()

void QAndroidPlatformIntegration::initialize ( )
overridevirtual

Performs initialization steps that depend on having an event dispatcher available.

Called after the event dispatcher has been created.

Tasks that require an event dispatcher, for example creating socket notifiers, cannot be performed in the constructor. Instead, they should be performed here. The default implementation does nothing.

Reimplemented from QPlatformIntegration.

Definition at line 321 of file qandroidplatformintegration.cpp.

◆ inputContext()

QPlatformInputContext * QAndroidPlatformIntegration::inputContext ( ) const
overridevirtual

Returns the platforms input context.

The default implementation returns \nullptr, implying no input method support.

Reimplemented from QPlatformIntegration.

Definition at line 462 of file qandroidplatformintegration.cpp.

◆ isVirtualDesktop()

bool QAndroidPlatformIntegration::isVirtualDesktop ( )
inline

Definition at line 76 of file qandroidplatformintegration.h.

◆ nativeInterface()

QPlatformNativeInterface * QAndroidPlatformIntegration::nativeInterface ( ) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 467 of file qandroidplatformintegration.cpp.

◆ screen()

QAndroidPlatformScreen * QAndroidPlatformIntegration::screen ( )
inline

Definition at line 66 of file qandroidplatformintegration.h.

Referenced by handleOrientationChanged(), QAndroidPlatformTheme::themeHint(), QtAndroid::topLevelWindowAt(), QtAndroidInput::touchAdd(), and QAndroidInputContext::updateSelectionHandles().

Here is the caller graph for this function:

◆ services()

QPlatformServices * QAndroidPlatformIntegration::services ( ) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 472 of file qandroidplatformintegration.cpp.

◆ setAvailableGeometry()

void QAndroidPlatformIntegration::setAvailableGeometry ( const QRect & availableGeometry)

Definition at line 543 of file qandroidplatformintegration.cpp.

◆ setPhysicalSize()

void QAndroidPlatformIntegration::setPhysicalSize ( int width,
int height )

Definition at line 549 of file qandroidplatformintegration.cpp.

◆ setRefreshRate()

void QAndroidPlatformIntegration::setRefreshRate ( qreal refreshRate)

Definition at line 573 of file qandroidplatformintegration.cpp.

◆ setScreenOrientation()

void QAndroidPlatformIntegration::setScreenOrientation ( Qt::ScreenOrientation currentOrientation,
Qt::ScreenOrientation nativeOrientation )
static

Definition at line 513 of file qandroidplatformintegration.cpp.

◆ setScreenSize()

void QAndroidPlatformIntegration::setScreenSize ( int width,
int height )

Definition at line 555 of file qandroidplatformintegration.cpp.

◆ setTouchDevice()

void QAndroidPlatformIntegration::setTouchDevice ( QPointingDevice * touchDevice)
inline

Definition at line 106 of file qandroidplatformintegration.h.

◆ styleHint()

QVariant QAndroidPlatformIntegration::styleHint ( StyleHint hint) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 477 of file qandroidplatformintegration.cpp.

◆ themeNames()

QStringList QAndroidPlatformIntegration::themeNames ( ) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 500 of file qandroidplatformintegration.cpp.

◆ touchDevice()

QPointingDevice * QAndroidPlatformIntegration::touchDevice ( ) const
inline

Definition at line 105 of file qandroidplatformintegration.h.

◆ updateColorScheme()

void QAndroidPlatformIntegration::updateColorScheme ( Qt::ColorScheme colorScheme)
static

Definition at line 563 of file qandroidplatformintegration.cpp.

◆ QAndroidPlatformScreen

friend class QAndroidPlatformScreen
friend

Definition at line 48 of file qandroidplatformintegration.h.


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