Home |All Classes |Grouped Classes |Index |Search

Class CL_ScrollBar

Scroll bar component. More...

Derived from:

public CL_GUIComponent

Derived by:

None

Group:

Components (GUI)

#include <ClanLib/gui.h>

Class Members:

Construction:

CL_ScrollBar


Attributes:

is_vertical

is_horizontal

get_min

get_max

get_line_step

get_page_step

get_position

get_preferred_size

Returns the preferred size of a render box.

get_preferred_width

Returns the preferred width of the scrollbar.

get_preferred_height

Returns the preferred height of the scrollbar.


Operations:

set_vertical

set_horizontal

set_min

set_max

set_line_step

set_page_step

set_ranges

calculate_ranges

Calculate the scrollbar range and page_step size for scrolling in pixels.

set_position


Events:

func_scroll

Called for every type of scrollbar scrolling.

func_scroll_min

Called when scrolled to minimum position.

func_scroll_max

Called when scrolled to maximum position.

func_scroll_line_decrement

Called when decrement button is clicked.

func_scroll_line_increment

Called when increment button is clicked.

func_scroll_page_decrement

Called when decrement track is clicked.

func_scroll_page_increment

Called when increment track is clicked.

func_scroll_thumb_position

Called when user released scroll thumb.

func_scroll_thumb_track

Called as user moves the scroll thumb.

func_scroll_end

Called when user releases the mouse after scrolling.