![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <QtCore/qt_windows.h>#include <QtGui/qstylehints.h>#include "qwindowswindow.h"#include "qwindowscontext.h"#include "qwindowstheme.h"#include "qwindowsscreen.h"#include "qwindowsintegration.h"#include "qwindowsmenu.h"#include "qwindowsnativeinterface.h"#include "qwindowsopenglcontext.h"#include "qwindowsopengltester.h"#include "qwindowswindowclassdescription.h"#include "qwindowswindowclassregistry.h"#include <QtGui/qguiapplication.h>#include <QtGui/qscreen.h>#include <QtGui/qwindow.h>#include <QtGui/qregion.h>#include <QtGui/qopenglcontext.h>#include <QtGui/qpainterpath.h>#include <QtGui/private/qwindowsthemecache_p.h>#include <private/qwindow_p.h>#include <private/qguiapplication_p.h>#include <private/qhighdpiscaling_p.h>#include <qpa/qwindowsysteminterface.h>#include <private/qsystemlibrary_p.h>#include <private/qwinregistry_p.h>#include <QtCore/qdebug.h>#include <QtCore/qlibraryinfo.h>#include <QtCore/qoperatingsystemversion.h>#include <dwmapi.h>#include <shellscalingapi.h>#include <private/qdxgivsyncservice_p.h>Go to the source code of this file.
Classes | |
| class | WindowCreationData |
| Window creation code. More... | |
Macros | |
| #define | GWL_HWNDPARENT (-8) |
Typedefs | |
| using | QWindowCreationContextPtr = QSharedPointer<QWindowCreationContext> |
Enumerations | |
| enum | { defaultWindowWidth = 160 , defaultWindowHeight = 160 , defaultWindowWidth = 160 , defaultWindowHeight = 160 } |
| enum | : WORD { DwmwaUseImmersiveDarkMode = 20 , DwmwaUseImmersiveDarkModeBefore20h1 = 19 , DwmwaUseImmersiveDarkMode = 20 , DwmwaUseImmersiveDarkModeBefore20h1 = 19 } |
| enum | { defaultWindowWidth = 160 , defaultWindowHeight = 160 , defaultWindowWidth = 160 , defaultWindowHeight = 160 } |
| enum | : WORD { DwmwaUseImmersiveDarkMode = 20 , DwmwaUseImmersiveDarkModeBefore20h1 = 19 , DwmwaUseImmersiveDarkMode = 20 , DwmwaUseImmersiveDarkModeBefore20h1 = 19 } |
Functions | |
| Q_GUI_EXPORT HICON | qt_pixmapToWinHICON (const QPixmap &) |
| static QByteArray | debugWinStyle (DWORD style) |
| static QByteArray | debugWinExStyle (DWORD exStyle) |
| static QByteArray | debugWinSwpPos (UINT flags) |
| static QByteArray | debugWindowPlacementFlags (const UINT flags) |
| static QByteArray | debugShowWindowCmd (const UINT cmd) |
| static QSize | qSizeOfRect (const RECT &rect) |
| static QRect | qrectFromRECT (const RECT &rect) |
| static RECT | RECTfromQRect (const QRect &rect) |
| QDebug | operator<< (QDebug d, const RECT &r) |
| QDebug | operator<< (QDebug d, const POINT &p) |
| QDebug | operator<< (QDebug d, const WINDOWPOS &wp) |
| QDebug | operator<< (QDebug d, const NCCALCSIZE_PARAMS &p) |
| QDebug | operator<< (QDebug d, const MINMAXINFO &i) |
| QDebug | operator<< (QDebug d, const WINDOWPLACEMENT &wp) |
| QDebug | operator<< (QDebug d, const GUID &guid) |
| static void | formatBriefRectangle (QDebug &d, const QRect &r) |
| static void | formatBriefMargins (QDebug &d, const QMargins &m) |
| static QPoint | windowPlacementOffset (HWND hwnd, const QPoint &point) |
| static QRect | frameGeometry (HWND hwnd, bool topLevel) |
| static QWindow::Visibility | windowVisibility_sys (HWND hwnd) |
| static bool | windowIsAccelerated (const QWindow *w) |
| static bool | applyBlurBehindWindow (HWND hwnd) |
| static bool | shouldShowMaximizeButton (const QWindow *w, Qt::WindowFlags flags) |
| static void | setWindowOpacity (HWND hwnd, Qt::WindowFlags flags, bool hasAlpha, bool accelerated, qreal level) |
| static int | getResizeBorderThickness (const UINT dpi) |
| static QMargins | invisibleMargins (QPoint screenPoint) |
| Calculates the dimensions of the invisible borders within the window frames which only exist on Windows 10 and onwards. | |
| static QMargins | invisibleMargins (const HWND hwnd) |
| QDebug | operator<< (QDebug debug, const WindowCreationData &d) |
| static void | fixTopLevelWindowFlags (Qt::WindowFlags &flags) |
| static QScreen * | screenForDeviceName (const QWindow *w, const QString &name) |
| static QPoint | calcPosition (const QWindow *w, const QWindowCreationContextPtr &context, const QMargins &invMargins) |
| static bool | shouldApplyDarkFrame (const QWindow *w) |
| static int | getTitleBarHeight_sys (const UINT dpi) |
| static QSize | toNativeSizeConstrained (QSize dip, const QScreen *s) |
| static bool | shouldOmitFrameAdjustment (const Qt::WindowFlags flags, DWORD style) |
| static bool | shouldOmitFrameAdjustment (const Qt::WindowFlags flags, HWND hwnd) |
| static bool | testShowWithoutActivating (const QWindow *window) |
| static void | setMinimizedGeometry (HWND hwnd, const QRect &r) |
| static void | setRestoreMaximizedFlag (HWND hwnd, bool set=true) |
| static QRect | normalFrameGeometry (HWND hwnd) |
| static QString | msgUnableToSetGeometry (const QWindowsWindow *platformWindow, const QRect &requestedRect, const QRect &obtainedRect, const QMargins &fullMargins, const QMargins &customMargins) |
| static bool | equalDpi (const QDpi &d1, const QDpi &d2) |
| static bool | isSoftwareGl () |
| static bool | isResize (const WINDOWPOS *windowPos) |
| static HRGN | createRectRegion (const QRect &r) |
| static void | addRectToWinRegion (const QRect &rect, HRGN *winRegion) |
| static HRGN | qRegionToWinRegion (const QRegion ®ion) |
| static DWORD | edgesToWinOrientation (Qt::Edges edges) |
| static CursorHandlePtr | defaultCursor (const QWindow *w) |
| static bool | applyNewCursor (const QWindow *w) |
| static HICON | createHIcon (const QIcon &icon, int xSize, int ySize) |
| #define GWL_HWNDPARENT (-8) |
Definition at line 60 of file qwindowswindow.cpp.
| typedef QSharedPointer< QWindowCreationContext > QWindowCreationContextPtr = QSharedPointer<QWindowCreationContext> |
Definition at line 67 of file qwindowswindow.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| defaultWindowWidth | |
| defaultWindowHeight | |
| defaultWindowWidth | |
| defaultWindowHeight | |
Definition at line 69 of file qwindowswindow.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| defaultWindowWidth | |
| defaultWindowHeight | |
| defaultWindowWidth | |
| defaultWindowHeight | |
Definition at line 69 of file qwindowswindow.cpp.
| anonymous enum : WORD |
| Enumerator | |
|---|---|
| DwmwaUseImmersiveDarkMode | |
| DwmwaUseImmersiveDarkModeBefore20h1 | |
| DwmwaUseImmersiveDarkMode | |
| DwmwaUseImmersiveDarkModeBefore20h1 | |
Definition at line 3832 of file qwindowswindow.cpp.
| anonymous enum : WORD |
| Enumerator | |
|---|---|
| DwmwaUseImmersiveDarkMode | |
| DwmwaUseImmersiveDarkModeBefore20h1 | |
| DwmwaUseImmersiveDarkMode | |
| DwmwaUseImmersiveDarkModeBefore20h1 | |
Definition at line 3832 of file qwindowswindow.cpp.
Definition at line 3095 of file qwindowswindow.cpp.
|
static |
Definition at line 458 of file qwindowswindow.cpp.
|
inlinestatic |
Definition at line 3677 of file qwindowswindow.cpp.
References QWindowsContext::instance().
|
static |
Definition at line 669 of file qwindowswindow.cpp.
|
static |
Definition at line 3798 of file qwindowswindow.cpp.
|
inlinestatic |
Definition at line 3090 of file qwindowswindow.cpp.
|
inlinestaticnodiscard |
Definition at line 238 of file qwindowswindow.cpp.
|
inlinestaticnodiscard |
Definition at line 225 of file qwindowswindow.cpp.
|
static |
Definition at line 131 of file qwindowswindow.cpp.
|
static |
Definition at line 76 of file qwindowswindow.cpp.
|
static |
Definition at line 188 of file qwindowswindow.cpp.
|
inlinestatic |
Definition at line 3665 of file qwindowswindow.cpp.
|
inlinestatic |
Definition at line 3255 of file qwindowswindow.cpp.
Definition at line 2366 of file qwindowswindow.cpp.
|
inlinestatic |
Definition at line 631 of file qwindowswindow.cpp.
Definition at line 376 of file qwindowswindow.cpp.
Definition at line 371 of file qwindowswindow.cpp.
|
inlinestatic |
Definition at line 397 of file qwindowswindow.cpp.
|
inlinestaticnodiscard |
Definition at line 527 of file qwindowswindow.cpp.
|
inlinestatic |
Definition at line 874 of file qwindowswindow.cpp.
|
inlinestaticnodiscard |
Definition at line 555 of file qwindowswindow.cpp.
Calculates the dimensions of the invisible borders within the window frames which only exist on Windows 10 and onwards.
Definition at line 541 of file qwindowswindow.cpp.
|
static |
Definition at line 2940 of file qwindowswindow.cpp.
|
inlinestatic |
Definition at line 2504 of file qwindowswindow.cpp.
Referenced by QWindowsWindow::handleWmPaint().
|
static |
Definition at line 2220 of file qwindowswindow.cpp.
|
static |
Definition at line 2187 of file qwindowswindow.cpp.
Definition at line 353 of file qwindowswindow.cpp.
Definition at line 330 of file qwindowswindow.cpp.
Definition at line 321 of file qwindowswindow.cpp.
Definition at line 302 of file qwindowswindow.cpp.
Definition at line 292 of file qwindowswindow.cpp.
Definition at line 341 of file qwindowswindow.cpp.
Definition at line 310 of file qwindowswindow.cpp.
| QDebug operator<< | ( | QDebug | debug, |
| const WindowCreationData & | d ) |
Definition at line 613 of file qwindowswindow.cpp.
References WindowCreationData::topLevel.
|
inlinestatic |
Definition at line 278 of file qwindowswindow.cpp.
|
static |
Definition at line 3107 of file qwindowswindow.cpp.
|
inlinestatic |
Definition at line 273 of file qwindowswindow.cpp.
| Q_GUI_EXPORT HICON qt_pixmapToWinHICON | ( | const QPixmap & | p | ) |
Definition at line 539 of file qpixmap_win.cpp.
|
inlinestatic |
Definition at line 283 of file qwindowswindow.cpp.
Definition at line 651 of file qwindowswindow.cpp.
Definition at line 1952 of file qwindowswindow.cpp.
|
static |
Definition at line 1963 of file qwindowswindow.cpp.
|
static |
Definition at line 511 of file qwindowswindow.cpp.
|
inlinestatic |
Definition at line 857 of file qwindowswindow.cpp.
References QWindowsIntegration::instance().
|
static |
Definition at line 1065 of file qwindowswindow.cpp.
|
static |
Definition at line 1072 of file qwindowswindow.cpp.
|
static |
Definition at line 475 of file qwindowswindow.cpp.
|
inlinestatic |
Definition at line 1945 of file qwindowswindow.cpp.
Definition at line 1049 of file qwindowswindow.cpp.
|
inlinestatic |
Definition at line 446 of file qwindowswindow.cpp.
Referenced by QWindowsWindow::handleCompositionSettingsChanged(), and WindowCreationData::initialize().
Definition at line 383 of file qwindowswindow.cpp.
References QWindowsContext::instance(), QWindowsScreenManager::screenAtDp(), and QWindowsContext::screenManager().
|
static |
Definition at line 425 of file qwindowswindow.cpp.