mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
refactor: track current xcursor using an enum, instead of a char pointer
This commit is contained in:
parent
72bc0acfbd
commit
ee794a121e
10 changed files with 93 additions and 62 deletions
21
cursor-shape.h
Normal file
21
cursor-shape.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#pragma once
|
||||
|
||||
enum cursor_shape {
|
||||
CURSOR_SHAPE_NONE,
|
||||
CURSOR_SHAPE_CUSTOM,
|
||||
|
||||
CURSOR_SHAPE_HIDDEN,
|
||||
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,
|
||||
};
|
||||
|
||||
const char *cursor_shape_to_string(enum cursor_shape shape);
|
||||
Loading…
Add table
Add a link
Reference in a new issue