| 123456789101112131415161718192021222324252627282930313233343536 |
- $#include "ScrollBar.h"
- class ScrollBar : public UIElement
- {
- ScrollBar(Context* context);
- virtual ~ScrollBar();
-
- void SetOrientation(Orientation orientation);
- void SetRange(float range);
- void SetValue(float value);
- void ChangeValue(float delta);
- void SetScrollStep(float step);
- void SetStepFactor(float factor);
- void StepBack();
- void StepForward();
-
- Orientation GetOrientation() const;
- float GetRange() const;
- float GetValue() const;
- float GetScrollStep() const;
- float GetStepFactor() const;
- float GetEffectiveScrollStep() const;
- Button* GetBackButton() const;
- Button* GetForwardButton() const;
- Slider* GetSlider() const;
-
- tolua_property__get_set Orientation orientation;
- tolua_property__get_set float range;
- tolua_property__get_set float value;
- tolua_property__get_set float scrollStep;
- tolua_property__get_set float stepFactor;
- tolua_readonly tolua_property__get_set float effectiveScrollStep;
- tolua_readonly tolua_property__get_set Button* backButton;
- tolua_readonly tolua_property__get_set Button* forwardButton;
- tolua_readonly tolua_property__get_set Slider* slider;
- };
|