Blender V4.3
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 434 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 463 of file GHOST_SystemWayland.cc.

Referenced by gwl_seat_cursor_anim_begin().

◆ buffer

wl_buffer* GWL_Cursor::buffer = nullptr

Definition at line 439 of file GHOST_SystemWayland.cc.

Referenced by gwl_seat_capability_pointer_enable().

◆ custom_data

void* GWL_Cursor::custom_data = nullptr

Definition at line 458 of file GHOST_SystemWayland.cc.

Referenced by gwl_registry_wl_seat_remove().

◆ custom_data_size

size_t GWL_Cursor::custom_data_size = 0

The size of custom_data in bytes.

Definition at line 460 of file GHOST_SystemWayland.cc.

Referenced by gwl_registry_wl_seat_remove().

◆ custom_scale

int GWL_Cursor::custom_scale = 1

Definition at line 476 of file GHOST_SystemWayland.cc.

◆ image

wl_cursor_image GWL_Cursor::image = {0}

Definition at line 440 of file GHOST_SystemWayland.cc.

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

Referenced by gwl_seat_cursor_buffer_show().

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

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

◆ surface_cursor

◆ theme

wl_cursor_theme* GWL_Cursor::theme = nullptr

Definition at line 441 of file GHOST_SystemWayland.cc.

Referenced by gwl_seat_capability_pointer_disable().

◆ theme_cursor

const wl_cursor* GWL_Cursor::theme_cursor = nullptr

Only set when the cursor is from the theme (it may be animated).

Definition at line 443 of file GHOST_SystemWayland.cc.

Referenced by gwl_seat_cursor_anim_begin(), and gwl_seat_cursor_anim_check().

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

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

Referenced by gwl_seat_capability_pointer_enable().

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

Referenced by gwl_seat_capability_pointer_enable().

◆ visible

bool GWL_Cursor::visible = false

Definition at line 448 of file GHOST_SystemWayland.cc.

Referenced by gwl_seat_capability_pointer_enable().

◆ [struct]


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