![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qohosplatformintegration.h>
Public Member Functions | |
| QOhosPlatformIntegration (const QStringList ¶mList) | |
| Qt::WindowState | defaultWindowState (Qt::WindowFlags flags) const override |
| QPlatformWindow * | createPlatformWindow (QWindow *window) const override |
| Factory function for QPlatformWindow. | |
| QPlatformWindow * | createForeignWindow (QWindow *, WId) const override |
| QPlatformBackingStore * | createPlatformBackingStore (QWindow *window) const override |
| Factory function for QPlatformBackingStore. | |
| QVariant | styleHint (StyleHint hint) const override |
| QPlatformNativeInterface * | nativeInterface () const override |
| QPlatformOpenGLContext * | createPlatformOpenGLContext (QOpenGLContext *context) const override |
| Factory function for QPlatformOpenGLContext. | |
| QOpenGLContext * | createOpenGLContext (EGLContext context, EGLDisplay display, QOpenGLContext *shareContext) const override |
| QAbstractEventDispatcher * | createEventDispatcher () const override |
| Factory function for the GUI event dispatcher. | |
| QPlatformOffscreenSurface * | createPlatformOffscreenSurface (QOffscreenSurface *surface) const override |
| Factory function for QOffscreenSurface. | |
| QPlatformFontDatabase * | fontDatabase () const override |
| Accessor for the platform integration's fontdatabase. | |
| QOhosPlatformClipboard * | clipboard () const override |
| Accessor for the platform integration's clipboard. | |
| bool | hasCapability (Capability cap) const override |
| QPlatformInputContext * | inputContext () const override |
| Returns the platforms input context. | |
| void | initialize () override |
| Performs initialization steps that depend on having an event dispatcher available. | |
| QPlatformServices * | services () const override |
| QPlatformTheme * | createPlatformTheme (const QString &name) const override |
| QStringList | themeNames () const override |
| QOhosInputMethodEventHandler * | inputMethodEventHandler () const |
| QOhosScreenManager * | screenManager () const |
| Public Member Functions inherited from QPlatformIntegration | |
| virtual | ~QPlatformIntegration () |
| virtual QPlatformPixmap * | createPlatformPixmap (QPlatformPixmap::PixelType type) const |
| Factory function for QPlatformPixmap. | |
| virtual QPlatformSharedGraphicsCache * | createPlatformSharedGraphicsCache (const char *cacheId) const |
| Factory function for QPlatformSharedGraphicsCache. | |
| virtual QPaintEngine * | createImagePaintEngine (QPaintDevice *paintDevice) const |
| Factory function for QPaintEngine. | |
| virtual void | destroy () |
| Called before the platform integration is deleted. | |
| virtual QPlatformKeyMapper * | keyMapper () const |
| Accessor for the platform integration's key mapper. | |
| virtual QPlatformSessionManager * | createPlatformSessionManager (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 QOhosPlatformIntegration * | instance () |
| static void | setDefaultDisplayMetrics (const QOhosDisplayInfo &m_displayInfo) |
| static QOhosSystemLocale * | systemLocale () |
| 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 | |
Definition at line 40 of file qohosplatformintegration.h.
|
strong |
| Enumerator | |
|---|---|
| Disabled | |
| Enabled | |
| FollowSystemSetting | |
Definition at line 45 of file qohosplatformintegration.h.
| QOhosPlatformIntegration::QOhosPlatformIntegration | ( | const QStringList & | paramList | ) |
Definition at line 120 of file qohosplatformintegration.cpp.
References QtOhos::isOhosNoUiChildMode().
|
overridevirtual |
Accessor for the platform integration's clipboard.
Default implementation returns a default QPlatformClipboard.
Reimplemented from QPlatformIntegration.
Definition at line 215 of file qohosplatformintegration.cpp.
|
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 169 of file qohosplatformintegration.cpp.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 204 of file qohosplatformintegration.cpp.
|
override |
Definition at line 270 of file qohosplatformintegration.cpp.
|
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 228 of file qohosplatformintegration.cpp.
|
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.
|
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 259 of file qohosplatformintegration.cpp.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 335 of file qohosplatformintegration.cpp.
References QOhosPlatformTheme::QOhosPlatformTheme().
|
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 190 of file qohosplatformintegration.cpp.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 181 of file qohosplatformintegration.cpp.
|
overridevirtual |
Accessor for the platform integration's fontdatabase.
Default implementation returns a default QPlatformFontDatabase.
Reimplemented from QPlatformIntegration.
Definition at line 209 of file qohosplatformintegration.cpp.
|
static |
Definition at line 366 of file qohosplatformintegration.cpp.
Referenced by QT_BEGIN_NAMESPACE::determineViewGeometryPersistencePolicy(), and QT_BEGIN_NAMESPACE::syncWindowGeometryPersistenceState().
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 283 of file qohosplatformintegration.cpp.
References QtOhos::isOhosNoUiChildMode().
|
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.
|
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.
| 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().
|
static |
Definition at line 115 of file qohosplatformintegration.cpp.
Referenced by QNativeNode::QNativeNode(), QT_BEGIN_NAMESPACE::findInitiatorViewForDragOrNull(), QOhosPlatformWindow::notifyInputSystemsWindowActiveStatusChanged(), QOhosInputMethodEventHandler::onKeyEvent(), QOhosPlatformWindow::screen(), QOhosPlatformWindow::setKeyboardGrabEnabled(), QOhosPlatformWindow::setMouseGrabEnabled(), and QtOhos::updateApplicationState().
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 376 of file qohosplatformintegration.cpp.
| QOhosScreenManager * QOhosPlatformIntegration::screenManager | ( | ) | const |
Definition at line 381 of file qohosplatformintegration.cpp.
Referenced by QOhosPlatformWindow::screen().
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 371 of file qohosplatformintegration.cpp.
|
static |
|
static |
Definition at line 360 of file qohosplatformintegration.cpp.
|
static |
Definition at line 355 of file qohosplatformintegration.cpp.
Reimplemented from QPlatformIntegration.
Definition at line 174 of file qohosplatformintegration.cpp.
|
static |
Definition at line 350 of file qohosplatformintegration.cpp.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 345 of file qohosplatformintegration.cpp.
|
friend |
Definition at line 114 of file qohosplatformintegration.h.