Inheritance: EventDispatcher
    static int set_mouseWheelEnabled(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.mouseWheelEnabled = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index mouseWheelEnabled on a nil value"));
        }
    }
    static int set_currentPageY(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)o;
            int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.currentPageY = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index currentPageY on a nil value"));
        }
    }
    static int set_softnessOnTopOrLeftSide(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.softnessOnTopOrLeftSide = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index softnessOnTopOrLeftSide on a nil value"));
        }
    }
    static int set_pageController(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.ScrollPane obj  = (FairyGUI.ScrollPane)o;
            FairyGUI.Controller arg0 = (FairyGUI.Controller)ToLua.CheckObject <FairyGUI.Controller>(L, 2);
            obj.pageController = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index pageController on a nil value"));
        }
    }
Beispiel #5
0
    static int get_scrollingPosX(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)o;
            float ret = obj.scrollingPosX;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index scrollingPosX on a nil value" : e.Message));
        }
    }
    static int set_bouncebackEffect(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.bouncebackEffect = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index bouncebackEffect on a nil value"));
        }
    }
Beispiel #7
0
    static int get_scrollPane(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GComponent obj = (FairyGUI.GComponent)o;
            FairyGUI.ScrollPane ret = obj.scrollPane;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index scrollPane on a nil value"));
        }
    }
Beispiel #8
0
    static int get_snapToItem(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)o;
            bool ret = obj.snapToItem;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index snapToItem on a nil value" : e.Message));
        }
    }
Beispiel #9
0
    static int get_footer(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)o;
            FairyGUI.GComponent ret = obj.footer;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index footer on a nil value" : e.Message));
        }
    }
Beispiel #10
0
    static int get_onScrollEnd(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.ScrollPane    obj = (FairyGUI.ScrollPane)o;
            FairyGUI.EventListener ret = obj.onScrollEnd;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onScrollEnd on a nil value" : e.Message));
        }
    }
Beispiel #11
0
    static int set_posY(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)o;
            float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.posY = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index posY on a nil value" : e.Message));
        }
    }
Beispiel #12
0
    static int set_snapToItem(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.snapToItem = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index snapToItem on a nil value" : e.Message));
        }
    }
Beispiel #13
0
        protected void SetupOverflowAndScroll(OverflowType overflow, Margin scrollBarMargin,
			ScrollType scroll, ScrollBarDisplayType scrollBarDisplay, int flags)
        {
            if (overflow == OverflowType.Hidden)
            {
                container = new Container();
                rootContainer.AddChild(container);
                UpdateMask();
                container.SetXY(_margin.left * GRoot.contentScaleFactor, _margin.top * GRoot.contentScaleFactor);
            }
            else if (overflow == OverflowType.Scroll)
            {
                container = new Container();
                rootContainer.AddChild(container);

                scrollPane = new ScrollPane(this, scroll, _margin, scrollBarMargin, scrollBarDisplay, flags);
            }
            else if (_margin.left != 0 || _margin.top != 0)
            {
                container = new Container();
                rootContainer.AddChild(container);

                container.SetXY(_margin.left * GRoot.contentScaleFactor, _margin.top * GRoot.contentScaleFactor);
            }

            SetBoundsChangedFlag();
        }
        protected void SetupScroll(Margin scrollBarMargin,
            ScrollType scroll, ScrollBarDisplayType scrollBarDisplay, int flags,
            String vtScrollBarRes, String hzScrollBarRes)
        {
            container = new Container();
            rootContainer.AddChild(container);

            scrollPane = new ScrollPane(this, scroll, scrollBarMargin, scrollBarDisplay, flags, vtScrollBarRes, hzScrollBarRes);
            UpdateClipRect();
            SetBoundsChangedFlag();
        }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="target"></param>
 /// <param name="vertical"></param>
 public void SetScrollPane(ScrollPane target, bool vertical)
 {
     _target = target;
     _vertical = vertical;
 }
Beispiel #16
0
        protected void SetupScroll(Margin scrollBarMargin,
            ScrollType scroll, ScrollBarDisplayType scrollBarDisplay, int flags,
            String vtScrollBarRes, String hzScrollBarRes)
        {
            if (rootContainer == container)
            {
                container = new Container();
                rootContainer.AddChild(container);
            }

            scrollPane = new ScrollPane(this, scroll, scrollBarMargin, scrollBarDisplay, flags, vtScrollBarRes, hzScrollBarRes);
        }