Slider.pkg 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. $#include "UI/Slider.h"
  2. class Slider : public BorderImage
  3. {
  4. Slider();
  5. virtual ~Slider();
  6. void SetOrientation(Orientation orientation);
  7. void SetRange(float range);
  8. void SetValue(float value);
  9. void ChangeValue(float delta);
  10. void SetRepeatRate(float rate);
  11. Orientation GetOrientation() const;
  12. float GetRange() const;
  13. float GetValue() const;
  14. BorderImage* GetKnob() const;
  15. float GetRepeatRate() const;
  16. tolua_property__get_set Orientation orientation;
  17. tolua_property__get_set float range;
  18. tolua_property__get_set float value;
  19. tolua_readonly tolua_property__get_set BorderImage* knob;
  20. tolua_property__get_set float repeatRate;
  21. };
  22. ${
  23. #define TOLUA_DISABLE_tolua_UILuaAPI_Slider_new00
  24. static int tolua_UILuaAPI_Slider_new00(lua_State* tolua_S)
  25. {
  26. return ToluaNewObject<Slider>(tolua_S);
  27. }
  28. #define TOLUA_DISABLE_tolua_UILuaAPI_Slider_new00_local
  29. static int tolua_UILuaAPI_Slider_new00_local(lua_State* tolua_S)
  30. {
  31. return ToluaNewObjectGC<Slider>(tolua_S);
  32. }
  33. $}