Blender V5.0
WMInitStruct Struct Reference

Public Attributes

blender::int2 size
blender::int2 start
GHOST_TWindowState windowstate = GHOST_WINDOW_STATE_DEFAULT
eWinOverrideFlag override_flag
bool window_frame = true
bool window_focus = true
bool native_pixels = true

Detailed Description

Override defaults or startup file when eWinOverrideFlag is set. These values are typically set by command line arguments.

Definition at line 118 of file wm_window.cc.

Member Data Documentation

◆ native_pixels

bool WMInitStruct::native_pixels = true

Definition at line 137 of file wm_window.cc.

◆ override_flag

eWinOverrideFlag WMInitStruct::override_flag

Definition at line 133 of file wm_window.cc.

◆ size

blender::int2 WMInitStruct::size

Window geometry:

  • Defaults to the main screen-size.
  • May be set by the --window-geometry argument, which also forces these values to be used by setting WIN_OVERRIDE_GEOM.
  • When #wmWindow::size_x is zero, these values are used as a fallback, needed so the BLENDER_STARTUP_FILE loads at the size of the users main-screen instead of the size stored in the factory startup. Otherwise the window geometry saved in the blend-file is used and these values are ignored.

Definition at line 129 of file wm_window.cc.

◆ start

blender::int2 WMInitStruct::start

Definition at line 130 of file wm_window.cc.

◆ window_focus

bool WMInitStruct::window_focus = true

Definition at line 136 of file wm_window.cc.

◆ window_frame

bool WMInitStruct::window_frame = true

Definition at line 135 of file wm_window.cc.

◆ windowstate

GHOST_TWindowState WMInitStruct::windowstate = GHOST_WINDOW_STATE_DEFAULT

Definition at line 132 of file wm_window.cc.


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