summaryrefslogtreecommitdiff
path: root/guifs.h
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2024-02-17 16:42:00 +0000
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2024-02-17 16:42:00 +0000
commitd9a15e56d42e45f021c01d527df67863100840a7 (patch)
tree7e01ec814a1eae74db53522a2de40f1f81f3f43f /guifs.h
parentc51962a648b3f38fc378ad0081b1d1aa037142d5 (diff)
Implement scroll bar (not clickable yet) and sam-scrollingHEADfront
Diffstat (limited to 'guifs.h')
-rw-r--r--guifs.h8
1 files changed, 7 insertions, 1 deletions
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 {