Documentation for <wlr/types/wlr_cursor_shape_v1.h>
Table of contents
struct wlr_cursor_shape_manager_v1 ¶
struct wlr_cursor_shape_manager_v1 { struct wl_global *global; struct { struct wl_signal request_set_shape; // struct wlr_cursor_shape_manager_v1_request_set_shape_event struct wl_signal destroy; } events; void *data; struct { struct wl_listener display_destroy; } WLR_PRIVATE; };
Manager for the cursor-shape-v1 protocol.
Compositors should listen to the request_set_shape event and handle it in the same way as wlr_seat.events.request_set_cursor.
wlr_cursor_shape_manager_v1_create() ¶
struct wlr_cursor_shape_manager_v1 *wlr_cursor_shape_manager_v1_create(struct wl_display *display, uint32_t version);
enum wlr_cursor_shape_manager_v1_device_type ¶
enum wlr_cursor_shape_manager_v1_device_type { WLR_CURSOR_SHAPE_MANAGER_V1_DEVICE_TYPE_POINTER, WLR_CURSOR_SHAPE_MANAGER_V1_DEVICE_TYPE_TABLET_TOOL, };
struct wlr_cursor_shape_manager_v1_request_set_shape_event ¶
struct wlr_cursor_shape_manager_v1_request_set_shape_event { struct wlr_seat_client *seat_client; enum wlr_cursor_shape_manager_v1_device_type device_type; // NULL if device_type is not TABLET_TOOL struct wlr_tablet_v2_tablet_tool *tablet_tool; uint32_t serial; enum wp_cursor_shape_device_v1_shape shape; };
wlr_cursor_shape_v1_name() ¶
const char *wlr_cursor_shape_v1_name(enum wp_cursor_shape_device_v1_shape shape);
Get the name of a cursor shape.
The name can be used to load a cursor from an XCursor theme.