FairyGUI_GComboBox_Binding.cs 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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_GComboBox_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.GComboBox);
  23. args = new Type[]{typeof(System.String[])};
  24. method = type.GetMethod("set_items", flag, null, args, null);
  25. app.RegisterCLRMethodRedirection(method, set_items_0);
  26. args = new Type[]{};
  27. method = type.GetMethod("get_onChanged", flag, null, args, null);
  28. app.RegisterCLRMethodRedirection(method, get_onChanged_1);
  29. args = new Type[]{typeof(System.String)};
  30. method = type.GetMethod("set_title", flag, null, args, null);
  31. app.RegisterCLRMethodRedirection(method, set_title_2);
  32. args = new Type[]{};
  33. method = type.GetMethod("get_selectedIndex", flag, null, args, null);
  34. app.RegisterCLRMethodRedirection(method, get_selectedIndex_3);
  35. args = new Type[]{typeof(System.Int32)};
  36. method = type.GetMethod("set_selectedIndex", flag, null, args, null);
  37. app.RegisterCLRMethodRedirection(method, set_selectedIndex_4);
  38. }
  39. static StackObject* set_items_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.String[] @value = (System.String[])typeof(System.String[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  46. __intp.Free(ptr_of_this_method);
  47. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  48. FairyGUI.GComboBox instance_of_this_method = (FairyGUI.GComboBox)typeof(FairyGUI.GComboBox).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  49. __intp.Free(ptr_of_this_method);
  50. instance_of_this_method.items = value;
  51. return __ret;
  52. }
  53. static StackObject* get_onChanged_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  54. {
  55. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  56. StackObject* ptr_of_this_method;
  57. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  58. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  59. FairyGUI.GComboBox instance_of_this_method = (FairyGUI.GComboBox)typeof(FairyGUI.GComboBox).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  60. __intp.Free(ptr_of_this_method);
  61. var result_of_this_method = instance_of_this_method.onChanged;
  62. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  63. }
  64. static StackObject* set_title_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  65. {
  66. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  67. StackObject* ptr_of_this_method;
  68. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  69. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  70. System.String @value = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  71. __intp.Free(ptr_of_this_method);
  72. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  73. FairyGUI.GComboBox instance_of_this_method = (FairyGUI.GComboBox)typeof(FairyGUI.GComboBox).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  74. __intp.Free(ptr_of_this_method);
  75. instance_of_this_method.title = value;
  76. return __ret;
  77. }
  78. static StackObject* get_selectedIndex_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  79. {
  80. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  81. StackObject* ptr_of_this_method;
  82. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  83. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  84. FairyGUI.GComboBox instance_of_this_method = (FairyGUI.GComboBox)typeof(FairyGUI.GComboBox).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  85. __intp.Free(ptr_of_this_method);
  86. var result_of_this_method = instance_of_this_method.selectedIndex;
  87. __ret->ObjectType = ObjectTypes.Integer;
  88. __ret->Value = result_of_this_method;
  89. return __ret + 1;
  90. }
  91. static StackObject* set_selectedIndex_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  92. {
  93. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  94. StackObject* ptr_of_this_method;
  95. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  96. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  97. System.Int32 @value = ptr_of_this_method->Value;
  98. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  99. FairyGUI.GComboBox instance_of_this_method = (FairyGUI.GComboBox)typeof(FairyGUI.GComboBox).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  100. __intp.Free(ptr_of_this_method);
  101. instance_of_this_method.selectedIndex = value;
  102. return __ret;
  103. }
  104. }
  105. }