|
Blender V4.5
|
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_AnimHandle * | anim_handle = nullptr |
| std::string | theme_name |
| int | theme_size = 0 |
| int | custom_scale = 1 |
Definition at line 448 of file GHOST_SystemWayland.cc.
| 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().
| wl_buffer* GWL_Cursor::buffer = nullptr |
Definition at line 453 of file GHOST_SystemWayland.cc.
Referenced by cursor_buffer_handle_release(), GHOST_SystemWayland::cursor_shape_custom_set(), GHOST_SystemWayland::cursor_shape_set(), gwl_seat_capability_pointer_enable(), and gwl_seat_cursor_buffer_set_current().
| void* GWL_Cursor::custom_data = nullptr |
Definition at line 472 of file GHOST_SystemWayland.cc.
Referenced by GHOST_SystemWayland::cursor_bitmap_get(), GHOST_SystemWayland::cursor_shape_custom_set(), and gwl_registry_wl_seat_remove().
| 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().
| int GWL_Cursor::custom_scale = 1 |
Definition at line 490 of file GHOST_SystemWayland.cc.
Referenced by GHOST_SystemWayland::cursor_shape_custom_set(), gwl_seat_cursor_buffer_set(), and gwl_seat_cursor_buffer_show().
| wl_cursor_image GWL_Cursor::image = {0} |
Definition at line 454 of file GHOST_SystemWayland.cc.
Referenced by GHOST_SystemWayland::cursor_bitmap_get(), GHOST_SystemWayland::cursor_shape_custom_set(), GHOST_SystemWayland::cursor_shape_set(), gwl_seat_cursor_buffer_set_current(), and gwl_seat_cursor_buffer_show().
| bool GWL_Cursor::is_custom = false |
When true, a custom image is used to display the cursor (stored in wl_image).
Definition at line 471 of file GHOST_SystemWayland.cc.
Referenced by GHOST_SystemWayland::cursor_bitmap_get(), GHOST_SystemWayland::cursor_shape_custom_set(), GHOST_SystemWayland::cursor_shape_set(), gwl_seat_cursor_buffer_set(), gwl_seat_cursor_buffer_show(), and update_cursor_scale().
| 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().
| wl_surface* GWL_Cursor::surface_cursor = nullptr |
Definition at line 452 of file GHOST_SystemWayland.cc.
Referenced by gwl_seat_capability_pointer_disable(), gwl_seat_capability_pointer_enable(), gwl_seat_cursor_buffer_set(), gwl_seat_cursor_buffer_show(), and GHOST_SystemWayland::output_scale_update().
| wl_cursor_theme* GWL_Cursor::theme = nullptr |
Definition at line 455 of file GHOST_SystemWayland.cc.
Referenced by gwl_seat_capability_pointer_disable(), gwl_seat_cursor_find_from_shape(), and update_cursor_scale().
| const wl_cursor* GWL_Cursor::theme_cursor = nullptr |
Only set when the cursor is from the theme (it may be animated).
Definition at line 457 of file GHOST_SystemWayland.cc.
Referenced by GHOST_SystemWayland::cursor_shape_custom_set(), GHOST_SystemWayland::cursor_shape_set(), gwl_seat_cursor_anim_begin(), gwl_seat_cursor_anim_check(), and update_cursor_scale().
| 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().
| 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().
| 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().
| bool GWL_Cursor::visible = false |
Definition at line 462 of file GHOST_SystemWayland.cc.
Referenced by GHOST_SystemWayland::cursor_shape_custom_set(), GHOST_SystemWayland::cursor_shape_set(), gwl_seat_capability_pointer_enable(), gwl_seat_cursor_buffer_set(), and gwl_seat_cursor_visible_set().
| struct { ... } GWL_Cursor::wl |
Wayland core types.
Referenced by GHOST_SystemWayland::cursor_bitmap_get(), cursor_buffer_handle_release(), GHOST_SystemWayland::cursor_shape_custom_set(), GHOST_SystemWayland::cursor_shape_set(), gwl_seat_capability_pointer_disable(), gwl_seat_capability_pointer_enable(), gwl_seat_cursor_anim_begin(), gwl_seat_cursor_anim_check(), gwl_seat_cursor_buffer_set(), gwl_seat_cursor_buffer_set_current(), gwl_seat_cursor_buffer_show(), gwl_seat_cursor_find_from_shape(), GHOST_SystemWayland::output_scale_update(), and update_cursor_scale().