ScrollView.pkg 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. $#include "ScrollView.h"
  2. class ScrollView : public UIElement
  3. {
  4. ScrollView(Context* context);
  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. };