Blender V5.0
GWL_Cursor Struct Reference

Public Attributes

struct { 
   wl_surface *   surface_cursor = nullptr 
   wl_buffer *   buffer = nullptr 
   wl_cursor_image   image = {0} 
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 449 of file GHOST_SystemWayland.cc.

Member Data Documentation

◆ buffer

◆ 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 476 of file GHOST_SystemWayland.cc.

Referenced by update_cursor_scale().

◆ custom_data

◆ custom_data_size

size_t GWL_Cursor::custom_data_size = 0

The size of custom_data in bytes.

Definition at line 473 of file GHOST_SystemWayland.cc.

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

◆ image

◆ 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 470 of file GHOST_SystemWayland.cc.

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

◆ 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 468 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

◆ surface_cursor

◆ 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 483 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 487 of file GHOST_SystemWayland.cc.

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

◆ visible

◆ [struct]


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