| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- $#include "UI/ScrollView.h"
- class ScrollView : public UIElement
- {
- ScrollView();
- virtual ~ScrollView();
-
- void SetContentElement(UIElement* element);
- void SetViewPosition(const IntVector2& position);
- void SetViewPosition(int x, int y);
- void SetScrollBarsVisible(bool horizontal, bool vertical);
- void SetScrollBarsAutoVisible(bool enable);
- void SetScrollStep(float step);
- void SetPageStep(float step);
- void SetScrollDeceleration(float deceleration);
- void SetScrollSnapEpsilon(float snap);
- void SetAutoDisableChildren(bool disable);
- void SetAutoDisableThreshold(float amount);
- const IntVector2& GetViewPosition() const;
- UIElement* GetContentElement() const;
- ScrollBar* GetHorizontalScrollBar() const;
- ScrollBar* GetVerticalScrollBar() const;
- BorderImage* GetScrollPanel() const;
- bool GetScrollBarsAutoVisible() const;
- float GetScrollStep() const;
- float GetPageStep() const;
- float GetScrollDeceleration() const;
- float GetScrollSnapEpsilon() const;
- bool GetAutoDisableChildren() const;
- float GetAutoDisableThreshold() const;
- tolua_property__get_set IntVector2& viewPosition;
- tolua_property__get_set UIElement* contentElement;
- tolua_readonly tolua_property__get_set ScrollBar* horizontalScrollBar;
- tolua_readonly tolua_property__get_set ScrollBar* verticalScrollBar;
- tolua_readonly tolua_property__get_set BorderImage* scrollPanel;
- tolua_property__get_set bool scrollBarsAutoVisible;
- tolua_property__get_set float scrollStep;
- tolua_property__get_set float pageStep;
- tolua_property__get_set float scrollDeceleration;
- tolua_property__get_set float scrollSnapEpsilon;
- };
- ${
- #define TOLUA_DISABLE_tolua_UILuaAPI_ScrollView_new00
- static int tolua_UILuaAPI_ScrollView_new00(lua_State* tolua_S)
- {
- return ToluaNewObject<ScrollView>(tolua_S);
- }
- #define TOLUA_DISABLE_tolua_UILuaAPI_ScrollView_new00_local
- static int tolua_UILuaAPI_ScrollView_new00_local(lua_State* tolua_S)
- {
- return ToluaNewObjectGC<ScrollView>(tolua_S);
- }
- $}
|