4#ifndef QWINDOWSAPPLICATION_H
5#define QWINDOWSAPPLICATION_H
7#include <QtGui/private/qguiapplication_p.h>
11class QWindowsApplication :
public QNativeInterface::Private::QWindowsApplication
14 void setTouchWindowTouchType(TouchWindowTouchTypes type) override;
15 TouchWindowTouchTypes touchWindowTouchType()
const override;
17 WindowActivationBehavior windowActivationBehavior()
const override;
18 void setWindowActivationBehavior(WindowActivationBehavior behavior) override;
20 void setHasBorderInFullScreenDefault(
bool border) override;
22 bool isTabletMode()
const override;
24 bool isWinTabEnabled()
const override;
25 bool setWinTabEnabled(
bool enabled) override;
27 DarkModeHandling darkModeHandling()
const override;
28 void setDarkModeHandling(DarkModeHandling handling) override;
30 void registerMime(QWindowsMimeConverter *mime) override;
31 void unregisterMime(QWindowsMimeConverter *mime) override;
33 int registerMimeType(
const QString &mime) override;
35 HWND createMessageWindow(
const QString &classNameTemplate,
36 const QString &windowName,
37 QFunctionPointer eventProc =
nullptr)
const override;
39 bool asyncExpose()
const override;
40 void setAsyncExpose(
bool value) override;
42 QVariant gpu()
const override;
43 QVariant gpuList()
const override;
45 void populateLightSystemPalette(QPalette &palette)
const override;
48 WindowActivationBehavior m_windowActivationBehavior = DefaultActivateWindow;
49 TouchWindowTouchTypes m_touchWindowTouchTypes = NormalTouch;
50 DarkModeHandling m_darkModeHandling;
QPlatformBackingStore * createPlatformBackingStore(QWindow *window) const override
Factory function for QPlatformBackingStore.
QWindowsGdiIntegration(const QStringList ¶mList)
~QWindowsGdiIntegration() override
QPlatformNativeInterface * nativeInterface() const override
QPlatformPixmap * createPlatformPixmap(QPlatformPixmap::PixelType type) const override
Factory function for QPlatformPixmap.
\title Qt platform plugin for Windows
QStringList themeNames() const override
QPlatformKeyMapper * keyMapper() const override
Accessor for the platform integration's key mapper.
QPlatformWindow * createPlatformWindow(QWindow *window) const override
Factory function for QPlatformWindow.
static QWindowsStaticOpenGLContext * staticOpenGLContext()
void setApplicationBadge(const QImage &image)
virtual QWindowsWindow * createPlatformWindowHelper(QWindow *window, const QWindowsWindowData &) const
~QWindowsIntegration() override
QOpenGLContext * createOpenGLContext(HGLRC context, HWND window, QOpenGLContext *shareContext) const override
QWindowsIntegration(const QStringList ¶mList)
void updateApplicationBadge()
QAbstractEventDispatcher * createEventDispatcher() const override
Factory function for the GUI event dispatcher.
QPlatformTheme * createPlatformTheme(const QString &name) const override
bool hasCapability(QPlatformIntegration::Capability cap) const override
QOpenGLContext::OpenGLModuleType openGLModuleType() override
Platform integration function for querying the OpenGL implementation type.
QPlatformFontDatabase * fontDatabase() const override
Accessor for the platform integration's fontdatabase.
QPlatformWindow * createForeignWindow(QWindow *window, WId nativeHandle) const override
void initialize() override
Performs initialization steps that depend on having an event dispatcher available.
void setApplicationBadge(qint64 number) override
static QWindowsIntegration * instance()
HMODULE openGLModuleHandle() const override
void beep() const override
QPlatformInputContext * inputContext() const override
Returns the platforms input context.
QPlatformServices * services() const override
QVariant styleHint(StyleHint hint) const override
QPlatformOpenGLContext * createPlatformOpenGLContext(QOpenGLContext *context) const override
Factory function for QPlatformOpenGLContext.