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: 0xbc5c40;
27 score
[1] -= premium
*premium
;
29 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
32 score
[1] += premium
-1; // table: 0x64f0e0;
34 score
[1] -= premium
*premium
;
37 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
40 score
[2] += premium
-1; // table: 0x63b8c0;
42 score
[2] -= premium
*premium
;
44 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
47 score
[2] += premium
-1; // table: 0x5ff1f0;
49 score
[2] -= premium
*premium
;
51 if (lua_isnumber(L
, 3)) {
54 score
[2] += premium
-1; // table: 0x61dff0;
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;
68 int LuaBinder
< QVBoxLayout
>::__LuaWrapCall__delete (lua_State
*L
) {
69 QVBoxLayout
*& __lua__obj
= *static_cast<QVBoxLayout
**>(lqtL_checkudata(L
, 1, "QVBoxLayout*"));
71 lua_pushstring(L
, "trying to reference deleted pointer");
79 int LuaBinder
< QVBoxLayout
>::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State
*L
) {
80 const char * arg1
= lua_tostring(L
, 1);
81 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
82 QString ret
= QVBoxLayout::trUtf8(arg1
, arg2
);
83 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
86 int LuaBinder
< QVBoxLayout
>::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State
*L
) {
87 const char * arg1
= lua_tostring(L
, 1);
88 const char * arg2
= lua_tostring(L
, 2);
89 int arg3
= lua_tointeger(L
, 3);
90 QString ret
= QVBoxLayout::trUtf8(arg1
, arg2
, arg3
);
91 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
94 int LuaBinder
< QVBoxLayout
>::__LuaWrapCall__trUtf8 (lua_State
*L
) {
96 const int premium
= 11+lua_gettop(L
);
98 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
101 score
[1] += premium
-1; // table: 0x61ede0;
103 score
[1] -= premium
*premium
;
105 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
108 score
[1] += premium
-1; // table: 0x6287b0;
110 score
[1] -= premium
*premium
;
113 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
116 score
[2] += premium
-1; // table: 0x5e5640;
118 score
[2] -= premium
*premium
;
120 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
123 score
[2] += premium
-1; // table: 0x5ea230;
125 score
[2] -= premium
*premium
;
127 if (lua_isnumber(L
, 3)) {
130 score
[2] += premium
-1; // table: 0x5f0380;
132 score
[2] -= premium
*premium
;
135 for (int i
=1;i
<=2;i
++) {
136 if (score
[best
] < score
[i
]) { best
= i
; }
139 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L
); break;
140 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L
); break;
144 int LuaBinder
< QVBoxLayout
>::__LuaWrapCall__metaObject (lua_State
*L
) {
145 QVBoxLayout
*& __lua__obj
= *static_cast<QVBoxLayout
**>(lqtL_checkudata(L
, 1, "QVBoxLayout*"));
147 lua_pushstring(L
, "trying to reference deleted pointer");
151 const QMetaObject
* ret
= __lua__obj
->QVBoxLayout::metaObject();
152 lqtL_pushudata(L
, ret
, "QMetaObject*");
155 int LuaBinder
< QVBoxLayout
>::__LuaWrapCall__new__OverloadedVersion__1 (lua_State
*L
) {
156 QVBoxLayout
* ret
= new LuaBinder
< QVBoxLayout
>(L
);
157 lqtL_pushudata(L
, ret
, "QVBoxLayout*");
160 int LuaBinder
< QVBoxLayout
>::__LuaWrapCall__new__OverloadedVersion__2 (lua_State
*L
) {
161 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
162 QVBoxLayout
* ret
= new LuaBinder
< QVBoxLayout
>(L
, arg1
);
163 lqtL_pushudata(L
, ret
, "QVBoxLayout*");
166 int LuaBinder
< QVBoxLayout
>::__LuaWrapCall__new (lua_State
*L
) {
168 const int premium
= 11+lua_gettop(L
);
171 if (lqtL_testudata(L
, 1, "QWidget*")) {
174 score
[2] += premium
-1; // table: 0x577b60;
176 score
[2] -= premium
*premium
;
179 for (int i
=1;i
<=2;i
++) {
180 if (score
[best
] < score
[i
]) { best
= i
; }
183 case 1: return __LuaWrapCall__new__OverloadedVersion__1(L
); break;
184 case 2: return __LuaWrapCall__new__OverloadedVersion__2(L
); break;
188 QLayout
* LuaBinder
< QVBoxLayout
>::layout () {
189 bool absorbed
= false;
190 int oldtop
= lua_gettop(L
);
191 lqtL_pushudata(L
, this, "QVBoxLayout*");
192 if (lua_getmetatable(L
, -1)) {
193 lua_getfield(L
, -1, "layout");
199 if (lua_isfunction(L
, -0-2)) {
200 lua_pcall(L
, 0+1, 2, 0);
201 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
205 lua_settop(L
, oldtop
);
206 return this->QLayout::layout();
208 QLayout
* ret
= *static_cast<QLayout
**>(lqtL_checkudata(L
, -1, "QLayout*"));
209 lua_settop(L
, oldtop
);
212 QLayoutItem
* LuaBinder
< QVBoxLayout
>::takeAt (int arg1
) {
213 bool absorbed
= false;
214 int oldtop
= lua_gettop(L
);
215 lqtL_pushudata(L
, this, "QVBoxLayout*");
216 if (lua_getmetatable(L
, -1)) {
217 lua_getfield(L
, -1, "takeAt");
223 lua_pushinteger(L
, arg1
);
224 if (lua_isfunction(L
, -1-2)) {
225 lua_pcall(L
, 1+1, 2, 0);
226 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
230 lua_settop(L
, oldtop
);
231 return this->QBoxLayout::takeAt(arg1
);
233 QLayoutItem
* ret
= *static_cast<QLayoutItem
**>(lqtL_checkudata(L
, -1, "QLayoutItem*"));
234 lua_settop(L
, oldtop
);
237 void LuaBinder
< QVBoxLayout
>::setGeometry (const QRect
& arg1
) {
238 bool absorbed
= false;
239 int oldtop
= lua_gettop(L
);
240 lqtL_pushudata(L
, this, "QVBoxLayout*");
241 if (lua_getmetatable(L
, -1)) {
242 lua_getfield(L
, -1, "setGeometry");
248 lqtL_pushudata(L
, &(arg1
), "QRect*");
249 if (lua_isfunction(L
, -1-2)) {
250 lua_pcall(L
, 1+1, 2, 0);
251 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
255 lua_settop(L
, oldtop
);
256 this->QBoxLayout::setGeometry(arg1
);
258 lua_settop(L
, oldtop
);
260 QSize LuaBinder
< QVBoxLayout
>::minimumSize () const {
261 bool absorbed
= false;
262 int oldtop
= lua_gettop(L
);
263 lqtL_pushudata(L
, this, "QVBoxLayout*");
264 if (lua_getmetatable(L
, -1)) {
265 lua_getfield(L
, -1, "minimumSize");
271 if (lua_isfunction(L
, -0-2)) {
272 lua_pcall(L
, 0+1, 2, 0);
273 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
277 lua_settop(L
, oldtop
);
278 return this->QBoxLayout::minimumSize();
280 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
281 lua_settop(L
, oldtop
);
284 int LuaBinder
< QVBoxLayout
>::heightForWidth (int arg1
) const {
285 bool absorbed
= false;
286 int oldtop
= lua_gettop(L
);
287 lqtL_pushudata(L
, this, "QVBoxLayout*");
288 if (lua_getmetatable(L
, -1)) {
289 lua_getfield(L
, -1, "heightForWidth");
295 lua_pushinteger(L
, arg1
);
296 if (lua_isfunction(L
, -1-2)) {
297 lua_pcall(L
, 1+1, 2, 0);
298 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
302 lua_settop(L
, oldtop
);
303 return this->QBoxLayout::heightForWidth(arg1
);
305 int ret
= lua_tointeger(L
, -1);
306 lua_settop(L
, oldtop
);
309 int LuaBinder
< QVBoxLayout
>::minimumHeightForWidth (int arg1
) const {
310 bool absorbed
= false;
311 int oldtop
= lua_gettop(L
);
312 lqtL_pushudata(L
, this, "QVBoxLayout*");
313 if (lua_getmetatable(L
, -1)) {
314 lua_getfield(L
, -1, "minimumHeightForWidth");
320 lua_pushinteger(L
, arg1
);
321 if (lua_isfunction(L
, -1-2)) {
322 lua_pcall(L
, 1+1, 2, 0);
323 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
327 lua_settop(L
, oldtop
);
328 return this->QBoxLayout::minimumHeightForWidth(arg1
);
330 int ret
= lua_tointeger(L
, -1);
331 lua_settop(L
, oldtop
);
334 void LuaBinder
< QVBoxLayout
>::timerEvent (QTimerEvent
* arg1
) {
335 bool absorbed
= false;
336 int oldtop
= lua_gettop(L
);
337 lqtL_pushudata(L
, this, "QVBoxLayout*");
338 if (lua_getmetatable(L
, -1)) {
339 lua_getfield(L
, -1, "timerEvent");
345 lqtL_pushudata(L
, arg1
, "QTimerEvent*");
346 if (lua_isfunction(L
, -1-2)) {
347 lua_pcall(L
, 1+1, 2, 0);
348 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
352 lua_settop(L
, oldtop
);
353 this->QObject::timerEvent(arg1
);
355 lua_settop(L
, oldtop
);
357 QSize LuaBinder
< QVBoxLayout
>::maximumSize () const {
358 bool absorbed
= false;
359 int oldtop
= lua_gettop(L
);
360 lqtL_pushudata(L
, this, "QVBoxLayout*");
361 if (lua_getmetatable(L
, -1)) {
362 lua_getfield(L
, -1, "maximumSize");
368 if (lua_isfunction(L
, -0-2)) {
369 lua_pcall(L
, 0+1, 2, 0);
370 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
374 lua_settop(L
, oldtop
);
375 return this->QBoxLayout::maximumSize();
377 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
378 lua_settop(L
, oldtop
);
381 QLayoutItem
* LuaBinder
< QVBoxLayout
>::itemAt (int arg1
) const {
382 bool absorbed
= false;
383 int oldtop
= lua_gettop(L
);
384 lqtL_pushudata(L
, this, "QVBoxLayout*");
385 if (lua_getmetatable(L
, -1)) {
386 lua_getfield(L
, -1, "itemAt");
392 lua_pushinteger(L
, arg1
);
393 if (lua_isfunction(L
, -1-2)) {
394 lua_pcall(L
, 1+1, 2, 0);
395 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
399 lua_settop(L
, oldtop
);
400 return this->QBoxLayout::itemAt(arg1
);
402 QLayoutItem
* ret
= *static_cast<QLayoutItem
**>(lqtL_checkudata(L
, -1, "QLayoutItem*"));
403 lua_settop(L
, oldtop
);
406 void LuaBinder
< QVBoxLayout
>::childEvent (QChildEvent
* arg1
) {
407 bool absorbed
= false;
408 int oldtop
= lua_gettop(L
);
409 lqtL_pushudata(L
, this, "QVBoxLayout*");
410 if (lua_getmetatable(L
, -1)) {
411 lua_getfield(L
, -1, "childEvent");
417 lqtL_pushudata(L
, arg1
, "QChildEvent*");
418 if (lua_isfunction(L
, -1-2)) {
419 lua_pcall(L
, 1+1, 2, 0);
420 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
424 lua_settop(L
, oldtop
);
425 this->QLayout::childEvent(arg1
);
427 lua_settop(L
, oldtop
);
429 void LuaBinder
< QVBoxLayout
>::connectNotify (const char * arg1
) {
430 bool absorbed
= false;
431 int oldtop
= lua_gettop(L
);
432 lqtL_pushudata(L
, this, "QVBoxLayout*");
433 if (lua_getmetatable(L
, -1)) {
434 lua_getfield(L
, -1, "connectNotify");
440 lua_pushstring(L
, arg1
);
441 if (lua_isfunction(L
, -1-2)) {
442 lua_pcall(L
, 1+1, 2, 0);
443 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
447 lua_settop(L
, oldtop
);
448 this->QObject::connectNotify(arg1
);
450 lua_settop(L
, oldtop
);
452 bool LuaBinder
< QVBoxLayout
>::hasHeightForWidth () const {
453 bool absorbed
= false;
454 int oldtop
= lua_gettop(L
);
455 lqtL_pushudata(L
, this, "QVBoxLayout*");
456 if (lua_getmetatable(L
, -1)) {
457 lua_getfield(L
, -1, "hasHeightForWidth");
463 if (lua_isfunction(L
, -0-2)) {
464 lua_pcall(L
, 0+1, 2, 0);
465 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
469 lua_settop(L
, oldtop
);
470 return this->QBoxLayout::hasHeightForWidth();
472 bool ret
= (bool)lua_toboolean(L
, -1);
473 lua_settop(L
, oldtop
);
476 void LuaBinder
< QVBoxLayout
>::addItem (QLayoutItem
* arg1
) {
477 bool absorbed
= false;
478 int oldtop
= lua_gettop(L
);
479 lqtL_pushudata(L
, this, "QVBoxLayout*");
480 if (lua_getmetatable(L
, -1)) {
481 lua_getfield(L
, -1, "addItem");
487 lqtL_pushudata(L
, arg1
, "QLayoutItem*");
488 if (lua_isfunction(L
, -1-2)) {
489 lua_pcall(L
, 1+1, 2, 0);
490 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
494 lua_settop(L
, oldtop
);
495 this->QBoxLayout::addItem(arg1
);
497 lua_settop(L
, oldtop
);
499 bool LuaBinder
< QVBoxLayout
>::eventFilter (QObject
* arg1
, QEvent
* arg2
) {
500 bool absorbed
= false;
501 int oldtop
= lua_gettop(L
);
502 lqtL_pushudata(L
, this, "QVBoxLayout*");
503 if (lua_getmetatable(L
, -1)) {
504 lua_getfield(L
, -1, "eventFilter");
510 lqtL_pushudata(L
, arg1
, "QObject*");
511 lqtL_pushudata(L
, arg2
, "QEvent*");
512 if (lua_isfunction(L
, -2-2)) {
513 lua_pcall(L
, 2+1, 2, 0);
514 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
518 lua_settop(L
, oldtop
);
519 return this->QObject::eventFilter(arg1
, arg2
);
521 bool ret
= (bool)lua_toboolean(L
, -1);
522 lua_settop(L
, oldtop
);
525 QSpacerItem
* LuaBinder
< QVBoxLayout
>::spacerItem () {
526 bool absorbed
= false;
527 int oldtop
= lua_gettop(L
);
528 lqtL_pushudata(L
, this, "QVBoxLayout*");
529 if (lua_getmetatable(L
, -1)) {
530 lua_getfield(L
, -1, "spacerItem");
536 if (lua_isfunction(L
, -0-2)) {
537 lua_pcall(L
, 0+1, 2, 0);
538 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
542 lua_settop(L
, oldtop
);
543 return this->QLayoutItem::spacerItem();
545 QSpacerItem
* ret
= *static_cast<QSpacerItem
**>(lqtL_checkudata(L
, -1, "QSpacerItem*"));
546 lua_settop(L
, oldtop
);
549 QSize LuaBinder
< QVBoxLayout
>::sizeHint () const {
550 bool absorbed
= false;
551 int oldtop
= lua_gettop(L
);
552 lqtL_pushudata(L
, this, "QVBoxLayout*");
553 if (lua_getmetatable(L
, -1)) {
554 lua_getfield(L
, -1, "sizeHint");
560 if (lua_isfunction(L
, -0-2)) {
561 lua_pcall(L
, 0+1, 2, 0);
562 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
566 lua_settop(L
, oldtop
);
567 return this->QBoxLayout::sizeHint();
569 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
570 lua_settop(L
, oldtop
);
573 int LuaBinder
< QVBoxLayout
>::indexOf (QWidget
* arg1
) const {
574 bool absorbed
= false;
575 int oldtop
= lua_gettop(L
);
576 lqtL_pushudata(L
, this, "QVBoxLayout*");
577 if (lua_getmetatable(L
, -1)) {
578 lua_getfield(L
, -1, "indexOf");
584 lqtL_pushudata(L
, arg1
, "QWidget*");
585 if (lua_isfunction(L
, -1-2)) {
586 lua_pcall(L
, 1+1, 2, 0);
587 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
591 lua_settop(L
, oldtop
);
592 return this->QLayout::indexOf(arg1
);
594 int ret
= lua_tointeger(L
, -1);
595 lua_settop(L
, oldtop
);
598 bool LuaBinder
< QVBoxLayout
>::isEmpty () const {
599 bool absorbed
= false;
600 int oldtop
= lua_gettop(L
);
601 lqtL_pushudata(L
, this, "QVBoxLayout*");
602 if (lua_getmetatable(L
, -1)) {
603 lua_getfield(L
, -1, "isEmpty");
609 if (lua_isfunction(L
, -0-2)) {
610 lua_pcall(L
, 0+1, 2, 0);
611 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
615 lua_settop(L
, oldtop
);
616 return this->QLayout::isEmpty();
618 bool ret
= (bool)lua_toboolean(L
, -1);
619 lua_settop(L
, oldtop
);
622 void LuaBinder
< QVBoxLayout
>::disconnectNotify (const char * arg1
) {
623 bool absorbed
= false;
624 int oldtop
= lua_gettop(L
);
625 lqtL_pushudata(L
, this, "QVBoxLayout*");
626 if (lua_getmetatable(L
, -1)) {
627 lua_getfield(L
, -1, "disconnectNotify");
633 lua_pushstring(L
, arg1
);
634 if (lua_isfunction(L
, -1-2)) {
635 lua_pcall(L
, 1+1, 2, 0);
636 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
640 lua_settop(L
, oldtop
);
641 this->QObject::disconnectNotify(arg1
);
643 lua_settop(L
, oldtop
);
645 bool LuaBinder
< QVBoxLayout
>::event (QEvent
* arg1
) {
646 bool absorbed
= false;
647 int oldtop
= lua_gettop(L
);
648 lqtL_pushudata(L
, this, "QVBoxLayout*");
649 if (lua_getmetatable(L
, -1)) {
650 lua_getfield(L
, -1, "event");
656 lqtL_pushudata(L
, arg1
, "QEvent*");
657 if (lua_isfunction(L
, -1-2)) {
658 lua_pcall(L
, 1+1, 2, 0);
659 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
663 lua_settop(L
, oldtop
);
664 return this->QObject::event(arg1
);
666 bool ret
= (bool)lua_toboolean(L
, -1);
667 lua_settop(L
, oldtop
);
670 QWidget
* LuaBinder
< QVBoxLayout
>::widget () {
671 bool absorbed
= false;
672 int oldtop
= lua_gettop(L
);
673 lqtL_pushudata(L
, this, "QVBoxLayout*");
674 if (lua_getmetatable(L
, -1)) {
675 lua_getfield(L
, -1, "widget");
681 if (lua_isfunction(L
, -0-2)) {
682 lua_pcall(L
, 0+1, 2, 0);
683 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
687 lua_settop(L
, oldtop
);
688 return this->QLayoutItem::widget();
690 QWidget
* ret
= *static_cast<QWidget
**>(lqtL_checkudata(L
, -1, "QWidget*"));
691 lua_settop(L
, oldtop
);
694 int LuaBinder
< QVBoxLayout
>::count () const {
695 bool absorbed
= false;
696 int oldtop
= lua_gettop(L
);
697 lqtL_pushudata(L
, this, "QVBoxLayout*");
698 if (lua_getmetatable(L
, -1)) {
699 lua_getfield(L
, -1, "count");
705 if (lua_isfunction(L
, -0-2)) {
706 lua_pcall(L
, 0+1, 2, 0);
707 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
711 lua_settop(L
, oldtop
);
712 return this->QBoxLayout::count();
714 int ret
= lua_tointeger(L
, -1);
715 lua_settop(L
, oldtop
);
718 QRect LuaBinder
< QVBoxLayout
>::geometry () const {
719 bool absorbed
= false;
720 int oldtop
= lua_gettop(L
);
721 lqtL_pushudata(L
, this, "QVBoxLayout*");
722 if (lua_getmetatable(L
, -1)) {
723 lua_getfield(L
, -1, "geometry");
729 if (lua_isfunction(L
, -0-2)) {
730 lua_pcall(L
, 0+1, 2, 0);
731 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
735 lua_settop(L
, oldtop
);
736 return this->QLayout::geometry();
738 QRect ret
= **static_cast<QRect
**>(lqtL_checkudata(L
, -1, "QRect*"));
739 lua_settop(L
, oldtop
);
742 QFlags
<Qt::Orientation
> LuaBinder
< QVBoxLayout
>::expandingDirections () const {
743 bool absorbed
= false;
744 int oldtop
= lua_gettop(L
);
745 lqtL_pushudata(L
, this, "QVBoxLayout*");
746 if (lua_getmetatable(L
, -1)) {
747 lua_getfield(L
, -1, "expandingDirections");
753 if (lua_isfunction(L
, -0-2)) {
754 lua_pcall(L
, 0+1, 2, 0);
755 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
759 lua_settop(L
, oldtop
);
760 return this->QBoxLayout::expandingDirections();
762 QFlags
<Qt::Orientation
> ret
= **static_cast<QFlags
<Qt::Orientation
>**>(lqtL_checkudata(L
, -1, "QFlags<Qt::Orientation>*"));
763 lua_settop(L
, oldtop
);
766 const QMetaObject
* LuaBinder
< QVBoxLayout
>::metaObject () const {
767 bool absorbed
= false;
768 int oldtop
= lua_gettop(L
);
769 lqtL_pushudata(L
, this, "QVBoxLayout*");
770 if (lua_getmetatable(L
, -1)) {
771 lua_getfield(L
, -1, "metaObject");
777 if (lua_isfunction(L
, -0-2)) {
778 lua_pcall(L
, 0+1, 2, 0);
779 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
783 lua_settop(L
, oldtop
);
784 return this->QVBoxLayout::metaObject();
786 const QMetaObject
* ret
= *static_cast<QMetaObject
**>(lqtL_checkudata(L
, -1, "QMetaObject*"));
787 lua_settop(L
, oldtop
);
790 void LuaBinder
< QVBoxLayout
>::invalidate () {
791 bool absorbed
= false;
792 int oldtop
= lua_gettop(L
);
793 lqtL_pushudata(L
, this, "QVBoxLayout*");
794 if (lua_getmetatable(L
, -1)) {
795 lua_getfield(L
, -1, "invalidate");
801 if (lua_isfunction(L
, -0-2)) {
802 lua_pcall(L
, 0+1, 2, 0);
803 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
807 lua_settop(L
, oldtop
);
808 this->QBoxLayout::invalidate();
810 lua_settop(L
, oldtop
);
812 void LuaBinder
< QVBoxLayout
>::customEvent (QEvent
* arg1
) {
813 bool absorbed
= false;
814 int oldtop
= lua_gettop(L
);
815 lqtL_pushudata(L
, this, "QVBoxLayout*");
816 if (lua_getmetatable(L
, -1)) {
817 lua_getfield(L
, -1, "customEvent");
823 lqtL_pushudata(L
, arg1
, "QEvent*");
824 if (lua_isfunction(L
, -1-2)) {
825 lua_pcall(L
, 1+1, 2, 0);
826 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
830 lua_settop(L
, oldtop
);
831 this->QObject::customEvent(arg1
);
833 lua_settop(L
, oldtop
);
835 LuaBinder
< QVBoxLayout
>:: ~LuaBinder
< QVBoxLayout
> () {
836 int oldtop
= lua_gettop(L
);
837 lqtL_pushudata(L
, this, "QVBoxLayout*");
838 lua_getfield(L
, -1, "~QVBoxLayout");
840 if (lua_isfunction(L
, -1)) {
842 lua_pcall(L
, 1, 1, 0);
845 lua_settop(L
, oldtop
);
847 int luaopen_QVBoxLayout (lua_State
*L
) {
848 if (luaL_newmetatable(L
, "QVBoxLayout*")) {
849 lua_pushcfunction(L
, LuaBinder
< QVBoxLayout
>::__LuaWrapCall__tr
);
850 lua_setfield(L
, -2, "tr");
851 lua_pushcfunction(L
, LuaBinder
< QVBoxLayout
>::__LuaWrapCall__delete
);
852 lua_setfield(L
, -2, "delete");
853 lua_pushcfunction(L
, LuaBinder
< QVBoxLayout
>::__LuaWrapCall__trUtf8
);
854 lua_setfield(L
, -2, "trUtf8");
855 lua_pushcfunction(L
, LuaBinder
< QVBoxLayout
>::__LuaWrapCall__metaObject
);
856 lua_setfield(L
, -2, "metaObject");
857 lua_pushcfunction(L
, LuaBinder
< QVBoxLayout
>::__LuaWrapCall__new
);
858 lua_setfield(L
, -2, "new");
860 lua_pushboolean(L
, 1);
861 lua_setfield(L
, -2, "QBoxLayout*");
862 lua_setfield(L
, -2, "__base");
863 lua_pushcfunction(L
, lqtL_newindex
);
864 lua_setfield(L
, -2, "__newindex");
865 lua_pushcfunction(L
, lqtL_index
);
866 lua_setfield(L
, -2, "__index");
867 lua_pushcfunction(L
, lqtL_gc
);
868 lua_setfield(L
, -2, "__gc");
869 lua_pushstring(L
, "QVBoxLayout");
870 lua_setfield(L
, -2, "__qtype");