![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
ScrollBar component
Contained in: global
Derived from:
CL_Component
Derived by:
none
Group: GUI (Controls)
#include <ClanLib/gui.h>
public function member index: |
||
Construction: |
||
CL_ScrollBar | (CL_Component* parent, CL_StyleManager* style = NULL); | |
CL_ScrollBar | (int min, int max, bool orientation, CL_Component* parent, CL_StyleManager* style = NULL); | |
CL_ScrollBar | (bool orientation, CL_Component* parent, CL_StyleManager* style = NULL); | |
CL_ScrollBar | (const CL_Rect& pos, int min, int max, bool orientation, CL_Component* parent, CL_StyleManager* style = NULL); | |
CL_ScrollBar | (const CL_Rect& pos, bool orientation, CL_Component* parent, CL_StyleManager* style = NULL); | |
virtual | ~CL_ScrollBar | (); |
Attributes: |
||
CL_Component* | get_client_area | () const; |
bool | is_vertical | () const; |
bool | is_tracking | () const; |
int | get_min_value | () const; |
int | get_max_value | () const; |
int | get_range | () const; |
int | get_value | () const; |
bool | is_dragging_slider | () const; |
bool | is_fixed_length_slider | () const; |
CL_Rect& | get_slider_rect | () const; |
int | get_min_slider_length | () const; |
Operations: |
||
void | set_fixed_length_mode | (bool enabel = true); |
void | set_slider_length | (int length); |
void | set_min_slider_length | (int length); |
void | set_vertical | (bool enable = true); |
void | set_tracking | (bool enable = true); |
void | set_range | (int min_value, int max_value); |
void | set_min_value | (int value); |
void | set_max_value | (int value); |
void | set_value | (int value); |
void | increase | (int step = 1); |
void | decrease | (int step = 1); |
Signals: |
||
CL_Signal_v1<int>& | sig_value_changed | (); |
CL_Signal_v0& | sig_slider_pressed | (); |
CL_Signal_v1<int>& | sig_slider_moved | (); |
CL_Signal_v0& | sig_slider_released | (); |
private function member index: |
||
Implementation: |
||
CL_ScrollBar | (const CL_ScrollBar& copy); | |
Orientation = false: Vertical scrollbar
Orientation = true: Hortizonal scrollbar
Orientation = false: Vertical scrollbar
Orientation = true: Hortizonal scrollbar
Orientation = false: Vertical scrollbar
Orientation = true: Hortizonal scrollbar
Orientation = false: Vertical scrollbar
Orientation = true: Hortizonal scrollbar
Return true if scrollbar is vertical, false otherwise.
If enable is true, the slider is constant in size. (See set_slider_length()).
If enable is false, the slider is resized automatically based on the range.