diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2009-08-14 10:37:33 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2009-08-14 10:37:33 +0000 |
commit | 13afa0ff4c591e7800dc4c11a81d04c335418c05 (patch) | |
tree | 017f315584621f418a8bab5627aee8f8364d377b /render/box.h | |
parent | 3549846a9aec635bea82a919c5c1e38c7163731a (diff) | |
download | netsurf-13afa0ff4c591e7800dc4c11a81d04c335418c05.tar.gz netsurf-13afa0ff4c591e7800dc4c11a81d04c335418c05.tar.bz2 |
Merge Paul Blokus' selectscroll branch. Adds core select menu widget for forms and core scrollbar widget.
svn path=/trunk/netsurf/; revision=9289
Diffstat (limited to 'render/box.h')
-rw-r--r-- | render/box.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/render/box.h b/render/box.h index 701329108..39a6c2521 100644 --- a/render/box.h +++ b/render/box.h @@ -167,8 +167,8 @@ struct box { int padding[4]; /**< Padding: TOP, RIGHT, BOTTOM, LEFT. */ struct box_border border[4]; /**< Border: TOP, RIGHT, BOTTOM, LEFT. */ - int scroll_x; /**< Horizontal scroll of descendants. */ - int scroll_y; /**< Vertical scroll of descendants. */ + struct scroll *scroll_x; /**< Horizontal scroll. */ + struct scroll *scroll_y; /**< Vertical scroll. */ /** Width of box taking all line breaks (including margins etc). Must * be non-negative. */ @@ -314,15 +314,10 @@ bool box_visible(struct box *box); void box_dump(FILE *stream, struct box *box, unsigned int depth); bool box_extract_link(const char *rel, const char *base, char **result); +bool box_handle_scrollbars(struct box *box, int x, int y, bool bottom, + bool right); 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); bool xml_to_box(xmlNode *n, struct content *c); |