Blender V5.3
GWL_WindowFrame Struct Reference

Public Attributes

int32_t size [2] = {0, 0}
bool is_maximized = false
bool is_fullscreen = false
bool is_active = false
GHOST_TWindowTiledFlag tiled_edges = GHOST_kWindowTiledNone
int fractional_scale = 0
int fractional_scale_preferred = 0
int buffer_scale = 0
bool is_scale_init = false

Detailed Description

Definition at line 324 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 343 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

◆ is_maximized

bool GWL_WindowFrame::is_maximized = false

◆ is_scale_init

bool GWL_WindowFrame::is_scale_init = false

Scale has been set (for the first time).

Definition at line 348 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 331 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().

◆ tiled_edges

GHOST_TWindowTiledFlag GWL_WindowFrame::tiled_edges = GHOST_kWindowTiledNone

Which window edges are tiled. Requires xdg_shell version 2.

Definition at line 336 of file GHOST_WindowWayland.cc.

Referenced by gwl_window_frame_update_from_pending_no_lock(), and xdg_toplevel_handle_configure().


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