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
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
 
QPlatformKeyMapperkeyMapper () const override
 Accessor for the platform integration's key mapper.
 
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 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 QPlatformClipboardclipboard () const
 Accessor for the platform integration's clipboard.
 
virtual Qt::WindowState defaultWindowState (Qt::WindowFlags) const
 
virtual QPlatformOffscreenSurfacecreatePlatformOffscreenSurface (QOffscreenSurface *surface) const
 Factory function for QOffscreenSurface.
 
virtual QPlatformSessionManagercreatePlatformSessionManager (const QString &id, const QString &key) const
 
virtual void sync ()
 
virtual void setApplicationIcon (const QIcon &icon) 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
 
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
 
- 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
 

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 , FontDatabaseGDI = 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 ,
  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
}
 

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 minimumD2DVersion(), systemD2DVersion(), QString::toStdWString(), 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

◆ 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: