Vuplex_WebView_BaseWebViewPrefabWrap.cs 17 KB

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