From d9a15e56d42e45f021c01d527df67863100840a7 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Sat, 17 Feb 2024 16:42:00 +0000 Subject: Implement scroll bar (not clickable yet) and sam-scrolling --- guifs.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'guifs.h') diff --git a/guifs.h b/guifs.h index d66c58d..98f2854 100644 --- a/guifs.h +++ b/guifs.h @@ -8,6 +8,7 @@ enum { Ptext, Ptextcolour, Pmenus, + Pscroll, Pmax, }; @@ -38,6 +39,10 @@ enum { Xmax, }; +enum { + ScrollbarWidth = 12, +}; + typedef struct Colour Colour; typedef struct Spacing Spacing; typedef struct MenuSpec MenuSpec; @@ -70,6 +75,7 @@ union PropVal { Spacing *spacing; MenuSpec *menus; int orientation; + int scroll; Rune *text; }; @@ -77,7 +83,7 @@ struct PropSpec { char *name; PropVal (*def)(int, int); char *(*print)(PropVal); - char *(*parse)(char *, PropVal *); + char *(*parse)(char *, int, PropVal *); }; struct Prop { -- cgit v1.2.3