Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QWindowsDirect2DIntegration Class Reference

#include <qwindowsdirect2dintegration.h>

+ Inheritance diagram for QWindowsDirect2DIntegration:
+ Collaboration diagram for QWindowsDirect2DIntegration:

Public Member Functions

virtual ~QWindowsDirect2DIntegration ()
 
QPlatformNativeInterfacenativeInterface () const override
 
QPlatformPixmapcreatePlatformPixmap (QPlatformPixmap::PixelType type) const override
 Factory function for QPlatformPixmap.
 
QPlatformBackingStorecreatePlatformBackingStore (QWindow *window) const override
 Factory function for QPlatformBackingStore.
 
QWindowsDirect2DContextdirect2DContext () const
 
- Public Member Functions inherited from QWindowsIntegration
 QWindowsIntegration (const QStringList &paramList)
 
 ~QWindowsIntegration () override
 
bool hasCapability (QPlatformIntegration::Capability cap) const override
 
QPlatformWindowcreatePlatformWindow (QWindow *window) const override
 Factory function for QPlatformWindow.
 
QPlatformWindowcreateForeignWindow (QWindow *window, WId nativeHandle) const override
 
QPlatformOpenGLContextcreatePlatformOpenGLContext (QOpenGLContext *context) const override
 Factory function for QPlatformOpenGLContext.
 
QOpenGLContext::OpenGLModuleType openGLModuleType () override
 Platform integration function for querying the OpenGL implementation type.
 
HMODULE openGLModuleHandle () const override
 
QOpenGLContextcreateOpenGLContext (HGLRC context, HWND window, QOpenGLContext *shareContext) const override
 
QAbstractEventDispatchercreateEventDispatcher () const override
 Factory function for the GUI event dispatcher.
 
void initialize () override
 Performs initialization steps that depend on having an event dispatcher available.
 
QPlatformInputContextinputContext () const override
 Returns the platforms input context.
 
QPlatformFontDatabasefontDatabase () const override
 Accessor for the platform integration's fontdatabase.
 
QStringList themeNames () const override
 
QPlatformThemecreatePlatformTheme (const QString &name) const override
 
QPlatformServicesservices () const override
 
QVariant styleHint (StyleHint hint) const override
 
Qt::KeyboardModifiers queryKeyboardModifiers () const override
 
QList< int > possibleKeys (const QKeyEvent *e) const override
 Should be used to obtain a list of possible shortcuts for the given key event.
 
unsigned options () const
 
void beep () const override
 
void setApplicationBadge (qint64 number) override
 
void setApplicationBadge (const QImage &image)
 
void updateApplicationBadge ()
 
- Public Member Functions inherited from QPlatformIntegration
virtual ~QPlatformIntegration ()
 
virtual bool hasCapability (Capability cap) const
 
virtual QPlatformPixmapcreatePlatformPixmap (QPlatformPixmap::PixelType type) const
 Factory function for QPlatformPixmap.
 
virtual QPlatformWindowcreatePlatformWindow (QWindow *window) const =0
 Factory function for QPlatformWindow.
 
virtual QPlatformWindowcreateForeignWindow (QWindow *, WId) const
 
virtual QPlatformBackingStorecreatePlatformBackingStore (QWindow *window) const =0
 Factory function for QPlatformBackingStore.
 
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 QAbstractEventDispatchercreateEventDispatcher () 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 QPlatformFontDatabasefontDatabase () const
 Accessor for the platform integration's fontdatabase.
 
virtual QPlatformClipboardclipboard () const
 Accessor for the platform integration's clipboard.
 
virtual QPlatformInputContextinputContext () const
 Returns the platforms input context.
 
virtual QPlatformNativeInterfacenativeInterface () const
 
virtual QPlatformServicesservices () 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 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)
 
- Public Member Functions inherited from QWindowsApplication
void setTouchWindowTouchType (TouchWindowTouchTypes type) override
 
TouchWindowTouchTypes touchWindowTouchType () const override
 
WindowActivationBehavior windowActivationBehavior () const override
 
void setWindowActivationBehavior (WindowActivationBehavior behavior) override
 
void setHasBorderInFullScreenDefault (bool border) override
 
bool isTabletMode () const override
 
bool isWinTabEnabled () const override
 
bool setWinTabEnabled (bool enabled) override
 
bool isDarkMode () const override
 
DarkModeHandling darkModeHandling () const override
 
void setDarkModeHandling (DarkModeHandling handling) override
 
void registerMime (QWindowsMimeConverter *mime) override
 
void unregisterMime (QWindowsMimeConverter *mime) override
 
int registerMimeType (const QString &mime) override
 
HWND createMessageWindow (const QString &classNameTemplate, const QString &windowName, QFunctionPointer eventProc=nullptr) const override
 
bool asyncExpose () const override
 
void setAsyncExpose (bool value) override
 
QVariant gpu () const override
 
QVariant gpuList () const override
 
void populateLightSystemPalette (QPalette &palette) const override
 

Static Public Member Functions

static QWindowsDirect2DIntegrationcreate (const QStringList &paramList)
 
static QWindowsDirect2DIntegrationinstance ()
 
- Static Public Member Functions inherited from QWindowsIntegration
static QWindowsStaticOpenGLContextstaticOpenGLContext ()
 
static QWindowsIntegrationinstance ()
 

Protected Member Functions

QWindowsWindowcreatePlatformWindowHelper (QWindow *window, const QWindowsWindowData &) const override
 
virtual QWindowsWindowcreatePlatformWindowHelper (QWindow *window, const QWindowsWindowData &) const
 
- Protected Member Functions inherited from QPlatformIntegration
 QPlatformIntegration ()=default
 

Additional Inherited Members

- Public Types inherited from QWindowsIntegration
enum  Options {
  FontDatabaseFreeType = 0x1 , FontDatabaseNative = 0x2 , DisableArb = 0x4 , NoNativeDialogs = 0x8 ,
  XpNativeDialogs = 0x10 , DontPassOsMouseEventsSynthesizedFromTouch = 0x20 , DontUseDirectWriteFonts = QWindowsFontDatabase::DontUseDirectWriteFonts , DontUseColorFonts = QWindowsFontDatabase::DontUseColorFonts ,
  AlwaysUseNativeMenus = 0x100 , NoNativeMenus = 0x200 , DontUseWMPointer = 0x400 , DetectAltGrModifier = 0x800 ,
  RtlEnabled = 0x1000 , FontDatabaseDirectWrite = 0x2000
}
 
- 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
}
 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
}
 

Detailed Description

Definition at line 16 of file qwindowsdirect2dintegration.h.

Constructor & Destructor Documentation

◆ ~QWindowsDirect2DIntegration()

QWindowsDirect2DIntegration::~QWindowsDirect2DIntegration ( )
virtual

Definition at line 107 of file qwindowsdirect2dintegration.cpp.

Member Function Documentation

◆ create()

QWindowsDirect2DIntegration * QWindowsDirect2DIntegration::create ( const QStringList paramList)
static

Definition at line 72 of file qwindowsdirect2dintegration.cpp.

References QString::arg(), QVersionNumber::isNull(), minimumD2DVersion(), systemD2DVersion(), QString::toStdWString(), QVersionNumber::toString(), and QCoreApplication::translate().

Referenced by QWindowsDirect2DIntegrationPlugin::create().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createPlatformBackingStore()

QPlatformBackingStore * QWindowsDirect2DIntegration::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 140 of file qwindowsdirect2dintegration.cpp.

References window().

+ Here is the call graph for this function:

◆ createPlatformPixmap()

QPlatformPixmap * QWindowsDirect2DIntegration::createPlatformPixmap ( QPlatformPixmap::PixelType  type) const
overridevirtual

Factory function for QPlatformPixmap.

PixelType can be either PixmapType or BitmapType.

See also
QPlatformPixmap

Reimplemented from QPlatformIntegration.

Definition at line 128 of file qwindowsdirect2dintegration.cpp.

References QPlatformPixmap::BitmapType.

◆ createPlatformWindowHelper()

QWindowsWindow * QWindowsDirect2DIntegration::createPlatformWindowHelper ( QWindow window,
const QWindowsWindowData data 
) const
overrideprotectedvirtual

Reimplemented from QWindowsIntegration.

Definition at line 118 of file qwindowsdirect2dintegration.cpp.

References window().

+ Here is the call graph for this function:

◆ direct2DContext()

QWindowsDirect2DContext * QWindowsDirect2DIntegration::direct2DContext ( ) const

Definition at line 145 of file qwindowsdirect2dintegration.cpp.

References QWindowsDirect2DIntegrationPrivate::m_d2dContext.

Referenced by QWindowsDirect2DContext::instance().

+ Here is the caller graph for this function:

◆ instance()

QWindowsDirect2DIntegration * QWindowsDirect2DIntegration::instance ( )
static

Definition at line 112 of file qwindowsdirect2dintegration.cpp.

References QWindowsIntegration::instance().

Referenced by QWindowsDirect2DContext::instance().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nativeInterface()

QPlatformNativeInterface * QWindowsDirect2DIntegration::nativeInterface ( ) const
overridevirtual

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