Blender V4.3
WMInitStruct Struct Reference

Public Attributes

blender::int2 size
 
blender::int2 start
 
GHOST_TWindowState windowstate = GHOST_WINDOW_STATE_DEFAULT
 
eWinOverrideFlag override_flag
 
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 112 of file wm_window.cc.

Member Data Documentation

◆ native_pixels

bool WMInitStruct::native_pixels = true

Definition at line 130 of file wm_window.cc.

Referenced by wm_ghost_init(), and WM_init_native_pixels().

◆ override_flag

◆ 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 123 of file wm_window.cc.

Referenced by WM_init_state_size_set(), wm_window_ghostwindow_ensure(), and wm_window_ghostwindows_ensure().

◆ start

blender::int2 WMInitStruct::start

◆ window_focus

bool WMInitStruct::window_focus = true

◆ windowstate


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