1 #include "lqt_bind_QBoxLayout.hpp"
3 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__insertLayout (lua_State
*L
) {
4 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
6 lua_pushstring(L
, "trying to reference deleted pointer");
10 int arg1
= lua_tointeger(L
, 2);
11 QLayout
* arg2
= *static_cast<QLayout
**>(lqtL_checkudata(L
, 3, "QLayout*"));
12 int arg3
= lua_isnumber(L
, 4)?lua_tointeger(L
, 4):static_cast< int >(0);
13 __lua__obj
->QBoxLayout::insertLayout(arg1
, arg2
, arg3
);
16 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__takeAt (lua_State
*L
) {
17 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
19 lua_pushstring(L
, "trying to reference deleted pointer");
23 int arg1
= lua_tointeger(L
, 2);
24 QLayoutItem
* ret
= __lua__obj
->QBoxLayout::takeAt(arg1
);
25 lqtL_pushudata(L
, ret
, "QLayoutItem*");
28 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__delete (lua_State
*L
) {
29 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
31 lua_pushstring(L
, "trying to reference deleted pointer");
39 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__sizeHint (lua_State
*L
) {
40 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
42 lua_pushstring(L
, "trying to reference deleted pointer");
46 QSize ret
= __lua__obj
->QBoxLayout::sizeHint();
47 lqtL_passudata(L
, new QSize(ret
), "QSize*");
50 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__setSpacing (lua_State
*L
) {
51 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
53 lua_pushstring(L
, "trying to reference deleted pointer");
57 int arg1
= lua_tointeger(L
, 2);
58 __lua__obj
->QBoxLayout::setSpacing(arg1
);
61 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__minimumSize (lua_State
*L
) {
62 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
64 lua_pushstring(L
, "trying to reference deleted pointer");
68 QSize ret
= __lua__obj
->QBoxLayout::minimumSize();
69 lqtL_passudata(L
, new QSize(ret
), "QSize*");
72 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__invalidate (lua_State
*L
) {
73 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
75 lua_pushstring(L
, "trying to reference deleted pointer");
79 __lua__obj
->QBoxLayout::invalidate();
82 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__direction (lua_State
*L
) {
83 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
85 lua_pushstring(L
, "trying to reference deleted pointer");
89 QBoxLayout::Direction ret
= __lua__obj
->QBoxLayout::direction();
90 lqtL_pushenum(L
, ret
, "QBoxLayout::Direction");
93 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__spacing (lua_State
*L
) {
94 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
96 lua_pushstring(L
, "trying to reference deleted pointer");
100 int ret
= __lua__obj
->QBoxLayout::spacing();
101 lua_pushinteger(L
, ret
);
104 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__addSpacing (lua_State
*L
) {
105 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
107 lua_pushstring(L
, "trying to reference deleted pointer");
111 int arg1
= lua_tointeger(L
, 2);
112 __lua__obj
->QBoxLayout::addSpacing(arg1
);
115 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__insertWidget (lua_State
*L
) {
116 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
118 lua_pushstring(L
, "trying to reference deleted pointer");
122 int arg1
= lua_tointeger(L
, 2);
123 QWidget
* arg2
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 3, "QWidget*"));
124 int arg3
= lua_isnumber(L
, 4)?lua_tointeger(L
, 4):static_cast< int >(0);
125 QFlags
<Qt::AlignmentFlag
> arg4
= lqtL_testudata(L
, 5, "QFlags<Qt::AlignmentFlag>*")?**static_cast<QFlags
<Qt::AlignmentFlag
>**>(lqtL_checkudata(L
, 5, "QFlags<Qt::AlignmentFlag>*")):static_cast< QFlags
<Qt::AlignmentFlag
> >(0);
126 __lua__obj
->QBoxLayout::insertWidget(arg1
, arg2
, arg3
, arg4
);
129 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__addStretch (lua_State
*L
) {
130 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
132 lua_pushstring(L
, "trying to reference deleted pointer");
136 int arg1
= lua_isnumber(L
, 2)?lua_tointeger(L
, 2):static_cast< int >(0);
137 __lua__obj
->QBoxLayout::addStretch(arg1
);
140 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State
*L
) {
141 const char * arg1
= lua_tostring(L
, 1);
142 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
143 QString ret
= QBoxLayout::trUtf8(arg1
, arg2
);
144 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
147 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State
*L
) {
148 const char * arg1
= lua_tostring(L
, 1);
149 const char * arg2
= lua_tostring(L
, 2);
150 int arg3
= lua_tointeger(L
, 3);
151 QString ret
= QBoxLayout::trUtf8(arg1
, arg2
, arg3
);
152 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
155 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__trUtf8 (lua_State
*L
) {
157 const int premium
= 11+lua_gettop(L
);
159 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
162 score
[1] += premium
-1; // table: 0x10dbb90;
164 score
[1] -= premium
*premium
;
166 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
169 score
[1] += premium
-1; // table: 0x10db6f0;
171 score
[1] -= premium
*premium
;
174 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
177 score
[2] += premium
-1; // table: 0x10dd980;
179 score
[2] -= premium
*premium
;
181 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
184 score
[2] += premium
-1; // table: 0x10dd0b0;
186 score
[2] -= premium
*premium
;
188 if (lua_isnumber(L
, 3)) {
191 score
[2] += premium
-1; // table: 0x10dde10;
193 score
[2] -= premium
*premium
;
196 for (int i
=1;i
<=2;i
++) {
197 if (score
[best
] < score
[i
]) { best
= i
; }
200 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L
); break;
201 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L
); break;
203 lua_pushstring(L
, "no overload of function __LuaWrapCall__trUtf8 matching arguments");
207 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__insertStretch (lua_State
*L
) {
208 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
210 lua_pushstring(L
, "trying to reference deleted pointer");
214 int arg1
= lua_tointeger(L
, 2);
215 int arg2
= lua_isnumber(L
, 3)?lua_tointeger(L
, 3):static_cast< int >(0);
216 __lua__obj
->QBoxLayout::insertStretch(arg1
, arg2
);
219 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__metaObject (lua_State
*L
) {
220 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
222 lua_pushstring(L
, "trying to reference deleted pointer");
226 const QMetaObject
* ret
= __lua__obj
->QBoxLayout::metaObject();
227 lqtL_pushudata(L
, ret
, "QMetaObject*");
230 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__new (lua_State
*L
) {
231 QBoxLayout::Direction arg1
= static_cast<QBoxLayout::Direction
>(lqtL_toenum(L
, 1, "QBoxLayout::Direction"));
232 QWidget
* arg2
= lqtL_testudata(L
, 2, "QWidget*")?*static_cast<QWidget
**>(lqtL_checkudata(L
, 2, "QWidget*")):static_cast< QWidget
* >(0);
233 QBoxLayout
* ret
= new LuaBinder
< QBoxLayout
>(L
, arg1
, arg2
);
234 lqtL_passudata(L
, ret
, "QBoxLayout*");
237 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State
*L
) {
238 const char * arg1
= lua_tostring(L
, 1);
239 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
240 QString ret
= QBoxLayout::tr(arg1
, arg2
);
241 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
244 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State
*L
) {
245 const char * arg1
= lua_tostring(L
, 1);
246 const char * arg2
= lua_tostring(L
, 2);
247 int arg3
= lua_tointeger(L
, 3);
248 QString ret
= QBoxLayout::tr(arg1
, arg2
, arg3
);
249 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
252 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__tr (lua_State
*L
) {
254 const int premium
= 11+lua_gettop(L
);
256 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
259 score
[1] += premium
-1; // table: 0x10dae30;
261 score
[1] -= premium
*premium
;
263 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
266 score
[1] += premium
-1; // table: 0x10dab90;
268 score
[1] -= premium
*premium
;
271 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
274 score
[2] += premium
-1; // table: 0x10dc870;
276 score
[2] -= premium
*premium
;
278 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
281 score
[2] += premium
-1; // table: 0x10dcd60;
283 score
[2] -= premium
*premium
;
285 if (lua_isnumber(L
, 3)) {
288 score
[2] += premium
-1; // table: 0x10dd110;
290 score
[2] -= premium
*premium
;
293 for (int i
=1;i
<=2;i
++) {
294 if (score
[best
] < score
[i
]) { best
= i
; }
297 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L
); break;
298 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L
); break;
300 lua_pushstring(L
, "no overload of function __LuaWrapCall__tr matching arguments");
304 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__addStrut (lua_State
*L
) {
305 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
307 lua_pushstring(L
, "trying to reference deleted pointer");
311 int arg1
= lua_tointeger(L
, 2);
312 __lua__obj
->QBoxLayout::addStrut(arg1
);
315 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__minimumHeightForWidth (lua_State
*L
) {
316 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
318 lua_pushstring(L
, "trying to reference deleted pointer");
322 int arg1
= lua_tointeger(L
, 2);
323 int ret
= __lua__obj
->QBoxLayout::minimumHeightForWidth(arg1
);
324 lua_pushinteger(L
, ret
);
327 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__setDirection (lua_State
*L
) {
328 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
330 lua_pushstring(L
, "trying to reference deleted pointer");
334 QBoxLayout::Direction arg1
= static_cast<QBoxLayout::Direction
>(lqtL_toenum(L
, 2, "QBoxLayout::Direction"));
335 __lua__obj
->QBoxLayout::setDirection(arg1
);
338 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__heightForWidth (lua_State
*L
) {
339 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
341 lua_pushstring(L
, "trying to reference deleted pointer");
345 int arg1
= lua_tointeger(L
, 2);
346 int ret
= __lua__obj
->QBoxLayout::heightForWidth(arg1
);
347 lua_pushinteger(L
, ret
);
350 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__addItem (lua_State
*L
) {
351 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
353 lua_pushstring(L
, "trying to reference deleted pointer");
357 QLayoutItem
* arg1
= *static_cast<QLayoutItem
**>(lqtL_checkudata(L
, 2, "QLayoutItem*"));
358 __lua__obj
->QBoxLayout::addItem(arg1
);
361 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__setStretchFactor__OverloadedVersion__1 (lua_State
*L
) {
362 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
364 lua_pushstring(L
, "trying to reference deleted pointer");
368 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 2, "QWidget*"));
369 int arg2
= lua_tointeger(L
, 3);
370 bool ret
= __lua__obj
->QBoxLayout::setStretchFactor(arg1
, arg2
);
371 lua_pushboolean(L
, ret
);
374 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__setStretchFactor__OverloadedVersion__2 (lua_State
*L
) {
375 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
377 lua_pushstring(L
, "trying to reference deleted pointer");
381 QLayout
* arg1
= *static_cast<QLayout
**>(lqtL_checkudata(L
, 2, "QLayout*"));
382 int arg2
= lua_tointeger(L
, 3);
383 bool ret
= __lua__obj
->QBoxLayout::setStretchFactor(arg1
, arg2
);
384 lua_pushboolean(L
, ret
);
387 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__setStretchFactor (lua_State
*L
) {
389 const int premium
= 11+lua_gettop(L
);
391 score
[1] += lqtL_testudata(L
, 1, "QBoxLayout*")?premium
:-premium
*premium
;
392 if (lqtL_testudata(L
, 2, "QWidget*")) {
395 score
[1] += premium
-1; // table: 0x10ed010;
397 score
[1] -= premium
*premium
;
399 if (lua_isnumber(L
, 3)) {
402 score
[1] += premium
-1; // table: 0x10eca40;
404 score
[1] -= premium
*premium
;
407 score
[2] += lqtL_testudata(L
, 1, "QBoxLayout*")?premium
:-premium
*premium
;
408 if (lqtL_testudata(L
, 2, "QLayout*")) {
411 score
[2] += premium
-1; // table: 0x10ede50;
413 score
[2] -= premium
*premium
;
415 if (lua_isnumber(L
, 3)) {
418 score
[2] += premium
-1; // table: 0x10ed8f0;
420 score
[2] -= premium
*premium
;
423 for (int i
=1;i
<=2;i
++) {
424 if (score
[best
] < score
[i
]) { best
= i
; }
427 case 1: return __LuaWrapCall__setStretchFactor__OverloadedVersion__1(L
); break;
428 case 2: return __LuaWrapCall__setStretchFactor__OverloadedVersion__2(L
); break;
430 lua_pushstring(L
, "no overload of function __LuaWrapCall__setStretchFactor matching arguments");
434 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__expandingDirections (lua_State
*L
) {
435 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
437 lua_pushstring(L
, "trying to reference deleted pointer");
441 QFlags
<Qt::Orientation
> ret
= __lua__obj
->QBoxLayout::expandingDirections();
442 lqtL_passudata(L
, new QFlags
<Qt::Orientation
>(ret
), "QFlags<Qt::Orientation>*");
445 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__insertSpacing (lua_State
*L
) {
446 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
448 lua_pushstring(L
, "trying to reference deleted pointer");
452 int arg1
= lua_tointeger(L
, 2);
453 int arg2
= lua_tointeger(L
, 3);
454 __lua__obj
->QBoxLayout::insertSpacing(arg1
, arg2
);
457 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__addLayout (lua_State
*L
) {
458 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
460 lua_pushstring(L
, "trying to reference deleted pointer");
464 QLayout
* arg1
= *static_cast<QLayout
**>(lqtL_checkudata(L
, 2, "QLayout*"));
465 int arg2
= lua_isnumber(L
, 3)?lua_tointeger(L
, 3):static_cast< int >(0);
466 __lua__obj
->QBoxLayout::addLayout(arg1
, arg2
);
469 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__count (lua_State
*L
) {
470 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
472 lua_pushstring(L
, "trying to reference deleted pointer");
476 int ret
= __lua__obj
->QBoxLayout::count();
477 lua_pushinteger(L
, ret
);
480 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__addWidget (lua_State
*L
) {
481 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
483 lua_pushstring(L
, "trying to reference deleted pointer");
487 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 2, "QWidget*"));
488 int arg2
= lua_isnumber(L
, 3)?lua_tointeger(L
, 3):static_cast< int >(0);
489 QFlags
<Qt::AlignmentFlag
> arg3
= lqtL_testudata(L
, 4, "QFlags<Qt::AlignmentFlag>*")?**static_cast<QFlags
<Qt::AlignmentFlag
>**>(lqtL_checkudata(L
, 4, "QFlags<Qt::AlignmentFlag>*")):static_cast< QFlags
<Qt::AlignmentFlag
> >(0);
490 __lua__obj
->QBoxLayout::addWidget(arg1
, arg2
, arg3
);
493 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__maximumSize (lua_State
*L
) {
494 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
496 lua_pushstring(L
, "trying to reference deleted pointer");
500 QSize ret
= __lua__obj
->QBoxLayout::maximumSize();
501 lqtL_passudata(L
, new QSize(ret
), "QSize*");
504 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__setGeometry (lua_State
*L
) {
505 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
507 lua_pushstring(L
, "trying to reference deleted pointer");
511 const QRect
& arg1
= **static_cast<QRect
**>(lqtL_checkudata(L
, 2, "QRect*"));
512 __lua__obj
->QBoxLayout::setGeometry(arg1
);
515 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__itemAt (lua_State
*L
) {
516 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
518 lua_pushstring(L
, "trying to reference deleted pointer");
522 int arg1
= lua_tointeger(L
, 2);
523 QLayoutItem
* ret
= __lua__obj
->QBoxLayout::itemAt(arg1
);
524 lqtL_pushudata(L
, ret
, "QLayoutItem*");
527 int LuaBinder
< QBoxLayout
>::__LuaWrapCall__hasHeightForWidth (lua_State
*L
) {
528 QBoxLayout
*& __lua__obj
= *static_cast<QBoxLayout
**>(lqtL_checkudata(L
, 1, "QBoxLayout*"));
530 lua_pushstring(L
, "trying to reference deleted pointer");
534 bool ret
= __lua__obj
->QBoxLayout::hasHeightForWidth();
535 lua_pushboolean(L
, ret
);
538 QLayout
* LuaBinder
< QBoxLayout
>::layout () {
539 bool absorbed
= false;
540 int oldtop
= lua_gettop(L
);
541 lqtL_pushudata(L
, this, "QBoxLayout*");
542 if (lua_getmetatable(L
, -1)) {
543 lua_getfield(L
, -1, "layout");
549 if (lua_isfunction(L
, -0-2)) {
550 lua_pcall(L
, 0+1, 2, 0);
551 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
555 lua_settop(L
, oldtop
);
556 return this->QLayout::layout();
558 QLayout
* ret
= *static_cast<QLayout
**>(lqtL_checkudata(L
, -1, "QLayout*"));
559 lua_settop(L
, oldtop
);
562 QLayoutItem
* LuaBinder
< QBoxLayout
>::takeAt (int arg1
) {
563 bool absorbed
= false;
564 int oldtop
= lua_gettop(L
);
565 lqtL_pushudata(L
, this, "QBoxLayout*");
566 if (lua_getmetatable(L
, -1)) {
567 lua_getfield(L
, -1, "takeAt");
573 lua_pushinteger(L
, arg1
);
574 if (lua_isfunction(L
, -1-2)) {
575 lua_pcall(L
, 1+1, 2, 0);
576 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
580 lua_settop(L
, oldtop
);
581 return this->QBoxLayout::takeAt(arg1
);
583 QLayoutItem
* ret
= *static_cast<QLayoutItem
**>(lqtL_checkudata(L
, -1, "QLayoutItem*"));
584 lua_settop(L
, oldtop
);
587 void LuaBinder
< QBoxLayout
>::setGeometry (const QRect
& arg1
) {
588 bool absorbed
= false;
589 int oldtop
= lua_gettop(L
);
590 lqtL_pushudata(L
, this, "QBoxLayout*");
591 if (lua_getmetatable(L
, -1)) {
592 lua_getfield(L
, -1, "setGeometry");
598 lqtL_pushudata(L
, &(arg1
), "QRect*");
599 if (lua_isfunction(L
, -1-2)) {
600 lua_pcall(L
, 1+1, 2, 0);
601 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
605 lua_settop(L
, oldtop
);
606 this->QBoxLayout::setGeometry(arg1
);
608 lua_settop(L
, oldtop
);
610 QLayoutItem
* LuaBinder
< QBoxLayout
>::itemAt (int arg1
) const {
611 bool absorbed
= false;
612 int oldtop
= lua_gettop(L
);
613 lqtL_pushudata(L
, this, "QBoxLayout*");
614 if (lua_getmetatable(L
, -1)) {
615 lua_getfield(L
, -1, "itemAt");
621 lua_pushinteger(L
, arg1
);
622 if (lua_isfunction(L
, -1-2)) {
623 lua_pcall(L
, 1+1, 2, 0);
624 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
628 lua_settop(L
, oldtop
);
629 return this->QBoxLayout::itemAt(arg1
);
631 QLayoutItem
* ret
= *static_cast<QLayoutItem
**>(lqtL_checkudata(L
, -1, "QLayoutItem*"));
632 lua_settop(L
, oldtop
);
635 int LuaBinder
< QBoxLayout
>::heightForWidth (int arg1
) const {
636 bool absorbed
= false;
637 int oldtop
= lua_gettop(L
);
638 lqtL_pushudata(L
, this, "QBoxLayout*");
639 if (lua_getmetatable(L
, -1)) {
640 lua_getfield(L
, -1, "heightForWidth");
646 lua_pushinteger(L
, arg1
);
647 if (lua_isfunction(L
, -1-2)) {
648 lua_pcall(L
, 1+1, 2, 0);
649 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
653 lua_settop(L
, oldtop
);
654 return this->QBoxLayout::heightForWidth(arg1
);
656 int ret
= lua_tointeger(L
, -1);
657 lua_settop(L
, oldtop
);
660 QSize LuaBinder
< QBoxLayout
>::minimumSize () const {
661 bool absorbed
= false;
662 int oldtop
= lua_gettop(L
);
663 lqtL_pushudata(L
, this, "QBoxLayout*");
664 if (lua_getmetatable(L
, -1)) {
665 lua_getfield(L
, -1, "minimumSize");
671 if (lua_isfunction(L
, -0-2)) {
672 lua_pcall(L
, 0+1, 2, 0);
673 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
677 lua_settop(L
, oldtop
);
678 return this->QBoxLayout::minimumSize();
680 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
681 lua_settop(L
, oldtop
);
684 void LuaBinder
< QBoxLayout
>::invalidate () {
685 bool absorbed
= false;
686 int oldtop
= lua_gettop(L
);
687 lqtL_pushudata(L
, this, "QBoxLayout*");
688 if (lua_getmetatable(L
, -1)) {
689 lua_getfield(L
, -1, "invalidate");
695 if (lua_isfunction(L
, -0-2)) {
696 lua_pcall(L
, 0+1, 2, 0);
697 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
701 lua_settop(L
, oldtop
);
702 this->QBoxLayout::invalidate();
704 lua_settop(L
, oldtop
);
706 void LuaBinder
< QBoxLayout
>::connectNotify (const char * arg1
) {
707 bool absorbed
= false;
708 int oldtop
= lua_gettop(L
);
709 lqtL_pushudata(L
, this, "QBoxLayout*");
710 if (lua_getmetatable(L
, -1)) {
711 lua_getfield(L
, -1, "connectNotify");
717 lua_pushstring(L
, arg1
);
718 if (lua_isfunction(L
, -1-2)) {
719 lua_pcall(L
, 1+1, 2, 0);
720 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
724 lua_settop(L
, oldtop
);
725 this->QObject::connectNotify(arg1
);
727 lua_settop(L
, oldtop
);
729 void LuaBinder
< QBoxLayout
>::timerEvent (QTimerEvent
* arg1
) {
730 bool absorbed
= false;
731 int oldtop
= lua_gettop(L
);
732 lqtL_pushudata(L
, this, "QBoxLayout*");
733 if (lua_getmetatable(L
, -1)) {
734 lua_getfield(L
, -1, "timerEvent");
740 lqtL_pushudata(L
, arg1
, "QTimerEvent*");
741 if (lua_isfunction(L
, -1-2)) {
742 lua_pcall(L
, 1+1, 2, 0);
743 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
747 lua_settop(L
, oldtop
);
748 this->QObject::timerEvent(arg1
);
750 lua_settop(L
, oldtop
);
752 int LuaBinder
< QBoxLayout
>::minimumHeightForWidth (int arg1
) const {
753 bool absorbed
= false;
754 int oldtop
= lua_gettop(L
);
755 lqtL_pushudata(L
, this, "QBoxLayout*");
756 if (lua_getmetatable(L
, -1)) {
757 lua_getfield(L
, -1, "minimumHeightForWidth");
763 lua_pushinteger(L
, arg1
);
764 if (lua_isfunction(L
, -1-2)) {
765 lua_pcall(L
, 1+1, 2, 0);
766 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
770 lua_settop(L
, oldtop
);
771 return this->QBoxLayout::minimumHeightForWidth(arg1
);
773 int ret
= lua_tointeger(L
, -1);
774 lua_settop(L
, oldtop
);
777 QSize LuaBinder
< QBoxLayout
>::maximumSize () const {
778 bool absorbed
= false;
779 int oldtop
= lua_gettop(L
);
780 lqtL_pushudata(L
, this, "QBoxLayout*");
781 if (lua_getmetatable(L
, -1)) {
782 lua_getfield(L
, -1, "maximumSize");
788 if (lua_isfunction(L
, -0-2)) {
789 lua_pcall(L
, 0+1, 2, 0);
790 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
794 lua_settop(L
, oldtop
);
795 return this->QBoxLayout::maximumSize();
797 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
798 lua_settop(L
, oldtop
);
801 bool LuaBinder
< QBoxLayout
>::hasHeightForWidth () const {
802 bool absorbed
= false;
803 int oldtop
= lua_gettop(L
);
804 lqtL_pushudata(L
, this, "QBoxLayout*");
805 if (lua_getmetatable(L
, -1)) {
806 lua_getfield(L
, -1, "hasHeightForWidth");
812 if (lua_isfunction(L
, -0-2)) {
813 lua_pcall(L
, 0+1, 2, 0);
814 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
818 lua_settop(L
, oldtop
);
819 return this->QBoxLayout::hasHeightForWidth();
821 bool ret
= (bool)lua_toboolean(L
, -1);
822 lua_settop(L
, oldtop
);
825 void LuaBinder
< QBoxLayout
>::addItem (QLayoutItem
* arg1
) {
826 bool absorbed
= false;
827 int oldtop
= lua_gettop(L
);
828 lqtL_pushudata(L
, this, "QBoxLayout*");
829 if (lua_getmetatable(L
, -1)) {
830 lua_getfield(L
, -1, "addItem");
836 lqtL_pushudata(L
, arg1
, "QLayoutItem*");
837 if (lua_isfunction(L
, -1-2)) {
838 lua_pcall(L
, 1+1, 2, 0);
839 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
843 lua_settop(L
, oldtop
);
844 this->QBoxLayout::addItem(arg1
);
846 lua_settop(L
, oldtop
);
848 bool LuaBinder
< QBoxLayout
>::eventFilter (QObject
* arg1
, QEvent
* arg2
) {
849 bool absorbed
= false;
850 int oldtop
= lua_gettop(L
);
851 lqtL_pushudata(L
, this, "QBoxLayout*");
852 if (lua_getmetatable(L
, -1)) {
853 lua_getfield(L
, -1, "eventFilter");
859 lqtL_pushudata(L
, arg1
, "QObject*");
860 lqtL_pushudata(L
, arg2
, "QEvent*");
861 if (lua_isfunction(L
, -2-2)) {
862 lua_pcall(L
, 2+1, 2, 0);
863 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
867 lua_settop(L
, oldtop
);
868 return this->QObject::eventFilter(arg1
, arg2
);
870 bool ret
= (bool)lua_toboolean(L
, -1);
871 lua_settop(L
, oldtop
);
874 QSpacerItem
* LuaBinder
< QBoxLayout
>::spacerItem () {
875 bool absorbed
= false;
876 int oldtop
= lua_gettop(L
);
877 lqtL_pushudata(L
, this, "QBoxLayout*");
878 if (lua_getmetatable(L
, -1)) {
879 lua_getfield(L
, -1, "spacerItem");
885 if (lua_isfunction(L
, -0-2)) {
886 lua_pcall(L
, 0+1, 2, 0);
887 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
891 lua_settop(L
, oldtop
);
892 return this->QLayoutItem::spacerItem();
894 QSpacerItem
* ret
= *static_cast<QSpacerItem
**>(lqtL_checkudata(L
, -1, "QSpacerItem*"));
895 lua_settop(L
, oldtop
);
898 QSize LuaBinder
< QBoxLayout
>::sizeHint () const {
899 bool absorbed
= false;
900 int oldtop
= lua_gettop(L
);
901 lqtL_pushudata(L
, this, "QBoxLayout*");
902 if (lua_getmetatable(L
, -1)) {
903 lua_getfield(L
, -1, "sizeHint");
909 if (lua_isfunction(L
, -0-2)) {
910 lua_pcall(L
, 0+1, 2, 0);
911 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
915 lua_settop(L
, oldtop
);
916 return this->QBoxLayout::sizeHint();
918 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
919 lua_settop(L
, oldtop
);
922 int LuaBinder
< QBoxLayout
>::indexOf (QWidget
* arg1
) const {
923 bool absorbed
= false;
924 int oldtop
= lua_gettop(L
);
925 lqtL_pushudata(L
, this, "QBoxLayout*");
926 if (lua_getmetatable(L
, -1)) {
927 lua_getfield(L
, -1, "indexOf");
933 lqtL_pushudata(L
, arg1
, "QWidget*");
934 if (lua_isfunction(L
, -1-2)) {
935 lua_pcall(L
, 1+1, 2, 0);
936 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
940 lua_settop(L
, oldtop
);
941 return this->QLayout::indexOf(arg1
);
943 int ret
= lua_tointeger(L
, -1);
944 lua_settop(L
, oldtop
);
947 bool LuaBinder
< QBoxLayout
>::isEmpty () const {
948 bool absorbed
= false;
949 int oldtop
= lua_gettop(L
);
950 lqtL_pushudata(L
, this, "QBoxLayout*");
951 if (lua_getmetatable(L
, -1)) {
952 lua_getfield(L
, -1, "isEmpty");
958 if (lua_isfunction(L
, -0-2)) {
959 lua_pcall(L
, 0+1, 2, 0);
960 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
964 lua_settop(L
, oldtop
);
965 return this->QLayout::isEmpty();
967 bool ret
= (bool)lua_toboolean(L
, -1);
968 lua_settop(L
, oldtop
);
971 void LuaBinder
< QBoxLayout
>::disconnectNotify (const char * arg1
) {
972 bool absorbed
= false;
973 int oldtop
= lua_gettop(L
);
974 lqtL_pushudata(L
, this, "QBoxLayout*");
975 if (lua_getmetatable(L
, -1)) {
976 lua_getfield(L
, -1, "disconnectNotify");
982 lua_pushstring(L
, arg1
);
983 if (lua_isfunction(L
, -1-2)) {
984 lua_pcall(L
, 1+1, 2, 0);
985 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
989 lua_settop(L
, oldtop
);
990 this->QObject::disconnectNotify(arg1
);
992 lua_settop(L
, oldtop
);
994 bool LuaBinder
< QBoxLayout
>::event (QEvent
* arg1
) {
995 bool absorbed
= false;
996 int oldtop
= lua_gettop(L
);
997 lqtL_pushudata(L
, this, "QBoxLayout*");
998 if (lua_getmetatable(L
, -1)) {
999 lua_getfield(L
, -1, "event");
1005 lqtL_pushudata(L
, arg1
, "QEvent*");
1006 if (lua_isfunction(L
, -1-2)) {
1007 lua_pcall(L
, 1+1, 2, 0);
1008 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1012 lua_settop(L
, oldtop
);
1013 return this->QObject::event(arg1
);
1015 bool ret
= (bool)lua_toboolean(L
, -1);
1016 lua_settop(L
, oldtop
);
1019 QWidget
* LuaBinder
< QBoxLayout
>::widget () {
1020 bool absorbed
= false;
1021 int oldtop
= lua_gettop(L
);
1022 lqtL_pushudata(L
, this, "QBoxLayout*");
1023 if (lua_getmetatable(L
, -1)) {
1024 lua_getfield(L
, -1, "widget");
1030 if (lua_isfunction(L
, -0-2)) {
1031 lua_pcall(L
, 0+1, 2, 0);
1032 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1036 lua_settop(L
, oldtop
);
1037 return this->QLayoutItem::widget();
1039 QWidget
* ret
= *static_cast<QWidget
**>(lqtL_checkudata(L
, -1, "QWidget*"));
1040 lua_settop(L
, oldtop
);
1043 int LuaBinder
< QBoxLayout
>::count () const {
1044 bool absorbed
= false;
1045 int oldtop
= lua_gettop(L
);
1046 lqtL_pushudata(L
, this, "QBoxLayout*");
1047 if (lua_getmetatable(L
, -1)) {
1048 lua_getfield(L
, -1, "count");
1054 if (lua_isfunction(L
, -0-2)) {
1055 lua_pcall(L
, 0+1, 2, 0);
1056 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1060 lua_settop(L
, oldtop
);
1061 return this->QBoxLayout::count();
1063 int ret
= lua_tointeger(L
, -1);
1064 lua_settop(L
, oldtop
);
1067 QRect LuaBinder
< QBoxLayout
>::geometry () const {
1068 bool absorbed
= false;
1069 int oldtop
= lua_gettop(L
);
1070 lqtL_pushudata(L
, this, "QBoxLayout*");
1071 if (lua_getmetatable(L
, -1)) {
1072 lua_getfield(L
, -1, "geometry");
1078 if (lua_isfunction(L
, -0-2)) {
1079 lua_pcall(L
, 0+1, 2, 0);
1080 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1084 lua_settop(L
, oldtop
);
1085 return this->QLayout::geometry();
1087 QRect ret
= **static_cast<QRect
**>(lqtL_checkudata(L
, -1, "QRect*"));
1088 lua_settop(L
, oldtop
);
1091 QFlags
<Qt::Orientation
> LuaBinder
< QBoxLayout
>::expandingDirections () const {
1092 bool absorbed
= false;
1093 int oldtop
= lua_gettop(L
);
1094 lqtL_pushudata(L
, this, "QBoxLayout*");
1095 if (lua_getmetatable(L
, -1)) {
1096 lua_getfield(L
, -1, "expandingDirections");
1102 if (lua_isfunction(L
, -0-2)) {
1103 lua_pcall(L
, 0+1, 2, 0);
1104 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1108 lua_settop(L
, oldtop
);
1109 return this->QBoxLayout::expandingDirections();
1111 QFlags
<Qt::Orientation
> ret
= **static_cast<QFlags
<Qt::Orientation
>**>(lqtL_checkudata(L
, -1, "QFlags<Qt::Orientation>*"));
1112 lua_settop(L
, oldtop
);
1115 void LuaBinder
< QBoxLayout
>::childEvent (QChildEvent
* arg1
) {
1116 bool absorbed
= false;
1117 int oldtop
= lua_gettop(L
);
1118 lqtL_pushudata(L
, this, "QBoxLayout*");
1119 if (lua_getmetatable(L
, -1)) {
1120 lua_getfield(L
, -1, "childEvent");
1126 lqtL_pushudata(L
, arg1
, "QChildEvent*");
1127 if (lua_isfunction(L
, -1-2)) {
1128 lua_pcall(L
, 1+1, 2, 0);
1129 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1133 lua_settop(L
, oldtop
);
1134 this->QLayout::childEvent(arg1
);
1136 lua_settop(L
, oldtop
);
1138 const QMetaObject
* LuaBinder
< QBoxLayout
>::metaObject () const {
1139 bool absorbed
= false;
1140 int oldtop
= lua_gettop(L
);
1141 lqtL_pushudata(L
, this, "QBoxLayout*");
1142 if (lua_getmetatable(L
, -1)) {
1143 lua_getfield(L
, -1, "metaObject");
1149 if (lua_isfunction(L
, -0-2)) {
1150 lua_pcall(L
, 0+1, 2, 0);
1151 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1155 lua_settop(L
, oldtop
);
1156 return this->QBoxLayout::metaObject();
1158 const QMetaObject
* ret
= *static_cast<QMetaObject
**>(lqtL_checkudata(L
, -1, "QMetaObject*"));
1159 lua_settop(L
, oldtop
);
1162 void LuaBinder
< QBoxLayout
>::customEvent (QEvent
* arg1
) {
1163 bool absorbed
= false;
1164 int oldtop
= lua_gettop(L
);
1165 lqtL_pushudata(L
, this, "QBoxLayout*");
1166 if (lua_getmetatable(L
, -1)) {
1167 lua_getfield(L
, -1, "customEvent");
1173 lqtL_pushudata(L
, arg1
, "QEvent*");
1174 if (lua_isfunction(L
, -1-2)) {
1175 lua_pcall(L
, 1+1, 2, 0);
1176 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1180 lua_settop(L
, oldtop
);
1181 this->QObject::customEvent(arg1
);
1183 lua_settop(L
, oldtop
);
1185 LuaBinder
< QBoxLayout
>:: ~LuaBinder
< QBoxLayout
> () {
1186 int oldtop
= lua_gettop(L
);
1187 lqtL_pushudata(L
, this, "QBoxLayout*");
1188 lua_getfield(L
, -1, "~QBoxLayout");
1190 if (lua_isfunction(L
, -1)) {
1192 lua_pcall(L
, 1, 1, 0);
1195 lua_settop(L
, oldtop
);
1197 int LuaBinder
< QBoxLayout
>::lqt_pushenum_Direction (lua_State
*L
) {
1199 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
1200 if (!lua_istable(L
, -1)) {
1203 lua_pushvalue(L
, -1);
1204 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
1207 enum_table
= lua_gettop(L
);
1208 lua_pushstring(L
, "LeftToRight");
1209 lua_rawseti(L
, enum_table
, 0);
1210 lua_pushinteger(L
, 0);
1211 lua_setfield(L
, enum_table
, "LeftToRight");
1212 lua_pushstring(L
, "RightToLeft");
1213 lua_rawseti(L
, enum_table
, 1);
1214 lua_pushinteger(L
, 1);
1215 lua_setfield(L
, enum_table
, "RightToLeft");
1216 lua_pushstring(L
, "TopToBottom");
1217 lua_rawseti(L
, enum_table
, 2);
1218 lua_pushinteger(L
, 2);
1219 lua_setfield(L
, enum_table
, "TopToBottom");
1220 lua_pushstring(L
, "BottomToTop");
1221 lua_rawseti(L
, enum_table
, 3);
1222 lua_pushinteger(L
, 3);
1223 lua_setfield(L
, enum_table
, "BottomToTop");
1224 lua_pushstring(L
, "Down");
1225 lua_rawseti(L
, enum_table
, 2);
1226 lua_pushinteger(L
, 2);
1227 lua_setfield(L
, enum_table
, "Down");
1228 lua_pushstring(L
, "Up");
1229 lua_rawseti(L
, enum_table
, 3);
1230 lua_pushinteger(L
, 3);
1231 lua_setfield(L
, enum_table
, "Up");
1232 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::lqt_pushenum_Direction_QFLAGS_CREATOR
);
1233 lua_setfield(L
, enum_table
, "QFlags");
1234 lua_pushvalue(L
, -1);
1235 lua_setfield(L
, -3, "QBoxLayout::Direction");
1239 int LuaBinder
< QBoxLayout
>::lqt_pushenum_Direction_QFLAGS_CREATOR (lua_State
*L
) {
1240 int argn
= lua_gettop(L
);
1242 void *p
= lua_newuserdata(L
, sizeof(QFlags
<QBoxLayout::Direction
>*) + sizeof(QFlags
<QBoxLayout::Direction
>));
1243 QFlags
<QBoxLayout::Direction
> *fl
= static_cast<QFlags
<QBoxLayout::Direction
>*>( static_cast<void*>(&static_cast<QFlags
<QBoxLayout::Direction
>**>(p
)[1]) );
1245 for (i
=1;i
<=argn
;i
++) {
1246 *fl
|= static_cast<QBoxLayout::Direction
>(lqtL_toenum(L
, i
, "QBoxLayout::Direction"));
1248 if (luaL_newmetatable(L
, "QFlags<QBoxLayout::Direction>*")) {
1249 lua_pushstring(L
, "QFlags<QBoxLayout::Direction>*");
1250 lua_setfield(L
, -2, "__qtype");
1252 lua_setmetatable(L
, -2);
1255 int luaopen_QBoxLayout (lua_State
*L
) {
1256 if (luaL_newmetatable(L
, "QBoxLayout*")) {
1257 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__insertLayout
);
1258 lua_setfield(L
, -2, "insertLayout");
1259 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__takeAt
);
1260 lua_setfield(L
, -2, "takeAt");
1261 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__delete
);
1262 lua_setfield(L
, -2, "delete");
1263 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__sizeHint
);
1264 lua_setfield(L
, -2, "sizeHint");
1265 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__setSpacing
);
1266 lua_setfield(L
, -2, "setSpacing");
1267 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__minimumSize
);
1268 lua_setfield(L
, -2, "minimumSize");
1269 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__invalidate
);
1270 lua_setfield(L
, -2, "invalidate");
1271 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__direction
);
1272 lua_setfield(L
, -2, "direction");
1273 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__spacing
);
1274 lua_setfield(L
, -2, "spacing");
1275 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__addSpacing
);
1276 lua_setfield(L
, -2, "addSpacing");
1277 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__insertWidget
);
1278 lua_setfield(L
, -2, "insertWidget");
1279 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__addStretch
);
1280 lua_setfield(L
, -2, "addStretch");
1281 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__trUtf8
);
1282 lua_setfield(L
, -2, "trUtf8");
1283 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__insertStretch
);
1284 lua_setfield(L
, -2, "insertStretch");
1285 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__metaObject
);
1286 lua_setfield(L
, -2, "metaObject");
1287 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__new
);
1288 lua_setfield(L
, -2, "new");
1289 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__tr
);
1290 lua_setfield(L
, -2, "tr");
1291 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__addStrut
);
1292 lua_setfield(L
, -2, "addStrut");
1293 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__minimumHeightForWidth
);
1294 lua_setfield(L
, -2, "minimumHeightForWidth");
1295 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__setDirection
);
1296 lua_setfield(L
, -2, "setDirection");
1297 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__heightForWidth
);
1298 lua_setfield(L
, -2, "heightForWidth");
1299 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__addItem
);
1300 lua_setfield(L
, -2, "addItem");
1301 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__setStretchFactor
);
1302 lua_setfield(L
, -2, "setStretchFactor");
1303 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__expandingDirections
);
1304 lua_setfield(L
, -2, "expandingDirections");
1305 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__insertSpacing
);
1306 lua_setfield(L
, -2, "insertSpacing");
1307 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__addLayout
);
1308 lua_setfield(L
, -2, "addLayout");
1309 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__count
);
1310 lua_setfield(L
, -2, "count");
1311 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__addWidget
);
1312 lua_setfield(L
, -2, "addWidget");
1313 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__maximumSize
);
1314 lua_setfield(L
, -2, "maximumSize");
1315 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__setGeometry
);
1316 lua_setfield(L
, -2, "setGeometry");
1317 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__itemAt
);
1318 lua_setfield(L
, -2, "itemAt");
1319 lua_pushcfunction(L
, LuaBinder
< QBoxLayout
>::__LuaWrapCall__hasHeightForWidth
);
1320 lua_setfield(L
, -2, "hasHeightForWidth");
1321 LuaBinder
< QBoxLayout
>::lqt_pushenum_Direction(L
);
1322 lua_setfield(L
, -2, "Direction");
1324 lua_pushboolean(L
, 1);
1325 lua_setfield(L
, -2, "QLayout*");
1326 lua_pushboolean(L
, 0);
1327 lua_setfield(L
, -2, "QObject*");
1328 lua_pushboolean(L
, 0);
1329 lua_setfield(L
, -2, "QLayoutItem*");
1330 lua_setfield(L
, -2, "__base");
1331 lua_pushcfunction(L
, lqtL_newindex
);
1332 lua_setfield(L
, -2, "__newindex");
1333 lua_pushcfunction(L
, lqtL_index
);
1334 lua_setfield(L
, -2, "__index");
1335 lua_pushcfunction(L
, lqtL_gc
);
1336 lua_setfield(L
, -2, "__gc");
1337 lua_pushstring(L
, "QBoxLayout");
1338 lua_setfield(L
, -2, "__qtype");
1339 lua_setglobal(L
, "QBoxLayout");