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>.
Loading...
Searching...
No Matches
QMinimalIntegration Class Reference

#include <qminimalintegration.h>

+ Inheritance diagram for QMinimalIntegration:
+ Collaboration diagram for QMinimalIntegration:

Public Types

enum  Options { DebugBackingStore = 0x1 , EnableFonts = 0x2 , FreeTypeFontDatabase = 0x4 , FontconfigDatabase = 0x8 }
 
- Public Types inherited from QPlatformIntegration
enum  Capability {
  ThreadedPixmaps = 1 , OpenGL , ThreadedOpenGL , SharedGraphicsCache ,
  BufferQueueingOpenGL , WindowMasks , MultipleWindows , ApplicationState ,
  ForeignWindows , NonFullScreenWindows , NativeWidgets , WindowManagement ,
  WindowActivation , SyncState , RasterGLSurface , 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
}
 

Public Member Functions

 QMinimalIntegration (const QStringList &parameters)
 
 ~QMinimalIntegration ()
 
bool hasCapability (QPlatformIntegration::Capability cap) const override
 
QPlatformFontDatabasefontDatabase () const override
 Accessor for the platform integration's fontdatabase.
 
QPlatformWindowcreatePlatformWindow (QWindow *window) const override
 Factory function for QPlatformWindow.
 
QPlatformBackingStorecreatePlatformBackingStore (QWindow *window) const override
 Factory function for QPlatformBackingStore.
 
QAbstractEventDispatchercreateEventDispatcher () const override
 Factory function for the GUI event dispatcher.
 
QPlatformNativeInterfacenativeInterface () const override
 
unsigned options () const
 
- Public Member Functions inherited from QPlatformIntegration
virtual ~QPlatformIntegration ()
 
virtual QPlatformPixmapcreatePlatformPixmap (QPlatformPixmap::PixelType type) const
 Factory function for QPlatformPixmap.
 
virtual QPlatformWindowcreateForeignWindow (QWindow *, WId) const
 
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 initialize ()
 Performs initialization steps that depend on having an event dispatcher available.
 
virtual void destroy ()
 Called before the platform integration is deleted.
 
virtual QPlatformClipboardclipboard () const
 Accessor for the platform integration's clipboard.
 
virtual QPlatformInputContextinputContext () const
 Returns the platforms input context.
 
virtual QPlatformServicesservices () const
 
virtual QVariant styleHint (StyleHint hint) const
 
virtual Qt::WindowState defaultWindowState (Qt::WindowFlags) const
 
virtual QPlatformKeyMapperkeyMapper () const
 Accessor for the platform integration's key mapper.
 
virtual QStringList themeNames () const
 
virtual QPlatformThemecreatePlatformTheme (const QString &name) const
 
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 QMinimalIntegrationinstance ()
 

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 31 of file qminimalintegration.h.

Member Enumeration Documentation

◆ Options

Enumerator
DebugBackingStore 
EnableFonts 
FreeTypeFontDatabase 
FontconfigDatabase 

Definition at line 34 of file qminimalintegration.h.

Constructor & Destructor Documentation

◆ QMinimalIntegration()

QMinimalIntegration::QMinimalIntegration ( const QStringList & parameters)
explicit

Definition at line 60 of file qminimalintegration.cpp.

References DebugBackingStore, debugBackingStoreEnvironmentVariable, EnableFonts, QImage::Format_ARGB32_Premultiplied, QWindowSystemInterface::handleScreenAdded(), m_options, QMinimalScreen::mDepth, QMinimalScreen::mFormat, QMinimalScreen::mGeometry, qEnvironmentVariableIntValue(), and qEnvironmentVariableIsSet().

+ Here is the call graph for this function:

◆ ~QMinimalIntegration()

QMinimalIntegration::~QMinimalIntegration ( )

Definition at line 78 of file qminimalintegration.cpp.

References QWindowSystemInterface::handleScreenRemoved().

+ Here is the call graph for this function:

Member Function Documentation

◆ createEventDispatcher()

QAbstractEventDispatcher * QMinimalIntegration::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 152 of file qminimalintegration.cpp.

◆ createPlatformBackingStore()

QPlatformBackingStore * QMinimalIntegration::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 147 of file qminimalintegration.cpp.

References window().

+ Here is the call graph for this function:

◆ createPlatformWindow()

QPlatformWindow * QMinimalIntegration::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 139 of file qminimalintegration.cpp.

References Q_UNUSED, and window().

+ Here is the call graph for this function:

◆ fontDatabase()

QPlatformFontDatabase * QMinimalIntegration::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 103 of file qminimalintegration.cpp.

References EnableFonts, FontconfigDatabase, QPlatformIntegration::fontDatabase(), and FreeTypeFontDatabase.

+ Here is the call graph for this function:

◆ hasCapability()

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

Reimplemented from QPlatformIntegration.

Definition at line 84 of file qminimalintegration.cpp.

References QPlatformIntegration::hasCapability(), QPlatformIntegration::MultipleWindows, QPlatformIntegration::RhiBasedRendering, and QPlatformIntegration::ThreadedPixmaps.

+ Here is the call graph for this function:

◆ instance()

QMinimalIntegration * QMinimalIntegration::instance ( )
static

Definition at line 168 of file qminimalintegration.cpp.

References QGuiApplicationPrivate::platformIntegration().

+ Here is the call graph for this function:

◆ nativeInterface()

QPlatformNativeInterface * QMinimalIntegration::nativeInterface ( ) const
overridevirtual

Reimplemented from QPlatformIntegration.

Definition at line 161 of file qminimalintegration.cpp.

References QScopedPointer< T, Cleanup >::get(), and QScopedPointer< T, Cleanup >::reset().

+ Here is the call graph for this function:

◆ options()

unsigned QMinimalIntegration::options ( ) const
inline

Definition at line 53 of file qminimalintegration.h.


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