added "install" instruction
[Leditor.git] / src / lqt_bind_QHBoxLayout.cpp
blob758187bc4cf4253f07cedaef73505a9f1678bcc6
1 #include "lqt_bind_QHBoxLayout.hpp"
3 int LuaBinder< QHBoxLayout >::__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 = QHBoxLayout::tr(arg1, arg2);
7 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
8 return 1;
10 int LuaBinder< QHBoxLayout >::__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 = QHBoxLayout::tr(arg1, arg2, arg3);
15 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
16 return 1;
18 int LuaBinder< QHBoxLayout >::__LuaWrapCall__tr (lua_State *L) {
19 int score[3];
20 const int premium = 11+lua_gettop(L);
21 score[1] = 0;
22 if ((lua_type(L, 1)==LUA_TSTRING)) {
23 score[1] += premium;
24 } else if (false) {
25 score[1] += premium-1; // table: 0x10d0890;
26 } else {
27 score[1] -= premium*premium;
29 if ((lua_type(L, 2)==LUA_TSTRING)) {
30 score[1] += premium;
31 } else if (true) {
32 score[1] += premium-1; // table: 0x10d05f0;
33 } else {
34 score[1] -= premium*premium;
36 score[2] = 0;
37 if ((lua_type(L, 1)==LUA_TSTRING)) {
38 score[2] += premium;
39 } else if (false) {
40 score[2] += premium-1; // table: 0x10d2300;
41 } else {
42 score[2] -= premium*premium;
44 if ((lua_type(L, 2)==LUA_TSTRING)) {
45 score[2] += premium;
46 } else if (false) {
47 score[2] += premium-1; // table: 0x10d27f0;
48 } else {
49 score[2] -= premium*premium;
51 if (lua_isnumber(L, 3)) {
52 score[2] += premium;
53 } else if (false) {
54 score[2] += premium-1; // table: 0x10d2ba0;
55 } else {
56 score[2] -= premium*premium;
58 int best = 1;
59 for (int i=1;i<=2;i++) {
60 if (score[best] < score[i]) { best = i; }
62 switch (best) {
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");
67 lua_error(L);
68 return 0;
70 int LuaBinder< QHBoxLayout >::__LuaWrapCall__delete (lua_State *L) {
71 QHBoxLayout *& __lua__obj = *static_cast<QHBoxLayout**>(lqtL_checkudata(L, 1, "QHBoxLayout*"));
72 if (__lua__obj==0) {
73 lua_pushstring(L, "trying to reference deleted pointer");
74 lua_error(L);
75 return 0;
77 delete __lua__obj;
78 __lua__obj = 0;
79 return 0;
81 int LuaBinder< QHBoxLayout >::__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 = QHBoxLayout::trUtf8(arg1, arg2);
85 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
86 return 1;
88 int LuaBinder< QHBoxLayout >::__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 = QHBoxLayout::trUtf8(arg1, arg2, arg3);
93 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
94 return 1;
96 int LuaBinder< QHBoxLayout >::__LuaWrapCall__trUtf8 (lua_State *L) {
97 int score[3];
98 const int premium = 11+lua_gettop(L);
99 score[1] = 0;
100 if ((lua_type(L, 1)==LUA_TSTRING)) {
101 score[1] += premium;
102 } else if (false) {
103 score[1] += premium-1; // table: 0x10d1620;
104 } else {
105 score[1] -= premium*premium;
107 if ((lua_type(L, 2)==LUA_TSTRING)) {
108 score[1] += premium;
109 } else if (true) {
110 score[1] += premium-1; // table: 0x10d1180;
111 } else {
112 score[1] -= premium*premium;
114 score[2] = 0;
115 if ((lua_type(L, 1)==LUA_TSTRING)) {
116 score[2] += premium;
117 } else if (false) {
118 score[2] += premium-1; // table: 0x10d3410;
119 } else {
120 score[2] -= premium*premium;
122 if ((lua_type(L, 2)==LUA_TSTRING)) {
123 score[2] += premium;
124 } else if (false) {
125 score[2] += premium-1; // table: 0x10d2b40;
126 } else {
127 score[2] -= premium*premium;
129 if (lua_isnumber(L, 3)) {
130 score[2] += premium;
131 } else if (false) {
132 score[2] += premium-1; // table: 0x10d38a0;
133 } else {
134 score[2] -= premium*premium;
136 int best = 1;
137 for (int i=1;i<=2;i++) {
138 if (score[best] < score[i]) { best = i; }
140 switch (best) {
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");
145 lua_error(L);
146 return 0;
148 int LuaBinder< QHBoxLayout >::__LuaWrapCall__metaObject (lua_State *L) {
149 QHBoxLayout *& __lua__obj = *static_cast<QHBoxLayout**>(lqtL_checkudata(L, 1, "QHBoxLayout*"));
150 if (__lua__obj==0) {
151 lua_pushstring(L, "trying to reference deleted pointer");
152 lua_error(L);
153 return 0;
155 const QMetaObject * ret = __lua__obj->QHBoxLayout::metaObject();
156 lqtL_pushudata(L, ret, "QMetaObject*");
157 return 1;
159 int LuaBinder< QHBoxLayout >::__LuaWrapCall__new__OverloadedVersion__1 (lua_State *L) {
160 QHBoxLayout * ret = new LuaBinder< QHBoxLayout >(L);
161 lqtL_passudata(L, ret, "QHBoxLayout*");
162 return 1;
164 int LuaBinder< QHBoxLayout >::__LuaWrapCall__new__OverloadedVersion__2 (lua_State *L) {
165 QWidget * arg1 = *static_cast<QWidget**>(lqtL_checkudata(L, 1, "QWidget*"));
166 QHBoxLayout * ret = new LuaBinder< QHBoxLayout >(L, arg1);
167 lqtL_passudata(L, ret, "QHBoxLayout*");
168 return 1;
170 int LuaBinder< QHBoxLayout >::__LuaWrapCall__new (lua_State *L) {
171 int score[3];
172 const int premium = 11+lua_gettop(L);
173 score[1] = 0;
174 score[2] = 0;
175 if (lqtL_testudata(L, 1, "QWidget*")) {
176 score[2] += premium;
177 } else if (false) {
178 score[2] += premium-1; // table: 0x10d5c00;
179 } else {
180 score[2] -= premium*premium;
182 int best = 1;
183 for (int i=1;i<=2;i++) {
184 if (score[best] < score[i]) { best = i; }
186 switch (best) {
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");
191 lua_error(L);
192 return 0;
194 QLayout * LuaBinder< QHBoxLayout >::layout () {
195 bool absorbed = false;
196 int oldtop = lua_gettop(L);
197 lqtL_pushudata(L, this, "QHBoxLayout*");
198 if (lua_getmetatable(L, -1)) {
199 lua_getfield(L, -1, "layout");
200 lua_remove(L, -2);
201 } else {
202 lua_pushnil(L);
204 lua_insert(L, -2);
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);
208 lua_pop(L, 1);
210 if (!absorbed) {
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);
216 return ret;
218 QLayoutItem * LuaBinder< QHBoxLayout >::takeAt (int arg1) {
219 bool absorbed = false;
220 int oldtop = lua_gettop(L);
221 lqtL_pushudata(L, this, "QHBoxLayout*");
222 if (lua_getmetatable(L, -1)) {
223 lua_getfield(L, -1, "takeAt");
224 lua_remove(L, -2);
225 } else {
226 lua_pushnil(L);
228 lua_insert(L, -2);
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);
233 lua_pop(L, 1);
235 if (!absorbed) {
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);
241 return ret;
243 void LuaBinder< QHBoxLayout >::setGeometry (const QRect& arg1) {
244 bool absorbed = false;
245 int oldtop = lua_gettop(L);
246 lqtL_pushudata(L, this, "QHBoxLayout*");
247 if (lua_getmetatable(L, -1)) {
248 lua_getfield(L, -1, "setGeometry");
249 lua_remove(L, -2);
250 } else {
251 lua_pushnil(L);
253 lua_insert(L, -2);
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);
258 lua_pop(L, 1);
260 if (!absorbed) {
261 lua_settop(L, oldtop);
262 this->QBoxLayout::setGeometry(arg1);
264 lua_settop(L, oldtop);
266 QSize LuaBinder< QHBoxLayout >::minimumSize () const {
267 bool absorbed = false;
268 int oldtop = lua_gettop(L);
269 lqtL_pushudata(L, this, "QHBoxLayout*");
270 if (lua_getmetatable(L, -1)) {
271 lua_getfield(L, -1, "minimumSize");
272 lua_remove(L, -2);
273 } else {
274 lua_pushnil(L);
276 lua_insert(L, -2);
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);
280 lua_pop(L, 1);
282 if (!absorbed) {
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);
288 return ret;
290 int LuaBinder< QHBoxLayout >::heightForWidth (int arg1) const {
291 bool absorbed = false;
292 int oldtop = lua_gettop(L);
293 lqtL_pushudata(L, this, "QHBoxLayout*");
294 if (lua_getmetatable(L, -1)) {
295 lua_getfield(L, -1, "heightForWidth");
296 lua_remove(L, -2);
297 } else {
298 lua_pushnil(L);
300 lua_insert(L, -2);
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);
305 lua_pop(L, 1);
307 if (!absorbed) {
308 lua_settop(L, oldtop);
309 return this->QBoxLayout::heightForWidth(arg1);
311 int ret = lua_tointeger(L, -1);
312 lua_settop(L, oldtop);
313 return ret;
315 void LuaBinder< QHBoxLayout >::invalidate () {
316 bool absorbed = false;
317 int oldtop = lua_gettop(L);
318 lqtL_pushudata(L, this, "QHBoxLayout*");
319 if (lua_getmetatable(L, -1)) {
320 lua_getfield(L, -1, "invalidate");
321 lua_remove(L, -2);
322 } else {
323 lua_pushnil(L);
325 lua_insert(L, -2);
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);
329 lua_pop(L, 1);
331 if (!absorbed) {
332 lua_settop(L, oldtop);
333 this->QBoxLayout::invalidate();
335 lua_settop(L, oldtop);
337 void LuaBinder< QHBoxLayout >::timerEvent (QTimerEvent * arg1) {
338 bool absorbed = false;
339 int oldtop = lua_gettop(L);
340 lqtL_pushudata(L, this, "QHBoxLayout*");
341 if (lua_getmetatable(L, -1)) {
342 lua_getfield(L, -1, "timerEvent");
343 lua_remove(L, -2);
344 } else {
345 lua_pushnil(L);
347 lua_insert(L, -2);
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);
352 lua_pop(L, 1);
354 if (!absorbed) {
355 lua_settop(L, oldtop);
356 this->QObject::timerEvent(arg1);
358 lua_settop(L, oldtop);
360 void LuaBinder< QHBoxLayout >::childEvent (QChildEvent * arg1) {
361 bool absorbed = false;
362 int oldtop = lua_gettop(L);
363 lqtL_pushudata(L, this, "QHBoxLayout*");
364 if (lua_getmetatable(L, -1)) {
365 lua_getfield(L, -1, "childEvent");
366 lua_remove(L, -2);
367 } else {
368 lua_pushnil(L);
370 lua_insert(L, -2);
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);
375 lua_pop(L, 1);
377 if (!absorbed) {
378 lua_settop(L, oldtop);
379 this->QLayout::childEvent(arg1);
381 lua_settop(L, oldtop);
383 const QMetaObject * LuaBinder< QHBoxLayout >::metaObject () const {
384 bool absorbed = false;
385 int oldtop = lua_gettop(L);
386 lqtL_pushudata(L, this, "QHBoxLayout*");
387 if (lua_getmetatable(L, -1)) {
388 lua_getfield(L, -1, "metaObject");
389 lua_remove(L, -2);
390 } else {
391 lua_pushnil(L);
393 lua_insert(L, -2);
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);
397 lua_pop(L, 1);
399 if (!absorbed) {
400 lua_settop(L, oldtop);
401 return this->QHBoxLayout::metaObject();
403 const QMetaObject * ret = *static_cast<QMetaObject**>(lqtL_checkudata(L, -1, "QMetaObject*"));
404 lua_settop(L, oldtop);
405 return ret;
407 int LuaBinder< QHBoxLayout >::minimumHeightForWidth (int arg1) const {
408 bool absorbed = false;
409 int oldtop = lua_gettop(L);
410 lqtL_pushudata(L, this, "QHBoxLayout*");
411 if (lua_getmetatable(L, -1)) {
412 lua_getfield(L, -1, "minimumHeightForWidth");
413 lua_remove(L, -2);
414 } else {
415 lua_pushnil(L);
417 lua_insert(L, -2);
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);
422 lua_pop(L, 1);
424 if (!absorbed) {
425 lua_settop(L, oldtop);
426 return this->QBoxLayout::minimumHeightForWidth(arg1);
428 int ret = lua_tointeger(L, -1);
429 lua_settop(L, oldtop);
430 return ret;
432 void LuaBinder< QHBoxLayout >::connectNotify (const char * arg1) {
433 bool absorbed = false;
434 int oldtop = lua_gettop(L);
435 lqtL_pushudata(L, this, "QHBoxLayout*");
436 if (lua_getmetatable(L, -1)) {
437 lua_getfield(L, -1, "connectNotify");
438 lua_remove(L, -2);
439 } else {
440 lua_pushnil(L);
442 lua_insert(L, -2);
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);
447 lua_pop(L, 1);
449 if (!absorbed) {
450 lua_settop(L, oldtop);
451 this->QObject::connectNotify(arg1);
453 lua_settop(L, oldtop);
455 bool LuaBinder< QHBoxLayout >::hasHeightForWidth () const {
456 bool absorbed = false;
457 int oldtop = lua_gettop(L);
458 lqtL_pushudata(L, this, "QHBoxLayout*");
459 if (lua_getmetatable(L, -1)) {
460 lua_getfield(L, -1, "hasHeightForWidth");
461 lua_remove(L, -2);
462 } else {
463 lua_pushnil(L);
465 lua_insert(L, -2);
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);
469 lua_pop(L, 1);
471 if (!absorbed) {
472 lua_settop(L, oldtop);
473 return this->QBoxLayout::hasHeightForWidth();
475 bool ret = (bool)lua_toboolean(L, -1);
476 lua_settop(L, oldtop);
477 return ret;
479 void LuaBinder< QHBoxLayout >::addItem (QLayoutItem * arg1) {
480 bool absorbed = false;
481 int oldtop = lua_gettop(L);
482 lqtL_pushudata(L, this, "QHBoxLayout*");
483 if (lua_getmetatable(L, -1)) {
484 lua_getfield(L, -1, "addItem");
485 lua_remove(L, -2);
486 } else {
487 lua_pushnil(L);
489 lua_insert(L, -2);
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);
494 lua_pop(L, 1);
496 if (!absorbed) {
497 lua_settop(L, oldtop);
498 this->QBoxLayout::addItem(arg1);
500 lua_settop(L, oldtop);
502 bool LuaBinder< QHBoxLayout >::eventFilter (QObject * arg1, QEvent * arg2) {
503 bool absorbed = false;
504 int oldtop = lua_gettop(L);
505 lqtL_pushudata(L, this, "QHBoxLayout*");
506 if (lua_getmetatable(L, -1)) {
507 lua_getfield(L, -1, "eventFilter");
508 lua_remove(L, -2);
509 } else {
510 lua_pushnil(L);
512 lua_insert(L, -2);
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);
518 lua_pop(L, 1);
520 if (!absorbed) {
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);
526 return ret;
528 QSpacerItem * LuaBinder< QHBoxLayout >::spacerItem () {
529 bool absorbed = false;
530 int oldtop = lua_gettop(L);
531 lqtL_pushudata(L, this, "QHBoxLayout*");
532 if (lua_getmetatable(L, -1)) {
533 lua_getfield(L, -1, "spacerItem");
534 lua_remove(L, -2);
535 } else {
536 lua_pushnil(L);
538 lua_insert(L, -2);
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);
542 lua_pop(L, 1);
544 if (!absorbed) {
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);
550 return ret;
552 QSize LuaBinder< QHBoxLayout >::sizeHint () const {
553 bool absorbed = false;
554 int oldtop = lua_gettop(L);
555 lqtL_pushudata(L, this, "QHBoxLayout*");
556 if (lua_getmetatable(L, -1)) {
557 lua_getfield(L, -1, "sizeHint");
558 lua_remove(L, -2);
559 } else {
560 lua_pushnil(L);
562 lua_insert(L, -2);
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);
566 lua_pop(L, 1);
568 if (!absorbed) {
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);
574 return ret;
576 QRect LuaBinder< QHBoxLayout >::geometry () const {
577 bool absorbed = false;
578 int oldtop = lua_gettop(L);
579 lqtL_pushudata(L, this, "QHBoxLayout*");
580 if (lua_getmetatable(L, -1)) {
581 lua_getfield(L, -1, "geometry");
582 lua_remove(L, -2);
583 } else {
584 lua_pushnil(L);
586 lua_insert(L, -2);
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);
590 lua_pop(L, 1);
592 if (!absorbed) {
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);
598 return ret;
600 bool LuaBinder< QHBoxLayout >::isEmpty () const {
601 bool absorbed = false;
602 int oldtop = lua_gettop(L);
603 lqtL_pushudata(L, this, "QHBoxLayout*");
604 if (lua_getmetatable(L, -1)) {
605 lua_getfield(L, -1, "isEmpty");
606 lua_remove(L, -2);
607 } else {
608 lua_pushnil(L);
610 lua_insert(L, -2);
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);
614 lua_pop(L, 1);
616 if (!absorbed) {
617 lua_settop(L, oldtop);
618 return this->QLayout::isEmpty();
620 bool ret = (bool)lua_toboolean(L, -1);
621 lua_settop(L, oldtop);
622 return ret;
624 void LuaBinder< QHBoxLayout >::disconnectNotify (const char * arg1) {
625 bool absorbed = false;
626 int oldtop = lua_gettop(L);
627 lqtL_pushudata(L, this, "QHBoxLayout*");
628 if (lua_getmetatable(L, -1)) {
629 lua_getfield(L, -1, "disconnectNotify");
630 lua_remove(L, -2);
631 } else {
632 lua_pushnil(L);
634 lua_insert(L, -2);
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);
639 lua_pop(L, 1);
641 if (!absorbed) {
642 lua_settop(L, oldtop);
643 this->QObject::disconnectNotify(arg1);
645 lua_settop(L, oldtop);
647 bool LuaBinder< QHBoxLayout >::event (QEvent * arg1) {
648 bool absorbed = false;
649 int oldtop = lua_gettop(L);
650 lqtL_pushudata(L, this, "QHBoxLayout*");
651 if (lua_getmetatable(L, -1)) {
652 lua_getfield(L, -1, "event");
653 lua_remove(L, -2);
654 } else {
655 lua_pushnil(L);
657 lua_insert(L, -2);
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);
662 lua_pop(L, 1);
664 if (!absorbed) {
665 lua_settop(L, oldtop);
666 return this->QObject::event(arg1);
668 bool ret = (bool)lua_toboolean(L, -1);
669 lua_settop(L, oldtop);
670 return ret;
672 QWidget * LuaBinder< QHBoxLayout >::widget () {
673 bool absorbed = false;
674 int oldtop = lua_gettop(L);
675 lqtL_pushudata(L, this, "QHBoxLayout*");
676 if (lua_getmetatable(L, -1)) {
677 lua_getfield(L, -1, "widget");
678 lua_remove(L, -2);
679 } else {
680 lua_pushnil(L);
682 lua_insert(L, -2);
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);
686 lua_pop(L, 1);
688 if (!absorbed) {
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);
694 return ret;
696 int LuaBinder< QHBoxLayout >::count () const {
697 bool absorbed = false;
698 int oldtop = lua_gettop(L);
699 lqtL_pushudata(L, this, "QHBoxLayout*");
700 if (lua_getmetatable(L, -1)) {
701 lua_getfield(L, -1, "count");
702 lua_remove(L, -2);
703 } else {
704 lua_pushnil(L);
706 lua_insert(L, -2);
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);
710 lua_pop(L, 1);
712 if (!absorbed) {
713 lua_settop(L, oldtop);
714 return this->QBoxLayout::count();
716 int ret = lua_tointeger(L, -1);
717 lua_settop(L, oldtop);
718 return ret;
720 int LuaBinder< QHBoxLayout >::indexOf (QWidget * arg1) const {
721 bool absorbed = false;
722 int oldtop = lua_gettop(L);
723 lqtL_pushudata(L, this, "QHBoxLayout*");
724 if (lua_getmetatable(L, -1)) {
725 lua_getfield(L, -1, "indexOf");
726 lua_remove(L, -2);
727 } else {
728 lua_pushnil(L);
730 lua_insert(L, -2);
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);
735 lua_pop(L, 1);
737 if (!absorbed) {
738 lua_settop(L, oldtop);
739 return this->QLayout::indexOf(arg1);
741 int ret = lua_tointeger(L, -1);
742 lua_settop(L, oldtop);
743 return ret;
745 QFlags<Qt::Orientation> LuaBinder< QHBoxLayout >::expandingDirections () const {
746 bool absorbed = false;
747 int oldtop = lua_gettop(L);
748 lqtL_pushudata(L, this, "QHBoxLayout*");
749 if (lua_getmetatable(L, -1)) {
750 lua_getfield(L, -1, "expandingDirections");
751 lua_remove(L, -2);
752 } else {
753 lua_pushnil(L);
755 lua_insert(L, -2);
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);
759 lua_pop(L, 1);
761 if (!absorbed) {
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);
767 return ret;
769 QLayoutItem * LuaBinder< QHBoxLayout >::itemAt (int arg1) const {
770 bool absorbed = false;
771 int oldtop = lua_gettop(L);
772 lqtL_pushudata(L, this, "QHBoxLayout*");
773 if (lua_getmetatable(L, -1)) {
774 lua_getfield(L, -1, "itemAt");
775 lua_remove(L, -2);
776 } else {
777 lua_pushnil(L);
779 lua_insert(L, -2);
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);
784 lua_pop(L, 1);
786 if (!absorbed) {
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);
792 return ret;
794 QSize LuaBinder< QHBoxLayout >::maximumSize () const {
795 bool absorbed = false;
796 int oldtop = lua_gettop(L);
797 lqtL_pushudata(L, this, "QHBoxLayout*");
798 if (lua_getmetatable(L, -1)) {
799 lua_getfield(L, -1, "maximumSize");
800 lua_remove(L, -2);
801 } else {
802 lua_pushnil(L);
804 lua_insert(L, -2);
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);
808 lua_pop(L, 1);
810 if (!absorbed) {
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);
816 return ret;
818 void LuaBinder< QHBoxLayout >::customEvent (QEvent * arg1) {
819 bool absorbed = false;
820 int oldtop = lua_gettop(L);
821 lqtL_pushudata(L, this, "QHBoxLayout*");
822 if (lua_getmetatable(L, -1)) {
823 lua_getfield(L, -1, "customEvent");
824 lua_remove(L, -2);
825 } else {
826 lua_pushnil(L);
828 lua_insert(L, -2);
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);
833 lua_pop(L, 1);
835 if (!absorbed) {
836 lua_settop(L, oldtop);
837 this->QObject::customEvent(arg1);
839 lua_settop(L, oldtop);
841 LuaBinder< QHBoxLayout >:: ~LuaBinder< QHBoxLayout > () {
842 int oldtop = lua_gettop(L);
843 lqtL_pushudata(L, this, "QHBoxLayout*");
844 lua_getfield(L, -1, "~QHBoxLayout");
846 if (lua_isfunction(L, -1)) {
847 lua_insert(L, -2);
848 lua_pcall(L, 1, 1, 0);
849 } else {
851 lua_settop(L, oldtop);
853 int luaopen_QHBoxLayout (lua_State *L) {
854 if (luaL_newmetatable(L, "QHBoxLayout*")) {
855 lua_pushcfunction(L, LuaBinder< QHBoxLayout >::__LuaWrapCall__tr);
856 lua_setfield(L, -2, "tr");
857 lua_pushcfunction(L, LuaBinder< QHBoxLayout >::__LuaWrapCall__delete);
858 lua_setfield(L, -2, "delete");
859 lua_pushcfunction(L, LuaBinder< QHBoxLayout >::__LuaWrapCall__trUtf8);
860 lua_setfield(L, -2, "trUtf8");
861 lua_pushcfunction(L, LuaBinder< QHBoxLayout >::__LuaWrapCall__metaObject);
862 lua_setfield(L, -2, "metaObject");
863 lua_pushcfunction(L, LuaBinder< QHBoxLayout >::__LuaWrapCall__new);
864 lua_setfield(L, -2, "new");
865 lua_newtable(L);
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, "QHBoxLayout");
882 lua_setfield(L, -2, "__qtype");
883 lua_setglobal(L, "QHBoxLayout");
884 } else {
885 lua_pop(L, 1);
887 return 0;