2
0

ScrollView.pkg 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. void SetScrollDeceleration(float deceleration);
  14. void SetScrollSnapEpsilon(float snap);
  15. const IntVector2& GetViewPosition() const;
  16. UIElement* GetContentElement() const;
  17. ScrollBar* GetHorizontalScrollBar() const;
  18. ScrollBar* GetVerticalScrollBar() const;
  19. BorderImage* GetScrollPanel() const;
  20. bool GetScrollBarsAutoVisible() const;
  21. float GetScrollStep() const;
  22. float GetPageStep() const;
  23. float GetScrollDeceleration() const;
  24. float GetScrollSnapEpsilon() const;
  25. tolua_property__get_set IntVector2& viewPosition;
  26. tolua_property__get_set UIElement* contentElement;
  27. tolua_readonly tolua_property__get_set ScrollBar* horizontalScrollBar;
  28. tolua_readonly tolua_property__get_set ScrollBar* verticalScrollBar;
  29. tolua_readonly tolua_property__get_set BorderImage* scrollPanel;
  30. tolua_property__get_set bool scrollBarsAutoVisible;
  31. tolua_property__get_set float scrollStep;
  32. tolua_property__get_set float pageStep;
  33. tolua_property__get_set float scrollDeceleration;
  34. tolua_property__get_set float scrollSnapEpsilon;
  35. };
  36. ${
  37. #define TOLUA_DISABLE_tolua_UILuaAPI_ScrollView_new00
  38. static int tolua_UILuaAPI_ScrollView_new00(lua_State* tolua_S)
  39. {
  40. return ToluaNewObject<ScrollView>(tolua_S);
  41. }
  42. #define TOLUA_DISABLE_tolua_UILuaAPI_ScrollView_new00_local
  43. static int tolua_UILuaAPI_ScrollView_new00_local(lua_State* tolua_S)
  44. {
  45. return ToluaNewObjectGC<ScrollView>(tolua_S);
  46. }
  47. $}