24#ifndef NETSURF_HTML_BOX_INSPECT_H
25#define NETSURF_HTML_BOX_INSPECT_H
70struct box *
box_at_point(
const css_unit_ctx *unit_len_ctx,
struct box *
box,
const int x,
const int y,
int *box_x,
int *box_y);
static unsigned box_count_children(const struct box *b)
bool box_vscrollbar_present(const struct box *box)
Determine if a box has a vertical scrollbar.
struct box * box_at_point(const css_unit_ctx *unit_len_ctx, struct box *box, const int x, const int y, int *box_x, int *box_y)
Find the boxes at a point.
bool box_hscrollbar_present(const struct box *box)
Determine if a box has a horizontal scrollbar.
void box_coords(struct box *box, int *x, int *y)
Find the absolute coordinates of a box.
void box_bounds(struct box *box, struct rect *r)
Find the bounds of a box.
bool box_visible(struct box *box)
Determine if a box is visible when the tree is rendered.
struct box * box_find_by_id(struct box *box, lwc_string *id)
Find a box based upon its id attribute.
static bool box_is_first_child(struct box *b)
Check if layout box is a first child.
void box_dump(FILE *stream, struct box *box, unsigned int depth, bool style)
Print a box tree to a file.
struct box * box_pick_text_box(struct html_content *html, int x, int y, int dir, int *dx, int *dy)
Peform pick text on browser window contents to locate the box under the mouse pointer,...
static uint32_t count(const http_directive *list, lwc_string *key)
struct box * parent
Parent box, or NULL.
struct box * children
First child box, or NULL.
struct box * next
Next sibling box, or NULL.
css_computed_style * style
Style for this box.
int x
Coordinate of left padding edge relative to parent box, or relative to ancestor that contains this bo...
int y
Coordinate of top padding edge, relative as for x.
Data specific to CONTENT_HTML.