Example #1
0
    static int set_onListMoved(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollViewAdapter obj = (UIScrollViewAdapter)o;
            UIScrollViewAdapter.OnListMovedHandler arg0 = null;
            LuaTypes funcType2 = LuaDLL.lua_type(L, 2);

            if (funcType2 != LuaTypes.LUA_TFUNCTION)
            {
                arg0 = (UIScrollViewAdapter.OnListMovedHandler)ToLua.CheckObject(L, 2, typeof(UIScrollViewAdapter.OnListMovedHandler));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 2);
                arg0 = DelegateFactory.CreateDelegate(typeof(UIScrollViewAdapter.OnListMovedHandler), func) as UIScrollViewAdapter.OnListMovedHandler;
            }

            obj.onListMoved = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onListMoved on a nil value" : e.Message));
        }
    }
Example #2
0
 static int ListMoved(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UIScrollViewAdapter obj = (UIScrollViewAdapter)ToLua.CheckObject(L, 1, typeof(UIScrollViewAdapter));
         obj.ListMoved();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #3
0
 static int Reload(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UIScrollViewAdapter obj = (UIScrollViewAdapter)ToLua.CheckObject(L, 1, typeof(UIScrollViewAdapter));
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         obj.Reload(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #4
0
 static int Create(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         UIScrollViewAdapter obj = (UIScrollViewAdapter)ToLua.CheckObject(L, 1, typeof(UIScrollViewAdapter));
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         UIScrollViewItemBase arg1 = (UIScrollViewItemBase)ToLua.CheckUnityObject(L, 3, typeof(UIScrollViewItemBase));
         obj.Create(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #5
0
 static int ItemSelected(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         UIScrollViewAdapter  obj  = (UIScrollViewAdapter)ToLua.CheckObject(L, 1, typeof(UIScrollViewAdapter));
         UIScrollViewItemBase arg0 = (UIScrollViewItemBase)ToLua.CheckUnityObject(L, 2, typeof(UIScrollViewItemBase));
         bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
         obj.ItemSelected(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #6
0
    static int set__itemsList(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollViewAdapter obj = (UIScrollViewAdapter)o;
            System.Collections.Generic.List <UIScrollViewItemBase> arg0 = (System.Collections.Generic.List <UIScrollViewItemBase>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <UIScrollViewItemBase>));
            obj._itemsList = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index _itemsList on a nil value" : e.Message));
        }
    }
Example #7
0
    static int set_WhetherAutomaticallyFill(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollViewAdapter obj = (UIScrollViewAdapter)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.WhetherAutomaticallyFill = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index WhetherAutomaticallyFill on a nil value" : e.Message));
        }
    }
Example #8
0
    static int set__spacing(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollViewAdapter obj = (UIScrollViewAdapter)o;
            float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj._spacing = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index _spacing on a nil value" : e.Message));
        }
    }
Example #9
0
    static int set__itemsVisible_line(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollViewAdapter obj = (UIScrollViewAdapter)o;
            int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj._itemsVisible_line = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index _itemsVisible_line on a nil value" : e.Message));
        }
    }
Example #10
0
    static int set__scrollOrientation(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollViewAdapter obj  = (UIScrollViewAdapter)o;
            ScrollOrientation   arg0 = (ScrollOrientation)ToLua.CheckObject(L, 2, typeof(ScrollOrientation));
            obj._scrollOrientation = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index _scrollOrientation on a nil value" : e.Message));
        }
    }
Example #11
0
    static int get__itemsList(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollViewAdapter obj = (UIScrollViewAdapter)o;
            System.Collections.Generic.List <UIScrollViewItemBase> ret = obj._itemsList;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index _itemsList on a nil value" : e.Message));
        }
    }
Example #12
0
    static int get_WhetherAutomaticallyFill(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollViewAdapter obj = (UIScrollViewAdapter)o;
            bool ret = obj.WhetherAutomaticallyFill;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index WhetherAutomaticallyFill on a nil value" : e.Message));
        }
    }
Example #13
0
    static int get__spacing(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollViewAdapter obj = (UIScrollViewAdapter)o;
            float ret = obj._spacing;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index _spacing on a nil value" : e.Message));
        }
    }
Example #14
0
    static int get__itemsVisible_line(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollViewAdapter obj = (UIScrollViewAdapter)o;
            int ret = obj._itemsVisible_line;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index _itemsVisible_line on a nil value" : e.Message));
        }
    }
Example #15
0
    static int get__scrollOrientation(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollViewAdapter obj = (UIScrollViewAdapter)o;
            ScrollOrientation   ret = obj._scrollOrientation;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index _scrollOrientation on a nil value" : e.Message));
        }
    }
Example #16
0
    static int get_onListMoved(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollViewAdapter obj = (UIScrollViewAdapter)o;
            UIScrollViewAdapter.OnListMovedHandler ret = obj.onListMoved;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onListMoved on a nil value" : e.Message));
        }
    }