NetSurf
Data Fields
scrollbar Struct Reference

Scrollbar context. More...

Collaboration diagram for scrollbar:
[legend]

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 scrollbarpair
 Parpendicular scrollbar, or NULL. More...
 
bool pair_drag
 Flag indicating that the current drag affects the perpendicular scrollbar too. More...
 

Detailed Description

Scrollbar context.

Definition at line 44 of file scrollbar.c.

Field Documentation

◆ bar_len

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().

◆ bar_pos

int scrollbar::bar_pos

◆ client_callback

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().

◆ client_data

void* scrollbar::client_data

◆ drag_content

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().

◆ drag_start_coord

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().

◆ drag_start_pos

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().

◆ dragging

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().

◆ full_size

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().

◆ horizontal

bool scrollbar::horizontal

◆ length

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().

◆ offset

int scrollbar::offset

◆ pair

struct scrollbar* scrollbar::pair

◆ pair_drag

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().

◆ visible_size

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().


The documentation for this struct was generated from the following file: