1 #include "lqt_bind_QLayoutItem.hpp"
3 int LuaBinder
< QLayoutItem
>::__LuaWrapCall__invalidate (lua_State
*L
) {
4 QLayoutItem
*& __lua__obj
= *static_cast<QLayoutItem
**>(lqtL_checkudata(L
, 1, "QLayoutItem*"));
6 lua_pushstring(L
, "trying to reference deleted pointer");
10 __lua__obj
->QLayoutItem::invalidate();
13 int LuaBinder
< QLayoutItem
>::__LuaWrapCall__controlTypes (lua_State
*L
) {
14 QLayoutItem
*& __lua__obj
= *static_cast<QLayoutItem
**>(lqtL_checkudata(L
, 1, "QLayoutItem*"));
16 lua_pushstring(L
, "trying to reference deleted pointer");
20 QFlags
<QSizePolicy::ControlType
> ret
= __lua__obj
->QLayoutItem::controlTypes();
21 lqtL_passudata(L
, new QFlags
<QSizePolicy::ControlType
>(ret
), "QFlags<QSizePolicy::ControlType>*");
24 int LuaBinder
< QLayoutItem
>::__LuaWrapCall__heightForWidth (lua_State
*L
) {
25 QLayoutItem
*& __lua__obj
= *static_cast<QLayoutItem
**>(lqtL_checkudata(L
, 1, "QLayoutItem*"));
27 lua_pushstring(L
, "trying to reference deleted pointer");
31 int arg1
= lua_tointeger(L
, 2);
32 int ret
= __lua__obj
->QLayoutItem::heightForWidth(arg1
);
33 lua_pushinteger(L
, ret
);
36 int LuaBinder
< QLayoutItem
>::__LuaWrapCall__spacerItem (lua_State
*L
) {
37 QLayoutItem
*& __lua__obj
= *static_cast<QLayoutItem
**>(lqtL_checkudata(L
, 1, "QLayoutItem*"));
39 lua_pushstring(L
, "trying to reference deleted pointer");
43 QSpacerItem
* ret
= __lua__obj
->QLayoutItem::spacerItem();
44 lqtL_pushudata(L
, ret
, "QSpacerItem*");
47 int LuaBinder
< QLayoutItem
>::__LuaWrapCall__delete (lua_State
*L
) {
48 QLayoutItem
*& __lua__obj
= *static_cast<QLayoutItem
**>(lqtL_checkudata(L
, 1, "QLayoutItem*"));
50 lua_pushstring(L
, "trying to reference deleted pointer");
58 int LuaBinder
< QLayoutItem
>::__LuaWrapCall__layout (lua_State
*L
) {
59 QLayoutItem
*& __lua__obj
= *static_cast<QLayoutItem
**>(lqtL_checkudata(L
, 1, "QLayoutItem*"));
61 lua_pushstring(L
, "trying to reference deleted pointer");
65 QLayout
* ret
= __lua__obj
->QLayoutItem::layout();
66 lqtL_pushudata(L
, ret
, "QLayout*");
69 int LuaBinder
< QLayoutItem
>::__LuaWrapCall__setAlignment (lua_State
*L
) {
70 QLayoutItem
*& __lua__obj
= *static_cast<QLayoutItem
**>(lqtL_checkudata(L
, 1, "QLayoutItem*"));
72 lua_pushstring(L
, "trying to reference deleted pointer");
76 QFlags
<Qt::AlignmentFlag
> arg1
= **static_cast<QFlags
<Qt::AlignmentFlag
>**>(lqtL_checkudata(L
, 2, "QFlags<Qt::AlignmentFlag>*"));
77 __lua__obj
->QLayoutItem::setAlignment(arg1
);
80 int LuaBinder
< QLayoutItem
>::__LuaWrapCall__minimumHeightForWidth (lua_State
*L
) {
81 QLayoutItem
*& __lua__obj
= *static_cast<QLayoutItem
**>(lqtL_checkudata(L
, 1, "QLayoutItem*"));
83 lua_pushstring(L
, "trying to reference deleted pointer");
87 int arg1
= lua_tointeger(L
, 2);
88 int ret
= __lua__obj
->QLayoutItem::minimumHeightForWidth(arg1
);
89 lua_pushinteger(L
, ret
);
92 int LuaBinder
< QLayoutItem
>::__LuaWrapCall__alignment (lua_State
*L
) {
93 QLayoutItem
*& __lua__obj
= *static_cast<QLayoutItem
**>(lqtL_checkudata(L
, 1, "QLayoutItem*"));
95 lua_pushstring(L
, "trying to reference deleted pointer");
99 QFlags
<Qt::AlignmentFlag
> ret
= __lua__obj
->QLayoutItem::alignment();
100 lqtL_passudata(L
, new QFlags
<Qt::AlignmentFlag
>(ret
), "QFlags<Qt::AlignmentFlag>*");
103 int LuaBinder
< QLayoutItem
>::__LuaWrapCall__widget (lua_State
*L
) {
104 QLayoutItem
*& __lua__obj
= *static_cast<QLayoutItem
**>(lqtL_checkudata(L
, 1, "QLayoutItem*"));
106 lua_pushstring(L
, "trying to reference deleted pointer");
110 QWidget
* ret
= __lua__obj
->QLayoutItem::widget();
111 lqtL_pushudata(L
, ret
, "QWidget*");
114 int LuaBinder
< QLayoutItem
>::__LuaWrapCall__hasHeightForWidth (lua_State
*L
) {
115 QLayoutItem
*& __lua__obj
= *static_cast<QLayoutItem
**>(lqtL_checkudata(L
, 1, "QLayoutItem*"));
117 lua_pushstring(L
, "trying to reference deleted pointer");
121 bool ret
= __lua__obj
->QLayoutItem::hasHeightForWidth();
122 lua_pushboolean(L
, ret
);
125 bool LuaBinder
< QLayoutItem
>::hasHeightForWidth () const {
126 bool absorbed
= false;
127 int oldtop
= lua_gettop(L
);
128 lqtL_pushudata(L
, this, "QLayoutItem*");
129 if (lua_getmetatable(L
, -1)) {
130 lua_getfield(L
, -1, "hasHeightForWidth");
136 if (lua_isfunction(L
, -0-2)) {
137 lua_pcall(L
, 0+1, 2, 0);
138 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
142 lua_settop(L
, oldtop
);
143 return this->QLayoutItem::hasHeightForWidth();
145 bool ret
= (bool)lua_toboolean(L
, -1);
146 lua_settop(L
, oldtop
);
149 QLayout
* LuaBinder
< QLayoutItem
>::layout () {
150 bool absorbed
= false;
151 int oldtop
= lua_gettop(L
);
152 lqtL_pushudata(L
, this, "QLayoutItem*");
153 if (lua_getmetatable(L
, -1)) {
154 lua_getfield(L
, -1, "layout");
160 if (lua_isfunction(L
, -0-2)) {
161 lua_pcall(L
, 0+1, 2, 0);
162 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
166 lua_settop(L
, oldtop
);
167 return this->QLayoutItem::layout();
169 QLayout
* ret
= *static_cast<QLayout
**>(lqtL_checkudata(L
, -1, "QLayout*"));
170 lua_settop(L
, oldtop
);
173 QSpacerItem
* LuaBinder
< QLayoutItem
>::spacerItem () {
174 bool absorbed
= false;
175 int oldtop
= lua_gettop(L
);
176 lqtL_pushudata(L
, this, "QLayoutItem*");
177 if (lua_getmetatable(L
, -1)) {
178 lua_getfield(L
, -1, "spacerItem");
184 if (lua_isfunction(L
, -0-2)) {
185 lua_pcall(L
, 0+1, 2, 0);
186 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
190 lua_settop(L
, oldtop
);
191 return this->QLayoutItem::spacerItem();
193 QSpacerItem
* ret
= *static_cast<QSpacerItem
**>(lqtL_checkudata(L
, -1, "QSpacerItem*"));
194 lua_settop(L
, oldtop
);
197 QSize LuaBinder
< QLayoutItem
>::sizeHint () const {
198 bool absorbed
= false;
199 int oldtop
= lua_gettop(L
);
200 lqtL_pushudata(L
, this, "QLayoutItem*");
201 if (lua_getmetatable(L
, -1)) {
202 lua_getfield(L
, -1, "sizeHint");
208 if (lua_isfunction(L
, -0-2)) {
209 lua_pcall(L
, 0+1, 2, 0);
210 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
214 lua_settop(L
, oldtop
);
216 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
217 lua_settop(L
, oldtop
);
220 void LuaBinder
< QLayoutItem
>::setGeometry (const QRect
& arg1
) {
221 bool absorbed
= false;
222 int oldtop
= lua_gettop(L
);
223 lqtL_pushudata(L
, this, "QLayoutItem*");
224 if (lua_getmetatable(L
, -1)) {
225 lua_getfield(L
, -1, "setGeometry");
231 lqtL_pushudata(L
, &(arg1
), "QRect*");
232 if (lua_isfunction(L
, -1-2)) {
233 lua_pcall(L
, 1+1, 2, 0);
234 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
238 lua_settop(L
, oldtop
);
240 lua_settop(L
, oldtop
);
242 QSize LuaBinder
< QLayoutItem
>::minimumSize () const {
243 bool absorbed
= false;
244 int oldtop
= lua_gettop(L
);
245 lqtL_pushudata(L
, this, "QLayoutItem*");
246 if (lua_getmetatable(L
, -1)) {
247 lua_getfield(L
, -1, "minimumSize");
253 if (lua_isfunction(L
, -0-2)) {
254 lua_pcall(L
, 0+1, 2, 0);
255 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
259 lua_settop(L
, oldtop
);
261 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
262 lua_settop(L
, oldtop
);
265 int LuaBinder
< QLayoutItem
>::heightForWidth (int arg1
) const {
266 bool absorbed
= false;
267 int oldtop
= lua_gettop(L
);
268 lqtL_pushudata(L
, this, "QLayoutItem*");
269 if (lua_getmetatable(L
, -1)) {
270 lua_getfield(L
, -1, "heightForWidth");
276 lua_pushinteger(L
, arg1
);
277 if (lua_isfunction(L
, -1-2)) {
278 lua_pcall(L
, 1+1, 2, 0);
279 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
283 lua_settop(L
, oldtop
);
284 return this->QLayoutItem::heightForWidth(arg1
);
286 int ret
= lua_tointeger(L
, -1);
287 lua_settop(L
, oldtop
);
290 QWidget
* LuaBinder
< QLayoutItem
>::widget () {
291 bool absorbed
= false;
292 int oldtop
= lua_gettop(L
);
293 lqtL_pushudata(L
, this, "QLayoutItem*");
294 if (lua_getmetatable(L
, -1)) {
295 lua_getfield(L
, -1, "widget");
301 if (lua_isfunction(L
, -0-2)) {
302 lua_pcall(L
, 0+1, 2, 0);
303 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
307 lua_settop(L
, oldtop
);
308 return this->QLayoutItem::widget();
310 QWidget
* ret
= *static_cast<QWidget
**>(lqtL_checkudata(L
, -1, "QWidget*"));
311 lua_settop(L
, oldtop
);
314 bool LuaBinder
< QLayoutItem
>::isEmpty () const {
315 bool absorbed
= false;
316 int oldtop
= lua_gettop(L
);
317 lqtL_pushudata(L
, this, "QLayoutItem*");
318 if (lua_getmetatable(L
, -1)) {
319 lua_getfield(L
, -1, "isEmpty");
325 if (lua_isfunction(L
, -0-2)) {
326 lua_pcall(L
, 0+1, 2, 0);
327 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
331 lua_settop(L
, oldtop
);
333 bool ret
= (bool)lua_toboolean(L
, -1);
334 lua_settop(L
, oldtop
);
337 void LuaBinder
< QLayoutItem
>::invalidate () {
338 bool absorbed
= false;
339 int oldtop
= lua_gettop(L
);
340 lqtL_pushudata(L
, this, "QLayoutItem*");
341 if (lua_getmetatable(L
, -1)) {
342 lua_getfield(L
, -1, "invalidate");
348 if (lua_isfunction(L
, -0-2)) {
349 lua_pcall(L
, 0+1, 2, 0);
350 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
354 lua_settop(L
, oldtop
);
355 this->QLayoutItem::invalidate();
357 lua_settop(L
, oldtop
);
359 QFlags
<Qt::Orientation
> LuaBinder
< QLayoutItem
>::expandingDirections () const {
360 bool absorbed
= false;
361 int oldtop
= lua_gettop(L
);
362 lqtL_pushudata(L
, this, "QLayoutItem*");
363 if (lua_getmetatable(L
, -1)) {
364 lua_getfield(L
, -1, "expandingDirections");
370 if (lua_isfunction(L
, -0-2)) {
371 lua_pcall(L
, 0+1, 2, 0);
372 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
376 lua_settop(L
, oldtop
);
378 QFlags
<Qt::Orientation
> ret
= **static_cast<QFlags
<Qt::Orientation
>**>(lqtL_checkudata(L
, -1, "QFlags<Qt::Orientation>*"));
379 lua_settop(L
, oldtop
);
382 QRect LuaBinder
< QLayoutItem
>::geometry () const {
383 bool absorbed
= false;
384 int oldtop
= lua_gettop(L
);
385 lqtL_pushudata(L
, this, "QLayoutItem*");
386 if (lua_getmetatable(L
, -1)) {
387 lua_getfield(L
, -1, "geometry");
393 if (lua_isfunction(L
, -0-2)) {
394 lua_pcall(L
, 0+1, 2, 0);
395 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
399 lua_settop(L
, oldtop
);
401 QRect ret
= **static_cast<QRect
**>(lqtL_checkudata(L
, -1, "QRect*"));
402 lua_settop(L
, oldtop
);
405 int LuaBinder
< QLayoutItem
>::minimumHeightForWidth (int arg1
) const {
406 bool absorbed
= false;
407 int oldtop
= lua_gettop(L
);
408 lqtL_pushudata(L
, this, "QLayoutItem*");
409 if (lua_getmetatable(L
, -1)) {
410 lua_getfield(L
, -1, "minimumHeightForWidth");
416 lua_pushinteger(L
, arg1
);
417 if (lua_isfunction(L
, -1-2)) {
418 lua_pcall(L
, 1+1, 2, 0);
419 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
423 lua_settop(L
, oldtop
);
424 return this->QLayoutItem::minimumHeightForWidth(arg1
);
426 int ret
= lua_tointeger(L
, -1);
427 lua_settop(L
, oldtop
);
430 QSize LuaBinder
< QLayoutItem
>::maximumSize () const {
431 bool absorbed
= false;
432 int oldtop
= lua_gettop(L
);
433 lqtL_pushudata(L
, this, "QLayoutItem*");
434 if (lua_getmetatable(L
, -1)) {
435 lua_getfield(L
, -1, "maximumSize");
441 if (lua_isfunction(L
, -0-2)) {
442 lua_pcall(L
, 0+1, 2, 0);
443 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
447 lua_settop(L
, oldtop
);
449 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
450 lua_settop(L
, oldtop
);
453 LuaBinder
< QLayoutItem
>:: ~LuaBinder
< QLayoutItem
> () {
454 int oldtop
= lua_gettop(L
);
455 lqtL_pushudata(L
, this, "QLayoutItem*");
456 lua_getfield(L
, -1, "~QLayoutItem");
458 if (lua_isfunction(L
, -1)) {
460 lua_pcall(L
, 1, 1, 0);
463 lua_settop(L
, oldtop
);
465 int luaopen_QLayoutItem (lua_State
*L
) {
466 if (luaL_newmetatable(L
, "QLayoutItem*")) {
467 lua_pushcfunction(L
, LuaBinder
< QLayoutItem
>::__LuaWrapCall__invalidate
);
468 lua_setfield(L
, -2, "invalidate");
469 lua_pushcfunction(L
, LuaBinder
< QLayoutItem
>::__LuaWrapCall__controlTypes
);
470 lua_setfield(L
, -2, "controlTypes");
471 lua_pushcfunction(L
, LuaBinder
< QLayoutItem
>::__LuaWrapCall__heightForWidth
);
472 lua_setfield(L
, -2, "heightForWidth");
473 lua_pushcfunction(L
, LuaBinder
< QLayoutItem
>::__LuaWrapCall__spacerItem
);
474 lua_setfield(L
, -2, "spacerItem");
475 lua_pushcfunction(L
, LuaBinder
< QLayoutItem
>::__LuaWrapCall__delete
);
476 lua_setfield(L
, -2, "delete");
477 lua_pushcfunction(L
, LuaBinder
< QLayoutItem
>::__LuaWrapCall__layout
);
478 lua_setfield(L
, -2, "layout");
479 lua_pushcfunction(L
, LuaBinder
< QLayoutItem
>::__LuaWrapCall__setAlignment
);
480 lua_setfield(L
, -2, "setAlignment");
481 lua_pushcfunction(L
, LuaBinder
< QLayoutItem
>::__LuaWrapCall__minimumHeightForWidth
);
482 lua_setfield(L
, -2, "minimumHeightForWidth");
483 lua_pushcfunction(L
, LuaBinder
< QLayoutItem
>::__LuaWrapCall__alignment
);
484 lua_setfield(L
, -2, "alignment");
485 lua_pushcfunction(L
, LuaBinder
< QLayoutItem
>::__LuaWrapCall__widget
);
486 lua_setfield(L
, -2, "widget");
487 lua_pushcfunction(L
, LuaBinder
< QLayoutItem
>::__LuaWrapCall__hasHeightForWidth
);
488 lua_setfield(L
, -2, "hasHeightForWidth");
490 lua_setfield(L
, -2, "__base");
491 lua_pushcfunction(L
, lqtL_newindex
);
492 lua_setfield(L
, -2, "__newindex");
493 lua_pushcfunction(L
, lqtL_index
);
494 lua_setfield(L
, -2, "__index");
495 lua_pushcfunction(L
, lqtL_gc
);
496 lua_setfield(L
, -2, "__gc");
497 lua_pushstring(L
, "QLayoutItem");
498 lua_setfield(L
, -2, "__qtype");
499 lua_setglobal(L
, "QLayoutItem");