![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
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 1513 of file qwindowswindow.cpp.
References QWindowsMenuBar::menuBarOf().
void QWindowCreationContext::applyToMinMaxInfo | ( | MINMAXINFO * | mmi | ) | const |
Definition at line 1559 of file qwindowswindow.cpp.
QMargins QWindowCreationContext::customMargins |
Definition at line 69 of file qwindowswindow.h.
int QWindowCreationContext::frameHeight = CW_USEDEFAULT |
Definition at line 73 of file qwindowswindow.h.
int QWindowCreationContext::frameWidth = CW_USEDEFAULT |
Definition at line 72 of file qwindowswindow.h.
int QWindowCreationContext::frameX = CW_USEDEFAULT |
Definition at line 70 of file qwindowswindow.h.
int QWindowCreationContext::frameY = CW_USEDEFAULT |
Definition at line 71 of file qwindowswindow.h.
QMargins QWindowCreationContext::margins |
Definition at line 68 of file qwindowswindow.h.
int QWindowCreationContext::menuHeight = 0 |
Definition at line 74 of file qwindowswindow.h.
QPoint QWindowCreationContext::obtainedPos |
Definition at line 66 of file qwindowswindow.h.
QSize QWindowCreationContext::obtainedSize |
Definition at line 67 of file qwindowswindow.h.
QRect QWindowCreationContext::requestedGeometry |
Definition at line 65 of file qwindowswindow.h.
QRect QWindowCreationContext::requestedGeometryIn |
Definition at line 64 of file qwindowswindow.h.
const QScreen* QWindowCreationContext::screen |
Definition at line 63 of file qwindowswindow.h.
const QWindow* QWindowCreationContext::window |
Definition at line 60 of file qwindowswindow.h.