2023-06-27 16:57:33 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
2023-06-27 17:25:57 +02:00
|
|
|
#include <cursor-shape-v1.h>
|
|
|
|
|
|
2023-06-27 16:57:33 +02:00
|
|
|
enum cursor_shape {
|
|
|
|
|
CURSOR_SHAPE_NONE,
|
|
|
|
|
CURSOR_SHAPE_CUSTOM,
|
|
|
|
|
CURSOR_SHAPE_HIDDEN,
|
2023-06-27 17:25:57 +02:00
|
|
|
|
2023-06-27 16:57:33 +02:00
|
|
|
CURSOR_SHAPE_LEFT_PTR,
|
|
|
|
|
CURSOR_SHAPE_TEXT,
|
|
|
|
|
CURSOR_SHAPE_TEXT_FALLBACK,
|
|
|
|
|
CURSOR_SHAPE_TOP_LEFT_CORNER,
|
|
|
|
|
CURSOR_SHAPE_TOP_RIGHT_CORNER,
|
|
|
|
|
CURSOR_SHAPE_BOTTOM_LEFT_CORNER,
|
|
|
|
|
CURSOR_SHAPE_BOTTOM_RIGHT_CORNER,
|
|
|
|
|
CURSOR_SHAPE_LEFT_SIDE,
|
|
|
|
|
CURSOR_SHAPE_RIGHT_SIDE,
|
|
|
|
|
CURSOR_SHAPE_TOP_SIDE,
|
|
|
|
|
CURSOR_SHAPE_BOTTOM_SIDE,
|
2023-06-27 17:25:57 +02:00
|
|
|
|
|
|
|
|
CURSOR_SHAPE_COUNT,
|
2023-06-27 16:57:33 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const char *cursor_shape_to_string(enum cursor_shape shape);
|
2023-06-27 17:25:57 +02:00
|
|
|
|
|
|
|
|
enum wp_cursor_shape_device_v1_shape cursor_shape_to_server_shape(
|
|
|
|
|
enum cursor_shape shape);
|
2023-06-28 13:25:08 +02:00
|
|
|
enum wp_cursor_shape_device_v1_shape cursor_string_to_server_shape(
|
|
|
|
|
const char *xcursor);
|