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

Window creation code. More...

Collaboration diagram for WindowCreationData:

Public Types

enum  Flags { ForceChild = 0x1 , ForceTopLevel = 0x2 , ForceChild = 0x1 , ForceTopLevel = 0x2 }
enum  Flags { ForceChild = 0x1 , ForceTopLevel = 0x2 , ForceChild = 0x1 , ForceTopLevel = 0x2 }
using WindowData = QWindowsWindowData
using WindowData = QWindowsWindowData

Public Member Functions

void fromWindow (const QWindow *w, const Qt::WindowFlags flags, unsigned creationFlags=0)
WindowData create (const QWindow *w, const WindowData &data, QString title) const
void applyWindowFlags (HWND hwnd) const
void initialize (const QWindow *w, HWND h, bool frameChange, qreal opacityLevel) const
void fromWindow (const QWindow *w, const Qt::WindowFlags flags, unsigned creationFlags=0)
WindowData create (const QWindow *w, const WindowData &data, QString title) const
void applyWindowFlags (HWND hwnd) const
void initialize (const QWindow *w, HWND h, bool frameChange, qreal opacityLevel) const

Public Attributes

Qt::WindowFlags flags
HWND parentHandle = nullptr
Qt::WindowType type = Qt::Widget
unsigned style = 0
unsigned exStyle = 0
bool topLevel = false
bool popup = false
bool dialog = false
bool tool = false
bool embedded = false
bool hasAlpha = false

Detailed Description

Window creation code.

This struct gathers all information required to create a window. Window creation is split in 3 steps:

\list

The reason for this split is to also enable changing the QWindowFlags by calling:

\list

Contains the window creation code formerly in qwidget_win.cpp.

See also
QWindowCreationContext

Definition at line 585 of file qwindowswindow.cpp.

Member Typedef Documentation

◆ WindowData [1/2]

◆ WindowData [2/2]

Member Enumeration Documentation

◆ Flags [1/2]

Enumerator
ForceChild 
ForceTopLevel 
ForceChild 
ForceTopLevel 

Definition at line 588 of file qwindowswindow.cpp.

◆ Flags [2/2]

Enumerator
ForceChild 
ForceTopLevel 
ForceChild 
ForceTopLevel 

Definition at line 588 of file qwindowswindow.cpp.

Member Function Documentation

◆ applyWindowFlags() [1/2]

void WindowCreationData::applyWindowFlags ( HWND hwnd) const
inline

Definition at line 975 of file qwindowswindow.cpp.

References exStyle.

◆ applyWindowFlags() [2/2]

void WindowCreationData::applyWindowFlags ( HWND hwnd) const
inline

◆ create() [1/2]

QWindowsWindowData WindowCreationData::create ( const QWindow * w,
const WindowData & data,
QString title ) const
inline

Definition at line 877 of file qwindowswindow.cpp.

References QWindowsWindowData::embedded, embedded, exStyle, QWindowsWindowData::hasFrame, QWindowsContext::instance(), style, and topLevel.

Here is the call graph for this function:

◆ create() [2/2]

WindowData WindowCreationData::create ( const QWindow * w,
const WindowData & data,
QString title ) const
inline

◆ fromWindow() [1/2]

void WindowCreationData::fromWindow ( const QWindow * w,
const Qt::WindowFlags flags,
unsigned creationFlags = 0 )

Definition at line 723 of file qwindowswindow.cpp.

References dialog, embedded, ForceChild, ForceTopLevel, popup, style, tool, and topLevel.

◆ fromWindow() [2/2]

void WindowCreationData::fromWindow ( const QWindow * w,
const Qt::WindowFlags flags,
unsigned creationFlags = 0 )

◆ initialize() [1/2]

void WindowCreationData::initialize ( const QWindow * w,
HWND h,
bool frameChange,
qreal opacityLevel ) const

Definition at line 994 of file qwindowswindow.cpp.

References topLevel, and windowIsAccelerated().

Here is the call graph for this function:

◆ initialize() [2/2]

void WindowCreationData::initialize ( const QWindow * w,
HWND h,
bool frameChange,
qreal opacityLevel ) const

Member Data Documentation

◆ dialog

bool WindowCreationData::dialog = false

Definition at line 602 of file qwindowswindow.cpp.

Referenced by fromWindow().

◆ embedded

bool WindowCreationData::embedded = false

Definition at line 604 of file qwindowswindow.cpp.

Referenced by create(), and fromWindow().

◆ exStyle

unsigned WindowCreationData::exStyle = 0

Definition at line 599 of file qwindowswindow.cpp.

Referenced by applyWindowFlags(), and create().

◆ flags

Qt::WindowFlags WindowCreationData::flags

Definition at line 595 of file qwindowswindow.cpp.

◆ hasAlpha

bool WindowCreationData::hasAlpha = false

Definition at line 605 of file qwindowswindow.cpp.

◆ parentHandle

HWND WindowCreationData::parentHandle = nullptr

Definition at line 596 of file qwindowswindow.cpp.

◆ popup

bool WindowCreationData::popup = false

Definition at line 601 of file qwindowswindow.cpp.

Referenced by fromWindow().

◆ style

unsigned WindowCreationData::style = 0

Definition at line 598 of file qwindowswindow.cpp.

Referenced by create(), and fromWindow().

◆ tool

bool WindowCreationData::tool = false

Definition at line 603 of file qwindowswindow.cpp.

Referenced by fromWindow().

◆ topLevel

bool WindowCreationData::topLevel = false

Definition at line 600 of file qwindowswindow.cpp.

Referenced by create(), fromWindow(), initialize(), and operator<<().

◆ type

Qt::WindowType WindowCreationData::type = Qt::Widget

Definition at line 597 of file qwindowswindow.cpp.


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