FairyGUI_Window_Binding.cs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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_Window_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.Window);
  23. args = new Type[]{typeof(System.Boolean)};
  24. method = type.GetMethod("set_modal", flag, null, args, null);
  25. app.RegisterCLRMethodRedirection(method, set_modal_0);
  26. args = new Type[]{typeof(FairyGUI.GComponent)};
  27. method = type.GetMethod("set_contentPane", flag, null, args, null);
  28. app.RegisterCLRMethodRedirection(method, set_contentPane_1);
  29. args = new Type[]{};
  30. method = type.GetMethod("Show", flag, null, args, null);
  31. app.RegisterCLRMethodRedirection(method, Show_2);
  32. args = new Type[]{};
  33. method = type.GetMethod("Hide", flag, null, args, null);
  34. app.RegisterCLRMethodRedirection(method, Hide_3);
  35. args = new Type[]{};
  36. method = type.GetConstructor(flag, null, args, null);
  37. app.RegisterCLRMethodRedirection(method, Ctor_0);
  38. }
  39. static StackObject* set_modal_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  40. {
  41. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  42. StackObject* ptr_of_this_method;
  43. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  44. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  45. System.Boolean @value = ptr_of_this_method->Value == 1;
  46. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  47. FairyGUI.Window instance_of_this_method = (FairyGUI.Window)typeof(FairyGUI.Window).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  48. __intp.Free(ptr_of_this_method);
  49. instance_of_this_method.modal = value;
  50. return __ret;
  51. }
  52. static StackObject* set_contentPane_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  53. {
  54. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  55. StackObject* ptr_of_this_method;
  56. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  57. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  58. FairyGUI.GComponent @value = (FairyGUI.GComponent)typeof(FairyGUI.GComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  59. __intp.Free(ptr_of_this_method);
  60. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  61. FairyGUI.Window instance_of_this_method = (FairyGUI.Window)typeof(FairyGUI.Window).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  62. __intp.Free(ptr_of_this_method);
  63. instance_of_this_method.contentPane = value;
  64. return __ret;
  65. }
  66. static StackObject* Show_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  67. {
  68. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  69. StackObject* ptr_of_this_method;
  70. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  71. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  72. FairyGUI.Window instance_of_this_method = (FairyGUI.Window)typeof(FairyGUI.Window).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  73. __intp.Free(ptr_of_this_method);
  74. instance_of_this_method.Show();
  75. return __ret;
  76. }
  77. static StackObject* Hide_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  78. {
  79. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  80. StackObject* ptr_of_this_method;
  81. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  82. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  83. FairyGUI.Window instance_of_this_method = (FairyGUI.Window)typeof(FairyGUI.Window).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  84. __intp.Free(ptr_of_this_method);
  85. instance_of_this_method.Hide();
  86. return __ret;
  87. }
  88. static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  89. {
  90. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  91. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  92. var result_of_this_method = new FairyGUI.Window();
  93. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  94. }
  95. }
  96. }