Vuplex_WebView_BaseWebViewPrefabWrap.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class Vuplex_WebView_BaseWebViewPrefabWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(Vuplex.WebView.BaseWebViewPrefab), typeof(UnityEngine.MonoBehaviour));
  9. L.RegFunction("Destroy", Destroy);
  10. L.RegFunction("SetCutoutRect", SetCutoutRect);
  11. L.RegFunction("SetPointerInputDetector", SetPointerInputDetector);
  12. L.RegFunction("WaitUntilInitialized", WaitUntilInitialized);
  13. L.RegFunction("__eq", op_Equality);
  14. L.RegFunction("__tostring", ToLua.op_ToString);
  15. L.RegVar("InitialUrl", get_InitialUrl, set_InitialUrl);
  16. L.RegVar("DragMode", get_DragMode, set_DragMode);
  17. L.RegVar("ClickingEnabled", get_ClickingEnabled, set_ClickingEnabled);
  18. L.RegVar("HoveringEnabled", get_HoveringEnabled, set_HoveringEnabled);
  19. L.RegVar("ScrollingEnabled", get_ScrollingEnabled, set_ScrollingEnabled);
  20. L.RegVar("DragThreshold", get_DragThreshold, set_DragThreshold);
  21. L.RegVar("RemoteDebuggingEnabled", get_RemoteDebuggingEnabled, set_RemoteDebuggingEnabled);
  22. L.RegVar("LogConsoleMessages", get_LogConsoleMessages, set_LogConsoleMessages);
  23. L.RegVar("Material", get_Material, set_Material);
  24. L.RegVar("Visible", get_Visible, set_Visible);
  25. L.RegVar("WebView", get_WebView, null);
  26. L.RegVar("Clicked", get_Clicked, set_Clicked);
  27. L.RegVar("Initialized", get_Initialized, set_Initialized);
  28. L.RegVar("Scrolled", get_Scrolled, set_Scrolled);
  29. L.EndClass();
  30. }
  31. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  32. static int Destroy(IntPtr L)
  33. {
  34. try
  35. {
  36. ToLua.CheckArgsCount(L, 1);
  37. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject<Vuplex.WebView.BaseWebViewPrefab>(L, 1);
  38. obj.Destroy();
  39. return 0;
  40. }
  41. catch (Exception e)
  42. {
  43. return LuaDLL.toluaL_exception(L, e);
  44. }
  45. }
  46. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  47. static int SetCutoutRect(IntPtr L)
  48. {
  49. try
  50. {
  51. ToLua.CheckArgsCount(L, 2);
  52. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject<Vuplex.WebView.BaseWebViewPrefab>(L, 1);
  53. UnityEngine.Rect arg0 = StackTraits<UnityEngine.Rect>.Check(L, 2);
  54. obj.SetCutoutRect(arg0);
  55. return 0;
  56. }
  57. catch (Exception e)
  58. {
  59. return LuaDLL.toluaL_exception(L, e);
  60. }
  61. }
  62. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  63. static int SetPointerInputDetector(IntPtr L)
  64. {
  65. try
  66. {
  67. ToLua.CheckArgsCount(L, 2);
  68. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject<Vuplex.WebView.BaseWebViewPrefab>(L, 1);
  69. Vuplex.WebView.IPointerInputDetector arg0 = (Vuplex.WebView.IPointerInputDetector)ToLua.CheckObject<Vuplex.WebView.IPointerInputDetector>(L, 2);
  70. obj.SetPointerInputDetector(arg0);
  71. return 0;
  72. }
  73. catch (Exception e)
  74. {
  75. return LuaDLL.toluaL_exception(L, e);
  76. }
  77. }
  78. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  79. static int WaitUntilInitialized(IntPtr L)
  80. {
  81. try
  82. {
  83. ToLua.CheckArgsCount(L, 1);
  84. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject<Vuplex.WebView.BaseWebViewPrefab>(L, 1);
  85. System.Threading.Tasks.Task o = obj.WaitUntilInitialized();
  86. ToLua.PushObject(L, o);
  87. return 1;
  88. }
  89. catch (Exception e)
  90. {
  91. return LuaDLL.toluaL_exception(L, e);
  92. }
  93. }
  94. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  95. static int op_Equality(IntPtr L)
  96. {
  97. try
  98. {
  99. ToLua.CheckArgsCount(L, 2);
  100. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  101. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  102. bool o = arg0 == arg1;
  103. LuaDLL.lua_pushboolean(L, o);
  104. return 1;
  105. }
  106. catch (Exception e)
  107. {
  108. return LuaDLL.toluaL_exception(L, e);
  109. }
  110. }
  111. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  112. static int get_InitialUrl(IntPtr L)
  113. {
  114. object o = null;
  115. try
  116. {
  117. o = ToLua.ToObject(L, 1);
  118. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  119. string ret = obj.InitialUrl;
  120. LuaDLL.lua_pushstring(L, ret);
  121. return 1;
  122. }
  123. catch(Exception e)
  124. {
  125. return LuaDLL.toluaL_exception(L, e, o, "attempt to index InitialUrl on a nil value");
  126. }
  127. }
  128. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  129. static int get_DragMode(IntPtr L)
  130. {
  131. object o = null;
  132. try
  133. {
  134. o = ToLua.ToObject(L, 1);
  135. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  136. Vuplex.WebView.DragMode ret = obj.DragMode;
  137. ToLua.Push(L, ret);
  138. return 1;
  139. }
  140. catch(Exception e)
  141. {
  142. return LuaDLL.toluaL_exception(L, e, o, "attempt to index DragMode on a nil value");
  143. }
  144. }
  145. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  146. static int get_ClickingEnabled(IntPtr L)
  147. {
  148. object o = null;
  149. try
  150. {
  151. o = ToLua.ToObject(L, 1);
  152. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  153. bool ret = obj.ClickingEnabled;
  154. LuaDLL.lua_pushboolean(L, ret);
  155. return 1;
  156. }
  157. catch(Exception e)
  158. {
  159. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ClickingEnabled on a nil value");
  160. }
  161. }
  162. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  163. static int get_HoveringEnabled(IntPtr L)
  164. {
  165. object o = null;
  166. try
  167. {
  168. o = ToLua.ToObject(L, 1);
  169. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  170. bool ret = obj.HoveringEnabled;
  171. LuaDLL.lua_pushboolean(L, ret);
  172. return 1;
  173. }
  174. catch(Exception e)
  175. {
  176. return LuaDLL.toluaL_exception(L, e, o, "attempt to index HoveringEnabled on a nil value");
  177. }
  178. }
  179. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  180. static int get_ScrollingEnabled(IntPtr L)
  181. {
  182. object o = null;
  183. try
  184. {
  185. o = ToLua.ToObject(L, 1);
  186. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  187. bool ret = obj.ScrollingEnabled;
  188. LuaDLL.lua_pushboolean(L, ret);
  189. return 1;
  190. }
  191. catch(Exception e)
  192. {
  193. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScrollingEnabled on a nil value");
  194. }
  195. }
  196. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  197. static int get_DragThreshold(IntPtr L)
  198. {
  199. object o = null;
  200. try
  201. {
  202. o = ToLua.ToObject(L, 1);
  203. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  204. float ret = obj.DragThreshold;
  205. LuaDLL.lua_pushnumber(L, ret);
  206. return 1;
  207. }
  208. catch(Exception e)
  209. {
  210. return LuaDLL.toluaL_exception(L, e, o, "attempt to index DragThreshold on a nil value");
  211. }
  212. }
  213. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  214. static int get_RemoteDebuggingEnabled(IntPtr L)
  215. {
  216. object o = null;
  217. try
  218. {
  219. o = ToLua.ToObject(L, 1);
  220. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  221. bool ret = obj.RemoteDebuggingEnabled;
  222. LuaDLL.lua_pushboolean(L, ret);
  223. return 1;
  224. }
  225. catch(Exception e)
  226. {
  227. return LuaDLL.toluaL_exception(L, e, o, "attempt to index RemoteDebuggingEnabled on a nil value");
  228. }
  229. }
  230. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  231. static int get_LogConsoleMessages(IntPtr L)
  232. {
  233. object o = null;
  234. try
  235. {
  236. o = ToLua.ToObject(L, 1);
  237. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  238. bool ret = obj.LogConsoleMessages;
  239. LuaDLL.lua_pushboolean(L, ret);
  240. return 1;
  241. }
  242. catch(Exception e)
  243. {
  244. return LuaDLL.toluaL_exception(L, e, o, "attempt to index LogConsoleMessages on a nil value");
  245. }
  246. }
  247. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  248. static int get_Material(IntPtr L)
  249. {
  250. object o = null;
  251. try
  252. {
  253. o = ToLua.ToObject(L, 1);
  254. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  255. UnityEngine.Material ret = obj.Material;
  256. ToLua.Push(L, ret);
  257. return 1;
  258. }
  259. catch(Exception e)
  260. {
  261. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Material on a nil value");
  262. }
  263. }
  264. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  265. static int get_Visible(IntPtr L)
  266. {
  267. object o = null;
  268. try
  269. {
  270. o = ToLua.ToObject(L, 1);
  271. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  272. bool ret = obj.Visible;
  273. LuaDLL.lua_pushboolean(L, ret);
  274. return 1;
  275. }
  276. catch(Exception e)
  277. {
  278. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Visible on a nil value");
  279. }
  280. }
  281. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  282. static int get_WebView(IntPtr L)
  283. {
  284. object o = null;
  285. try
  286. {
  287. o = ToLua.ToObject(L, 1);
  288. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  289. Vuplex.WebView.IWebView ret = obj.WebView;
  290. ToLua.PushObject(L, ret);
  291. return 1;
  292. }
  293. catch(Exception e)
  294. {
  295. return LuaDLL.toluaL_exception(L, e, o, "attempt to index WebView on a nil value");
  296. }
  297. }
  298. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  299. static int get_Clicked(IntPtr L)
  300. {
  301. ToLua.Push(L, new EventObject(typeof(System.EventHandler<Vuplex.WebView.ClickedEventArgs>)));
  302. return 1;
  303. }
  304. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  305. static int get_Initialized(IntPtr L)
  306. {
  307. ToLua.Push(L, new EventObject(typeof(System.EventHandler)));
  308. return 1;
  309. }
  310. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  311. static int get_Scrolled(IntPtr L)
  312. {
  313. ToLua.Push(L, new EventObject(typeof(System.EventHandler<Vuplex.WebView.ScrolledEventArgs>)));
  314. return 1;
  315. }
  316. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  317. static int set_InitialUrl(IntPtr L)
  318. {
  319. object o = null;
  320. try
  321. {
  322. o = ToLua.ToObject(L, 1);
  323. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  324. string arg0 = ToLua.CheckString(L, 2);
  325. obj.InitialUrl = arg0;
  326. return 0;
  327. }
  328. catch(Exception e)
  329. {
  330. return LuaDLL.toluaL_exception(L, e, o, "attempt to index InitialUrl on a nil value");
  331. }
  332. }
  333. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  334. static int set_DragMode(IntPtr L)
  335. {
  336. object o = null;
  337. try
  338. {
  339. o = ToLua.ToObject(L, 1);
  340. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  341. Vuplex.WebView.DragMode arg0 = (Vuplex.WebView.DragMode)ToLua.CheckObject(L, 2, typeof(Vuplex.WebView.DragMode));
  342. obj.DragMode = arg0;
  343. return 0;
  344. }
  345. catch(Exception e)
  346. {
  347. return LuaDLL.toluaL_exception(L, e, o, "attempt to index DragMode on a nil value");
  348. }
  349. }
  350. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  351. static int set_ClickingEnabled(IntPtr L)
  352. {
  353. object o = null;
  354. try
  355. {
  356. o = ToLua.ToObject(L, 1);
  357. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  358. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  359. obj.ClickingEnabled = arg0;
  360. return 0;
  361. }
  362. catch(Exception e)
  363. {
  364. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ClickingEnabled on a nil value");
  365. }
  366. }
  367. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  368. static int set_HoveringEnabled(IntPtr L)
  369. {
  370. object o = null;
  371. try
  372. {
  373. o = ToLua.ToObject(L, 1);
  374. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  375. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  376. obj.HoveringEnabled = arg0;
  377. return 0;
  378. }
  379. catch(Exception e)
  380. {
  381. return LuaDLL.toluaL_exception(L, e, o, "attempt to index HoveringEnabled on a nil value");
  382. }
  383. }
  384. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  385. static int set_ScrollingEnabled(IntPtr L)
  386. {
  387. object o = null;
  388. try
  389. {
  390. o = ToLua.ToObject(L, 1);
  391. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  392. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  393. obj.ScrollingEnabled = arg0;
  394. return 0;
  395. }
  396. catch(Exception e)
  397. {
  398. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScrollingEnabled on a nil value");
  399. }
  400. }
  401. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  402. static int set_DragThreshold(IntPtr L)
  403. {
  404. object o = null;
  405. try
  406. {
  407. o = ToLua.ToObject(L, 1);
  408. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  409. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  410. obj.DragThreshold = arg0;
  411. return 0;
  412. }
  413. catch(Exception e)
  414. {
  415. return LuaDLL.toluaL_exception(L, e, o, "attempt to index DragThreshold on a nil value");
  416. }
  417. }
  418. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  419. static int set_RemoteDebuggingEnabled(IntPtr L)
  420. {
  421. object o = null;
  422. try
  423. {
  424. o = ToLua.ToObject(L, 1);
  425. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  426. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  427. obj.RemoteDebuggingEnabled = arg0;
  428. return 0;
  429. }
  430. catch(Exception e)
  431. {
  432. return LuaDLL.toluaL_exception(L, e, o, "attempt to index RemoteDebuggingEnabled on a nil value");
  433. }
  434. }
  435. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  436. static int set_LogConsoleMessages(IntPtr L)
  437. {
  438. object o = null;
  439. try
  440. {
  441. o = ToLua.ToObject(L, 1);
  442. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  443. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  444. obj.LogConsoleMessages = arg0;
  445. return 0;
  446. }
  447. catch(Exception e)
  448. {
  449. return LuaDLL.toluaL_exception(L, e, o, "attempt to index LogConsoleMessages on a nil value");
  450. }
  451. }
  452. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  453. static int set_Material(IntPtr L)
  454. {
  455. object o = null;
  456. try
  457. {
  458. o = ToLua.ToObject(L, 1);
  459. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  460. UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckObject<UnityEngine.Material>(L, 2);
  461. obj.Material = arg0;
  462. return 0;
  463. }
  464. catch(Exception e)
  465. {
  466. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Material on a nil value");
  467. }
  468. }
  469. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  470. static int set_Visible(IntPtr L)
  471. {
  472. object o = null;
  473. try
  474. {
  475. o = ToLua.ToObject(L, 1);
  476. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
  477. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  478. obj.Visible = arg0;
  479. return 0;
  480. }
  481. catch(Exception e)
  482. {
  483. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Visible on a nil value");
  484. }
  485. }
  486. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  487. static int set_Clicked(IntPtr L)
  488. {
  489. try
  490. {
  491. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject(L, 1, typeof(Vuplex.WebView.BaseWebViewPrefab));
  492. EventObject arg0 = null;
  493. if (LuaDLL.lua_isuserdata(L, 2) != 0)
  494. {
  495. arg0 = (EventObject)ToLua.ToObject(L, 2);
  496. }
  497. else
  498. {
  499. return LuaDLL.luaL_throw(L, "The event 'Vuplex.WebView.BaseWebViewPrefab.Clicked' can only appear on the left hand side of += or -= when used outside of the type 'Vuplex.WebView.BaseWebViewPrefab'");
  500. }
  501. if (arg0.op == EventOp.Add)
  502. {
  503. System.EventHandler<Vuplex.WebView.ClickedEventArgs> ev = (System.EventHandler<Vuplex.WebView.ClickedEventArgs>)arg0.func;
  504. obj.Clicked += ev;
  505. }
  506. else if (arg0.op == EventOp.Sub)
  507. {
  508. System.EventHandler<Vuplex.WebView.ClickedEventArgs> ev = (System.EventHandler<Vuplex.WebView.ClickedEventArgs>)arg0.func;
  509. obj.Clicked -= ev;
  510. }
  511. return 0;
  512. }
  513. catch (Exception e)
  514. {
  515. return LuaDLL.toluaL_exception(L, e);
  516. }
  517. }
  518. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  519. static int set_Initialized(IntPtr L)
  520. {
  521. try
  522. {
  523. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject(L, 1, typeof(Vuplex.WebView.BaseWebViewPrefab));
  524. EventObject arg0 = null;
  525. if (LuaDLL.lua_isuserdata(L, 2) != 0)
  526. {
  527. arg0 = (EventObject)ToLua.ToObject(L, 2);
  528. }
  529. else
  530. {
  531. return LuaDLL.luaL_throw(L, "The event 'Vuplex.WebView.BaseWebViewPrefab.Initialized' can only appear on the left hand side of += or -= when used outside of the type 'Vuplex.WebView.BaseWebViewPrefab'");
  532. }
  533. if (arg0.op == EventOp.Add)
  534. {
  535. System.EventHandler ev = (System.EventHandler)arg0.func;
  536. obj.Initialized += ev;
  537. }
  538. else if (arg0.op == EventOp.Sub)
  539. {
  540. System.EventHandler ev = (System.EventHandler)arg0.func;
  541. obj.Initialized -= ev;
  542. }
  543. return 0;
  544. }
  545. catch (Exception e)
  546. {
  547. return LuaDLL.toluaL_exception(L, e);
  548. }
  549. }
  550. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  551. static int set_Scrolled(IntPtr L)
  552. {
  553. try
  554. {
  555. Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject(L, 1, typeof(Vuplex.WebView.BaseWebViewPrefab));
  556. EventObject arg0 = null;
  557. if (LuaDLL.lua_isuserdata(L, 2) != 0)
  558. {
  559. arg0 = (EventObject)ToLua.ToObject(L, 2);
  560. }
  561. else
  562. {
  563. return LuaDLL.luaL_throw(L, "The event 'Vuplex.WebView.BaseWebViewPrefab.Scrolled' can only appear on the left hand side of += or -= when used outside of the type 'Vuplex.WebView.BaseWebViewPrefab'");
  564. }
  565. if (arg0.op == EventOp.Add)
  566. {
  567. System.EventHandler<Vuplex.WebView.ScrolledEventArgs> ev = (System.EventHandler<Vuplex.WebView.ScrolledEventArgs>)arg0.func;
  568. obj.Scrolled += ev;
  569. }
  570. else if (arg0.op == EventOp.Sub)
  571. {
  572. System.EventHandler<Vuplex.WebView.ScrolledEventArgs> ev = (System.EventHandler<Vuplex.WebView.ScrolledEventArgs>)arg0.func;
  573. obj.Scrolled -= ev;
  574. }
  575. return 0;
  576. }
  577. catch (Exception e)
  578. {
  579. return LuaDLL.toluaL_exception(L, e);
  580. }
  581. }
  582. }