aboutsummaryrefslogtreecommitdiff
path: root/state.h
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2025-10-19 17:02:36 -0400
committerJack Jamison <jackqjamison@gmail.com>2025-10-19 17:02:36 -0400
commit25f0c213ed8d9d0912c0de8c2506d0820939aafd (patch)
tree6741b925a37426a930ca589f708a76fb71d143bb /state.h
parentcd9cc6e14bb26cb3754fbe0db21dbb39d442d962 (diff)
scrolling
Diffstat (limited to 'state.h')
-rw-r--r--state.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/state.h b/state.h
index 1eb9e22..baec931 100644
--- a/state.h
+++ b/state.h
@@ -48,6 +48,7 @@ typedef struct {
typedef struct {
item_t* item;
+ float offset;
} item_display_t;
typedef struct {
@@ -95,6 +96,7 @@ typedef struct {
uint32_t line_height;
uint32_t required_width;
+ float horizontal_spacing;
// arguments
int lines;
@@ -104,6 +106,7 @@ typedef struct {
// state
char* input_buffer;
+ float scroll;
int selected_filtered_item;
uint32_t width, height;
item_t* items;