2
0

ScrollView.pkg 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. tolua_property__get_set IntVector2& viewPosition;
  22. tolua_property__get_set UIElement* contentElement;
  23. tolua_readonly tolua_property__get_set ScrollBar* horizontalScrollBar;
  24. tolua_readonly tolua_property__get_set ScrollBar* verticalScrollBar;
  25. tolua_readonly tolua_property__get_set BorderImage* scrollPanel;
  26. tolua_property__get_set bool scrollBarsAutoVisible;
  27. tolua_property__get_set float scrollStep;
  28. tolua_property__get_set float pageStep;
  29. };
  30. ${
  31. #define TOLUA_DISABLE_tolua_UILuaAPI_ScrollView_new00
  32. static int tolua_UILuaAPI_ScrollView_new00(lua_State* tolua_S)
  33. {
  34. return ToluaNewObject<ScrollView>(tolua_S);
  35. }
  36. #define TOLUA_DISABLE_tolua_UILuaAPI_ScrollView_new00_local
  37. static int tolua_UILuaAPI_ScrollView_new00_local(lua_State* tolua_S)
  38. {
  39. return ToluaNewObjectGC<ScrollView>(tolua_S);
  40. }
  41. $}