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
QWindowCreationContext Class Reference

Active Context for creating windows. More...

#include <qwindowswindow.h>

Collaboration diagram for QWindowCreationContext:

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 QWindowwindow
const QScreenscreen
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

Detailed Description

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.

See also
WindowCreationData, QWindowsContext

Definition at line 52 of file qwindowswindow.h.

Constructor & Destructor Documentation

◆ QWindowCreationContext()

QWindowCreationContext::QWindowCreationContext ( const QWindow * w,
const QScreen * s,
const QRect & geometryIn,
const QRect & geometry,
const QMargins & customMargins,
DWORD style,
DWORD exStyle )
explicit

Definition at line 1513 of file qwindowswindow.cpp.

References QWindowsMenuBar::menuBarOf().

Here is the call graph for this function:

Member Function Documentation

◆ applyToMinMaxInfo()

void QWindowCreationContext::applyToMinMaxInfo ( MINMAXINFO * mmi) const

Definition at line 1559 of file qwindowswindow.cpp.

Member Data Documentation

◆ customMargins

QMargins QWindowCreationContext::customMargins

Definition at line 69 of file qwindowswindow.h.

◆ frameHeight

int QWindowCreationContext::frameHeight = CW_USEDEFAULT

Definition at line 73 of file qwindowswindow.h.

◆ frameWidth

int QWindowCreationContext::frameWidth = CW_USEDEFAULT

Definition at line 72 of file qwindowswindow.h.

◆ frameX

int QWindowCreationContext::frameX = CW_USEDEFAULT

Definition at line 70 of file qwindowswindow.h.

◆ frameY

int QWindowCreationContext::frameY = CW_USEDEFAULT

Definition at line 71 of file qwindowswindow.h.

◆ margins

QMargins QWindowCreationContext::margins

Definition at line 68 of file qwindowswindow.h.

◆ menuHeight

int QWindowCreationContext::menuHeight = 0

Definition at line 74 of file qwindowswindow.h.

◆ obtainedPos

QPoint QWindowCreationContext::obtainedPos

Definition at line 66 of file qwindowswindow.h.

◆ obtainedSize

QSize QWindowCreationContext::obtainedSize

Definition at line 67 of file qwindowswindow.h.

◆ requestedGeometry

QRect QWindowCreationContext::requestedGeometry

Definition at line 65 of file qwindowswindow.h.

◆ requestedGeometryIn

QRect QWindowCreationContext::requestedGeometryIn

Definition at line 64 of file qwindowswindow.h.

◆ screen

const QScreen* QWindowCreationContext::screen

Definition at line 63 of file qwindowswindow.h.

◆ window

const QWindow* QWindowCreationContext::window

Definition at line 60 of file qwindowswindow.h.


The documentation for this class was generated from the following files: