Blender V5.3
GWL_Cursor Struct Reference

Classes

struct  [struct].wl

Public Attributes

struct  wl
GWL_CursorShape shape
bool visible = false
bool is_hardware = true
bool is_custom = false
void * custom_data = nullptr
size_t custom_data_size = 0
int custom_cursor_scale = 0
int theme_size = 0
bool use_dark_theme = false

Detailed Description

Definition at line 485 of file GHOST_SystemWayland.cc.

Member Data Documentation

◆ custom_cursor_scale

int GWL_Cursor::custom_cursor_scale = 0

The current displayed size, use to check if the cursor need to be re-generated.

Definition at line 512 of file GHOST_SystemWayland.cc.

Referenced by update_cursor_scale().

◆ custom_data

void* GWL_Cursor::custom_data = nullptr

◆ custom_data_size

size_t GWL_Cursor::custom_data_size = 0

The size of custom_data in bytes.

Definition at line 509 of file GHOST_SystemWayland.cc.

Referenced by GHOST_SystemWayland::cursor_shape_custom_set(), and gwl_registry_wl_seat_remove().

◆ is_custom

bool GWL_Cursor::is_custom = false

When true, a custom image is used to display the cursor (stored in wl_image).

Definition at line 506 of file GHOST_SystemWayland.cc.

Referenced by GHOST_SystemWayland::cursor_bitmap_get(), GHOST_SystemWayland::cursor_shape_custom_set(), cursor_shape_refresh_for_pointer(), and GHOST_SystemWayland::cursor_shape_set().

◆ is_hardware

bool GWL_Cursor::is_hardware = true

When false, hide the hardware cursor, while the cursor is still considered to be visible, since the grab-mode determines the state of the software cursor, this may change - removing the need for a software cursor and in this case it's important the hardware cursor is used.

Definition at line 504 of file GHOST_SystemWayland.cc.

Referenced by GHOST_SystemWayland::cursor_shape_set(), GHOST_SystemWayland::cursor_visibility_set(), gwl_seat_cursor_buffer_set(), and gwl_seat_cursor_visible_set().

◆ shape

◆ theme_size

int GWL_Cursor::theme_size = 0

The size of the cursor in logical pixels. This must be scaled by the maximum output scale when calculating the physical pixels. See #update_cursor_scale.

Definition at line 519 of file GHOST_SystemWayland.cc.

Referenced by GHOST_SystemWayland::cursor_shape_custom_set(), GHOST_SystemWayland::getCursorPreferredLogicalSize(), and gwl_seat_capability_pointer_enable().

◆ use_dark_theme

bool GWL_Cursor::use_dark_theme = false

Prefer dark theme cursors where possible.

Definition at line 523 of file GHOST_SystemWayland.cc.

Referenced by GHOST_SystemWayland::cursor_shape_custom_set(), and gwl_seat_capability_pointer_enable().

◆ visible

◆ wl


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