diff options
Diffstat (limited to 'render/box.h')
-rw-r--r-- | render/box.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/render/box.h b/render/box.h index c50c7ef00..b401799fa 100644 --- a/render/box.h +++ b/render/box.h @@ -249,4 +249,14 @@ struct box *box_at_point(struct box *box, int x, int y, struct box *box_object_at_point(struct content *c, int x, int y); struct box *box_find_by_id(struct box *box, const char *id); +bool box_vscrollbar_present(const struct box *box); +bool box_hscrollbar_present(const struct box *box); +void box_scrollbar_dimensions(const struct box *box, + int padding_width, int padding_height, int w, + bool *vscroll, bool *hscroll, + int *well_height, + int *bar_top, int *bar_height, + int *well_width, + int *bar_left, int *bar_width); + #endif |