ScrollView.pkg 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. $#include "ScrollView.h"
  2. class ScrollView : public UIElement
  3. {
  4. public:
  5. // Methods:
  6. ScrollView(Context* context);
  7. virtual ~ScrollView();
  8. void SetContentElement(UIElement* element);
  9. void SetViewPosition(const IntVector2& position);
  10. void SetViewPosition(int x, int y);
  11. void SetScrollBarsVisible(bool horizontal, bool vertical);
  12. void SetScrollBarsAutoVisible(bool enable);
  13. void SetScrollStep(float step);
  14. void SetPageStep(float step);
  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. void SetViewPositionAttr(const IntVector2& value);
  24. tolua_property__get_set IntVector2& viewPosition;
  25. tolua_property__get_set UIElement* contentElement;
  26. tolua_readonly tolua_property__get_set ScrollBar* horizontalScrollBar;
  27. tolua_readonly tolua_property__get_set ScrollBar* verticalScrollBar;
  28. tolua_readonly tolua_property__get_set BorderImage* scrollPanel;
  29. tolua_property__get_set bool scrollBarsAutoVisible;
  30. tolua_property__get_set float scrollStep;
  31. tolua_property__get_set float pageStep;
  32. };