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
QOhosPlatformIntegration Class Reference

#include <qohosplatformintegration.h>

Inheritance diagram for QOhosPlatformIntegration:
Collaboration diagram for QOhosPlatformIntegration:

Public Types

enum class  WindowGeometryPersistencePolicy { Disabled , Enabled , FollowSystemSetting }
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 ,
  OffscreenSurface , MouseCursorPositioning
}
 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
}

Public Member Functions

 QOhosPlatformIntegration (const QStringList &paramList)
Qt::WindowState defaultWindowState (Qt::WindowFlags flags) const override
QPlatformWindowcreatePlatformWindow (QWindow *window) const override
 Factory function for QPlatformWindow.
QPlatformWindowcreateForeignWindow (QWindow *, WId) const override
QPlatformBackingStorecreatePlatformBackingStore (QWindow *window) const override
 Factory function for QPlatformBackingStore.
QVariant styleHint (StyleHint hint) const override
QPlatformNativeInterfacenativeInterface () const override
QPlatformOpenGLContextcreatePlatformOpenGLContext (QOpenGLContext *context) const override
 Factory function for QPlatformOpenGLContext.
QOpenGLContextcreateOpenGLContext (EGLContext context, EGLDisplay display, QOpenGLContext *shareContext) const override
QAbstractEventDispatchercreateEventDispatcher () const override
 Factory function for the GUI event dispatcher.
QPlatformOffscreenSurfacecreatePlatformOffscreenSurface (QOffscreenSurface *surface) const override
 Factory function for QOffscreenSurface.
QPlatformFontDatabasefontDatabase () const override
 Accessor for the platform integration's fontdatabase.
QOhosPlatformClipboardclipboard () const override
 Accessor for the platform integration's clipboard.
bool hasCapability (Capability cap) const override
QPlatformInputContextinputContext () const override
 Returns the platforms input context.
void initialize () override
 Performs initialization steps that depend on having an event dispatcher available.
QPlatformServicesservices () const override
QPlatformThemecreatePlatformTheme (const QString &name) const override
QStringList themeNames () const override
QOhosInputMethodEventHandlerinputMethodEventHandler () const
QOhosScreenManagerscreenManager () const
Public Member Functions inherited from QPlatformIntegration
virtual ~QPlatformIntegration ()
virtual QPlatformPixmapcreatePlatformPixmap (QPlatformPixmap::PixelType type) const
 Factory function for QPlatformPixmap.
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 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 QOhosPlatformIntegrationinstance ()
static void setDefaultDisplayMetrics (const QOhosDisplayInfo &m_displayInfo)
static QOhosSystemLocalesystemLocale ()
static void setSystemLocale (QOhosSystemLocale *systemLocale)
static void setMainWindowGeometryPersistencePolicy (WindowGeometryPersistencePolicy policy)
static WindowGeometryPersistencePolicy getMainWindowGeometryPersistencePolicy ()

Friends

class QOhosPlatformScreen

Additional Inherited Members

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 40 of file qohosplatformintegration.h.

Member Enumeration Documentation

◆ WindowGeometryPersistencePolicy

Enumerator
Disabled 
Enabled 
FollowSystemSetting 

Definition at line 45 of file qohosplatformintegration.h.

Constructor & Destructor Documentation

◆ QOhosPlatformIntegration()

QOhosPlatformIntegration::QOhosPlatformIntegration ( const QStringList & paramList)

Definition at line 120 of file qohosplatformintegration.cpp.

References QtOhos::isOhosNoUiChildMode().

Here is the call graph for this function:

Member Function Documentation

◆ clipboard()

QOhosPlatformClipboard * QOhosPlatformIntegration::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 215 of file qohosplatformintegration.cpp.

◆ createEventDispatcher()

QAbstractEventDispatcher * QOhosPlatformIntegration::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 169 of file qohosplatformintegration.cpp.

◆ createForeignWindow()

QPlatformWindow * QOhosPlatformIntegration::createForeignWindow ( QWindow * window,
WId windowId ) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 204 of file qohosplatformintegration.cpp.

◆ createOpenGLContext()

QOpenGLContext * QOhosPlatformIntegration::createOpenGLContext ( EGLContext context,
EGLDisplay display,
QOpenGLContext * shareContext ) const
override

Definition at line 270 of file qohosplatformintegration.cpp.

◆ createPlatformBackingStore()

QPlatformBackingStore * QOhosPlatformIntegration::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 228 of file qohosplatformintegration.cpp.

◆ createPlatformOffscreenSurface()

QPlatformOffscreenSurface * QOhosPlatformIntegration::createPlatformOffscreenSurface ( QOffscreenSurface * surface) const
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.

If the platform has the OffscreenSurface capability, this should always return a valid pointer.

Reimplemented from QPlatformIntegration.

Definition at line 277 of file qohosplatformintegration.cpp.

◆ createPlatformOpenGLContext()

QPlatformOpenGLContext * QOhosPlatformIntegration::createPlatformOpenGLContext ( QOpenGLContext * context) const
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.

See also
QOpenGLContext

Reimplemented from QPlatformIntegration.

Definition at line 259 of file qohosplatformintegration.cpp.

◆ createPlatformTheme()

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

Reimplemented from QPlatformIntegration.

Definition at line 335 of file qohosplatformintegration.cpp.

References QOhosPlatformTheme::QOhosPlatformTheme().

Here is the call graph for this function:

◆ createPlatformWindow()

QPlatformWindow * QOhosPlatformIntegration::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 190 of file qohosplatformintegration.cpp.

◆ defaultWindowState()

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

Reimplemented from QPlatformIntegration.

Definition at line 181 of file qohosplatformintegration.cpp.

◆ fontDatabase()

QPlatformFontDatabase * QOhosPlatformIntegration::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 209 of file qohosplatformintegration.cpp.

◆ getMainWindowGeometryPersistencePolicy()

QOhosPlatformIntegration::WindowGeometryPersistencePolicy QOhosPlatformIntegration::getMainWindowGeometryPersistencePolicy ( )
static

Definition at line 366 of file qohosplatformintegration.cpp.

Referenced by QT_BEGIN_NAMESPACE::determineViewGeometryPersistencePolicy(), and QT_BEGIN_NAMESPACE::syncWindowGeometryPersistenceState().

Here is the caller graph for this function:

◆ hasCapability()

bool QOhosPlatformIntegration::hasCapability ( Capability cap) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 283 of file qohosplatformintegration.cpp.

References QtOhos::isOhosNoUiChildMode().

Here is the call graph for this function:

◆ initialize()

void QOhosPlatformIntegration::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 313 of file qohosplatformintegration.cpp.

◆ inputContext()

QPlatformInputContext * QOhosPlatformIntegration::inputContext ( ) const
overridevirtual

Returns the platforms input context.

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

Reimplemented from QPlatformIntegration.

Definition at line 308 of file qohosplatformintegration.cpp.

◆ inputMethodEventHandler()

QOhosInputMethodEventHandler * QOhosPlatformIntegration::inputMethodEventHandler ( ) const

Definition at line 164 of file qohosplatformintegration.cpp.

Referenced by QNativeNode::QNativeNode(), QT_BEGIN_NAMESPACE::findInitiatorViewForDragOrNull(), QOhosPlatformWindow::setKeyboardGrabEnabled(), and QOhosPlatformWindow::setMouseGrabEnabled().

Here is the caller graph for this function:

◆ instance()

◆ nativeInterface()

QPlatformNativeInterface * QOhosPlatformIntegration::nativeInterface ( ) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 376 of file qohosplatformintegration.cpp.

◆ screenManager()

QOhosScreenManager * QOhosPlatformIntegration::screenManager ( ) const

Definition at line 381 of file qohosplatformintegration.cpp.

Referenced by QOhosPlatformWindow::screen().

Here is the caller graph for this function:

◆ services()

QPlatformServices * QOhosPlatformIntegration::services ( ) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 371 of file qohosplatformintegration.cpp.

◆ setDefaultDisplayMetrics()

void QOhosPlatformIntegration::setDefaultDisplayMetrics ( const QOhosDisplayInfo & m_displayInfo)
static

◆ setMainWindowGeometryPersistencePolicy()

void QOhosPlatformIntegration::setMainWindowGeometryPersistencePolicy ( QOhosPlatformIntegration::WindowGeometryPersistencePolicy policy)
static

Definition at line 360 of file qohosplatformintegration.cpp.

◆ setSystemLocale()

void QOhosPlatformIntegration::setSystemLocale ( QOhosSystemLocale * systemLocale)
static

Definition at line 355 of file qohosplatformintegration.cpp.

◆ styleHint()

QVariant QOhosPlatformIntegration::styleHint ( StyleHint hint) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 174 of file qohosplatformintegration.cpp.

◆ systemLocale()

QOhosSystemLocale * QOhosPlatformIntegration::systemLocale ( )
static

Definition at line 350 of file qohosplatformintegration.cpp.

◆ themeNames()

QStringList QOhosPlatformIntegration::themeNames ( ) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 345 of file qohosplatformintegration.cpp.

◆ QOhosPlatformScreen

friend class QOhosPlatformScreen
friend

Definition at line 114 of file qohosplatformintegration.h.


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