NetSurf
|
Scrollbar context. More...
Data Fields | |
bool | horizontal |
Horizontal scrollbar if true, else vertical. More... | |
int | length |
Length of the scrollbar widget. More... | |
int | full_size |
Length of the full scrollable area. More... | |
int | visible_size |
Length visible part of the scrollable area. More... | |
int | offset |
Current scroll offset to visible area. More... | |
int | bar_pos |
Position of the scrollbar. More... | |
int | bar_len |
Length of the scrollbar. More... | |
scrollbar_client_callback | client_callback |
Callback receiving scrollbar events. More... | |
void * | client_data |
User data passed to the callback. More... | |
bool | dragging |
Flag indicating drag at progess. More... | |
int | drag_start_coord |
Coordinate value at drag start. More... | |
int | drag_start_pos |
Scrollbar offset or bar_pos at drag start. More... | |
bool | drag_content |
Flag indicating that the drag corresponds to a dragged content area, rather than a dragged scrollbar. More... | |
struct scrollbar * | pair |
Parpendicular scrollbar, or NULL. More... | |
bool | pair_drag |
Flag indicating that the current drag affects the perpendicular scrollbar too. More... | |
Scrollbar context.
Definition at line 44 of file scrollbar.c.
int scrollbar::bar_len |
Length of the scrollbar.
Definition at line 61 of file scrollbar.c.
Referenced by scrollbar_create(), scrollbar_mouse_action(), scrollbar_redraw(), scrollbar_set(), and scrollbar_set_extents().
int scrollbar::bar_pos |
Position of the scrollbar.
Definition at line 59 of file scrollbar.c.
Referenced by scrollbar_create(), scrollbar_drag_start_internal(), scrollbar_mouse_action(), scrollbar_redraw(), scrollbar_scroll(), scrollbar_set(), and scrollbar_set_extents().
scrollbar_client_callback scrollbar::client_callback |
Callback receiving scrollbar events.
Definition at line 64 of file scrollbar.c.
Referenced by scrollbar_create(), scrollbar_drag_start_internal(), scrollbar_mouse_drag_end(), scrollbar_scroll(), scrollbar_set(), and scrollbar_set_extents().
void* scrollbar::client_data |
User data passed to the callback.
Definition at line 66 of file scrollbar.c.
Referenced by scrollbar_create(), scrollbar_drag_start_internal(), scrollbar_get_data(), scrollbar_mouse_drag_end(), scrollbar_scroll(), scrollbar_set(), and scrollbar_set_extents().
bool scrollbar::drag_content |
Flag indicating that the drag corresponds to a dragged content area, rather than a dragged scrollbar.
Definition at line 77 of file scrollbar.c.
Referenced by scrollbar_create(), scrollbar_drag_start_internal(), scrollbar_mouse_action(), and scrollbar_mouse_drag_end().
int scrollbar::drag_start_coord |
Coordinate value at drag start.
Definition at line 71 of file scrollbar.c.
Referenced by scrollbar_drag_start_internal(), scrollbar_mouse_action(), and scrollbar_mouse_drag_end().
int scrollbar::drag_start_pos |
Scrollbar offset or bar_pos at drag start.
Definition at line 73 of file scrollbar.c.
Referenced by scrollbar_drag_start_internal(), scrollbar_mouse_action(), and scrollbar_mouse_drag_end().
bool scrollbar::dragging |
Flag indicating drag at progess.
Definition at line 69 of file scrollbar.c.
Referenced by scrollbar_create(), scrollbar_drag_start_internal(), scrollbar_mouse_action(), and scrollbar_mouse_drag_end().
int scrollbar::full_size |
Length of the full scrollable area.
Definition at line 51 of file scrollbar.c.
Referenced by scrollbar_create(), scrollbar_scroll(), scrollbar_set(), and scrollbar_set_extents().
bool scrollbar::horizontal |
Horizontal scrollbar if true, else vertical.
Definition at line 46 of file scrollbar.c.
Referenced by scrollbar_create(), scrollbar_drag_start_internal(), scrollbar_is_horizontal(), scrollbar_make_pair(), scrollbar_mouse_action(), scrollbar_mouse_drag_end(), and scrollbar_redraw().
int scrollbar::length |
Length of the scrollbar widget.
Definition at line 48 of file scrollbar.c.
Referenced by scrollbar_create(), scrollbar_mouse_action(), scrollbar_redraw(), scrollbar_scroll(), scrollbar_set(), and scrollbar_set_extents().
int scrollbar::offset |
Current scroll offset to visible area.
Definition at line 56 of file scrollbar.c.
Referenced by scrollbar_create(), scrollbar_drag_start_internal(), scrollbar_get_offset(), scrollbar_mouse_action(), scrollbar_scroll(), scrollbar_set(), and scrollbar_set_extents().
struct scrollbar* scrollbar::pair |
Parpendicular scrollbar, or NULL.
Definition at line 80 of file scrollbar.c.
Referenced by scrollbar_create(), scrollbar_destroy(), scrollbar_drag_start_internal(), scrollbar_make_pair(), scrollbar_mouse_action(), and scrollbar_mouse_drag_end().
bool scrollbar::pair_drag |
Flag indicating that the current drag affects the perpendicular scrollbar too.
Definition at line 84 of file scrollbar.c.
Referenced by scrollbar_create(), scrollbar_drag_start_internal(), scrollbar_mouse_action(), and scrollbar_mouse_drag_end().
int scrollbar::visible_size |
Length visible part of the scrollable area.
Definition at line 53 of file scrollbar.c.
Referenced by scrollbar_create(), scrollbar_scroll(), scrollbar_set(), and scrollbar_set_extents().