Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qandroidplatformintegration.h>
Static Public Member Functions | |
static void | setDefaultDisplayMetrics (int availableLeft, int availableTop, int availableWidth, int availableHeight, int physicalWidth, int physicalHeight, int screenWidth, int screenHeight) |
static void | setScreenOrientation (Qt::ScreenOrientation currentOrientation, Qt::ScreenOrientation nativeOrientation) |
static void | updateColorScheme (Qt::ColorScheme colorScheme) |
static Qt::ColorScheme | colorScheme () |
Friends | |
class | QAndroidPlatformScreen |
Definition at line 42 of file qandroidplatformintegration.h.
QAndroidPlatformIntegration::QAndroidPlatformIntegration | ( | const QStringList & | paramList | ) |
Definition at line 170 of file qandroidplatformintegration.cpp.
References QtAndroidPrivate::activity(), QInputDevice::Area, QtAndroidPrivate::context(), QThread::currentThread(), defaultScreen, QPointingDevice::Finger, QWindowSystemInterface::handleScreenAdded(), i, QInputDevice::Keyboard, QInputDevice::NormalizedPosition, ok, QInputDevice::Position, QCoreApplication::postEvent(), QInputDevice::Pressure, Q_ASSERT, Q_UNLIKELY, Q_UNUSED, QAndroidPlatformScreen, qApp, qFatal, QWindowSystemInterface::registerInputDevice(), screen(), QtAndroidPrivate::service(), QInputDevice::TouchScreen, and QEvent::User.
QAndroidPlatformIntegration::~QAndroidPlatformIntegration | ( | ) |
Definition at line 417 of file qandroidplatformintegration.cpp.
References QtAndroid::setAndroidPlatformIntegration().
|
overridevirtual |
Accessor for the platform integration's clipboard.
Default implementation returns a default QPlatformClipboard.
Reimplemented from QPlatformIntegration.
Definition at line 439 of file qandroidplatformintegration.cpp.
|
inlinestatic |
Definition at line 114 of file qandroidplatformintegration.h.
Referenced by QAndroidPlatformTheme::colorScheme(), AndroidStyle::loadStyleData(), and updateColorScheme().
|
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.
Implements QPlatformIntegration.
Definition at line 412 of file qandroidplatformintegration.cpp.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 407 of file qandroidplatformintegration.cpp.
References window().
|
override |
Definition at line 383 of file qandroidplatformintegration.cpp.
References QtAndroidPrivate::activity(), and QOffscreenSurfacePrivate::get().
|
override |
Definition at line 364 of file qandroidplatformintegration.cpp.
References context.
|
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.
Implements QPlatformIntegration.
Definition at line 343 of file qandroidplatformintegration.cpp.
References QtAndroidPrivate::activity(), and window().
|
overridevirtual |
Factory function for QOffscreenSurface.
An offscreen surface will typically be implemented with a pixel buffer (pbuffer). If the platform doesn't support offscreen surfaces, an invisible window will be used by QOffscreenSurface instead.
Reimplemented from QPlatformIntegration.
Definition at line 369 of file qandroidplatformintegration.cpp.
References QtAndroidPrivate::activity(), and QOffscreenSurface::requestedFormat().
|
overridevirtual |
Factory function for QPlatformOpenGLContext.
The context parameter is a pointer to the context for which a platform-specific context backend needs to be created. Configuration settings like the format, share context and screen have to be taken from this QOpenGLContext and the resulting platform context is expected to be backed by a native context that fulfills these criteria.
If the context has native handles set, no new native context is expected to be created. Instead, the provided handles have to be used. In this case the ownership of the handle must not be taken and the platform implementation is not allowed to destroy the native context. Configuration parameters like the format are also to be ignored. Instead, the platform implementation is responsible for querying the configuriation from the provided native context.
Returns a pointer to a QPlatformOpenGLContext instance or \nullptr if the context could not be created.
Reimplemented from QPlatformIntegration.
Definition at line 351 of file qandroidplatformintegration.cpp.
References context.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 488 of file qandroidplatformintegration.cpp.
References androidThemeName, and QAndroidPlatformTheme::instance().
|
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.
Implements QPlatformIntegration.
Definition at line 394 of file qandroidplatformintegration.cpp.
References QSurface::VulkanSurface, and window().
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 473 of file qandroidplatformintegration.cpp.
References QPlatformIntegration::defaultWindowState(), Qt::Dialog, Qt::Window, and Qt::WindowNoState.
void QAndroidPlatformIntegration::flushPendingUpdates | ( | ) |
Definition at line 514 of file qandroidplatformintegration.cpp.
References QAndroidPlatformScreen::setSizeParameters().
|
overridevirtual |
Accessor for the platform integration's fontdatabase.
Default implementation returns a default QPlatformFontDatabase.
Reimplemented from QPlatformIntegration.
Definition at line 433 of file qandroidplatformintegration.cpp.
void QAndroidPlatformIntegration::handleScreenAdded | ( | int | displayId | ) |
Definition at line 577 of file qandroidplatformintegration.cpp.
References QWindowSystemInterface::handleScreenAdded(), QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::insert(), it, and qWarning.
Referenced by handleScreenChanged().
void QAndroidPlatformIntegration::handleScreenChanged | ( | int | displayId | ) |
Definition at line 594 of file qandroidplatformintegration.cpp.
References QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::end(), QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::find(), handleScreenAdded(), and it.
void QAndroidPlatformIntegration::handleScreenRemoved | ( | int | displayId | ) |
Definition at line 606 of file qandroidplatformintegration.cpp.
References QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::end(), QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::erase(), QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::find(), QWindowSystemInterface::handleScreenRemoved(), and it.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 320 of file qandroidplatformintegration.cpp.
References QtAndroidPrivate::activity(), QPlatformIntegration::ApplicationState, QPlatformIntegration::ForeignWindows, QPlatformIntegration::hasCapability(), QPlatformIntegration::MaximizeUsingFullscreenGeometry, QPlatformIntegration::NativeWidgets, needsBasicRenderloopWorkaround(), QPlatformIntegration::OpenGL, QPlatformIntegration::RasterGLSurface, QPlatformIntegration::ScreenWindowGrabbing, QPlatformIntegration::ThreadedOpenGL, QPlatformIntegration::ThreadedPixmaps, and QPlatformIntegration::TopStackedNativeChildWindows.
|
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 311 of file qandroidplatformintegration.cpp.
References QPlatformInputContextFactory::create(), QPlatformInputContextFactory::requested(), and QScopedPointer< T, Cleanup >::reset().
|
overridevirtual |
Returns the platforms input context.
The default implementation returns \nullptr, implying no input method support.
Reimplemented from QPlatformIntegration.
Definition at line 445 of file qandroidplatformintegration.cpp.
References QScopedPointer< T, Cleanup >::data().
|
inline |
Definition at line 76 of file qandroidplatformintegration.h.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 450 of file qandroidplatformintegration.cpp.
|
inline |
Definition at line 62 of file qandroidplatformintegration.h.
Referenced by QAndroidPlatformIntegration(), QAndroidPlatformTheme::themeHint(), and QAndroidInputContext::updateSelectionHandles().
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 455 of file qandroidplatformintegration.cpp.
Definition at line 529 of file qandroidplatformintegration.cpp.
References Qt::AutoConnection, QMetaObject::invokeMethod(), and Q_ARG.
|
static |
Definition at line 496 of file qandroidplatformintegration.cpp.
Referenced by setDisplayMetrics().
void QAndroidPlatformIntegration::setPhysicalSize | ( | int | width, |
int | height ) |
Definition at line 535 of file qandroidplatformintegration.cpp.
References Qt::AutoConnection, QMetaObject::invokeMethod(), and Q_ARG.
Definition at line 570 of file qandroidplatformintegration.cpp.
References Qt::AutoConnection, QMetaObject::invokeMethod(), and Q_ARG.
|
static |
Definition at line 507 of file qandroidplatformintegration.cpp.
Referenced by handleOrientationChanged().
void QAndroidPlatformIntegration::setScreenSize | ( | int | width, |
int | height ) |
Definition at line 541 of file qandroidplatformintegration.cpp.
References Qt::AutoConnection, QMetaObject::invokeMethod(), and Q_ARG.
void QAndroidPlatformIntegration::setScreenSizeParameters | ( | const QSize & | physicalSize, |
const QSize & | screenSize, | ||
const QRect & | availableGeometry ) |
Definition at line 559 of file qandroidplatformintegration.cpp.
References Qt::AutoConnection, QMetaObject::invokeMethod(), and Q_ARG.
|
inline |
Definition at line 109 of file qandroidplatformintegration.h.
References touchDevice().
Referenced by QtAndroidInput::getTouchDevice().
Reimplemented from QPlatformIntegration.
Definition at line 460 of file qandroidplatformintegration.cpp.
References hint(), QPlatformIntegration::PasswordMaskDelay, QPlatformIntegration::ShowIsMaximized, and QPlatformIntegration::styleHint().
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 483 of file qandroidplatformintegration.cpp.
References androidThemeName.
|
inline |
Definition at line 108 of file qandroidplatformintegration.h.
Referenced by QtAndroidInput::getTouchDevice(), and setTouchDevice().
|
static |
Definition at line 549 of file qandroidplatformintegration.cpp.
References colorScheme(), QAndroidPlatformTheme::instance(), QMetaObject::invokeMethod(), and qGuiApp.
Referenced by handleUiDarkModeChanged().
|
friend |
Definition at line 46 of file qandroidplatformintegration.h.
Referenced by QAndroidPlatformIntegration().