1 #include "lqt_bind_QVBoxLayout.hpp"
3 int LuaBinder
< QVBoxLayout
>::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State
*L
) {
4 const char * arg1
= lua_tostring(L
, 1);
5 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
6 QString ret
= QVBoxLayout::tr(arg1
, arg2
);
7 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
10 int LuaBinder
< QVBoxLayout
>::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State
*L
) {
11 const char * arg1
= lua_tostring(L
, 1);
12 const char * arg2
= lua_tostring(L
, 2);
13 int arg3
= lua_tointeger(L
, 3);
14 QString ret
= QVBoxLayout::tr(arg1
, arg2
, arg3
);
15 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
18 int LuaBinder
< QVBoxLayout
>::__LuaWrapCall__tr (lua_State
*L
) {
20 const int premium
= 11+lua_gettop(L
);
22 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
25 score
[1] += premium
-1; // table: 0x10c7b30;
27 score
[1] -= premium
*premium
;
29 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
32 score
[1] += premium
-1; // table: 0x10c7890;
34 score
[1] -= premium
*premium
;
37 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
40 score
[2] += premium
-1; // table: 0x10c95a0;
42 score
[2] -= premium
*premium
;
44 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
47 score
[2] += premium
-1; // table: 0x10c9a90;
49 score
[2] -= premium
*premium
;
51 if (lua_isnumber(L
, 3)) {
54 score
[2] += premium
-1; // table: 0x10c9e40;
56 score
[2] -= premium
*premium
;
59 for (int i
=1;i
<=2;i
++) {
60 if (score
[best
] < score
[i
]) { best
= i
; }
63 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L
); break;
64 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L
); break;
66 lua_pushstring(L
, "no overload of function __LuaWrapCall__tr matching arguments");
70 int LuaBinder
< QVBoxLayout
>::__LuaWrapCall__delete (lua_State
*L
) {
71 QVBoxLayout
*& __lua__obj
= *static_cast<QVBoxLayout
**>(lqtL_checkudata(L
, 1, "QVBoxLayout*"));
73 lua_pushstring(L
, "trying to reference deleted pointer");
81 int LuaBinder
< QVBoxLayout
>::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State
*L
) {
82 const char * arg1
= lua_tostring(L
, 1);
83 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
84 QString ret
= QVBoxLayout::trUtf8(arg1
, arg2
);
85 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
88 int LuaBinder
< QVBoxLayout
>::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State
*L
) {
89 const char * arg1
= lua_tostring(L
, 1);
90 const char * arg2
= lua_tostring(L
, 2);
91 int arg3
= lua_tointeger(L
, 3);
92 QString ret
= QVBoxLayout::trUtf8(arg1
, arg2
, arg3
);
93 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
96 int LuaBinder
< QVBoxLayout
>::__LuaWrapCall__trUtf8 (lua_State
*L
) {
98 const int premium
= 11+lua_gettop(L
);
100 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
103 score
[1] += premium
-1; // table: 0x10c88c0;
105 score
[1] -= premium
*premium
;
107 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
110 score
[1] += premium
-1; // table: 0x10c8420;
112 score
[1] -= premium
*premium
;
115 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
118 score
[2] += premium
-1; // table: 0x10ca6b0;
120 score
[2] -= premium
*premium
;
122 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
125 score
[2] += premium
-1; // table: 0x10c9de0;
127 score
[2] -= premium
*premium
;
129 if (lua_isnumber(L
, 3)) {
132 score
[2] += premium
-1; // table: 0x10cab40;
134 score
[2] -= premium
*premium
;
137 for (int i
=1;i
<=2;i
++) {
138 if (score
[best
] < score
[i
]) { best
= i
; }
141 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L
); break;
142 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L
); break;
144 lua_pushstring(L
, "no overload of function __LuaWrapCall__trUtf8 matching arguments");
148 int LuaBinder
< QVBoxLayout
>::__LuaWrapCall__metaObject (lua_State
*L
) {
149 QVBoxLayout
*& __lua__obj
= *static_cast<QVBoxLayout
**>(lqtL_checkudata(L
, 1, "QVBoxLayout*"));
151 lua_pushstring(L
, "trying to reference deleted pointer");
155 const QMetaObject
* ret
= __lua__obj
->QVBoxLayout::metaObject();
156 lqtL_pushudata(L
, ret
, "QMetaObject*");
159 int LuaBinder
< QVBoxLayout
>::__LuaWrapCall__new__OverloadedVersion__1 (lua_State
*L
) {
160 QVBoxLayout
* ret
= new LuaBinder
< QVBoxLayout
>(L
);
161 lqtL_passudata(L
, ret
, "QVBoxLayout*");
164 int LuaBinder
< QVBoxLayout
>::__LuaWrapCall__new__OverloadedVersion__2 (lua_State
*L
) {
165 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
166 QVBoxLayout
* ret
= new LuaBinder
< QVBoxLayout
>(L
, arg1
);
167 lqtL_passudata(L
, ret
, "QVBoxLayout*");
170 int LuaBinder
< QVBoxLayout
>::__LuaWrapCall__new (lua_State
*L
) {
172 const int premium
= 11+lua_gettop(L
);
175 if (lqtL_testudata(L
, 1, "QWidget*")) {
178 score
[2] += premium
-1; // table: 0x10ccea0;
180 score
[2] -= premium
*premium
;
183 for (int i
=1;i
<=2;i
++) {
184 if (score
[best
] < score
[i
]) { best
= i
; }
187 case 1: return __LuaWrapCall__new__OverloadedVersion__1(L
); break;
188 case 2: return __LuaWrapCall__new__OverloadedVersion__2(L
); break;
190 lua_pushstring(L
, "no overload of function __LuaWrapCall__new matching arguments");
194 QLayout
* LuaBinder
< QVBoxLayout
>::layout () {
195 bool absorbed
= false;
196 int oldtop
= lua_gettop(L
);
197 lqtL_pushudata(L
, this, "QVBoxLayout*");
198 if (lua_getmetatable(L
, -1)) {
199 lua_getfield(L
, -1, "layout");
205 if (lua_isfunction(L
, -0-2)) {
206 lua_pcall(L
, 0+1, 2, 0);
207 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
211 lua_settop(L
, oldtop
);
212 return this->QLayout::layout();
214 QLayout
* ret
= *static_cast<QLayout
**>(lqtL_checkudata(L
, -1, "QLayout*"));
215 lua_settop(L
, oldtop
);
218 QLayoutItem
* LuaBinder
< QVBoxLayout
>::takeAt (int arg1
) {
219 bool absorbed
= false;
220 int oldtop
= lua_gettop(L
);
221 lqtL_pushudata(L
, this, "QVBoxLayout*");
222 if (lua_getmetatable(L
, -1)) {
223 lua_getfield(L
, -1, "takeAt");
229 lua_pushinteger(L
, arg1
);
230 if (lua_isfunction(L
, -1-2)) {
231 lua_pcall(L
, 1+1, 2, 0);
232 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
236 lua_settop(L
, oldtop
);
237 return this->QBoxLayout::takeAt(arg1
);
239 QLayoutItem
* ret
= *static_cast<QLayoutItem
**>(lqtL_checkudata(L
, -1, "QLayoutItem*"));
240 lua_settop(L
, oldtop
);
243 void LuaBinder
< QVBoxLayout
>::setGeometry (const QRect
& arg1
) {
244 bool absorbed
= false;
245 int oldtop
= lua_gettop(L
);
246 lqtL_pushudata(L
, this, "QVBoxLayout*");
247 if (lua_getmetatable(L
, -1)) {
248 lua_getfield(L
, -1, "setGeometry");
254 lqtL_pushudata(L
, &(arg1
), "QRect*");
255 if (lua_isfunction(L
, -1-2)) {
256 lua_pcall(L
, 1+1, 2, 0);
257 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
261 lua_settop(L
, oldtop
);
262 this->QBoxLayout::setGeometry(arg1
);
264 lua_settop(L
, oldtop
);
266 QSize LuaBinder
< QVBoxLayout
>::minimumSize () const {
267 bool absorbed
= false;
268 int oldtop
= lua_gettop(L
);
269 lqtL_pushudata(L
, this, "QVBoxLayout*");
270 if (lua_getmetatable(L
, -1)) {
271 lua_getfield(L
, -1, "minimumSize");
277 if (lua_isfunction(L
, -0-2)) {
278 lua_pcall(L
, 0+1, 2, 0);
279 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
283 lua_settop(L
, oldtop
);
284 return this->QBoxLayout::minimumSize();
286 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
287 lua_settop(L
, oldtop
);
290 int LuaBinder
< QVBoxLayout
>::heightForWidth (int arg1
) const {
291 bool absorbed
= false;
292 int oldtop
= lua_gettop(L
);
293 lqtL_pushudata(L
, this, "QVBoxLayout*");
294 if (lua_getmetatable(L
, -1)) {
295 lua_getfield(L
, -1, "heightForWidth");
301 lua_pushinteger(L
, arg1
);
302 if (lua_isfunction(L
, -1-2)) {
303 lua_pcall(L
, 1+1, 2, 0);
304 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
308 lua_settop(L
, oldtop
);
309 return this->QBoxLayout::heightForWidth(arg1
);
311 int ret
= lua_tointeger(L
, -1);
312 lua_settop(L
, oldtop
);
315 void LuaBinder
< QVBoxLayout
>::invalidate () {
316 bool absorbed
= false;
317 int oldtop
= lua_gettop(L
);
318 lqtL_pushudata(L
, this, "QVBoxLayout*");
319 if (lua_getmetatable(L
, -1)) {
320 lua_getfield(L
, -1, "invalidate");
326 if (lua_isfunction(L
, -0-2)) {
327 lua_pcall(L
, 0+1, 2, 0);
328 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
332 lua_settop(L
, oldtop
);
333 this->QBoxLayout::invalidate();
335 lua_settop(L
, oldtop
);
337 void LuaBinder
< QVBoxLayout
>::timerEvent (QTimerEvent
* arg1
) {
338 bool absorbed
= false;
339 int oldtop
= lua_gettop(L
);
340 lqtL_pushudata(L
, this, "QVBoxLayout*");
341 if (lua_getmetatable(L
, -1)) {
342 lua_getfield(L
, -1, "timerEvent");
348 lqtL_pushudata(L
, arg1
, "QTimerEvent*");
349 if (lua_isfunction(L
, -1-2)) {
350 lua_pcall(L
, 1+1, 2, 0);
351 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
355 lua_settop(L
, oldtop
);
356 this->QObject::timerEvent(arg1
);
358 lua_settop(L
, oldtop
);
360 void LuaBinder
< QVBoxLayout
>::childEvent (QChildEvent
* arg1
) {
361 bool absorbed
= false;
362 int oldtop
= lua_gettop(L
);
363 lqtL_pushudata(L
, this, "QVBoxLayout*");
364 if (lua_getmetatable(L
, -1)) {
365 lua_getfield(L
, -1, "childEvent");
371 lqtL_pushudata(L
, arg1
, "QChildEvent*");
372 if (lua_isfunction(L
, -1-2)) {
373 lua_pcall(L
, 1+1, 2, 0);
374 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
378 lua_settop(L
, oldtop
);
379 this->QLayout::childEvent(arg1
);
381 lua_settop(L
, oldtop
);
383 const QMetaObject
* LuaBinder
< QVBoxLayout
>::metaObject () const {
384 bool absorbed
= false;
385 int oldtop
= lua_gettop(L
);
386 lqtL_pushudata(L
, this, "QVBoxLayout*");
387 if (lua_getmetatable(L
, -1)) {
388 lua_getfield(L
, -1, "metaObject");
394 if (lua_isfunction(L
, -0-2)) {
395 lua_pcall(L
, 0+1, 2, 0);
396 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
400 lua_settop(L
, oldtop
);
401 return this->QVBoxLayout::metaObject();
403 const QMetaObject
* ret
= *static_cast<QMetaObject
**>(lqtL_checkudata(L
, -1, "QMetaObject*"));
404 lua_settop(L
, oldtop
);
407 int LuaBinder
< QVBoxLayout
>::minimumHeightForWidth (int arg1
) const {
408 bool absorbed
= false;
409 int oldtop
= lua_gettop(L
);
410 lqtL_pushudata(L
, this, "QVBoxLayout*");
411 if (lua_getmetatable(L
, -1)) {
412 lua_getfield(L
, -1, "minimumHeightForWidth");
418 lua_pushinteger(L
, arg1
);
419 if (lua_isfunction(L
, -1-2)) {
420 lua_pcall(L
, 1+1, 2, 0);
421 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
425 lua_settop(L
, oldtop
);
426 return this->QBoxLayout::minimumHeightForWidth(arg1
);
428 int ret
= lua_tointeger(L
, -1);
429 lua_settop(L
, oldtop
);
432 void LuaBinder
< QVBoxLayout
>::connectNotify (const char * arg1
) {
433 bool absorbed
= false;
434 int oldtop
= lua_gettop(L
);
435 lqtL_pushudata(L
, this, "QVBoxLayout*");
436 if (lua_getmetatable(L
, -1)) {
437 lua_getfield(L
, -1, "connectNotify");
443 lua_pushstring(L
, arg1
);
444 if (lua_isfunction(L
, -1-2)) {
445 lua_pcall(L
, 1+1, 2, 0);
446 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
450 lua_settop(L
, oldtop
);
451 this->QObject::connectNotify(arg1
);
453 lua_settop(L
, oldtop
);
455 bool LuaBinder
< QVBoxLayout
>::hasHeightForWidth () const {
456 bool absorbed
= false;
457 int oldtop
= lua_gettop(L
);
458 lqtL_pushudata(L
, this, "QVBoxLayout*");
459 if (lua_getmetatable(L
, -1)) {
460 lua_getfield(L
, -1, "hasHeightForWidth");
466 if (lua_isfunction(L
, -0-2)) {
467 lua_pcall(L
, 0+1, 2, 0);
468 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
472 lua_settop(L
, oldtop
);
473 return this->QBoxLayout::hasHeightForWidth();
475 bool ret
= (bool)lua_toboolean(L
, -1);
476 lua_settop(L
, oldtop
);
479 void LuaBinder
< QVBoxLayout
>::addItem (QLayoutItem
* arg1
) {
480 bool absorbed
= false;
481 int oldtop
= lua_gettop(L
);
482 lqtL_pushudata(L
, this, "QVBoxLayout*");
483 if (lua_getmetatable(L
, -1)) {
484 lua_getfield(L
, -1, "addItem");
490 lqtL_pushudata(L
, arg1
, "QLayoutItem*");
491 if (lua_isfunction(L
, -1-2)) {
492 lua_pcall(L
, 1+1, 2, 0);
493 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
497 lua_settop(L
, oldtop
);
498 this->QBoxLayout::addItem(arg1
);
500 lua_settop(L
, oldtop
);
502 bool LuaBinder
< QVBoxLayout
>::eventFilter (QObject
* arg1
, QEvent
* arg2
) {
503 bool absorbed
= false;
504 int oldtop
= lua_gettop(L
);
505 lqtL_pushudata(L
, this, "QVBoxLayout*");
506 if (lua_getmetatable(L
, -1)) {
507 lua_getfield(L
, -1, "eventFilter");
513 lqtL_pushudata(L
, arg1
, "QObject*");
514 lqtL_pushudata(L
, arg2
, "QEvent*");
515 if (lua_isfunction(L
, -2-2)) {
516 lua_pcall(L
, 2+1, 2, 0);
517 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
521 lua_settop(L
, oldtop
);
522 return this->QObject::eventFilter(arg1
, arg2
);
524 bool ret
= (bool)lua_toboolean(L
, -1);
525 lua_settop(L
, oldtop
);
528 QSpacerItem
* LuaBinder
< QVBoxLayout
>::spacerItem () {
529 bool absorbed
= false;
530 int oldtop
= lua_gettop(L
);
531 lqtL_pushudata(L
, this, "QVBoxLayout*");
532 if (lua_getmetatable(L
, -1)) {
533 lua_getfield(L
, -1, "spacerItem");
539 if (lua_isfunction(L
, -0-2)) {
540 lua_pcall(L
, 0+1, 2, 0);
541 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
545 lua_settop(L
, oldtop
);
546 return this->QLayoutItem::spacerItem();
548 QSpacerItem
* ret
= *static_cast<QSpacerItem
**>(lqtL_checkudata(L
, -1, "QSpacerItem*"));
549 lua_settop(L
, oldtop
);
552 QSize LuaBinder
< QVBoxLayout
>::sizeHint () const {
553 bool absorbed
= false;
554 int oldtop
= lua_gettop(L
);
555 lqtL_pushudata(L
, this, "QVBoxLayout*");
556 if (lua_getmetatable(L
, -1)) {
557 lua_getfield(L
, -1, "sizeHint");
563 if (lua_isfunction(L
, -0-2)) {
564 lua_pcall(L
, 0+1, 2, 0);
565 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
569 lua_settop(L
, oldtop
);
570 return this->QBoxLayout::sizeHint();
572 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
573 lua_settop(L
, oldtop
);
576 QRect LuaBinder
< QVBoxLayout
>::geometry () const {
577 bool absorbed
= false;
578 int oldtop
= lua_gettop(L
);
579 lqtL_pushudata(L
, this, "QVBoxLayout*");
580 if (lua_getmetatable(L
, -1)) {
581 lua_getfield(L
, -1, "geometry");
587 if (lua_isfunction(L
, -0-2)) {
588 lua_pcall(L
, 0+1, 2, 0);
589 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
593 lua_settop(L
, oldtop
);
594 return this->QLayout::geometry();
596 QRect ret
= **static_cast<QRect
**>(lqtL_checkudata(L
, -1, "QRect*"));
597 lua_settop(L
, oldtop
);
600 bool LuaBinder
< QVBoxLayout
>::isEmpty () const {
601 bool absorbed
= false;
602 int oldtop
= lua_gettop(L
);
603 lqtL_pushudata(L
, this, "QVBoxLayout*");
604 if (lua_getmetatable(L
, -1)) {
605 lua_getfield(L
, -1, "isEmpty");
611 if (lua_isfunction(L
, -0-2)) {
612 lua_pcall(L
, 0+1, 2, 0);
613 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
617 lua_settop(L
, oldtop
);
618 return this->QLayout::isEmpty();
620 bool ret
= (bool)lua_toboolean(L
, -1);
621 lua_settop(L
, oldtop
);
624 void LuaBinder
< QVBoxLayout
>::disconnectNotify (const char * arg1
) {
625 bool absorbed
= false;
626 int oldtop
= lua_gettop(L
);
627 lqtL_pushudata(L
, this, "QVBoxLayout*");
628 if (lua_getmetatable(L
, -1)) {
629 lua_getfield(L
, -1, "disconnectNotify");
635 lua_pushstring(L
, arg1
);
636 if (lua_isfunction(L
, -1-2)) {
637 lua_pcall(L
, 1+1, 2, 0);
638 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
642 lua_settop(L
, oldtop
);
643 this->QObject::disconnectNotify(arg1
);
645 lua_settop(L
, oldtop
);
647 bool LuaBinder
< QVBoxLayout
>::event (QEvent
* arg1
) {
648 bool absorbed
= false;
649 int oldtop
= lua_gettop(L
);
650 lqtL_pushudata(L
, this, "QVBoxLayout*");
651 if (lua_getmetatable(L
, -1)) {
652 lua_getfield(L
, -1, "event");
658 lqtL_pushudata(L
, arg1
, "QEvent*");
659 if (lua_isfunction(L
, -1-2)) {
660 lua_pcall(L
, 1+1, 2, 0);
661 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
665 lua_settop(L
, oldtop
);
666 return this->QObject::event(arg1
);
668 bool ret
= (bool)lua_toboolean(L
, -1);
669 lua_settop(L
, oldtop
);
672 QWidget
* LuaBinder
< QVBoxLayout
>::widget () {
673 bool absorbed
= false;
674 int oldtop
= lua_gettop(L
);
675 lqtL_pushudata(L
, this, "QVBoxLayout*");
676 if (lua_getmetatable(L
, -1)) {
677 lua_getfield(L
, -1, "widget");
683 if (lua_isfunction(L
, -0-2)) {
684 lua_pcall(L
, 0+1, 2, 0);
685 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
689 lua_settop(L
, oldtop
);
690 return this->QLayoutItem::widget();
692 QWidget
* ret
= *static_cast<QWidget
**>(lqtL_checkudata(L
, -1, "QWidget*"));
693 lua_settop(L
, oldtop
);
696 int LuaBinder
< QVBoxLayout
>::count () const {
697 bool absorbed
= false;
698 int oldtop
= lua_gettop(L
);
699 lqtL_pushudata(L
, this, "QVBoxLayout*");
700 if (lua_getmetatable(L
, -1)) {
701 lua_getfield(L
, -1, "count");
707 if (lua_isfunction(L
, -0-2)) {
708 lua_pcall(L
, 0+1, 2, 0);
709 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
713 lua_settop(L
, oldtop
);
714 return this->QBoxLayout::count();
716 int ret
= lua_tointeger(L
, -1);
717 lua_settop(L
, oldtop
);
720 int LuaBinder
< QVBoxLayout
>::indexOf (QWidget
* arg1
) const {
721 bool absorbed
= false;
722 int oldtop
= lua_gettop(L
);
723 lqtL_pushudata(L
, this, "QVBoxLayout*");
724 if (lua_getmetatable(L
, -1)) {
725 lua_getfield(L
, -1, "indexOf");
731 lqtL_pushudata(L
, arg1
, "QWidget*");
732 if (lua_isfunction(L
, -1-2)) {
733 lua_pcall(L
, 1+1, 2, 0);
734 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
738 lua_settop(L
, oldtop
);
739 return this->QLayout::indexOf(arg1
);
741 int ret
= lua_tointeger(L
, -1);
742 lua_settop(L
, oldtop
);
745 QFlags
<Qt::Orientation
> LuaBinder
< QVBoxLayout
>::expandingDirections () const {
746 bool absorbed
= false;
747 int oldtop
= lua_gettop(L
);
748 lqtL_pushudata(L
, this, "QVBoxLayout*");
749 if (lua_getmetatable(L
, -1)) {
750 lua_getfield(L
, -1, "expandingDirections");
756 if (lua_isfunction(L
, -0-2)) {
757 lua_pcall(L
, 0+1, 2, 0);
758 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
762 lua_settop(L
, oldtop
);
763 return this->QBoxLayout::expandingDirections();
765 QFlags
<Qt::Orientation
> ret
= **static_cast<QFlags
<Qt::Orientation
>**>(lqtL_checkudata(L
, -1, "QFlags<Qt::Orientation>*"));
766 lua_settop(L
, oldtop
);
769 QLayoutItem
* LuaBinder
< QVBoxLayout
>::itemAt (int arg1
) const {
770 bool absorbed
= false;
771 int oldtop
= lua_gettop(L
);
772 lqtL_pushudata(L
, this, "QVBoxLayout*");
773 if (lua_getmetatable(L
, -1)) {
774 lua_getfield(L
, -1, "itemAt");
780 lua_pushinteger(L
, arg1
);
781 if (lua_isfunction(L
, -1-2)) {
782 lua_pcall(L
, 1+1, 2, 0);
783 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
787 lua_settop(L
, oldtop
);
788 return this->QBoxLayout::itemAt(arg1
);
790 QLayoutItem
* ret
= *static_cast<QLayoutItem
**>(lqtL_checkudata(L
, -1, "QLayoutItem*"));
791 lua_settop(L
, oldtop
);
794 QSize LuaBinder
< QVBoxLayout
>::maximumSize () const {
795 bool absorbed
= false;
796 int oldtop
= lua_gettop(L
);
797 lqtL_pushudata(L
, this, "QVBoxLayout*");
798 if (lua_getmetatable(L
, -1)) {
799 lua_getfield(L
, -1, "maximumSize");
805 if (lua_isfunction(L
, -0-2)) {
806 lua_pcall(L
, 0+1, 2, 0);
807 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
811 lua_settop(L
, oldtop
);
812 return this->QBoxLayout::maximumSize();
814 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
815 lua_settop(L
, oldtop
);
818 void LuaBinder
< QVBoxLayout
>::customEvent (QEvent
* arg1
) {
819 bool absorbed
= false;
820 int oldtop
= lua_gettop(L
);
821 lqtL_pushudata(L
, this, "QVBoxLayout*");
822 if (lua_getmetatable(L
, -1)) {
823 lua_getfield(L
, -1, "customEvent");
829 lqtL_pushudata(L
, arg1
, "QEvent*");
830 if (lua_isfunction(L
, -1-2)) {
831 lua_pcall(L
, 1+1, 2, 0);
832 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
836 lua_settop(L
, oldtop
);
837 this->QObject::customEvent(arg1
);
839 lua_settop(L
, oldtop
);
841 LuaBinder
< QVBoxLayout
>:: ~LuaBinder
< QVBoxLayout
> () {
842 int oldtop
= lua_gettop(L
);
843 lqtL_pushudata(L
, this, "QVBoxLayout*");
844 lua_getfield(L
, -1, "~QVBoxLayout");
846 if (lua_isfunction(L
, -1)) {
848 lua_pcall(L
, 1, 1, 0);
851 lua_settop(L
, oldtop
);
853 int luaopen_QVBoxLayout (lua_State
*L
) {
854 if (luaL_newmetatable(L
, "QVBoxLayout*")) {
855 lua_pushcfunction(L
, LuaBinder
< QVBoxLayout
>::__LuaWrapCall__tr
);
856 lua_setfield(L
, -2, "tr");
857 lua_pushcfunction(L
, LuaBinder
< QVBoxLayout
>::__LuaWrapCall__delete
);
858 lua_setfield(L
, -2, "delete");
859 lua_pushcfunction(L
, LuaBinder
< QVBoxLayout
>::__LuaWrapCall__trUtf8
);
860 lua_setfield(L
, -2, "trUtf8");
861 lua_pushcfunction(L
, LuaBinder
< QVBoxLayout
>::__LuaWrapCall__metaObject
);
862 lua_setfield(L
, -2, "metaObject");
863 lua_pushcfunction(L
, LuaBinder
< QVBoxLayout
>::__LuaWrapCall__new
);
864 lua_setfield(L
, -2, "new");
866 lua_pushboolean(L
, 1);
867 lua_setfield(L
, -2, "QBoxLayout*");
868 lua_pushboolean(L
, 0);
869 lua_setfield(L
, -2, "QObject*");
870 lua_pushboolean(L
, 0);
871 lua_setfield(L
, -2, "QLayoutItem*");
872 lua_pushboolean(L
, 0);
873 lua_setfield(L
, -2, "QLayout*");
874 lua_setfield(L
, -2, "__base");
875 lua_pushcfunction(L
, lqtL_newindex
);
876 lua_setfield(L
, -2, "__newindex");
877 lua_pushcfunction(L
, lqtL_index
);
878 lua_setfield(L
, -2, "__index");
879 lua_pushcfunction(L
, lqtL_gc
);
880 lua_setfield(L
, -2, "__gc");
881 lua_pushstring(L
, "QVBoxLayout");
882 lua_setfield(L
, -2, "__qtype");
883 lua_setglobal(L
, "QVBoxLayout");