ScrollView.pkg 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. $#include "ScrollView.h"
  2. class ScrollView : public UIElement
  3. {
  4. ScrollView();
  5. virtual ~ScrollView();
  6. void SetContentElement(UIElement* element);
  7. void SetViewPosition(const IntVector2& position);
  8. void SetViewPosition(int x, int y);
  9. void SetScrollBarsVisible(bool horizontal, bool vertical);
  10. void SetScrollBarsAutoVisible(bool enable);
  11. void SetScrollStep(float step);
  12. void SetPageStep(float step);
  13. const IntVector2& GetViewPosition() const;
  14. UIElement* GetContentElement() const;
  15. ScrollBar* GetHorizontalScrollBar() const;
  16. ScrollBar* GetVerticalScrollBar() const;
  17. BorderImage* GetScrollPanel() const;
  18. bool GetScrollBarsAutoVisible() const;
  19. float GetScrollStep() const;
  20. float GetPageStep() const;
  21. void SetViewPositionAttr(const IntVector2& value);
  22. tolua_property__get_set IntVector2& viewPosition;
  23. tolua_property__get_set UIElement* contentElement;
  24. tolua_readonly tolua_property__get_set ScrollBar* horizontalScrollBar;
  25. tolua_readonly tolua_property__get_set ScrollBar* verticalScrollBar;
  26. tolua_readonly tolua_property__get_set BorderImage* scrollPanel;
  27. tolua_property__get_set bool scrollBarsAutoVisible;
  28. tolua_property__get_set float scrollStep;
  29. tolua_property__get_set float pageStep;
  30. };
  31. ${
  32. #define TOLUA_DISABLE_tolua_UILuaAPI_ScrollView_new00
  33. static int tolua_UILuaAPI_ScrollView_new00(lua_State* tolua_S)
  34. {
  35. return ToluaNewObject<ScrollView>(tolua_S);
  36. }
  37. #define TOLUA_DISABLE_tolua_UILuaAPI_ScrollView_new00_local
  38. static int tolua_UILuaAPI_ScrollView_new00_local(lua_State* tolua_S)
  39. {
  40. return ToluaNewObjectGC<ScrollView>(tolua_S);
  41. }
  42. $}