static public int SetClipRect(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif UnityEngine.UI.IClippable self = (UnityEngine.UI.IClippable)checkSelf(l); UnityEngine.Rect a1; checkValueType(l, 2, out a1); System.Boolean a2; checkType(l, 3, out a2); self.SetClipRect(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }
static public int RecalculateClipping(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif UnityEngine.UI.IClippable self = (UnityEngine.UI.IClippable)checkSelf(l); self.RecalculateClipping(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }
static public int get_rectTransform(IntPtr l) { try { UnityEngine.UI.IClippable self = (UnityEngine.UI.IClippable)checkSelf(l); pushValue(l, true); pushValue(l, self.rectTransform); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int RecalculateClipping(IntPtr l) { try { UnityEngine.UI.IClippable self = (UnityEngine.UI.IClippable)checkSelf(l); self.RecalculateClipping(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static int _g_get_rectTransform(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.UI.IClippable __cl_gen_to_be_invoked = (UnityEngine.UI.IClippable)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.rectTransform); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static StackObject *get_rectTransform_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.UI.IClippable instance_of_this_method = (UnityEngine.UI.IClippable) typeof(UnityEngine.UI.IClippable).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.rectTransform; return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static StackObject *RecalculateClipping_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.UI.IClippable instance_of_this_method = (UnityEngine.UI.IClippable) typeof(UnityEngine.UI.IClippable).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.RecalculateClipping(); return(__ret); }
static int RemoveClippable(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.UI.RectMask2D obj = (UnityEngine.UI.RectMask2D)ToLua.CheckObject(L, 1, typeof(UnityEngine.UI.RectMask2D)); UnityEngine.UI.IClippable arg0 = (UnityEngine.UI.IClippable)ToLua.CheckObject(L, 2, typeof(UnityEngine.UI.IClippable)); obj.RemoveClippable(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static public int SetClipRect(IntPtr l) { try { UnityEngine.UI.IClippable self = (UnityEngine.UI.IClippable)checkSelf(l); UnityEngine.Rect a1; checkValueType(l, 2, out a1); System.Boolean a2; checkType(l, 3, out a2); self.SetClipRect(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static StackObject* RemoveClippable_5(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.UI.IClippable @clippable = (UnityEngine.UI.IClippable)typeof(UnityEngine.UI.IClippable).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.RectMask2D instance_of_this_method = (UnityEngine.UI.RectMask2D)typeof(UnityEngine.UI.RectMask2D).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.RemoveClippable(@clippable); return __ret; }
static StackObject *GetRectMaskForClippable_5(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.UI.IClippable clippable = (UnityEngine.UI.IClippable) typeof(UnityEngine.UI.IClippable).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = UnityEngine.UI.MaskUtilities.GetRectMaskForClippable(clippable); object obj_result_of_this_method = result_of_this_method; if (obj_result_of_this_method is CrossBindingAdaptorType) { return(ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance)); } return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static int _m_RecalculateClipping(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.IClippable __cl_gen_to_be_invoked = (UnityEngine.UI.IClippable)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.RecalculateClipping( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetRectMaskForClippable_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { UnityEngine.UI.IClippable clippable = (UnityEngine.UI.IClippable)translator.GetObject(L, 1, typeof(UnityEngine.UI.IClippable)); UnityEngine.UI.RectMask2D __cl_gen_ret = UnityEngine.UI.MaskUtilities.GetRectMaskForClippable(clippable); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static StackObject *Cull_3(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @validRect = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.Rect @clipRect = (UnityEngine.Rect) typeof(UnityEngine.Rect).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); UnityEngine.UI.IClippable instance_of_this_method = (UnityEngine.UI.IClippable) typeof(UnityEngine.UI.IClippable).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.Cull(@clipRect, @validRect); return(__ret); }
static int _m_RemoveClippable(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.RectMask2D __cl_gen_to_be_invoked = (UnityEngine.UI.RectMask2D)translator.FastGetCSObj(L, 1); try { { UnityEngine.UI.IClippable clippable = (UnityEngine.UI.IClippable)translator.GetObject(L, 2, typeof(UnityEngine.UI.IClippable)); __cl_gen_to_be_invoked.RemoveClippable(clippable); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_Cull(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.IClippable __cl_gen_to_be_invoked = (UnityEngine.UI.IClippable)translator.FastGetCSObj(L, 1); try { { UnityEngine.Rect clipRect; translator.Get(L, 2, out clipRect); bool validRect = LuaAPI.lua_toboolean(L, 3); __cl_gen_to_be_invoked.Cull(clipRect, validRect); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }