![]() |
Qt 6.x
The Qt SDK
|
Active Context for creating windows. More...
#include <qwindowswindow.h>
Public Member Functions | |
QWindowCreationContext (const QWindow *w, const QScreen *s, const QRect &geometryIn, const QRect &geometry, const QMargins &customMargins, DWORD style, DWORD exStyle) | |
void | applyToMinMaxInfo (MINMAXINFO *mmi) const |
Public Attributes | |
const QWindow * | window |
const QScreen * | screen |
QRect | requestedGeometryIn |
QRect | requestedGeometry |
QPoint | obtainedPos |
QSize | obtainedSize |
QMargins | margins |
QMargins | customMargins |
int | frameX = CW_USEDEFAULT |
int | frameY = CW_USEDEFAULT |
int | frameWidth = CW_USEDEFAULT |
int | frameHeight = CW_USEDEFAULT |
int | menuHeight = 0 |
Active Context for creating windows.
There is a phase in window creation (WindowCreationData::create()) in which events are sent before the system API CreateWindowEx() returns the handle. These cannot be handled by the platform window as the association of the unknown handle value to the window does not exist yet and as not to trigger recursive handle creation, etc.
In that phase, an instance of QWindowCreationContext is set on QWindowsContext.
QWindowCreationContext stores the information to answer the initial WM_GETMINMAXINFO and obtains the corrected size/position.
Definition at line 52 of file qwindowswindow.h.
|
explicit |
Definition at line 1399 of file qwindowswindow.cpp.
References QMargins::bottom(), customMargins, frameHeight, Qt::FramelessWindowHint, frameWidth, frameX, frameY, QRect::height(), QRect::isValid(), QMargins::left(), margins, QWindowsMenuBar::menuBarOf(), menuHeight, QWindowsGeometryHint::positionIncludesFrame(), qCDebug, qt_window_private(), QMargins::right(), QMargins::top(), QRect::width(), QRect::x(), and QRect::y().
void QWindowCreationContext::applyToMinMaxInfo | ( | MINMAXINFO * | mmi | ) | const |
Definition at line 1445 of file qwindowswindow.cpp.
References QWindowsGeometryHint::applyToMinMaxInfo(), customMargins, margins, screen, and window.
Referenced by QWindowsContext::windowsProc().
QMargins QWindowCreationContext::customMargins |
Definition at line 69 of file qwindowswindow.h.
Referenced by QWindowCreationContext(), applyToMinMaxInfo(), and QWindowsContext::windowsProc().
int QWindowCreationContext::frameHeight = CW_USEDEFAULT |
Definition at line 73 of file qwindowswindow.h.
Referenced by QWindowCreationContext().
int QWindowCreationContext::frameWidth = CW_USEDEFAULT |
Definition at line 72 of file qwindowswindow.h.
Referenced by QWindowCreationContext().
int QWindowCreationContext::frameX = CW_USEDEFAULT |
Definition at line 70 of file qwindowswindow.h.
Referenced by QWindowCreationContext().
int QWindowCreationContext::frameY = CW_USEDEFAULT |
Definition at line 71 of file qwindowswindow.h.
Referenced by QWindowCreationContext().
QMargins QWindowCreationContext::margins |
Definition at line 68 of file qwindowswindow.h.
Referenced by QWindowCreationContext(), applyToMinMaxInfo(), and QWindowsContext::windowsProc().
int QWindowCreationContext::menuHeight = 0 |
Definition at line 74 of file qwindowswindow.h.
Referenced by QWindowCreationContext().
QPoint QWindowCreationContext::obtainedPos |
Definition at line 66 of file qwindowswindow.h.
Referenced by QWindowsWindow::initialize(), and QWindowsContext::windowsProc().
QSize QWindowCreationContext::obtainedSize |
Definition at line 67 of file qwindowswindow.h.
Referenced by QWindowsWindow::initialize(), and QWindowsContext::windowsProc().
QRect QWindowCreationContext::requestedGeometry |
Definition at line 65 of file qwindowswindow.h.
QRect QWindowCreationContext::requestedGeometryIn |
Definition at line 64 of file qwindowswindow.h.
Referenced by QWindowsWindow::initialize().
const QScreen* QWindowCreationContext::screen |
Definition at line 63 of file qwindowswindow.h.
Referenced by applyToMinMaxInfo().
const QWindow* QWindowCreationContext::window |
Definition at line 60 of file qwindowswindow.h.
Referenced by applyToMinMaxInfo(), and QWindowsContext::windowsProc().