Blender V4.5
GWL_Cursor Struct Reference

Public Attributes

struct { 
   wl_surface *   surface_cursor = nullptr 
   wl_buffer *   buffer = nullptr 
   wl_cursor_image   image = {0} 
   wl_cursor_theme *   theme = nullptr 
   const wl_cursor *   theme_cursor = nullptr 
   const char *   theme_cursor_name = nullptr 
wl
bool visible = false
bool is_hardware = true
bool is_custom = false
void * custom_data = nullptr
size_t custom_data_size = 0
GWL_Cursor_AnimHandleanim_handle = nullptr
std::string theme_name
int theme_size = 0
int custom_scale = 1

Detailed Description

Definition at line 448 of file GHOST_SystemWayland.cc.

Member Data Documentation

◆ anim_handle

GWL_Cursor_AnimHandle* GWL_Cursor::anim_handle = nullptr

Use for animated cursors.

Definition at line 477 of file GHOST_SystemWayland.cc.

Referenced by gwl_seat_cursor_anim_begin(), and gwl_seat_cursor_anim_end().

◆ buffer

◆ custom_data

◆ custom_data_size

size_t GWL_Cursor::custom_data_size = 0

The size of custom_data in bytes.

Definition at line 474 of file GHOST_SystemWayland.cc.

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

◆ custom_scale

int GWL_Cursor::custom_scale = 1

◆ image

◆ is_custom

bool GWL_Cursor::is_custom = false

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

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

◆ surface_cursor

◆ theme

wl_cursor_theme* GWL_Cursor::theme = nullptr

◆ theme_cursor

const wl_cursor* GWL_Cursor::theme_cursor = nullptr

◆ theme_cursor_name

const char* GWL_Cursor::theme_cursor_name = nullptr

Needed so changing the theme scale can reload 'theme_cursor' at a new scale.

Definition at line 459 of file GHOST_SystemWayland.cc.

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

◆ theme_name

std::string GWL_Cursor::theme_name

The name of the theme (set by an environment variable). When disabled, leave as an empty string and pass in nullptr to use the default theme.

Definition at line 483 of file GHOST_SystemWayland.cc.

Referenced by gwl_seat_capability_pointer_enable(), gwl_seat_cursor_find_from_shape(), and update_cursor_scale().

◆ theme_size

int GWL_Cursor::theme_size = 0

The size of the cursor (when looking up a cursor theme). This must be scaled by the maximum output scale when passing to wl_cursor_theme_load. See update_cursor_scale.

Definition at line 489 of file GHOST_SystemWayland.cc.

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

◆ visible

◆ [struct]


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