Home | All Classes | Grouped Classes | Index | Search
ScrollBar component More...
Derived from:
CL_Component
Derived by:
none
Group: GUI (Controls)
#include <ClanLib/gui.h>
Construction:
ScrollBar Constructor |
Attributes:
Returns the orientation of the scroll bar. | |
Returns true if tracking is enabled, or false if tracking is disabled. Tracking is initially enabled. See set_tracking for more info on tracking. | |
Returns the current min value. | |
Returns the current max value. | |
Returns the range (delta max-min). | |
Returns the current range control value. | |
Returns true if the user has clicked the mouse on the slider and is currently dragging it, or false if not. | |
Returns true if this is a fixed length slider, false otherwise. | |
Returns the scroll bar slider rectangle. | |
Returns the minimum size of the slider. Only usable in variable-length sliders. |
Operations:
Sets the length-mode of the slider. | |
Sets the current size of the slider. Only usable in fixed-length sliders. | |
Sets the minimum size of the slider. Only usable in variable-length sliders. | |
Sets the scroll bar orientation to vertical if enable is true, horizontal otherwise. | |
Enables scroll bar tracking if enable is true, or disables tracking if enable is false. | |
Sets the range between min_value and max_value. If max_value is smaller than min_value, max_value is set to min_value. | |
Sets the range to start from value. If current maximum value is less than the minvalue, maxvalue is set to minvalue. | |
Sets the range to end at value. If current maximum value is less than the minvalue, maxvalue is set to minvalue. | |
Sets the range controls value to value and forces it to be within the legal range. | |
Increases current value with step. | |
Decreases current value with step. |
Signals:
This signal is emitted when the scroll bar value has changed, with the new scroll bar value as an argument. See set_tracking() for specifics on this signal. | |
This signal is emitted when the user presses the slider with the mouse. | |
This signal is emitted when the slider is moved by the user, with the new scroll bar value as an argument. This signal is emitted even when tracking is turned off. | |
This signal is emitted when the user releases the slider with the mouse. |
Detailed description:
!group=GUI/Controls! !header=gui.h!