ScrollBar.pkg 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. $#include "UI/ScrollBar.h"
  2. class ScrollBar : public BorderImage
  3. {
  4. ScrollBar();
  5. virtual ~ScrollBar();
  6. void SetOrientation(Orientation orientation);
  7. void SetRange(float range);
  8. void SetValue(float value);
  9. void ChangeValue(float delta);
  10. void SetScrollStep(float step);
  11. void SetStepFactor(float factor);
  12. void StepBack();
  13. void StepForward();
  14. Orientation GetOrientation() const;
  15. float GetRange() const;
  16. float GetValue() const;
  17. float GetScrollStep() const;
  18. float GetStepFactor() const;
  19. float GetEffectiveScrollStep() const;
  20. Button* GetBackButton() const;
  21. Button* GetForwardButton() const;
  22. Slider* GetSlider() const;
  23. tolua_property__get_set Orientation orientation;
  24. tolua_property__get_set float range;
  25. tolua_property__get_set float value;
  26. tolua_property__get_set float scrollStep;
  27. tolua_property__get_set float stepFactor;
  28. tolua_readonly tolua_property__get_set float effectiveScrollStep;
  29. tolua_readonly tolua_property__get_set Button* backButton;
  30. tolua_readonly tolua_property__get_set Button* forwardButton;
  31. tolua_readonly tolua_property__get_set Slider* slider;
  32. };
  33. ${
  34. #define TOLUA_DISABLE_tolua_UILuaAPI_ScrollBar_new00
  35. static int tolua_UILuaAPI_ScrollBar_new00(lua_State* tolua_S)
  36. {
  37. return ToluaNewObject<ScrollBar>(tolua_S);
  38. }
  39. #define TOLUA_DISABLE_tolua_UILuaAPI_ScrollBar_new00_local
  40. static int tolua_UILuaAPI_ScrollBar_new00_local(lua_State* tolua_S)
  41. {
  42. return ToluaNewObjectGC<ScrollBar>(tolua_S);
  43. }
  44. $}