File: cursor-shape.h

package info (click to toggle)
foot 1.26.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,692 kB
  • sloc: ansic: 41,627; python: 499; sh: 181; makefile: 18
file content (29 lines) | stat: -rw-r--r-- 754 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once

#include <cursor-shape-v1.h>

enum cursor_shape {
    CURSOR_SHAPE_NONE,
    CURSOR_SHAPE_CUSTOM,
    CURSOR_SHAPE_HIDDEN,

    CURSOR_SHAPE_LEFT_PTR,
    CURSOR_SHAPE_TEXT,
    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,

    CURSOR_SHAPE_COUNT,
};

const char *const *cursor_shape_to_string(enum cursor_shape shape);

enum wp_cursor_shape_device_v1_shape cursor_shape_to_server_shape(
    enum cursor_shape shape);
enum wp_cursor_shape_device_v1_shape cursor_string_to_server_shape(
    const char *xcursor, int bound_version);