Slider.pkg 791 B

12345678910111213141516171819202122232425262728
  1. $#include "Slider.h"
  2. class Slider : public BorderImage
  3. {
  4. public:
  5. // Methods:
  6. Slider(Context* context);
  7. virtual ~Slider();
  8. void SetOrientation(Orientation orientation);
  9. void SetRange(float range);
  10. void SetValue(float value);
  11. void ChangeValue(float delta);
  12. void SetRepeatRate(float rate);
  13. Orientation GetOrientation() const;
  14. float GetRange() const;
  15. float GetValue() const;
  16. BorderImage* GetKnob() const;
  17. float GetRepeatRate() const;
  18. // Properties:
  19. tolua_property__get_set Orientation orientation;
  20. tolua_property__get_set float range;
  21. tolua_property__get_set float value;
  22. tolua_readonly tolua_property__get_set BorderImage* knob;
  23. tolua_property__get_set float repeatRate;
  24. };