summaryrefslogtreecommitdiff
path: root/src/ui.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-02-11 13:55:27 +0100
committerAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-02-11 13:55:27 +0100
commit807d87681c5eca52fee692321ae0279324204cc6 (patch)
tree1f5c0a65d993710800d10989467eb6773c3f0ac9 /src/ui.h
parent230d643d908d28a72c30d59c15ab97105b39bf63 (diff)
scroll with mouse
Diffstat (limited to 'src/ui.h')
-rw-r--r--src/ui.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui.h b/src/ui.h
index 02655b4..bffbe69 100644
--- a/src/ui.h
+++ b/src/ui.h
@@ -74,9 +74,13 @@ typedef struct t_dropdown_state
typedef struct t_scroll_state
{
s32 height;
+ s32 width;
+ s32 x;
+ s32 y;
s32 scroll;
s32 scroll_start_offset_y;
bool in_scroll;
+ bool mouse_scrolling;
} scroll_state;
typedef struct t_ui_layout