/Mantis 2/CEGUI/inc/cegui/src/ScriptingModules/LuaScriptModule/lua_CEGUI.cpp

https://bitbucket.org/ahernandez52/school-mantis-2 · C++ · 1648 lines · 1485 code · 110 blank · 53 comment · 67 complexity · f3569abd78b8654af6bf5516d3bc7c58 MD5 · raw file

  1. /*
  2. ** Lua binding: CEGUI
  3. ** Generated automatically by tolua++-1.0.93 on Sat Aug 18 11:49:59 2012.
  4. */
  5. #ifndef __cplusplus
  6. #include "stdlib.h"
  7. #endif
  8. #include "string.h"
  9. #include "tolua++.h"
  10. /* Exported function */
  11. int tolua_CEGUI_open (lua_State* tolua_S);
  12. #include "required.h"
  13. #include "CEGUIPropertyHelper.h"
  14. /* function to release collected object via destructor */
  15. #ifdef __cplusplus
  16. static int tolua_collect_CEGUI__Image (lua_State* tolua_S)
  17. {
  18. CEGUI::Image* self = (CEGUI::Image*) tolua_tousertype(tolua_S,1,0);
  19. delete self;
  20. return 0;
  21. }
  22. static int tolua_collect_CEGUI__SchemeIterator (lua_State* tolua_S)
  23. {
  24. CEGUI::SchemeIterator* self = (CEGUI::SchemeIterator*) tolua_tousertype(tolua_S,1,0);
  25. delete self;
  26. return 0;
  27. }
  28. static int tolua_collect_CEGUI__WidgetDim (lua_State* tolua_S)
  29. {
  30. CEGUI::WidgetDim* self = (CEGUI::WidgetDim*) tolua_tousertype(tolua_S,1,0);
  31. delete self;
  32. return 0;
  33. }
  34. static int tolua_collect_CEGUI__FalagardWindowMapping (lua_State* tolua_S)
  35. {
  36. CEGUI::FalagardWindowMapping* self = (CEGUI::FalagardWindowMapping*) tolua_tousertype(tolua_S,1,0);
  37. delete self;
  38. return 0;
  39. }
  40. static int tolua_collect_CEGUI__MouseEventArgs (lua_State* tolua_S)
  41. {
  42. CEGUI::MouseEventArgs* self = (CEGUI::MouseEventArgs*) tolua_tousertype(tolua_S,1,0);
  43. delete self;
  44. return 0;
  45. }
  46. static int tolua_collect_CEGUI__ImageIterator (lua_State* tolua_S)
  47. {
  48. CEGUI::ImageIterator* self = (CEGUI::ImageIterator*) tolua_tousertype(tolua_S,1,0);
  49. delete self;
  50. return 0;
  51. }
  52. static int tolua_collect_CEGUI__ImagesetIterator (lua_State* tolua_S)
  53. {
  54. CEGUI::ImagesetIterator* self = (CEGUI::ImagesetIterator*) tolua_tousertype(tolua_S,1,0);
  55. delete self;
  56. return 0;
  57. }
  58. static int tolua_collect_CEGUI__Dimension (lua_State* tolua_S)
  59. {
  60. CEGUI::Dimension* self = (CEGUI::Dimension*) tolua_tousertype(tolua_S,1,0);
  61. delete self;
  62. return 0;
  63. }
  64. static int tolua_collect_CEGUI__WidgetLookFeel (lua_State* tolua_S)
  65. {
  66. CEGUI::WidgetLookFeel* self = (CEGUI::WidgetLookFeel*) tolua_tousertype(tolua_S,1,0);
  67. delete self;
  68. return 0;
  69. }
  70. static int tolua_collect_CEGUI__DragDropEventArgs (lua_State* tolua_S)
  71. {
  72. CEGUI::DragDropEventArgs* self = (CEGUI::DragDropEventArgs*) tolua_tousertype(tolua_S,1,0);
  73. delete self;
  74. return 0;
  75. }
  76. static int tolua_collect_CEGUI__FileStream (lua_State* tolua_S)
  77. {
  78. CEGUI::FileStream* self = (CEGUI::FileStream*) tolua_tousertype(tolua_S,1,0);
  79. delete self;
  80. return 0;
  81. }
  82. static int tolua_collect_CEGUI__UBox (lua_State* tolua_S)
  83. {
  84. CEGUI::UBox* self = (CEGUI::UBox*) tolua_tousertype(tolua_S,1,0);
  85. delete self;
  86. return 0;
  87. }
  88. static int tolua_collect_CEGUI__WidgetLookManager (lua_State* tolua_S)
  89. {
  90. CEGUI::WidgetLookManager* self = (CEGUI::WidgetLookManager*) tolua_tousertype(tolua_S,1,0);
  91. delete self;
  92. return 0;
  93. }
  94. static int tolua_collect_CEGUI__FrameComponent (lua_State* tolua_S)
  95. {
  96. CEGUI::FrameComponent* self = (CEGUI::FrameComponent*) tolua_tousertype(tolua_S,1,0);
  97. delete self;
  98. return 0;
  99. }
  100. static int tolua_collect_CEGUI__LayerSpecification (lua_State* tolua_S)
  101. {
  102. CEGUI::LayerSpecification* self = (CEGUI::LayerSpecification*) tolua_tousertype(tolua_S,1,0);
  103. delete self;
  104. return 0;
  105. }
  106. static int tolua_collect_CEGUI__SectionSpecification (lua_State* tolua_S)
  107. {
  108. CEGUI::SectionSpecification* self = (CEGUI::SectionSpecification*) tolua_tousertype(tolua_S,1,0);
  109. delete self;
  110. return 0;
  111. }
  112. static int tolua_collect_CEGUI__ImagerySection (lua_State* tolua_S)
  113. {
  114. CEGUI::ImagerySection* self = (CEGUI::ImagerySection*) tolua_tousertype(tolua_S,1,0);
  115. delete self;
  116. return 0;
  117. }
  118. static int tolua_collect_CEGUI__ColourRect (lua_State* tolua_S)
  119. {
  120. CEGUI::ColourRect* self = (CEGUI::ColourRect*) tolua_tousertype(tolua_S,1,0);
  121. delete self;
  122. return 0;
  123. }
  124. static int tolua_collect_CEGUI__TextComponent (lua_State* tolua_S)
  125. {
  126. CEGUI::TextComponent* self = (CEGUI::TextComponent*) tolua_tousertype(tolua_S,1,0);
  127. delete self;
  128. return 0;
  129. }
  130. static int tolua_collect_CEGUI__TreeEventArgs (lua_State* tolua_S)
  131. {
  132. CEGUI::TreeEventArgs* self = (CEGUI::TreeEventArgs*) tolua_tousertype(tolua_S,1,0);
  133. delete self;
  134. return 0;
  135. }
  136. static int tolua_collect_CEGUI__StateImagery (lua_State* tolua_S)
  137. {
  138. CEGUI::StateImagery* self = (CEGUI::StateImagery*) tolua_tousertype(tolua_S,1,0);
  139. delete self;
  140. return 0;
  141. }
  142. static int tolua_collect_CEGUI__EventConnection (lua_State* tolua_S)
  143. {
  144. CEGUI::EventConnection* self = (CEGUI::EventConnection*) tolua_tousertype(tolua_S,1,0);
  145. delete self;
  146. return 0;
  147. }
  148. static int tolua_collect_CEGUI__PropertyLinkDefinition (lua_State* tolua_S)
  149. {
  150. CEGUI::PropertyLinkDefinition* self = (CEGUI::PropertyLinkDefinition*) tolua_tousertype(tolua_S,1,0);
  151. delete self;
  152. return 0;
  153. }
  154. static int tolua_collect_CEGUI__PropertyInitialiser (lua_State* tolua_S)
  155. {
  156. CEGUI::PropertyInitialiser* self = (CEGUI::PropertyInitialiser*) tolua_tousertype(tolua_S,1,0);
  157. delete self;
  158. return 0;
  159. }
  160. static int tolua_collect_CEGUI__Vector2 (lua_State* tolua_S)
  161. {
  162. CEGUI::Vector2* self = (CEGUI::Vector2*) tolua_tousertype(tolua_S,1,0);
  163. delete self;
  164. return 0;
  165. }
  166. static int tolua_collect_CEGUI__String (lua_State* tolua_S)
  167. {
  168. CEGUI::String* self = (CEGUI::String*) tolua_tousertype(tolua_S,1,0);
  169. delete self;
  170. return 0;
  171. }
  172. static int tolua_collect_CEGUI__NamedArea (lua_State* tolua_S)
  173. {
  174. CEGUI::NamedArea* self = (CEGUI::NamedArea*) tolua_tousertype(tolua_S,1,0);
  175. delete self;
  176. return 0;
  177. }
  178. static int tolua_collect_CEGUI__PropertyDefinition (lua_State* tolua_S)
  179. {
  180. CEGUI::PropertyDefinition* self = (CEGUI::PropertyDefinition*) tolua_tousertype(tolua_S,1,0);
  181. delete self;
  182. return 0;
  183. }
  184. static int tolua_collect_CEGUI__ComponentArea (lua_State* tolua_S)
  185. {
  186. CEGUI::ComponentArea* self = (CEGUI::ComponentArea*) tolua_tousertype(tolua_S,1,0);
  187. delete self;
  188. return 0;
  189. }
  190. static int tolua_collect_CEGUI__EventIterator (lua_State* tolua_S)
  191. {
  192. CEGUI::EventIterator* self = (CEGUI::EventIterator*) tolua_tousertype(tolua_S,1,0);
  193. delete self;
  194. return 0;
  195. }
  196. static int tolua_collect_CEGUI__WindowIterator (lua_State* tolua_S)
  197. {
  198. CEGUI::WindowIterator* self = (CEGUI::WindowIterator*) tolua_tousertype(tolua_S,1,0);
  199. delete self;
  200. return 0;
  201. }
  202. static int tolua_collect_CEGUI__WindowFactoryIterator (lua_State* tolua_S)
  203. {
  204. CEGUI::WindowFactoryIterator* self = (CEGUI::WindowFactoryIterator*) tolua_tousertype(tolua_S,1,0);
  205. delete self;
  206. return 0;
  207. }
  208. static int tolua_collect_CEGUI__Size (lua_State* tolua_S)
  209. {
  210. CEGUI::Size* self = (CEGUI::Size*) tolua_tousertype(tolua_S,1,0);
  211. delete self;
  212. return 0;
  213. }
  214. static int tolua_collect_CEGUI__FontIterator (lua_State* tolua_S)
  215. {
  216. CEGUI::FontIterator* self = (CEGUI::FontIterator*) tolua_tousertype(tolua_S,1,0);
  217. delete self;
  218. return 0;
  219. }
  220. static int tolua_collect_CEGUI__ActivationEventArgs (lua_State* tolua_S)
  221. {
  222. CEGUI::ActivationEventArgs* self = (CEGUI::ActivationEventArgs*) tolua_tousertype(tolua_S,1,0);
  223. delete self;
  224. return 0;
  225. }
  226. static int tolua_collect_CEGUI__PropertyDim (lua_State* tolua_S)
  227. {
  228. CEGUI::PropertyDim* self = (CEGUI::PropertyDim*) tolua_tousertype(tolua_S,1,0);
  229. delete self;
  230. return 0;
  231. }
  232. static int tolua_collect_CEGUI__FontDim (lua_State* tolua_S)
  233. {
  234. CEGUI::FontDim* self = (CEGUI::FontDim*) tolua_tousertype(tolua_S,1,0);
  235. delete self;
  236. return 0;
  237. }
  238. static int tolua_collect_CEGUI__FalagardMappingIterator (lua_State* tolua_S)
  239. {
  240. CEGUI::FalagardMappingIterator* self = (CEGUI::FalagardMappingIterator*) tolua_tousertype(tolua_S,1,0);
  241. delete self;
  242. return 0;
  243. }
  244. static int tolua_collect_CEGUI__EventArgs (lua_State* tolua_S)
  245. {
  246. CEGUI::EventArgs* self = (CEGUI::EventArgs*) tolua_tousertype(tolua_S,1,0);
  247. delete self;
  248. return 0;
  249. }
  250. static int tolua_collect_CEGUI__UnifiedDim (lua_State* tolua_S)
  251. {
  252. CEGUI::UnifiedDim* self = (CEGUI::UnifiedDim*) tolua_tousertype(tolua_S,1,0);
  253. delete self;
  254. return 0;
  255. }
  256. static int tolua_collect_CEGUI__UVector2 (lua_State* tolua_S)
  257. {
  258. CEGUI::UVector2* self = (CEGUI::UVector2*) tolua_tousertype(tolua_S,1,0);
  259. delete self;
  260. return 0;
  261. }
  262. static int tolua_collect_CEGUI__ImageDim (lua_State* tolua_S)
  263. {
  264. CEGUI::ImageDim* self = (CEGUI::ImageDim*) tolua_tousertype(tolua_S,1,0);
  265. delete self;
  266. return 0;
  267. }
  268. static int tolua_collect_CEGUI__PropertyIterator (lua_State* tolua_S)
  269. {
  270. CEGUI::PropertyIterator* self = (CEGUI::PropertyIterator*) tolua_tousertype(tolua_S,1,0);
  271. delete self;
  272. return 0;
  273. }
  274. static int tolua_collect_CEGUI__AbsoluteDim (lua_State* tolua_S)
  275. {
  276. CEGUI::AbsoluteDim* self = (CEGUI::AbsoluteDim*) tolua_tousertype(tolua_S,1,0);
  277. delete self;
  278. return 0;
  279. }
  280. static int tolua_collect_CEGUI__HeaderSequenceEventArgs (lua_State* tolua_S)
  281. {
  282. CEGUI::HeaderSequenceEventArgs* self = (CEGUI::HeaderSequenceEventArgs*) tolua_tousertype(tolua_S,1,0);
  283. delete self;
  284. return 0;
  285. }
  286. static int tolua_collect_CEGUI__MCLGridRef (lua_State* tolua_S)
  287. {
  288. CEGUI::MCLGridRef* self = (CEGUI::MCLGridRef*) tolua_tousertype(tolua_S,1,0);
  289. delete self;
  290. return 0;
  291. }
  292. static int tolua_collect_CEGUI__RenderQueueEventArgs (lua_State* tolua_S)
  293. {
  294. CEGUI::RenderQueueEventArgs* self = (CEGUI::RenderQueueEventArgs*) tolua_tousertype(tolua_S,1,0);
  295. delete self;
  296. return 0;
  297. }
  298. static int tolua_collect_CEGUI__URect (lua_State* tolua_S)
  299. {
  300. CEGUI::URect* self = (CEGUI::URect*) tolua_tousertype(tolua_S,1,0);
  301. delete self;
  302. return 0;
  303. }
  304. static int tolua_collect_CEGUI__Vector3 (lua_State* tolua_S)
  305. {
  306. CEGUI::Vector3* self = (CEGUI::Vector3*) tolua_tousertype(tolua_S,1,0);
  307. delete self;
  308. return 0;
  309. }
  310. static int tolua_collect_CEGUI__ImageryComponent (lua_State* tolua_S)
  311. {
  312. CEGUI::ImageryComponent* self = (CEGUI::ImageryComponent*) tolua_tousertype(tolua_S,1,0);
  313. delete self;
  314. return 0;
  315. }
  316. static int tolua_collect_CEGUI__WidgetComponent (lua_State* tolua_S)
  317. {
  318. CEGUI::WidgetComponent* self = (CEGUI::WidgetComponent*) tolua_tousertype(tolua_S,1,0);
  319. delete self;
  320. return 0;
  321. }
  322. static int tolua_collect_CEGUI__KeyEventArgs (lua_State* tolua_S)
  323. {
  324. CEGUI::KeyEventArgs* self = (CEGUI::KeyEventArgs*) tolua_tousertype(tolua_S,1,0);
  325. delete self;
  326. return 0;
  327. }
  328. static int tolua_collect_CEGUI__UDim (lua_State* tolua_S)
  329. {
  330. CEGUI::UDim* self = (CEGUI::UDim*) tolua_tousertype(tolua_S,1,0);
  331. delete self;
  332. return 0;
  333. }
  334. static int tolua_collect_CEGUI__colour (lua_State* tolua_S)
  335. {
  336. CEGUI::colour* self = (CEGUI::colour*) tolua_tousertype(tolua_S,1,0);
  337. delete self;
  338. return 0;
  339. }
  340. static int tolua_collect_CEGUI__MouseCursorEventArgs (lua_State* tolua_S)
  341. {
  342. CEGUI::MouseCursorEventArgs* self = (CEGUI::MouseCursorEventArgs*) tolua_tousertype(tolua_S,1,0);
  343. delete self;
  344. return 0;
  345. }
  346. static int tolua_collect_CEGUI__WindowEventArgs (lua_State* tolua_S)
  347. {
  348. CEGUI::WindowEventArgs* self = (CEGUI::WindowEventArgs*) tolua_tousertype(tolua_S,1,0);
  349. delete self;
  350. return 0;
  351. }
  352. static int tolua_collect_CEGUI__Rect (lua_State* tolua_S)
  353. {
  354. CEGUI::Rect* self = (CEGUI::Rect*) tolua_tousertype(tolua_S,1,0);
  355. delete self;
  356. return 0;
  357. }
  358. #endif
  359. /* function to register type */
  360. static void tolua_reg_types (lua_State* tolua_S)
  361. {
  362. tolua_usertype(tolua_S,"CEGUI::Logger");
  363. tolua_usertype(tolua_S,"CEGUI::Renderer");
  364. tolua_usertype(tolua_S,"CEGUI::FalagardComponentBase");
  365. tolua_usertype(tolua_S,"CEGUI::WidgetDim");
  366. tolua_usertype(tolua_S,"CEGUI::MouseCursorEventArgs");
  367. tolua_usertype(tolua_S,"CEGUI::TreeItem");
  368. tolua_usertype(tolua_S,"CEGUI::WindowFactory");
  369. tolua_usertype(tolua_S,"CEGUI::MouseCursor");
  370. tolua_usertype(tolua_S,"CEGUI::WidgetLookManager");
  371. tolua_usertype(tolua_S,"CEGUI::MultiColumnList");
  372. tolua_usertype(tolua_S,"CEGUI::EventConnection");
  373. tolua_usertype(tolua_S,"CEGUI::Property");
  374. tolua_usertype(tolua_S,"CEGUI::EventIterator");
  375. tolua_usertype(tolua_S,"CEGUI::PopupMenu");
  376. tolua_usertype(tolua_S,"CEGUI::PropertyHelper");
  377. tolua_usertype(tolua_S,"CEGUI::AnimationManager");
  378. tolua_usertype(tolua_S,"CEGUI::UVector2");
  379. tolua_usertype(tolua_S,"CEGUI::Vertex");
  380. tolua_usertype(tolua_S,"CEGUI::Spinner");
  381. tolua_usertype(tolua_S,"CEGUI::RenderQueueEventArgs");
  382. tolua_usertype(tolua_S,"CEGUI::Vector3");
  383. tolua_usertype(tolua_S,"CEGUI::ImageryComponent");
  384. tolua_usertype(tolua_S,"CEGUI::WidgetComponent");
  385. tolua_usertype(tolua_S,"CEGUI::Scheme");
  386. tolua_usertype(tolua_S,"CEGUI::RadioButton");
  387. tolua_usertype(tolua_S,"CEGUI::Tooltip");
  388. tolua_usertype(tolua_S,"CEGUI::ItemEntry");
  389. tolua_usertype(tolua_S,"CEGUI::LayoutContainer");
  390. tolua_usertype(tolua_S,"CEGUI::MultiLineEditbox");
  391. tolua_usertype(tolua_S,"CEGUI::FalagardWindowMapping");
  392. tolua_usertype(tolua_S,"CEGUI::WindowManager");
  393. tolua_usertype(tolua_S,"CEGUI::ListHeader");
  394. tolua_usertype(tolua_S,"CEGUI::WidgetLookFeel");
  395. tolua_usertype(tolua_S,"CEGUI::ColourRect");
  396. tolua_usertype(tolua_S,"CEGUI::StateImagery");
  397. tolua_usertype(tolua_S,"CEGUI::GeometryBuffer");
  398. tolua_usertype(tolua_S,"CEGUI::Vector2");
  399. tolua_usertype(tolua_S,"CEGUI::String");
  400. tolua_usertype(tolua_S,"CEGUI::RenderingContext");
  401. tolua_usertype(tolua_S,"CEGUI::VerticalLayoutContainer");
  402. tolua_usertype(tolua_S,"CEGUI::WindowIterator");
  403. tolua_usertype(tolua_S,"CEGUI::Font");
  404. tolua_usertype(tolua_S,"CEGUI::FontIterator");
  405. tolua_usertype(tolua_S,"CEGUI::Texture");
  406. tolua_usertype(tolua_S,"CEGUI::FalagardMappingIterator");
  407. tolua_usertype(tolua_S,"CEGUI::EventArgs");
  408. tolua_usertype(tolua_S,"CEGUI::ScrollablePane");
  409. tolua_usertype(tolua_S,"CEGUI::Window");
  410. tolua_usertype(tolua_S,"CEGUI::KeyFrame");
  411. tolua_usertype(tolua_S,"CEGUI::URect");
  412. tolua_usertype(tolua_S,"CEGUI::RenderingSurface");
  413. tolua_usertype(tolua_S,"CEGUI::Rect");
  414. tolua_usertype(tolua_S,"CEGUI::Image");
  415. tolua_usertype(tolua_S,"CEGUI::MenuBase");
  416. tolua_usertype(tolua_S,"CEGUI::SchemeIterator");
  417. tolua_usertype(tolua_S,"CEGUI::Scrollbar");
  418. tolua_usertype(tolua_S,"CEGUI::Editbox");
  419. tolua_usertype(tolua_S,"CEGUI::ImageIterator");
  420. tolua_usertype(tolua_S,"CEGUI::AnimationEventArgs");
  421. tolua_usertype(tolua_S,"CEGUI::Dimension");
  422. tolua_usertype(tolua_S,"CEGUI::DragDropEventArgs");
  423. tolua_usertype(tolua_S,"CEGUI::ItemListbox");
  424. tolua_usertype(tolua_S,"CEGUI::ComboDropList");
  425. tolua_usertype(tolua_S,"CEGUI::RenderEffect");
  426. tolua_usertype(tolua_S,"CEGUI::ButtonBase");
  427. tolua_usertype(tolua_S,"CEGUI::FontDim");
  428. tolua_usertype(tolua_S,"CEGUI::ListboxItem");
  429. tolua_usertype(tolua_S,"CEGUI::Imageset");
  430. tolua_usertype(tolua_S,"CEGUI::GroupBox");
  431. tolua_usertype(tolua_S,"CEGUI::UBox");
  432. tolua_usertype(tolua_S,"CEGUI::FileStream");
  433. tolua_usertype(tolua_S,"CEGUI::ImagerySection");
  434. tolua_usertype(tolua_S,"CEGUI::ProgressBar");
  435. tolua_usertype(tolua_S,"CEGUI::Tree");
  436. tolua_usertype(tolua_S,"CEGUI::HorizontalLayoutContainer");
  437. tolua_usertype(tolua_S,"CEGUI::KeyEventArgs");
  438. tolua_usertype(tolua_S,"CEGUI::TabControl");
  439. tolua_usertype(tolua_S,"CEGUI::GlobalEventSet");
  440. tolua_usertype(tolua_S,"CEGUI::OutStream");
  441. tolua_usertype(tolua_S,"CEGUI::LayerSpecification");
  442. tolua_usertype(tolua_S,"CEGUI::SectionSpecification");
  443. tolua_usertype(tolua_S,"CEGUI::TextComponent");
  444. tolua_usertype(tolua_S,"CEGUI::FrameComponent");
  445. tolua_usertype(tolua_S,"CEGUI::PropertyLinkDefinition");
  446. tolua_usertype(tolua_S,"CEGUI::PropertyInitialiser");
  447. tolua_usertype(tolua_S,"CEGUI::Affector");
  448. tolua_usertype(tolua_S,"CEGUI::PropertyDefinition");
  449. tolua_usertype(tolua_S,"CEGUI::Checkbox");
  450. tolua_usertype(tolua_S,"CEGUI::MouseEventArgs");
  451. tolua_usertype(tolua_S,"CEGUI::ImagesetIterator");
  452. tolua_usertype(tolua_S,"CEGUI::Animation");
  453. tolua_usertype(tolua_S,"CEGUI::PushButton");
  454. tolua_usertype(tolua_S,"CEGUI::RenderingRoot");
  455. tolua_usertype(tolua_S,"CEGUI::PropertyDefinitionBase");
  456. tolua_usertype(tolua_S,"CEGUI::FrameWindow");
  457. tolua_usertype(tolua_S,"CEGUI::Interpolator");
  458. tolua_usertype(tolua_S,"CEGUI::ComponentArea");
  459. tolua_usertype(tolua_S,"CEGUI::PropertyDim");
  460. tolua_usertype(tolua_S,"CEGUI::SequentialLayoutContainer");
  461. tolua_usertype(tolua_S,"CEGUI::Combobox");
  462. tolua_usertype(tolua_S,"CEGUI::Listbox");
  463. tolua_usertype(tolua_S,"CEGUI::BaseDim");
  464. tolua_usertype(tolua_S,"CEGUI::System");
  465. tolua_usertype(tolua_S,"CEGUI::WindowFactoryIterator");
  466. tolua_usertype(tolua_S,"CEGUI::ListboxTextItem");
  467. tolua_usertype(tolua_S,"CEGUI::GridLayoutContainer");
  468. tolua_usertype(tolua_S,"CEGUI::ItemListBase");
  469. tolua_usertype(tolua_S,"CEGUI::TabButton");
  470. tolua_usertype(tolua_S,"CEGUI::UnifiedDim");
  471. tolua_usertype(tolua_S,"CEGUI::NamedArea");
  472. tolua_usertype(tolua_S,"CEGUI::ScrolledItemListBase");
  473. tolua_usertype(tolua_S,"CEGUI::MenuItem");
  474. tolua_usertype(tolua_S,"CEGUI::WindowEventArgs");
  475. tolua_usertype(tolua_S,"CEGUI::Menubar");
  476. tolua_usertype(tolua_S,"CEGUI::colour");
  477. tolua_usertype(tolua_S,"CEGUI::Size");
  478. tolua_usertype(tolua_S,"CEGUI::FontManager");
  479. tolua_usertype(tolua_S,"CEGUI::ImagesetManager");
  480. tolua_usertype(tolua_S,"CEGUI::MCLGridRef");
  481. tolua_usertype(tolua_S,"CEGUI::ListHeaderSegment");
  482. tolua_usertype(tolua_S,"CEGUI::ImageDim");
  483. tolua_usertype(tolua_S,"CEGUI::SchemeManager");
  484. tolua_usertype(tolua_S,"CEGUI::RenderingWindow");
  485. tolua_usertype(tolua_S,"CEGUI::EventSet");
  486. tolua_usertype(tolua_S,"CEGUI::Slider");
  487. tolua_usertype(tolua_S,"CEGUI::PropertyIterator");
  488. tolua_usertype(tolua_S,"CEGUI::AbsoluteDim");
  489. tolua_usertype(tolua_S,"CEGUI::HeaderSequenceEventArgs");
  490. tolua_usertype(tolua_S,"CEGUI::Event");
  491. tolua_usertype(tolua_S,"CEGUI::ScrolledContainer");
  492. tolua_usertype(tolua_S,"CEGUI::TreeEventArgs");
  493. tolua_usertype(tolua_S,"CEGUI::CoordConverter");
  494. tolua_usertype(tolua_S,"CEGUI::DragContainer");
  495. tolua_usertype(tolua_S,"CEGUI::Titlebar");
  496. tolua_usertype(tolua_S,"CEGUI::Thumb");
  497. tolua_usertype(tolua_S,"CEGUI::UDim");
  498. tolua_usertype(tolua_S,"CEGUI::GUISheet");
  499. tolua_usertype(tolua_S,"CEGUI::AnimationInstance");
  500. tolua_usertype(tolua_S,"CEGUI::ActivationEventArgs");
  501. tolua_usertype(tolua_S,"CEGUI::WindowFactoryManager");
  502. }
  503. /* get function: d_x of class CEGUI::Vector2 */
  504. #ifndef TOLUA_DISABLE_tolua_get_CEGUI__Vector2_x
  505. static int tolua_get_CEGUI__Vector2_x(lua_State* tolua_S)
  506. {
  507. CEGUI::Vector2* self = (CEGUI::Vector2*) tolua_tousertype(tolua_S,1,0);
  508. #ifndef TOLUA_RELEASE
  509. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_x'",NULL);
  510. #endif
  511. tolua_pushnumber(tolua_S,(lua_Number)self->d_x);
  512. return 1;
  513. }
  514. #endif //#ifndef TOLUA_DISABLE
  515. /* set function: d_x of class CEGUI::Vector2 */
  516. #ifndef TOLUA_DISABLE_tolua_set_CEGUI__Vector2_x
  517. static int tolua_set_CEGUI__Vector2_x(lua_State* tolua_S)
  518. {
  519. CEGUI::Vector2* self = (CEGUI::Vector2*) tolua_tousertype(tolua_S,1,0);
  520. #ifndef TOLUA_RELEASE
  521. tolua_Error tolua_err;
  522. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_x'",NULL);
  523. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  524. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  525. #endif
  526. self->d_x = ((float) tolua_tonumber(tolua_S,2,0))
  527. ;
  528. return 0;
  529. }
  530. #endif //#ifndef TOLUA_DISABLE
  531. /* get function: d_y of class CEGUI::Vector2 */
  532. #ifndef TOLUA_DISABLE_tolua_get_CEGUI__Vector2_y
  533. static int tolua_get_CEGUI__Vector2_y(lua_State* tolua_S)
  534. {
  535. CEGUI::Vector2* self = (CEGUI::Vector2*) tolua_tousertype(tolua_S,1,0);
  536. #ifndef TOLUA_RELEASE
  537. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_y'",NULL);
  538. #endif
  539. tolua_pushnumber(tolua_S,(lua_Number)self->d_y);
  540. return 1;
  541. }
  542. #endif //#ifndef TOLUA_DISABLE
  543. /* set function: d_y of class CEGUI::Vector2 */
  544. #ifndef TOLUA_DISABLE_tolua_set_CEGUI__Vector2_y
  545. static int tolua_set_CEGUI__Vector2_y(lua_State* tolua_S)
  546. {
  547. CEGUI::Vector2* self = (CEGUI::Vector2*) tolua_tousertype(tolua_S,1,0);
  548. #ifndef TOLUA_RELEASE
  549. tolua_Error tolua_err;
  550. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_y'",NULL);
  551. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  552. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  553. #endif
  554. self->d_y = ((float) tolua_tonumber(tolua_S,2,0))
  555. ;
  556. return 0;
  557. }
  558. #endif //#ifndef TOLUA_DISABLE
  559. /* method: operator+ of class CEGUI::Vector2 */
  560. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Vector2__add00
  561. static int tolua_CEGUI_CEGUI_Vector2__add00(lua_State* tolua_S)
  562. {
  563. #ifndef TOLUA_RELEASE
  564. tolua_Error tolua_err;
  565. if (
  566. !tolua_isusertype(tolua_S,1,"const CEGUI::Vector2",0,&tolua_err) ||
  567. !tolua_isusertype(tolua_S,2,"const CEGUI::Vector2",0,&tolua_err) ||
  568. !tolua_isnoobj(tolua_S,3,&tolua_err)
  569. )
  570. goto tolua_lerror;
  571. else
  572. #endif
  573. {
  574. const CEGUI::Vector2* self = (const CEGUI::Vector2*) tolua_tousertype(tolua_S,1,0);
  575. const CEGUI::Vector2* vec = ((const CEGUI::Vector2*) tolua_tousertype(tolua_S,2,0));
  576. #ifndef TOLUA_RELEASE
  577. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator+'",NULL);
  578. #endif
  579. {
  580. CEGUI::Vector2 tolua_ret = (CEGUI::Vector2) self->operator+(*vec);
  581. {
  582. #ifdef __cplusplus
  583. void* tolua_obj = new CEGUI::Vector2(tolua_ret);
  584. tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CEGUI::Vector2");
  585. #else
  586. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CEGUI::Vector2));
  587. tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CEGUI::Vector2");
  588. #endif
  589. }
  590. }
  591. }
  592. return 1;
  593. #ifndef TOLUA_RELEASE
  594. tolua_lerror:
  595. tolua_error(tolua_S,"#ferror in function '.add'.",&tolua_err);
  596. return 0;
  597. #endif
  598. }
  599. #endif //#ifndef TOLUA_DISABLE
  600. /* method: operator- of class CEGUI::Vector2 */
  601. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Vector2__sub00
  602. static int tolua_CEGUI_CEGUI_Vector2__sub00(lua_State* tolua_S)
  603. {
  604. #ifndef TOLUA_RELEASE
  605. tolua_Error tolua_err;
  606. if (
  607. !tolua_isusertype(tolua_S,1,"const CEGUI::Vector2",0,&tolua_err) ||
  608. !tolua_isusertype(tolua_S,2,"const CEGUI::Vector2",0,&tolua_err) ||
  609. !tolua_isnoobj(tolua_S,3,&tolua_err)
  610. )
  611. goto tolua_lerror;
  612. else
  613. #endif
  614. {
  615. const CEGUI::Vector2* self = (const CEGUI::Vector2*) tolua_tousertype(tolua_S,1,0);
  616. const CEGUI::Vector2* vec = ((const CEGUI::Vector2*) tolua_tousertype(tolua_S,2,0));
  617. #ifndef TOLUA_RELEASE
  618. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator-'",NULL);
  619. #endif
  620. {
  621. CEGUI::Vector2 tolua_ret = (CEGUI::Vector2) self->operator-(*vec);
  622. {
  623. #ifdef __cplusplus
  624. void* tolua_obj = new CEGUI::Vector2(tolua_ret);
  625. tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CEGUI::Vector2");
  626. #else
  627. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CEGUI::Vector2));
  628. tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CEGUI::Vector2");
  629. #endif
  630. }
  631. }
  632. }
  633. return 1;
  634. #ifndef TOLUA_RELEASE
  635. tolua_lerror:
  636. tolua_error(tolua_S,"#ferror in function '.sub'.",&tolua_err);
  637. return 0;
  638. #endif
  639. }
  640. #endif //#ifndef TOLUA_DISABLE
  641. /* method: operator* of class CEGUI::Vector2 */
  642. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Vector2__mul00
  643. static int tolua_CEGUI_CEGUI_Vector2__mul00(lua_State* tolua_S)
  644. {
  645. #ifndef TOLUA_RELEASE
  646. tolua_Error tolua_err;
  647. if (
  648. !tolua_isusertype(tolua_S,1,"const CEGUI::Vector2",0,&tolua_err) ||
  649. !tolua_isusertype(tolua_S,2,"const CEGUI::Vector2",0,&tolua_err) ||
  650. !tolua_isnoobj(tolua_S,3,&tolua_err)
  651. )
  652. goto tolua_lerror;
  653. else
  654. #endif
  655. {
  656. const CEGUI::Vector2* self = (const CEGUI::Vector2*) tolua_tousertype(tolua_S,1,0);
  657. const CEGUI::Vector2* vec = ((const CEGUI::Vector2*) tolua_tousertype(tolua_S,2,0));
  658. #ifndef TOLUA_RELEASE
  659. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator*'",NULL);
  660. #endif
  661. {
  662. CEGUI::Vector2 tolua_ret = (CEGUI::Vector2) self->operator*(*vec);
  663. {
  664. #ifdef __cplusplus
  665. void* tolua_obj = new CEGUI::Vector2(tolua_ret);
  666. tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CEGUI::Vector2");
  667. #else
  668. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CEGUI::Vector2));
  669. tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CEGUI::Vector2");
  670. #endif
  671. }
  672. }
  673. }
  674. return 1;
  675. #ifndef TOLUA_RELEASE
  676. tolua_lerror:
  677. tolua_error(tolua_S,"#ferror in function '.mul'.",&tolua_err);
  678. return 0;
  679. #endif
  680. }
  681. #endif //#ifndef TOLUA_DISABLE
  682. /* method: operator== of class CEGUI::Vector2 */
  683. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Vector2__eq00
  684. static int tolua_CEGUI_CEGUI_Vector2__eq00(lua_State* tolua_S)
  685. {
  686. #ifndef TOLUA_RELEASE
  687. tolua_Error tolua_err;
  688. if (
  689. !tolua_isusertype(tolua_S,1,"const CEGUI::Vector2",0,&tolua_err) ||
  690. !tolua_isusertype(tolua_S,2,"const CEGUI::Vector2",0,&tolua_err) ||
  691. !tolua_isnoobj(tolua_S,3,&tolua_err)
  692. )
  693. goto tolua_lerror;
  694. else
  695. #endif
  696. {
  697. const CEGUI::Vector2* self = (const CEGUI::Vector2*) tolua_tousertype(tolua_S,1,0);
  698. const CEGUI::Vector2* vec = ((const CEGUI::Vector2*) tolua_tousertype(tolua_S,2,0));
  699. #ifndef TOLUA_RELEASE
  700. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='",NULL);
  701. #endif
  702. {
  703. bool tolua_ret = (bool) self->operator==(*vec);
  704. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  705. }
  706. }
  707. return 1;
  708. #ifndef TOLUA_RELEASE
  709. tolua_lerror:
  710. tolua_error(tolua_S,"#ferror in function '.eq'.",&tolua_err);
  711. return 0;
  712. #endif
  713. }
  714. #endif //#ifndef TOLUA_DISABLE
  715. /* method: new of class CEGUI::Vector2 */
  716. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Vector2_new00
  717. static int tolua_CEGUI_CEGUI_Vector2_new00(lua_State* tolua_S)
  718. {
  719. #ifndef TOLUA_RELEASE
  720. tolua_Error tolua_err;
  721. if (
  722. !tolua_isusertable(tolua_S,1,"CEGUI::Vector2",0,&tolua_err) ||
  723. !tolua_isnoobj(tolua_S,2,&tolua_err)
  724. )
  725. goto tolua_lerror;
  726. else
  727. #endif
  728. {
  729. {
  730. CEGUI::Vector2* tolua_ret = (CEGUI::Vector2*) new CEGUI::Vector2();
  731. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CEGUI::Vector2");
  732. }
  733. }
  734. return 1;
  735. #ifndef TOLUA_RELEASE
  736. tolua_lerror:
  737. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  738. return 0;
  739. #endif
  740. }
  741. #endif //#ifndef TOLUA_DISABLE
  742. /* method: new_local of class CEGUI::Vector2 */
  743. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Vector2_new00_local
  744. static int tolua_CEGUI_CEGUI_Vector2_new00_local(lua_State* tolua_S)
  745. {
  746. #ifndef TOLUA_RELEASE
  747. tolua_Error tolua_err;
  748. if (
  749. !tolua_isusertable(tolua_S,1,"CEGUI::Vector2",0,&tolua_err) ||
  750. !tolua_isnoobj(tolua_S,2,&tolua_err)
  751. )
  752. goto tolua_lerror;
  753. else
  754. #endif
  755. {
  756. {
  757. CEGUI::Vector2* tolua_ret = (CEGUI::Vector2*) new CEGUI::Vector2();
  758. tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"CEGUI::Vector2");
  759. }
  760. }
  761. return 1;
  762. #ifndef TOLUA_RELEASE
  763. tolua_lerror:
  764. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  765. return 0;
  766. #endif
  767. }
  768. #endif //#ifndef TOLUA_DISABLE
  769. /* method: new of class CEGUI::Vector2 */
  770. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Vector2_new01
  771. static int tolua_CEGUI_CEGUI_Vector2_new01(lua_State* tolua_S)
  772. {
  773. tolua_Error tolua_err;
  774. if (
  775. !tolua_isusertable(tolua_S,1,"CEGUI::Vector2",0,&tolua_err) ||
  776. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  777. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  778. !tolua_isnoobj(tolua_S,4,&tolua_err)
  779. )
  780. goto tolua_lerror;
  781. else
  782. {
  783. float x = ((float) tolua_tonumber(tolua_S,2,0));
  784. float y = ((float) tolua_tonumber(tolua_S,3,0));
  785. {
  786. CEGUI::Vector2* tolua_ret = (CEGUI::Vector2*) new CEGUI::Vector2(x,y);
  787. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CEGUI::Vector2");
  788. }
  789. }
  790. return 1;
  791. tolua_lerror:
  792. return tolua_CEGUI_CEGUI_Vector2_new00(tolua_S);
  793. }
  794. #endif //#ifndef TOLUA_DISABLE
  795. /* method: new_local of class CEGUI::Vector2 */
  796. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Vector2_new01_local
  797. static int tolua_CEGUI_CEGUI_Vector2_new01_local(lua_State* tolua_S)
  798. {
  799. tolua_Error tolua_err;
  800. if (
  801. !tolua_isusertable(tolua_S,1,"CEGUI::Vector2",0,&tolua_err) ||
  802. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  803. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  804. !tolua_isnoobj(tolua_S,4,&tolua_err)
  805. )
  806. goto tolua_lerror;
  807. else
  808. {
  809. float x = ((float) tolua_tonumber(tolua_S,2,0));
  810. float y = ((float) tolua_tonumber(tolua_S,3,0));
  811. {
  812. CEGUI::Vector2* tolua_ret = (CEGUI::Vector2*) new CEGUI::Vector2(x,y);
  813. tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"CEGUI::Vector2");
  814. }
  815. }
  816. return 1;
  817. tolua_lerror:
  818. return tolua_CEGUI_CEGUI_Vector2_new00_local(tolua_S);
  819. }
  820. #endif //#ifndef TOLUA_DISABLE
  821. /* get function: d_x of class CEGUI::Vector3 */
  822. #ifndef TOLUA_DISABLE_tolua_get_CEGUI__Vector3_x
  823. static int tolua_get_CEGUI__Vector3_x(lua_State* tolua_S)
  824. {
  825. CEGUI::Vector3* self = (CEGUI::Vector3*) tolua_tousertype(tolua_S,1,0);
  826. #ifndef TOLUA_RELEASE
  827. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_x'",NULL);
  828. #endif
  829. tolua_pushnumber(tolua_S,(lua_Number)self->d_x);
  830. return 1;
  831. }
  832. #endif //#ifndef TOLUA_DISABLE
  833. /* set function: d_x of class CEGUI::Vector3 */
  834. #ifndef TOLUA_DISABLE_tolua_set_CEGUI__Vector3_x
  835. static int tolua_set_CEGUI__Vector3_x(lua_State* tolua_S)
  836. {
  837. CEGUI::Vector3* self = (CEGUI::Vector3*) tolua_tousertype(tolua_S,1,0);
  838. #ifndef TOLUA_RELEASE
  839. tolua_Error tolua_err;
  840. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_x'",NULL);
  841. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  842. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  843. #endif
  844. self->d_x = ((float) tolua_tonumber(tolua_S,2,0))
  845. ;
  846. return 0;
  847. }
  848. #endif //#ifndef TOLUA_DISABLE
  849. /* get function: d_y of class CEGUI::Vector3 */
  850. #ifndef TOLUA_DISABLE_tolua_get_CEGUI__Vector3_y
  851. static int tolua_get_CEGUI__Vector3_y(lua_State* tolua_S)
  852. {
  853. CEGUI::Vector3* self = (CEGUI::Vector3*) tolua_tousertype(tolua_S,1,0);
  854. #ifndef TOLUA_RELEASE
  855. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_y'",NULL);
  856. #endif
  857. tolua_pushnumber(tolua_S,(lua_Number)self->d_y);
  858. return 1;
  859. }
  860. #endif //#ifndef TOLUA_DISABLE
  861. /* set function: d_y of class CEGUI::Vector3 */
  862. #ifndef TOLUA_DISABLE_tolua_set_CEGUI__Vector3_y
  863. static int tolua_set_CEGUI__Vector3_y(lua_State* tolua_S)
  864. {
  865. CEGUI::Vector3* self = (CEGUI::Vector3*) tolua_tousertype(tolua_S,1,0);
  866. #ifndef TOLUA_RELEASE
  867. tolua_Error tolua_err;
  868. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_y'",NULL);
  869. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  870. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  871. #endif
  872. self->d_y = ((float) tolua_tonumber(tolua_S,2,0))
  873. ;
  874. return 0;
  875. }
  876. #endif //#ifndef TOLUA_DISABLE
  877. /* get function: d_z of class CEGUI::Vector3 */
  878. #ifndef TOLUA_DISABLE_tolua_get_CEGUI__Vector3_z
  879. static int tolua_get_CEGUI__Vector3_z(lua_State* tolua_S)
  880. {
  881. CEGUI::Vector3* self = (CEGUI::Vector3*) tolua_tousertype(tolua_S,1,0);
  882. #ifndef TOLUA_RELEASE
  883. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_z'",NULL);
  884. #endif
  885. tolua_pushnumber(tolua_S,(lua_Number)self->d_z);
  886. return 1;
  887. }
  888. #endif //#ifndef TOLUA_DISABLE
  889. /* set function: d_z of class CEGUI::Vector3 */
  890. #ifndef TOLUA_DISABLE_tolua_set_CEGUI__Vector3_z
  891. static int tolua_set_CEGUI__Vector3_z(lua_State* tolua_S)
  892. {
  893. CEGUI::Vector3* self = (CEGUI::Vector3*) tolua_tousertype(tolua_S,1,0);
  894. #ifndef TOLUA_RELEASE
  895. tolua_Error tolua_err;
  896. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_z'",NULL);
  897. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  898. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  899. #endif
  900. self->d_z = ((float) tolua_tonumber(tolua_S,2,0))
  901. ;
  902. return 0;
  903. }
  904. #endif //#ifndef TOLUA_DISABLE
  905. /* method: operator== of class CEGUI::Vector3 */
  906. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Vector3__eq00
  907. static int tolua_CEGUI_CEGUI_Vector3__eq00(lua_State* tolua_S)
  908. {
  909. #ifndef TOLUA_RELEASE
  910. tolua_Error tolua_err;
  911. if (
  912. !tolua_isusertype(tolua_S,1,"const CEGUI::Vector3",0,&tolua_err) ||
  913. !tolua_isusertype(tolua_S,2,"const CEGUI::Vector3",0,&tolua_err) ||
  914. !tolua_isnoobj(tolua_S,3,&tolua_err)
  915. )
  916. goto tolua_lerror;
  917. else
  918. #endif
  919. {
  920. const CEGUI::Vector3* self = (const CEGUI::Vector3*) tolua_tousertype(tolua_S,1,0);
  921. const CEGUI::Vector3* vec = ((const CEGUI::Vector3*) tolua_tousertype(tolua_S,2,0));
  922. #ifndef TOLUA_RELEASE
  923. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='",NULL);
  924. #endif
  925. {
  926. bool tolua_ret = (bool) self->operator==(*vec);
  927. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  928. }
  929. }
  930. return 1;
  931. #ifndef TOLUA_RELEASE
  932. tolua_lerror:
  933. tolua_error(tolua_S,"#ferror in function '.eq'.",&tolua_err);
  934. return 0;
  935. #endif
  936. }
  937. #endif //#ifndef TOLUA_DISABLE
  938. /* method: new of class CEGUI::Vector3 */
  939. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Vector3_new00
  940. static int tolua_CEGUI_CEGUI_Vector3_new00(lua_State* tolua_S)
  941. {
  942. #ifndef TOLUA_RELEASE
  943. tolua_Error tolua_err;
  944. if (
  945. !tolua_isusertable(tolua_S,1,"CEGUI::Vector3",0,&tolua_err) ||
  946. !tolua_isnoobj(tolua_S,2,&tolua_err)
  947. )
  948. goto tolua_lerror;
  949. else
  950. #endif
  951. {
  952. {
  953. CEGUI::Vector3* tolua_ret = (CEGUI::Vector3*) new CEGUI::Vector3();
  954. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CEGUI::Vector3");
  955. }
  956. }
  957. return 1;
  958. #ifndef TOLUA_RELEASE
  959. tolua_lerror:
  960. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  961. return 0;
  962. #endif
  963. }
  964. #endif //#ifndef TOLUA_DISABLE
  965. /* method: new_local of class CEGUI::Vector3 */
  966. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Vector3_new00_local
  967. static int tolua_CEGUI_CEGUI_Vector3_new00_local(lua_State* tolua_S)
  968. {
  969. #ifndef TOLUA_RELEASE
  970. tolua_Error tolua_err;
  971. if (
  972. !tolua_isusertable(tolua_S,1,"CEGUI::Vector3",0,&tolua_err) ||
  973. !tolua_isnoobj(tolua_S,2,&tolua_err)
  974. )
  975. goto tolua_lerror;
  976. else
  977. #endif
  978. {
  979. {
  980. CEGUI::Vector3* tolua_ret = (CEGUI::Vector3*) new CEGUI::Vector3();
  981. tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"CEGUI::Vector3");
  982. }
  983. }
  984. return 1;
  985. #ifndef TOLUA_RELEASE
  986. tolua_lerror:
  987. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  988. return 0;
  989. #endif
  990. }
  991. #endif //#ifndef TOLUA_DISABLE
  992. /* method: new of class CEGUI::Vector3 */
  993. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Vector3_new01
  994. static int tolua_CEGUI_CEGUI_Vector3_new01(lua_State* tolua_S)
  995. {
  996. tolua_Error tolua_err;
  997. if (
  998. !tolua_isusertable(tolua_S,1,"CEGUI::Vector3",0,&tolua_err) ||
  999. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1000. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1001. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  1002. !tolua_isnoobj(tolua_S,5,&tolua_err)
  1003. )
  1004. goto tolua_lerror;
  1005. else
  1006. {
  1007. float x = ((float) tolua_tonumber(tolua_S,2,0));
  1008. float y = ((float) tolua_tonumber(tolua_S,3,0));
  1009. float z = ((float) tolua_tonumber(tolua_S,4,0));
  1010. {
  1011. CEGUI::Vector3* tolua_ret = (CEGUI::Vector3*) new CEGUI::Vector3(x,y,z);
  1012. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CEGUI::Vector3");
  1013. }
  1014. }
  1015. return 1;
  1016. tolua_lerror:
  1017. return tolua_CEGUI_CEGUI_Vector3_new00(tolua_S);
  1018. }
  1019. #endif //#ifndef TOLUA_DISABLE
  1020. /* method: new_local of class CEGUI::Vector3 */
  1021. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Vector3_new01_local
  1022. static int tolua_CEGUI_CEGUI_Vector3_new01_local(lua_State* tolua_S)
  1023. {
  1024. tolua_Error tolua_err;
  1025. if (
  1026. !tolua_isusertable(tolua_S,1,"CEGUI::Vector3",0,&tolua_err) ||
  1027. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1028. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1029. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  1030. !tolua_isnoobj(tolua_S,5,&tolua_err)
  1031. )
  1032. goto tolua_lerror;
  1033. else
  1034. {
  1035. float x = ((float) tolua_tonumber(tolua_S,2,0));
  1036. float y = ((float) tolua_tonumber(tolua_S,3,0));
  1037. float z = ((float) tolua_tonumber(tolua_S,4,0));
  1038. {
  1039. CEGUI::Vector3* tolua_ret = (CEGUI::Vector3*) new CEGUI::Vector3(x,y,z);
  1040. tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"CEGUI::Vector3");
  1041. }
  1042. }
  1043. return 1;
  1044. tolua_lerror:
  1045. return tolua_CEGUI_CEGUI_Vector3_new00_local(tolua_S);
  1046. }
  1047. #endif //#ifndef TOLUA_DISABLE
  1048. /* get function: d_width of class CEGUI::Size */
  1049. #ifndef TOLUA_DISABLE_tolua_get_CEGUI__Size_width
  1050. static int tolua_get_CEGUI__Size_width(lua_State* tolua_S)
  1051. {
  1052. CEGUI::Size* self = (CEGUI::Size*) tolua_tousertype(tolua_S,1,0);
  1053. #ifndef TOLUA_RELEASE
  1054. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_width'",NULL);
  1055. #endif
  1056. tolua_pushnumber(tolua_S,(lua_Number)self->d_width);
  1057. return 1;
  1058. }
  1059. #endif //#ifndef TOLUA_DISABLE
  1060. /* set function: d_width of class CEGUI::Size */
  1061. #ifndef TOLUA_DISABLE_tolua_set_CEGUI__Size_width
  1062. static int tolua_set_CEGUI__Size_width(lua_State* tolua_S)
  1063. {
  1064. CEGUI::Size* self = (CEGUI::Size*) tolua_tousertype(tolua_S,1,0);
  1065. #ifndef TOLUA_RELEASE
  1066. tolua_Error tolua_err;
  1067. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_width'",NULL);
  1068. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  1069. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1070. #endif
  1071. self->d_width = ((float) tolua_tonumber(tolua_S,2,0))
  1072. ;
  1073. return 0;
  1074. }
  1075. #endif //#ifndef TOLUA_DISABLE
  1076. /* get function: d_height of class CEGUI::Size */
  1077. #ifndef TOLUA_DISABLE_tolua_get_CEGUI__Size_height
  1078. static int tolua_get_CEGUI__Size_height(lua_State* tolua_S)
  1079. {
  1080. CEGUI::Size* self = (CEGUI::Size*) tolua_tousertype(tolua_S,1,0);
  1081. #ifndef TOLUA_RELEASE
  1082. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_height'",NULL);
  1083. #endif
  1084. tolua_pushnumber(tolua_S,(lua_Number)self->d_height);
  1085. return 1;
  1086. }
  1087. #endif //#ifndef TOLUA_DISABLE
  1088. /* set function: d_height of class CEGUI::Size */
  1089. #ifndef TOLUA_DISABLE_tolua_set_CEGUI__Size_height
  1090. static int tolua_set_CEGUI__Size_height(lua_State* tolua_S)
  1091. {
  1092. CEGUI::Size* self = (CEGUI::Size*) tolua_tousertype(tolua_S,1,0);
  1093. #ifndef TOLUA_RELEASE
  1094. tolua_Error tolua_err;
  1095. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_height'",NULL);
  1096. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  1097. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1098. #endif
  1099. self->d_height = ((float) tolua_tonumber(tolua_S,2,0))
  1100. ;
  1101. return 0;
  1102. }
  1103. #endif //#ifndef TOLUA_DISABLE
  1104. /* method: operator== of class CEGUI::Size */
  1105. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Size__eq00
  1106. static int tolua_CEGUI_CEGUI_Size__eq00(lua_State* tolua_S)
  1107. {
  1108. #ifndef TOLUA_RELEASE
  1109. tolua_Error tolua_err;
  1110. if (
  1111. !tolua_isusertype(tolua_S,1,"const CEGUI::Size",0,&tolua_err) ||
  1112. !tolua_isusertype(tolua_S,2,"const CEGUI::Size",0,&tolua_err) ||
  1113. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1114. )
  1115. goto tolua_lerror;
  1116. else
  1117. #endif
  1118. {
  1119. const CEGUI::Size* self = (const CEGUI::Size*) tolua_tousertype(tolua_S,1,0);
  1120. const CEGUI::Size* sz = ((const CEGUI::Size*) tolua_tousertype(tolua_S,2,0));
  1121. #ifndef TOLUA_RELEASE
  1122. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='",NULL);
  1123. #endif
  1124. {
  1125. bool tolua_ret = (bool) self->operator==(*sz);
  1126. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1127. }
  1128. }
  1129. return 1;
  1130. #ifndef TOLUA_RELEASE
  1131. tolua_lerror:
  1132. tolua_error(tolua_S,"#ferror in function '.eq'.",&tolua_err);
  1133. return 0;
  1134. #endif
  1135. }
  1136. #endif //#ifndef TOLUA_DISABLE
  1137. /* method: new of class CEGUI::Size */
  1138. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Size_new00
  1139. static int tolua_CEGUI_CEGUI_Size_new00(lua_State* tolua_S)
  1140. {
  1141. #ifndef TOLUA_RELEASE
  1142. tolua_Error tolua_err;
  1143. if (
  1144. !tolua_isusertable(tolua_S,1,"CEGUI::Size",0,&tolua_err) ||
  1145. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1146. )
  1147. goto tolua_lerror;
  1148. else
  1149. #endif
  1150. {
  1151. {
  1152. CEGUI::Size* tolua_ret = (CEGUI::Size*) new CEGUI::Size();
  1153. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CEGUI::Size");
  1154. }
  1155. }
  1156. return 1;
  1157. #ifndef TOLUA_RELEASE
  1158. tolua_lerror:
  1159. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  1160. return 0;
  1161. #endif
  1162. }
  1163. #endif //#ifndef TOLUA_DISABLE
  1164. /* method: new_local of class CEGUI::Size */
  1165. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Size_new00_local
  1166. static int tolua_CEGUI_CEGUI_Size_new00_local(lua_State* tolua_S)
  1167. {
  1168. #ifndef TOLUA_RELEASE
  1169. tolua_Error tolua_err;
  1170. if (
  1171. !tolua_isusertable(tolua_S,1,"CEGUI::Size",0,&tolua_err) ||
  1172. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1173. )
  1174. goto tolua_lerror;
  1175. else
  1176. #endif
  1177. {
  1178. {
  1179. CEGUI::Size* tolua_ret = (CEGUI::Size*) new CEGUI::Size();
  1180. tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"CEGUI::Size");
  1181. }
  1182. }
  1183. return 1;
  1184. #ifndef TOLUA_RELEASE
  1185. tolua_lerror:
  1186. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  1187. return 0;
  1188. #endif
  1189. }
  1190. #endif //#ifndef TOLUA_DISABLE
  1191. /* method: new of class CEGUI::Size */
  1192. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Size_new01
  1193. static int tolua_CEGUI_CEGUI_Size_new01(lua_State* tolua_S)
  1194. {
  1195. tolua_Error tolua_err;
  1196. if (
  1197. !tolua_isusertable(tolua_S,1,"CEGUI::Size",0,&tolua_err) ||
  1198. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1199. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1200. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1201. )
  1202. goto tolua_lerror;
  1203. else
  1204. {
  1205. float w = ((float) tolua_tonumber(tolua_S,2,0));
  1206. float h = ((float) tolua_tonumber(tolua_S,3,0));
  1207. {
  1208. CEGUI::Size* tolua_ret = (CEGUI::Size*) new CEGUI::Size(w,h);
  1209. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CEGUI::Size");
  1210. }
  1211. }
  1212. return 1;
  1213. tolua_lerror:
  1214. return tolua_CEGUI_CEGUI_Size_new00(tolua_S);
  1215. }
  1216. #endif //#ifndef TOLUA_DISABLE
  1217. /* method: new_local of class CEGUI::Size */
  1218. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Size_new01_local
  1219. static int tolua_CEGUI_CEGUI_Size_new01_local(lua_State* tolua_S)
  1220. {
  1221. tolua_Error tolua_err;
  1222. if (
  1223. !tolua_isusertable(tolua_S,1,"CEGUI::Size",0,&tolua_err) ||
  1224. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1225. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1226. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1227. )
  1228. goto tolua_lerror;
  1229. else
  1230. {
  1231. float w = ((float) tolua_tonumber(tolua_S,2,0));
  1232. float h = ((float) tolua_tonumber(tolua_S,3,0));
  1233. {
  1234. CEGUI::Size* tolua_ret = (CEGUI::Size*) new CEGUI::Size(w,h);
  1235. tolua_pushusertype_and_takeownership(tolua_S,(void *)tolua_ret,"CEGUI::Size");
  1236. }
  1237. }
  1238. return 1;
  1239. tolua_lerror:
  1240. return tolua_CEGUI_CEGUI_Size_new00_local(tolua_S);
  1241. }
  1242. #endif //#ifndef TOLUA_DISABLE
  1243. /* get function: d_top of class CEGUI::Rect */
  1244. #ifndef TOLUA_DISABLE_tolua_get_CEGUI__Rect_top
  1245. static int tolua_get_CEGUI__Rect_top(lua_State* tolua_S)
  1246. {
  1247. CEGUI::Rect* self = (CEGUI::Rect*) tolua_tousertype(tolua_S,1,0);
  1248. #ifndef TOLUA_RELEASE
  1249. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_top'",NULL);
  1250. #endif
  1251. tolua_pushnumber(tolua_S,(lua_Number)self->d_top);
  1252. return 1;
  1253. }
  1254. #endif //#ifndef TOLUA_DISABLE
  1255. /* set function: d_top of class CEGUI::Rect */
  1256. #ifndef TOLUA_DISABLE_tolua_set_CEGUI__Rect_top
  1257. static int tolua_set_CEGUI__Rect_top(lua_State* tolua_S)
  1258. {
  1259. CEGUI::Rect* self = (CEGUI::Rect*) tolua_tousertype(tolua_S,1,0);
  1260. #ifndef TOLUA_RELEASE
  1261. tolua_Error tolua_err;
  1262. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_top'",NULL);
  1263. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  1264. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1265. #endif
  1266. self->d_top = ((float) tolua_tonumber(tolua_S,2,0))
  1267. ;
  1268. return 0;
  1269. }
  1270. #endif //#ifndef TOLUA_DISABLE
  1271. /* get function: d_bottom of class CEGUI::Rect */
  1272. #ifndef TOLUA_DISABLE_tolua_get_CEGUI__Rect_bottom
  1273. static int tolua_get_CEGUI__Rect_bottom(lua_State* tolua_S)
  1274. {
  1275. CEGUI::Rect* self = (CEGUI::Rect*) tolua_tousertype(tolua_S,1,0);
  1276. #ifndef TOLUA_RELEASE
  1277. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_bottom'",NULL);
  1278. #endif
  1279. tolua_pushnumber(tolua_S,(lua_Number)self->d_bottom);
  1280. return 1;
  1281. }
  1282. #endif //#ifndef TOLUA_DISABLE
  1283. /* set function: d_bottom of class CEGUI::Rect */
  1284. #ifndef TOLUA_DISABLE_tolua_set_CEGUI__Rect_bottom
  1285. static int tolua_set_CEGUI__Rect_bottom(lua_State* tolua_S)
  1286. {
  1287. CEGUI::Rect* self = (CEGUI::Rect*) tolua_tousertype(tolua_S,1,0);
  1288. #ifndef TOLUA_RELEASE
  1289. tolua_Error tolua_err;
  1290. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_bottom'",NULL);
  1291. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  1292. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1293. #endif
  1294. self->d_bottom = ((float) tolua_tonumber(tolua_S,2,0))
  1295. ;
  1296. return 0;
  1297. }
  1298. #endif //#ifndef TOLUA_DISABLE
  1299. /* get function: d_left of class CEGUI::Rect */
  1300. #ifndef TOLUA_DISABLE_tolua_get_CEGUI__Rect_left
  1301. static int tolua_get_CEGUI__Rect_left(lua_State* tolua_S)
  1302. {
  1303. CEGUI::Rect* self = (CEGUI::Rect*) tolua_tousertype(tolua_S,1,0);
  1304. #ifndef TOLUA_RELEASE
  1305. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_left'",NULL);
  1306. #endif
  1307. tolua_pushnumber(tolua_S,(lua_Number)self->d_left);
  1308. return 1;
  1309. }
  1310. #endif //#ifndef TOLUA_DISABLE
  1311. /* set function: d_left of class CEGUI::Rect */
  1312. #ifndef TOLUA_DISABLE_tolua_set_CEGUI__Rect_left
  1313. static int tolua_set_CEGUI__Rect_left(lua_State* tolua_S)
  1314. {
  1315. CEGUI::Rect* self = (CEGUI::Rect*) tolua_tousertype(tolua_S,1,0);
  1316. #ifndef TOLUA_RELEASE
  1317. tolua_Error tolua_err;
  1318. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_left'",NULL);
  1319. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  1320. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1321. #endif
  1322. self->d_left = ((float) tolua_tonumber(tolua_S,2,0))
  1323. ;
  1324. return 0;
  1325. }
  1326. #endif //#ifndef TOLUA_DISABLE
  1327. /* get function: d_right of class CEGUI::Rect */
  1328. #ifndef TOLUA_DISABLE_tolua_get_CEGUI__Rect_right
  1329. static int tolua_get_CEGUI__Rect_right(lua_State* tolua_S)
  1330. {
  1331. CEGUI::Rect* self = (CEGUI::Rect*) tolua_tousertype(tolua_S,1,0);
  1332. #ifndef TOLUA_RELEASE
  1333. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_right'",NULL);
  1334. #endif
  1335. tolua_pushnumber(tolua_S,(lua_Number)self->d_right);
  1336. return 1;
  1337. }
  1338. #endif //#ifndef TOLUA_DISABLE
  1339. /* set function: d_right of class CEGUI::Rect */
  1340. #ifndef TOLUA_DISABLE_tolua_set_CEGUI__Rect_right
  1341. static int tolua_set_CEGUI__Rect_right(lua_State* tolua_S)
  1342. {
  1343. CEGUI::Rect* self = (CEGUI::Rect*) tolua_tousertype(tolua_S,1,0);
  1344. #ifndef TOLUA_RELEASE
  1345. tolua_Error tolua_err;
  1346. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd_right'",NULL);
  1347. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  1348. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1349. #endif
  1350. self->d_right = ((float) tolua_tonumber(tolua_S,2,0))
  1351. ;
  1352. return 0;
  1353. }
  1354. #endif //#ifndef TOLUA_DISABLE
  1355. /* method: getPosition of class CEGUI::Rect */
  1356. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Rect_getPosition00
  1357. static int tolua_CEGUI_CEGUI_Rect_getPosition00(lua_State* tolua_S)
  1358. {
  1359. #ifndef TOLUA_RELEASE
  1360. tolua_Error tolua_err;
  1361. if (
  1362. !tolua_isusertype(tolua_S,1,"const CEGUI::Rect",0,&tolua_err) ||
  1363. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1364. )
  1365. goto tolua_lerror;
  1366. else
  1367. #endif
  1368. {
  1369. const CEGUI::Rect* self = (const CEGUI::Rect*) tolua_tousertype(tolua_S,1,0);
  1370. #ifndef TOLUA_RELEASE
  1371. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getPosition'",NULL);
  1372. #endif
  1373. {
  1374. CEGUI::Vector2 tolua_ret = (CEGUI::Vector2) self->getPosition();
  1375. {
  1376. #ifdef __cplusplus
  1377. void* tolua_obj = new CEGUI::Vector2(tolua_ret);
  1378. tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CEGUI::Vector2");
  1379. #else
  1380. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CEGUI::Vector2));
  1381. tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CEGUI::Vector2");
  1382. #endif
  1383. }
  1384. }
  1385. }
  1386. return 1;
  1387. #ifndef TOLUA_RELEASE
  1388. tolua_lerror:
  1389. tolua_error(tolua_S,"#ferror in function 'getPosition'.",&tolua_err);
  1390. return 0;
  1391. #endif
  1392. }
  1393. #endif //#ifndef TOLUA_DISABLE
  1394. /* method: getWidth of class CEGUI::Rect */
  1395. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Rect_getWidth00
  1396. static int tolua_CEGUI_CEGUI_Rect_getWidth00(lua_State* tolua_S)
  1397. {
  1398. #ifndef TOLUA_RELEASE
  1399. tolua_Error tolua_err;
  1400. if (
  1401. !tolua_isusertype(tolua_S,1,"const CEGUI::Rect",0,&tolua_err) ||
  1402. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1403. )
  1404. goto tolua_lerror;
  1405. else
  1406. #endif
  1407. {
  1408. const CEGUI::Rect* self = (const CEGUI::Rect*) tolua_tousertype(tolua_S,1,0);
  1409. #ifndef TOLUA_RELEASE
  1410. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getWidth'",NULL);
  1411. #endif
  1412. {
  1413. float tolua_ret = (float) self->getWidth();
  1414. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1415. }
  1416. }
  1417. return 1;
  1418. #ifndef TOLUA_RELEASE
  1419. tolua_lerror:
  1420. tolua_error(tolua_S,"#ferror in function 'getWidth'.",&tolua_err);
  1421. return 0;
  1422. #endif
  1423. }
  1424. #endif //#ifndef TOLUA_DISABLE
  1425. /* method: getHeight of class CEGUI::Rect */
  1426. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Rect_getHeight00
  1427. static int tolua_CEGUI_CEGUI_Rect_getHeight00(lua_State* tolua_S)
  1428. {
  1429. #ifndef TOLUA_RELEASE
  1430. tolua_Error tolua_err;
  1431. if (
  1432. !tolua_isusertype(tolua_S,1,"const CEGUI::Rect",0,&tolua_err) ||
  1433. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1434. )
  1435. goto tolua_lerror;
  1436. else
  1437. #endif
  1438. {
  1439. const CEGUI::Rect* self = (const CEGUI::Rect*) tolua_tousertype(tolua_S,1,0);
  1440. #ifndef TOLUA_RELEASE
  1441. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getHeight'",NULL);
  1442. #endif
  1443. {
  1444. float tolua_ret = (float) self->getHeight();
  1445. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1446. }
  1447. }
  1448. return 1;
  1449. #ifndef TOLUA_RELEASE
  1450. tolua_lerror:
  1451. tolua_error(tolua_S,"#ferror in function 'getHeight'.",&tolua_err);
  1452. return 0;
  1453. #endif
  1454. }
  1455. #endif //#ifndef TOLUA_DISABLE
  1456. /* method: getSize of class CEGUI::Rect */
  1457. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Rect_getSize00
  1458. static int tolua_CEGUI_CEGUI_Rect_getSize00(lua_State* tolua_S)
  1459. {
  1460. #ifndef TOLUA_RELEASE
  1461. tolua_Error tolua_err;
  1462. if (
  1463. !tolua_isusertype(tolua_S,1,"const CEGUI::Rect",0,&tolua_err) ||
  1464. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1465. )
  1466. goto tolua_lerror;
  1467. else
  1468. #endif
  1469. {
  1470. const CEGUI::Rect* self = (const CEGUI::Rect*) tolua_tousertype(tolua_S,1,0);
  1471. #ifndef TOLUA_RELEASE
  1472. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getSize'",NULL);
  1473. #endif
  1474. {
  1475. CEGUI::Size tolua_ret = (CEGUI::Size) self->getSize();
  1476. {
  1477. #ifdef __cplusplus
  1478. void* tolua_obj = new CEGUI::Size(tolua_ret);
  1479. tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CEGUI::Size");
  1480. #else
  1481. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CEGUI::Size));
  1482. tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CEGUI::Size");
  1483. #endif
  1484. }
  1485. }
  1486. }
  1487. return 1;
  1488. #ifndef TOLUA_RELEASE
  1489. tolua_lerror:
  1490. tolua_error(tolua_S,"#ferror in function 'getSize'.",&tolua_err);
  1491. return 0;
  1492. #endif
  1493. }
  1494. #endif //#ifndef TOLUA_DISABLE
  1495. /* method: getIntersection of class CEGUI::Rect */
  1496. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Rect_getIntersection00
  1497. static int tolua_CEGUI_CEGUI_Rect_getIntersection00(lua_State* tolua_S)
  1498. {
  1499. #ifndef TOLUA_RELEASE
  1500. tolua_Error tolua_err;
  1501. if (
  1502. !tolua_isusertype(tolua_S,1,"const CEGUI::Rect",0,&tolua_err) ||
  1503. !tolua_isusertype(tolua_S,2,"const CEGUI::Rect",0,&tolua_err) ||
  1504. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1505. )
  1506. goto tolua_lerror;
  1507. else
  1508. #endif
  1509. {
  1510. const CEGUI::Rect* self = (const CEGUI::Rect*) tolua_tousertype(tolua_S,1,0);
  1511. const CEGUI::Rect* rect = ((const CEGUI::Rect*) tolua_tousertype(tolua_S,2,0));
  1512. #ifndef TOLUA_RELEASE
  1513. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getIntersection'",NULL);
  1514. #endif
  1515. {
  1516. CEGUI::Rect tolua_ret = (CEGUI::Rect) self->getIntersection(*rect);
  1517. {
  1518. #ifdef __cplusplus
  1519. void* tolua_obj = new CEGUI::Rect(tolua_ret);
  1520. tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CEGUI::Rect");
  1521. #else
  1522. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CEGUI::Rect));
  1523. tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CEGUI::Rect");
  1524. #endif
  1525. }
  1526. }
  1527. }
  1528. return 1;
  1529. #ifndef TOLUA_RELEASE
  1530. tolua_lerror:
  1531. tolua_error(tolua_S,"#ferror in function 'getIntersection'.",&tolua_err);
  1532. return 0;
  1533. #endif
  1534. }
  1535. #endif //#ifndef TOLUA_DISABLE
  1536. /* method: isPointInRect of class CEGUI::Rect */
  1537. #ifndef TOLUA_DISABLE_tolua_CEGUI_CEGUI_Rect_isPointInRect00
  1538. static int tolua_CEGUI_CEGUI_Rec