using System; using System.Collections.Generic; using System.Reflection; using System.Runtime.InteropServices; using UnityFusion.CLR.TypeSystem; using UnityFusion.CLR.Method; using UnityFusion.Runtime.Enviorment; using UnityFusion.Runtime.Intepreter; using UnityFusion.Runtime.Stack; using UnityFusion.Reflection; using UnityFusion.CLR.Utils; #if DEBUG && !DISABLE_UNITYFUSION_DEBUG using AutoList = System.Collections.Generic.List; #else using AutoList = UnityFusion.Other.UncheckedList; #endif namespace UnityFusion.Runtime.Generated { unsafe class UnityEngine_UI_LayoutElement_Binding { public static void Register(UnityFusion.Runtime.Enviorment.AppDomain app) { BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly; MethodBase method; Type[] args; Type type = typeof(UnityEngine.UI.LayoutElement); args = new Type[]{}; method = type.GetMethod("get_ignoreLayout", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_ignoreLayout_0); args = new Type[]{typeof(System.Boolean)}; method = type.GetMethod("set_ignoreLayout", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_ignoreLayout_1); args = new Type[]{}; method = type.GetMethod("CalculateLayoutInputHorizontal", flag, null, args, null); app.RegisterCLRMethodRedirection(method, CalculateLayoutInputHorizontal_2); args = new Type[]{}; method = type.GetMethod("CalculateLayoutInputVertical", flag, null, args, null); app.RegisterCLRMethodRedirection(method, CalculateLayoutInputVertical_3); args = new Type[]{}; method = type.GetMethod("get_minWidth", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_minWidth_4); args = new Type[]{typeof(System.Single)}; method = type.GetMethod("set_minWidth", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_minWidth_5); args = new Type[]{}; method = type.GetMethod("get_minHeight", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_minHeight_6); args = new Type[]{typeof(System.Single)}; method = type.GetMethod("set_minHeight", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_minHeight_7); args = new Type[]{}; method = type.GetMethod("get_preferredWidth", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_preferredWidth_8); args = new Type[]{typeof(System.Single)}; method = type.GetMethod("set_preferredWidth", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_preferredWidth_9); args = new Type[]{}; method = type.GetMethod("get_preferredHeight", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_preferredHeight_10); args = new Type[]{typeof(System.Single)}; method = type.GetMethod("set_preferredHeight", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_preferredHeight_11); args = new Type[]{}; method = type.GetMethod("get_flexibleWidth", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_flexibleWidth_12); args = new Type[]{typeof(System.Single)}; method = type.GetMethod("set_flexibleWidth", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_flexibleWidth_13); args = new Type[]{}; method = type.GetMethod("get_flexibleHeight", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_flexibleHeight_14); args = new Type[]{typeof(System.Single)}; method = type.GetMethod("set_flexibleHeight", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_flexibleHeight_15); args = new Type[]{}; method = type.GetMethod("get_layoutPriority", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_layoutPriority_16); args = new Type[]{typeof(System.Int32)}; method = type.GetMethod("set_layoutPriority", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_layoutPriority_17); app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.UI.LayoutElement[s]); } static StackObject* get_ignoreLayout_0(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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.LayoutElement instance_of_this_method = (UnityEngine.UI.LayoutElement)typeof(UnityEngine.UI.LayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.ignoreLayout; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* set_ignoreLayout_1(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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); System.Boolean @value = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.LayoutElement instance_of_this_method = (UnityEngine.UI.LayoutElement)typeof(UnityEngine.UI.LayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.ignoreLayout = value; return __ret; } static StackObject* CalculateLayoutInputHorizontal_2(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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.LayoutElement instance_of_this_method = (UnityEngine.UI.LayoutElement)typeof(UnityEngine.UI.LayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.CalculateLayoutInputHorizontal(); return __ret; } static StackObject* CalculateLayoutInputVertical_3(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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.LayoutElement instance_of_this_method = (UnityEngine.UI.LayoutElement)typeof(UnityEngine.UI.LayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.CalculateLayoutInputVertical(); return __ret; } static StackObject* get_minWidth_4(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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.LayoutElement instance_of_this_method = (UnityEngine.UI.LayoutElement)typeof(UnityEngine.UI.LayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.minWidth; __ret->ObjectType = ObjectTypes.Float; *(float*)&__ret->Value = result_of_this_method; return __ret + 1; } static StackObject* set_minWidth_5(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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); System.Single @value = *(float*)&ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.LayoutElement instance_of_this_method = (UnityEngine.UI.LayoutElement)typeof(UnityEngine.UI.LayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.minWidth = value; return __ret; } static StackObject* get_minHeight_6(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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.LayoutElement instance_of_this_method = (UnityEngine.UI.LayoutElement)typeof(UnityEngine.UI.LayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.minHeight; __ret->ObjectType = ObjectTypes.Float; *(float*)&__ret->Value = result_of_this_method; return __ret + 1; } static StackObject* set_minHeight_7(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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); System.Single @value = *(float*)&ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.LayoutElement instance_of_this_method = (UnityEngine.UI.LayoutElement)typeof(UnityEngine.UI.LayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.minHeight = value; return __ret; } static StackObject* get_preferredWidth_8(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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.LayoutElement instance_of_this_method = (UnityEngine.UI.LayoutElement)typeof(UnityEngine.UI.LayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.preferredWidth; __ret->ObjectType = ObjectTypes.Float; *(float*)&__ret->Value = result_of_this_method; return __ret + 1; } static StackObject* set_preferredWidth_9(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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); System.Single @value = *(float*)&ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.LayoutElement instance_of_this_method = (UnityEngine.UI.LayoutElement)typeof(UnityEngine.UI.LayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.preferredWidth = value; return __ret; } static StackObject* get_preferredHeight_10(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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.LayoutElement instance_of_this_method = (UnityEngine.UI.LayoutElement)typeof(UnityEngine.UI.LayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.preferredHeight; __ret->ObjectType = ObjectTypes.Float; *(float*)&__ret->Value = result_of_this_method; return __ret + 1; } static StackObject* set_preferredHeight_11(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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); System.Single @value = *(float*)&ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.LayoutElement instance_of_this_method = (UnityEngine.UI.LayoutElement)typeof(UnityEngine.UI.LayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.preferredHeight = value; return __ret; } static StackObject* get_flexibleWidth_12(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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.LayoutElement instance_of_this_method = (UnityEngine.UI.LayoutElement)typeof(UnityEngine.UI.LayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.flexibleWidth; __ret->ObjectType = ObjectTypes.Float; *(float*)&__ret->Value = result_of_this_method; return __ret + 1; } static StackObject* set_flexibleWidth_13(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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); System.Single @value = *(float*)&ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.LayoutElement instance_of_this_method = (UnityEngine.UI.LayoutElement)typeof(UnityEngine.UI.LayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.flexibleWidth = value; return __ret; } static StackObject* get_flexibleHeight_14(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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.LayoutElement instance_of_this_method = (UnityEngine.UI.LayoutElement)typeof(UnityEngine.UI.LayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.flexibleHeight; __ret->ObjectType = ObjectTypes.Float; *(float*)&__ret->Value = result_of_this_method; return __ret + 1; } static StackObject* set_flexibleHeight_15(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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); System.Single @value = *(float*)&ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.LayoutElement instance_of_this_method = (UnityEngine.UI.LayoutElement)typeof(UnityEngine.UI.LayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.flexibleHeight = value; return __ret; } static StackObject* get_layoutPriority_16(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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.LayoutElement instance_of_this_method = (UnityEngine.UI.LayoutElement)typeof(UnityEngine.UI.LayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.layoutPriority; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method; return __ret + 1; } static StackObject* set_layoutPriority_17(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.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); System.Int32 @value = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.LayoutElement instance_of_this_method = (UnityEngine.UI.LayoutElement)typeof(UnityEngine.UI.LayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.layoutPriority = value; return __ret; } } }