Vuplex_WebView_CanvasKeyboardWrap.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class Vuplex_WebView_CanvasKeyboardWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(Vuplex.WebView.CanvasKeyboard), typeof(Vuplex.WebView.BaseKeyboard), "CanvasKeyboard");
  9. L.RegFunction("__eq", op_Equality);
  10. L.RegFunction("__tostring", ToLua.op_ToString);
  11. L.RegVar("InitialResolution", get_InitialResolution, set_InitialResolution);
  12. L.RegVar("WebViewPrefab", get_WebViewPrefab, null);
  13. L.EndClass();
  14. }
  15. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  16. static int op_Equality(IntPtr L)
  17. {
  18. try
  19. {
  20. ToLua.CheckArgsCount(L, 2);
  21. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  22. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  23. bool o = arg0 == arg1;
  24. LuaDLL.lua_pushboolean(L, o);
  25. return 1;
  26. }
  27. catch (Exception e)
  28. {
  29. return LuaDLL.toluaL_exception(L, e);
  30. }
  31. }
  32. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  33. static int get_InitialResolution(IntPtr L)
  34. {
  35. object o = null;
  36. try
  37. {
  38. o = ToLua.ToObject(L, 1);
  39. Vuplex.WebView.CanvasKeyboard obj = (Vuplex.WebView.CanvasKeyboard)o;
  40. float ret = obj.InitialResolution;
  41. LuaDLL.lua_pushnumber(L, ret);
  42. return 1;
  43. }
  44. catch(Exception e)
  45. {
  46. return LuaDLL.toluaL_exception(L, e, o, "attempt to index InitialResolution on a nil value");
  47. }
  48. }
  49. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  50. static int get_WebViewPrefab(IntPtr L)
  51. {
  52. object o = null;
  53. try
  54. {
  55. o = ToLua.ToObject(L, 1);
  56. Vuplex.WebView.CanvasKeyboard obj = (Vuplex.WebView.CanvasKeyboard)o;
  57. Vuplex.WebView.CanvasWebViewPrefab ret = obj.WebViewPrefab;
  58. ToLua.Push(L, ret);
  59. return 1;
  60. }
  61. catch(Exception e)
  62. {
  63. return LuaDLL.toluaL_exception(L, e, o, "attempt to index WebViewPrefab on a nil value");
  64. }
  65. }
  66. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  67. static int set_InitialResolution(IntPtr L)
  68. {
  69. object o = null;
  70. try
  71. {
  72. o = ToLua.ToObject(L, 1);
  73. Vuplex.WebView.CanvasKeyboard obj = (Vuplex.WebView.CanvasKeyboard)o;
  74. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  75. obj.InitialResolution = arg0;
  76. return 0;
  77. }
  78. catch(Exception e)
  79. {
  80. return LuaDLL.toluaL_exception(L, e, o, "attempt to index InitialResolution on a nil value");
  81. }
  82. }
  83. }