Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwindowsapplication.h
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWINDOWSAPPLICATION_H
5#define QWINDOWSAPPLICATION_H
6
7#include <QtGui/private/qguiapplication_p.h>
8
9QT_BEGIN_NAMESPACE
10
11class QWindowsApplication : public QNativeInterface::Private::QWindowsApplication
12{
13public:
14 void setTouchWindowTouchType(TouchWindowTouchTypes type) override;
15 TouchWindowTouchTypes touchWindowTouchType() const override;
16
17 WindowActivationBehavior windowActivationBehavior() const override;
18 void setWindowActivationBehavior(WindowActivationBehavior behavior) override;
19
20 void setHasBorderInFullScreenDefault(bool border) override;
21
22 bool isTabletMode() const override;
23
24 bool isWinTabEnabled() const override;
25 bool setWinTabEnabled(bool enabled) override;
26
27 DarkModeHandling darkModeHandling() const override;
28 void setDarkModeHandling(DarkModeHandling handling) override;
29
30 void registerMime(QWindowsMimeConverter *mime) override;
31 void unregisterMime(QWindowsMimeConverter *mime) override;
32
33 int registerMimeType(const QString &mime) override;
34
35 HWND createMessageWindow(const QString &classNameTemplate,
36 const QString &windowName,
37 QFunctionPointer eventProc = nullptr) const override;
38
39 bool asyncExpose() const override;
40 void setAsyncExpose(bool value) override;
41
42 QVariant gpu() const override;
43 QVariant gpuList() const override;
44
45 void populateLightSystemPalette(QPalette &palette) const override;
46
47private:
48 WindowActivationBehavior m_windowActivationBehavior = DefaultActivateWindow;
49 TouchWindowTouchTypes m_touchWindowTouchTypes = NormalTouch;
50 DarkModeHandling m_darkModeHandling;
51};
52
54
55#endif // QWINDOWSAPPLICATION_H
QPlatformBackingStore * createPlatformBackingStore(QWindow *window) const override
Factory function for QPlatformBackingStore.
QWindowsGdiIntegration(const QStringList &paramList)
QPlatformNativeInterface * nativeInterface() const override
QPlatformPixmap * createPlatformPixmap(QPlatformPixmap::PixelType type) const override
Factory function for QPlatformPixmap.
\title Qt platform plugin for Windows
Definition main.cpp:58
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
QOpenGLContext * createOpenGLContext(HGLRC context, HWND window, QOpenGLContext *shareContext) const override
QWindowsIntegration(const QStringList &paramList)
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.
Raster or OpenGL Window.