Blender V5.0
GWL_WindowFrame Struct Reference

Public Attributes

int32_t size [2] = {0, 0}
bool is_maximised = false
bool is_fullscreen = false
bool is_active = false
int fractional_scale = 0
int fractional_scale_preferred = 0
int buffer_scale = 0
bool is_scale_init = false

Detailed Description

Definition at line 372 of file GHOST_WindowWayland.cc.

Member Data Documentation

◆ buffer_scale

◆ fractional_scale

◆ fractional_scale_preferred

int GWL_WindowFrame::fractional_scale_preferred = 0

Store the value of #wp_fractional_scale_v1_listener::preferred_scale before it's applied.

Definition at line 389 of file GHOST_WindowWayland.cc.

Referenced by wp_fractional_scale_handle_preferred_scale().

◆ is_active

bool GWL_WindowFrame::is_active = false

◆ is_fullscreen

bool GWL_WindowFrame::is_fullscreen = false

Definition at line 381 of file GHOST_WindowWayland.cc.

Referenced by gwl_window_state_get(), and xdg_toplevel_handle_configure().

◆ is_maximised

bool GWL_WindowFrame::is_maximised = false

Definition at line 380 of file GHOST_WindowWayland.cc.

Referenced by gwl_window_state_get(), and xdg_toplevel_handle_configure().

◆ is_scale_init

bool GWL_WindowFrame::is_scale_init = false

Scale has been set (for the first time).

Definition at line 394 of file GHOST_WindowWayland.cc.

◆ size

int32_t GWL_WindowFrame::size[2] = {0, 0}

The frame size (in pixels).

These must be converted to WAYLAND relative coordinates when the window is scaled by Hi-DPI/fractional scaling.

Definition at line 379 of file GHOST_WindowWayland.cc.

Referenced by gwl_window_frame_pending_size_set(), gwl_window_frame_update_from_pending_no_lock(), gwl_window_viewport_size_update(), GHOST_WindowWayland::setClientSize(), and xdg_toplevel_handle_configure().


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