ProgressBar.pkg 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. $#include "UI/ProgressBar.h"
  2. class ProgressBar : public BorderImage
  3. {
  4. ProgressBar();
  5. virtual ~ProgressBar();
  6. void SetOrientation(Orientation orientation);
  7. void SetRange(float range);
  8. void SetValue(float value);
  9. void ChangeValue(float delta);
  10. void SetLoadingPercentStyle(const String style);
  11. void SetShowPercentText(bool showPercentText);
  12. Orientation GetOrientation() const;
  13. float GetRange() const;
  14. float GetValue() const;
  15. BorderImage* GetKnob() const;
  16. const String GetLoadingPercentStyle();
  17. bool GetShowPercentText() const;
  18. tolua_property__get_set Orientation orientation;
  19. tolua_property__get_set float range;
  20. tolua_property__get_set float value;
  21. tolua_readonly tolua_property__get_set BorderImage* knob;
  22. tolua_readonly tolua_property__get_set String loadingPercentStyle;
  23. tolua_property__get_set bool showPercentText;
  24. };
  25. ${
  26. #define TOLUA_DISABLE_tolua_UILuaAPI_ProgressBar_new00
  27. static int tolua_UILuaAPI_ProgressBar_new00(lua_State* tolua_S)
  28. {
  29. return ToluaNewObject<ProgressBar>(tolua_S);
  30. }
  31. #define TOLUA_DISABLE_tolua_UILuaAPI_ProgressBar_new00_local
  32. static int tolua_UILuaAPI_ProgressBar_new00_local(lua_State* tolua_S)
  33. {
  34. return ToluaNewObjectGC<ProgressBar>(tolua_S);
  35. }
  36. $}