| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class SuperScrollView_LoopGridViewInitParamWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(SuperScrollView.LoopGridViewInitParam), typeof(System.Object), "LoopGridViewInitParam");
- L.RegFunction("CopyDefaultInitParam", CopyDefaultInitParam);
- L.RegFunction("New", _CreateSuperScrollView_LoopGridViewInitParam);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("mSmoothDumpRate", get_mSmoothDumpRate, set_mSmoothDumpRate);
- L.RegVar("mSnapFinishThreshold", get_mSnapFinishThreshold, set_mSnapFinishThreshold);
- L.RegVar("mSnapVecThreshold", get_mSnapVecThreshold, set_mSnapVecThreshold);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int _CreateSuperScrollView_LoopGridViewInitParam(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 0)
- {
- SuperScrollView.LoopGridViewInitParam obj = new SuperScrollView.LoopGridViewInitParam();
- ToLua.PushObject(L, obj);
- return 1;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: SuperScrollView.LoopGridViewInitParam.New");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CopyDefaultInitParam(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 0);
- SuperScrollView.LoopGridViewInitParam o = SuperScrollView.LoopGridViewInitParam.CopyDefaultInitParam();
- ToLua.PushObject(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_mSmoothDumpRate(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- SuperScrollView.LoopGridViewInitParam obj = (SuperScrollView.LoopGridViewInitParam)o;
- float ret = obj.mSmoothDumpRate;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index mSmoothDumpRate on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_mSnapFinishThreshold(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- SuperScrollView.LoopGridViewInitParam obj = (SuperScrollView.LoopGridViewInitParam)o;
- float ret = obj.mSnapFinishThreshold;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index mSnapFinishThreshold on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_mSnapVecThreshold(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- SuperScrollView.LoopGridViewInitParam obj = (SuperScrollView.LoopGridViewInitParam)o;
- float ret = obj.mSnapVecThreshold;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index mSnapVecThreshold on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_mSmoothDumpRate(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- SuperScrollView.LoopGridViewInitParam obj = (SuperScrollView.LoopGridViewInitParam)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.mSmoothDumpRate = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index mSmoothDumpRate on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_mSnapFinishThreshold(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- SuperScrollView.LoopGridViewInitParam obj = (SuperScrollView.LoopGridViewInitParam)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.mSnapFinishThreshold = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index mSnapFinishThreshold on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_mSnapVecThreshold(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- SuperScrollView.LoopGridViewInitParam obj = (SuperScrollView.LoopGridViewInitParam)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.mSnapVecThreshold = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index mSnapVecThreshold on a nil value");
- }
- }
- }
|