FairyGUI_GTextField_Binding.cs 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Reflection;
  5. using System.Runtime.InteropServices;
  6. using ILRuntime.CLR.TypeSystem;
  7. using ILRuntime.CLR.Method;
  8. using ILRuntime.Runtime.Enviorment;
  9. using ILRuntime.Runtime.Intepreter;
  10. using ILRuntime.Runtime.Stack;
  11. using ILRuntime.Reflection;
  12. using ILRuntime.CLR.Utils;
  13. namespace ILRuntime.Runtime.Generated
  14. {
  15. unsafe class FairyGUI_GTextField_Binding
  16. {
  17. public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
  18. {
  19. BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
  20. MethodBase method;
  21. Type[] args;
  22. Type type = typeof(FairyGUI.GTextField);
  23. args = new Type[]{typeof(System.String), typeof(System.String)};
  24. method = type.GetMethod("SetVar", flag, null, args, null);
  25. app.RegisterCLRMethodRedirection(method, SetVar_0);
  26. args = new Type[]{};
  27. method = type.GetMethod("FlushVars", flag, null, args, null);
  28. app.RegisterCLRMethodRedirection(method, FlushVars_1);
  29. args = new Type[]{};
  30. method = type.GetMethod("get_textHeight", flag, null, args, null);
  31. app.RegisterCLRMethodRedirection(method, get_textHeight_2);
  32. args = new Type[]{};
  33. method = type.GetMethod("get_textFormat", flag, null, args, null);
  34. app.RegisterCLRMethodRedirection(method, get_textFormat_3);
  35. args = new Type[]{typeof(FairyGUI.AlignType)};
  36. method = type.GetMethod("set_align", flag, null, args, null);
  37. app.RegisterCLRMethodRedirection(method, set_align_4);
  38. args = new Type[]{typeof(FairyGUI.TextFormat)};
  39. method = type.GetMethod("set_textFormat", flag, null, args, null);
  40. app.RegisterCLRMethodRedirection(method, set_textFormat_5);
  41. }
  42. static StackObject* SetVar_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  43. {
  44. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  45. StackObject* ptr_of_this_method;
  46. StackObject* __ret = ILIntepreter.Minus(__esp, 3);
  47. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  48. System.String @value = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  49. __intp.Free(ptr_of_this_method);
  50. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  51. System.String @name = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  52. __intp.Free(ptr_of_this_method);
  53. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  54. FairyGUI.GTextField instance_of_this_method = (FairyGUI.GTextField)typeof(FairyGUI.GTextField).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  55. __intp.Free(ptr_of_this_method);
  56. var result_of_this_method = instance_of_this_method.SetVar(@name, @value);
  57. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  58. }
  59. static StackObject* FlushVars_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  60. {
  61. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  62. StackObject* ptr_of_this_method;
  63. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  64. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  65. FairyGUI.GTextField instance_of_this_method = (FairyGUI.GTextField)typeof(FairyGUI.GTextField).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  66. __intp.Free(ptr_of_this_method);
  67. instance_of_this_method.FlushVars();
  68. return __ret;
  69. }
  70. static StackObject* get_textHeight_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  71. {
  72. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  73. StackObject* ptr_of_this_method;
  74. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  75. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  76. FairyGUI.GTextField instance_of_this_method = (FairyGUI.GTextField)typeof(FairyGUI.GTextField).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  77. __intp.Free(ptr_of_this_method);
  78. var result_of_this_method = instance_of_this_method.textHeight;
  79. __ret->ObjectType = ObjectTypes.Float;
  80. *(float*)&__ret->Value = result_of_this_method;
  81. return __ret + 1;
  82. }
  83. static StackObject* get_textFormat_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  84. {
  85. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  86. StackObject* ptr_of_this_method;
  87. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  88. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  89. FairyGUI.GTextField instance_of_this_method = (FairyGUI.GTextField)typeof(FairyGUI.GTextField).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  90. __intp.Free(ptr_of_this_method);
  91. var result_of_this_method = instance_of_this_method.textFormat;
  92. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  93. }
  94. static StackObject* set_align_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  95. {
  96. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  97. StackObject* ptr_of_this_method;
  98. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  99. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  100. FairyGUI.AlignType @value = (FairyGUI.AlignType)typeof(FairyGUI.AlignType).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  101. __intp.Free(ptr_of_this_method);
  102. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  103. FairyGUI.GTextField instance_of_this_method = (FairyGUI.GTextField)typeof(FairyGUI.GTextField).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  104. __intp.Free(ptr_of_this_method);
  105. instance_of_this_method.align = value;
  106. return __ret;
  107. }
  108. static StackObject* set_textFormat_5(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  109. {
  110. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  111. StackObject* ptr_of_this_method;
  112. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  113. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  114. FairyGUI.TextFormat @value = (FairyGUI.TextFormat)typeof(FairyGUI.TextFormat).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  115. __intp.Free(ptr_of_this_method);
  116. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  117. FairyGUI.GTextField instance_of_this_method = (FairyGUI.GTextField)typeof(FairyGUI.GTextField).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  118. __intp.Free(ptr_of_this_method);
  119. instance_of_this_method.textFormat = value;
  120. return __ret;
  121. }
  122. }
  123. }