summaryrefslogtreecommitdiff
path: root/src/drivers/Wayland/Fl_Wayland_Screen_Driver.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-16 14:40:16 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-16 14:40:16 +0100
commit3ec91d4c6d81915e3b3e48d6342bafceb19f98db (patch)
tree172243ba15860fd95b28333d807098b49806d8a5 /src/drivers/Wayland/Fl_Wayland_Screen_Driver.H
parent8b094e8af3215bed1c3c3c662e4b93163dac6bbc (diff)
Create enum Fl_Wayland_Screen_Driver::cursor_shapes
Diffstat (limited to 'src/drivers/Wayland/Fl_Wayland_Screen_Driver.H')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Screen_Driver.H23
1 files changed, 4 insertions, 19 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.H b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.H
index cc33a4f60..9df903da5 100644
--- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.H
+++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.H
@@ -76,6 +76,9 @@ public:
bool done;
struct wl_list link;
};
+ enum cursor_shapes {arrow = 0, wait, insert, hand, help, cross, move,
+ north, south, west, east, north_south, west_east, south_west, south_east, north_east, north_west, nesw, nwse};
+ static const int cursor_count = nwse + 1; // nber of elements of 'enum cursor_shapes'
// static member variables
static FL_EXPORT struct wl_display *wl_display;
@@ -91,25 +94,7 @@ public:
static void do_set_cursor(struct Fl_Wayland_Screen_Driver::seat *,
struct wl_cursor *wl_cursor = NULL);
// member variables
- struct wl_cursor *xc_arrow;
- struct wl_cursor *xc_ns;
- struct wl_cursor *xc_wait;
- struct wl_cursor *xc_insert;
- struct wl_cursor *xc_hand;
- struct wl_cursor *xc_help;
- struct wl_cursor *xc_cross;
- struct wl_cursor *xc_move;
- struct wl_cursor *xc_north;
- struct wl_cursor *xc_south;
- struct wl_cursor *xc_west;
- struct wl_cursor *xc_east;
- struct wl_cursor *xc_we;
- struct wl_cursor *xc_nesw;
- struct wl_cursor *xc_nwse;
- struct wl_cursor *xc_sw;
- struct wl_cursor *xc_se;
- struct wl_cursor *xc_ne;
- struct wl_cursor *xc_nw;
+ struct wl_cursor *xc_cursor[cursor_count]; // one for each element of enum cursor_shapes
struct wl_registry *wl_registry;
struct wl_compositor *wl_compositor;
struct wl_subcompositor *wl_subcompositor;