FairyGUI_ScrollPane_Binding.cs 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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_ScrollPane_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.ScrollPane);
  23. args = new Type[]{typeof(System.Single), typeof(System.Boolean)};
  24. method = type.GetMethod("SetPercX", flag, null, args, null);
  25. app.RegisterCLRMethodRedirection(method, SetPercX_0);
  26. args = new Type[]{};
  27. method = type.GetMethod("ScrollTop", flag, null, args, null);
  28. app.RegisterCLRMethodRedirection(method, ScrollTop_1);
  29. args = new Type[]{typeof(System.Single)};
  30. method = type.GetMethod("set_decelerationRate", flag, null, args, null);
  31. app.RegisterCLRMethodRedirection(method, set_decelerationRate_2);
  32. args = new Type[]{typeof(System.Single), typeof(System.Boolean)};
  33. method = type.GetMethod("SetPosX", flag, null, args, null);
  34. app.RegisterCLRMethodRedirection(method, SetPosX_3);
  35. args = new Type[]{typeof(System.Single), typeof(System.Boolean)};
  36. method = type.GetMethod("SetPosY", flag, null, args, null);
  37. app.RegisterCLRMethodRedirection(method, SetPosY_4);
  38. args = new Type[]{};
  39. method = type.GetMethod("ScrollBottom", flag, null, args, null);
  40. app.RegisterCLRMethodRedirection(method, ScrollBottom_5);
  41. }
  42. static StackObject* SetPercX_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.Boolean @ani = ptr_of_this_method->Value == 1;
  49. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  50. System.Single @value = *(float*)&ptr_of_this_method->Value;
  51. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  52. FairyGUI.ScrollPane instance_of_this_method = (FairyGUI.ScrollPane)typeof(FairyGUI.ScrollPane).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  53. __intp.Free(ptr_of_this_method);
  54. instance_of_this_method.SetPercX(@value, @ani);
  55. return __ret;
  56. }
  57. static StackObject* ScrollTop_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  58. {
  59. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  60. StackObject* ptr_of_this_method;
  61. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  62. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  63. FairyGUI.ScrollPane instance_of_this_method = (FairyGUI.ScrollPane)typeof(FairyGUI.ScrollPane).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  64. __intp.Free(ptr_of_this_method);
  65. instance_of_this_method.ScrollTop();
  66. return __ret;
  67. }
  68. static StackObject* set_decelerationRate_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  69. {
  70. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  71. StackObject* ptr_of_this_method;
  72. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  73. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  74. System.Single @value = *(float*)&ptr_of_this_method->Value;
  75. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  76. FairyGUI.ScrollPane instance_of_this_method = (FairyGUI.ScrollPane)typeof(FairyGUI.ScrollPane).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  77. __intp.Free(ptr_of_this_method);
  78. instance_of_this_method.decelerationRate = value;
  79. return __ret;
  80. }
  81. static StackObject* SetPosX_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  82. {
  83. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  84. StackObject* ptr_of_this_method;
  85. StackObject* __ret = ILIntepreter.Minus(__esp, 3);
  86. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  87. System.Boolean @ani = ptr_of_this_method->Value == 1;
  88. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  89. System.Single @value = *(float*)&ptr_of_this_method->Value;
  90. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  91. FairyGUI.ScrollPane instance_of_this_method = (FairyGUI.ScrollPane)typeof(FairyGUI.ScrollPane).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  92. __intp.Free(ptr_of_this_method);
  93. instance_of_this_method.SetPosX(@value, @ani);
  94. return __ret;
  95. }
  96. static StackObject* SetPosY_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  97. {
  98. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  99. StackObject* ptr_of_this_method;
  100. StackObject* __ret = ILIntepreter.Minus(__esp, 3);
  101. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  102. System.Boolean @ani = ptr_of_this_method->Value == 1;
  103. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  104. System.Single @value = *(float*)&ptr_of_this_method->Value;
  105. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  106. FairyGUI.ScrollPane instance_of_this_method = (FairyGUI.ScrollPane)typeof(FairyGUI.ScrollPane).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  107. __intp.Free(ptr_of_this_method);
  108. instance_of_this_method.SetPosY(@value, @ani);
  109. return __ret;
  110. }
  111. static StackObject* ScrollBottom_5(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  112. {
  113. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  114. StackObject* ptr_of_this_method;
  115. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  116. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  117. FairyGUI.ScrollPane instance_of_this_method = (FairyGUI.ScrollPane)typeof(FairyGUI.ScrollPane).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  118. __intp.Free(ptr_of_this_method);
  119. instance_of_this_method.ScrollBottom();
  120. return __ret;
  121. }
  122. }
  123. }