![]() |
Qt 6.x
The Qt SDK
|
#include <qminimalintegration.h>
Public Member Functions | |
QMinimalIntegration (const QStringList ¶meters) | |
~QMinimalIntegration () | |
bool | hasCapability (QPlatformIntegration::Capability cap) const override |
QPlatformFontDatabase * | fontDatabase () const override |
Accessor for the platform integration's fontdatabase. | |
QPlatformWindow * | createPlatformWindow (QWindow *window) const override |
Factory function for QPlatformWindow. | |
QPlatformBackingStore * | createPlatformBackingStore (QWindow *window) const override |
Factory function for QPlatformBackingStore. | |
QAbstractEventDispatcher * | createEventDispatcher () const override |
Factory function for the GUI event dispatcher. | |
QPlatformNativeInterface * | nativeInterface () const override |
unsigned | options () const |
![]() | |
virtual | ~QPlatformIntegration () |
virtual bool | hasCapability (Capability cap) const |
virtual QPlatformPixmap * | createPlatformPixmap (QPlatformPixmap::PixelType type) const |
Factory function for QPlatformPixmap. | |
virtual QPlatformWindow * | createPlatformWindow (QWindow *window) const =0 |
Factory function for QPlatformWindow. | |
virtual QPlatformWindow * | createForeignWindow (QWindow *, WId) const |
virtual QPlatformBackingStore * | createPlatformBackingStore (QWindow *window) const =0 |
Factory function for QPlatformBackingStore. | |
virtual QPlatformOpenGLContext * | createPlatformOpenGLContext (QOpenGLContext *context) const |
Factory function for QPlatformOpenGLContext. | |
virtual QPlatformSharedGraphicsCache * | createPlatformSharedGraphicsCache (const char *cacheId) const |
Factory function for QPlatformSharedGraphicsCache. | |
virtual QPaintEngine * | createImagePaintEngine (QPaintDevice *paintDevice) const |
Factory function for QPaintEngine. | |
virtual QAbstractEventDispatcher * | createEventDispatcher () const =0 |
Factory function for the GUI event dispatcher. | |
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 QPlatformFontDatabase * | fontDatabase () const |
Accessor for the platform integration's fontdatabase. | |
virtual QPlatformClipboard * | clipboard () const |
Accessor for the platform integration's clipboard. | |
virtual QPlatformInputContext * | inputContext () const |
Returns the platforms input context. | |
virtual QPlatformNativeInterface * | nativeInterface () const |
virtual QPlatformServices * | services () const |
virtual QVariant | styleHint (StyleHint hint) const |
virtual Qt::WindowState | defaultWindowState (Qt::WindowFlags) const |
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. | |
virtual QStringList | themeNames () const |
virtual QPlatformTheme * | createPlatformTheme (const QString &name) const |
virtual QPlatformOffscreenSurface * | createPlatformOffscreenSurface (QOffscreenSurface *surface) const |
Factory function for QOffscreenSurface. | |
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 QMinimalIntegration * | instance () |
Additional Inherited Members | |
![]() | |
QPlatformIntegration ()=default | |
Definition at line 31 of file qminimalintegration.h.
Enumerator | |
---|---|
DebugBackingStore | |
EnableFonts | |
FreeTypeFontDatabase | |
FontconfigDatabase |
Definition at line 34 of file qminimalintegration.h.
|
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().
QMinimalIntegration::~QMinimalIntegration | ( | ) |
Definition at line 78 of file qminimalintegration.cpp.
References QWindowSystemInterface::handleScreenRemoved().
|
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 152 of file qminimalintegration.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 147 of file qminimalintegration.cpp.
References window().
|
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 139 of file qminimalintegration.cpp.
References Q_UNUSED, and window().
|
overridevirtual |
Accessor for the platform integration's fontdatabase.
Default implementation returns a default QPlatformFontDatabase.
Reimplemented from QPlatformIntegration.
Definition at line 103 of file qminimalintegration.cpp.
References EnableFonts, FontconfigDatabase, QPlatformIntegration::fontDatabase(), and FreeTypeFontDatabase.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 84 of file qminimalintegration.cpp.
References QPlatformIntegration::hasCapability(), QPlatformIntegration::MultipleWindows, QPlatformIntegration::RhiBasedRendering, and QPlatformIntegration::ThreadedPixmaps.
|
static |
Definition at line 168 of file qminimalintegration.cpp.
References QGuiApplicationPrivate::platformIntegration().
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 161 of file qminimalintegration.cpp.
References QScopedPointer< T, Cleanup >::get(), and QScopedPointer< T, Cleanup >::reset().
|
inline |
Definition at line 53 of file qminimalintegration.h.