Blender V5.3
blender::wmInitStruct Struct Reference

Public Attributes

int2 size
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 139 of file wm_window.cc.

Member Data Documentation

◆ native_pixels

bool blender::wmInitStruct::native_pixels = true

Definition at line 158 of file wm_window.cc.

Referenced by blender::wm_ghost_init(), and blender::WM_init_native_pixels().

◆ override_flag

◆ size

int2 blender::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 150 of file wm_window.cc.

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

◆ start

◆ window_focus

bool blender::wmInitStruct::window_focus = true

◆ window_frame

bool blender::wmInitStruct::window_frame = true

◆ windowstate


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