|
|
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
-
- public class VHScrollRectWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(VHScrollRect), typeof(UnityEngine.UI.ScrollRect));
- L.RegFunction("OnBeginDrag", OnBeginDrag);
- L.RegFunction("OnDrag", OnDrag);
- L.RegFunction("OnEndDrag", OnEndDrag);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("parentScroll", get_parentScroll, set_parentScroll);
- L.RegVar("isVertical", get_isVertical, set_isVertical);
- L.EndClass();
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int OnBeginDrag(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- VHScrollRect obj = (VHScrollRect)ToLua.CheckObject(L, 1, typeof(VHScrollRect));
- UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
- obj.OnBeginDrag(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int OnDrag(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- VHScrollRect obj = (VHScrollRect)ToLua.CheckObject(L, 1, typeof(VHScrollRect));
- UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
- obj.OnDrag(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int OnEndDrag(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- VHScrollRect obj = (VHScrollRect)ToLua.CheckObject(L, 1, typeof(VHScrollRect));
- UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
- obj.OnEndDrag(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int op_Equality(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
- UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
- bool o = arg0 == arg1;
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_parentScroll(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- VHScrollRect obj = (VHScrollRect)o;
- UnityEngine.UI.ScrollRect ret = obj.parentScroll;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index parentScroll on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_isVertical(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- VHScrollRect obj = (VHScrollRect)o;
- bool ret = obj.isVertical;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isVertical on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_parentScroll(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- VHScrollRect obj = (VHScrollRect)o;
- UnityEngine.UI.ScrollRect arg0 = (UnityEngine.UI.ScrollRect)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.UI.ScrollRect));
- obj.parentScroll = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index parentScroll on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_isVertical(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- VHScrollRect obj = (VHScrollRect)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.isVertical = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isVertical on a nil value" : e.Message);
- }
- }
- }
-
|