|
Blender V5.0
|
#include <GHOST_Types.h>
Public Attributes | |
| uint8_t *(* | generate_fn )(const struct GHOST_CursorGenerator *cursor_generator, int cursor_size, int cursor_size_max, uint8_t *(*alloc_fn)(size_t size), int r_bitmap_size[2], int r_hot_spot[2], bool *r_can_invert_color) |
| void(* | free_fn )(struct GHOST_CursorGenerator *cursor_generator) |
| GHOST_TUserDataPtr | user_data |
Pass this as an argument to GHOST so each ghost back-end can generate cursors on demand.
Definition at line 73 of file GHOST_Types.h.
| void(* GHOST_CursorGenerator::free_fn) (struct GHOST_CursorGenerator *cursor_generator) |
Called once GHOST has finished with this object, Typically this would free user_data.
Definition at line 103 of file GHOST_Types.h.
Referenced by gwl_window_cursor_custom_free(), GHOST_Window::setWindowCustomCursorGenerator(), window_set_custom_cursor_generator(), and wm_cursor_text_generator().
| uint8_t *(* GHOST_CursorGenerator::generate_fn) (const struct GHOST_CursorGenerator *cursor_generator, int cursor_size, int cursor_size_max, uint8_t *(*alloc_fn)(size_t size), int r_bitmap_size[2], int r_hot_spot[2], bool *r_can_invert_color) |
The main cursor generation callback.
| cursor_generator | Pass in to allow accessing the user argument. |
| cursor_size | The cursor size to generate. |
| cursor_size_max | The maximum dimension (width or height). |
| r_bitmap_size | The bitmap width & height in pixels. The generator must guarantee the resulting size (dimensions written to r_bitmap_size) never exceeds cursor_size_max. |
| r_hot_spot | The cursor hot-spot. |
| r_can_invert_color | When true, the call it can be inverted too much dark themes. |
Definition at line 92 of file GHOST_Types.h.
Referenced by ghost_wl_buffer_from_cursor_generator(), window_set_custom_cursor_generator(), and wm_cursor_text_generator().
| GHOST_TUserDataPtr GHOST_CursorGenerator::user_data |
Implementation specific data used for rasterization (could contain SVG data for example).
Definition at line 108 of file GHOST_Types.h.
Referenced by window_set_custom_cursor_generator(), and wm_cursor_text_generator().