added "install" instruction
[Leditor.git] / src / lqt_bind_QBoxLayout.cpp
blob35fa810feff36f5c5dd63e54ab80007dc49a047c
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*"));
5 if (__lua__obj==0) {
6 lua_pushstring(L, "trying to reference deleted pointer");
7 lua_error(L);
8 return 0;
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);
14 return 0;
16 int LuaBinder< QBoxLayout >::__LuaWrapCall__takeAt (lua_State *L) {
17 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
18 if (__lua__obj==0) {
19 lua_pushstring(L, "trying to reference deleted pointer");
20 lua_error(L);
21 return 0;
23 int arg1 = lua_tointeger(L, 2);
24 QLayoutItem * ret = __lua__obj->QBoxLayout::takeAt(arg1);
25 lqtL_pushudata(L, ret, "QLayoutItem*");
26 return 1;
28 int LuaBinder< QBoxLayout >::__LuaWrapCall__delete (lua_State *L) {
29 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
30 if (__lua__obj==0) {
31 lua_pushstring(L, "trying to reference deleted pointer");
32 lua_error(L);
33 return 0;
35 delete __lua__obj;
36 __lua__obj = 0;
37 return 0;
39 int LuaBinder< QBoxLayout >::__LuaWrapCall__sizeHint (lua_State *L) {
40 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
41 if (__lua__obj==0) {
42 lua_pushstring(L, "trying to reference deleted pointer");
43 lua_error(L);
44 return 0;
46 QSize ret = __lua__obj->QBoxLayout::sizeHint();
47 lqtL_passudata(L, new QSize(ret), "QSize*");
48 return 1;
50 int LuaBinder< QBoxLayout >::__LuaWrapCall__setSpacing (lua_State *L) {
51 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
52 if (__lua__obj==0) {
53 lua_pushstring(L, "trying to reference deleted pointer");
54 lua_error(L);
55 return 0;
57 int arg1 = lua_tointeger(L, 2);
58 __lua__obj->QBoxLayout::setSpacing(arg1);
59 return 0;
61 int LuaBinder< QBoxLayout >::__LuaWrapCall__minimumSize (lua_State *L) {
62 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
63 if (__lua__obj==0) {
64 lua_pushstring(L, "trying to reference deleted pointer");
65 lua_error(L);
66 return 0;
68 QSize ret = __lua__obj->QBoxLayout::minimumSize();
69 lqtL_passudata(L, new QSize(ret), "QSize*");
70 return 1;
72 int LuaBinder< QBoxLayout >::__LuaWrapCall__invalidate (lua_State *L) {
73 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
74 if (__lua__obj==0) {
75 lua_pushstring(L, "trying to reference deleted pointer");
76 lua_error(L);
77 return 0;
79 __lua__obj->QBoxLayout::invalidate();
80 return 0;
82 int LuaBinder< QBoxLayout >::__LuaWrapCall__direction (lua_State *L) {
83 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
84 if (__lua__obj==0) {
85 lua_pushstring(L, "trying to reference deleted pointer");
86 lua_error(L);
87 return 0;
89 QBoxLayout::Direction ret = __lua__obj->QBoxLayout::direction();
90 lqtL_pushenum(L, ret, "QBoxLayout::Direction");
91 return 1;
93 int LuaBinder< QBoxLayout >::__LuaWrapCall__spacing (lua_State *L) {
94 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
95 if (__lua__obj==0) {
96 lua_pushstring(L, "trying to reference deleted pointer");
97 lua_error(L);
98 return 0;
100 int ret = __lua__obj->QBoxLayout::spacing();
101 lua_pushinteger(L, ret);
102 return 1;
104 int LuaBinder< QBoxLayout >::__LuaWrapCall__addSpacing (lua_State *L) {
105 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
106 if (__lua__obj==0) {
107 lua_pushstring(L, "trying to reference deleted pointer");
108 lua_error(L);
109 return 0;
111 int arg1 = lua_tointeger(L, 2);
112 __lua__obj->QBoxLayout::addSpacing(arg1);
113 return 0;
115 int LuaBinder< QBoxLayout >::__LuaWrapCall__insertWidget (lua_State *L) {
116 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
117 if (__lua__obj==0) {
118 lua_pushstring(L, "trying to reference deleted pointer");
119 lua_error(L);
120 return 0;
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);
127 return 0;
129 int LuaBinder< QBoxLayout >::__LuaWrapCall__addStretch (lua_State *L) {
130 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
131 if (__lua__obj==0) {
132 lua_pushstring(L, "trying to reference deleted pointer");
133 lua_error(L);
134 return 0;
136 int arg1 = lua_isnumber(L, 2)?lua_tointeger(L, 2):static_cast< int >(0);
137 __lua__obj->QBoxLayout::addStretch(arg1);
138 return 0;
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());
145 return 1;
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());
153 return 1;
155 int LuaBinder< QBoxLayout >::__LuaWrapCall__trUtf8 (lua_State *L) {
156 int score[3];
157 const int premium = 11+lua_gettop(L);
158 score[1] = 0;
159 if ((lua_type(L, 1)==LUA_TSTRING)) {
160 score[1] += premium;
161 } else if (false) {
162 score[1] += premium-1; // table: 0x10dbb90;
163 } else {
164 score[1] -= premium*premium;
166 if ((lua_type(L, 2)==LUA_TSTRING)) {
167 score[1] += premium;
168 } else if (true) {
169 score[1] += premium-1; // table: 0x10db6f0;
170 } else {
171 score[1] -= premium*premium;
173 score[2] = 0;
174 if ((lua_type(L, 1)==LUA_TSTRING)) {
175 score[2] += premium;
176 } else if (false) {
177 score[2] += premium-1; // table: 0x10dd980;
178 } else {
179 score[2] -= premium*premium;
181 if ((lua_type(L, 2)==LUA_TSTRING)) {
182 score[2] += premium;
183 } else if (false) {
184 score[2] += premium-1; // table: 0x10dd0b0;
185 } else {
186 score[2] -= premium*premium;
188 if (lua_isnumber(L, 3)) {
189 score[2] += premium;
190 } else if (false) {
191 score[2] += premium-1; // table: 0x10dde10;
192 } else {
193 score[2] -= premium*premium;
195 int best = 1;
196 for (int i=1;i<=2;i++) {
197 if (score[best] < score[i]) { best = i; }
199 switch (best) {
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");
204 lua_error(L);
205 return 0;
207 int LuaBinder< QBoxLayout >::__LuaWrapCall__insertStretch (lua_State *L) {
208 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
209 if (__lua__obj==0) {
210 lua_pushstring(L, "trying to reference deleted pointer");
211 lua_error(L);
212 return 0;
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);
217 return 0;
219 int LuaBinder< QBoxLayout >::__LuaWrapCall__metaObject (lua_State *L) {
220 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
221 if (__lua__obj==0) {
222 lua_pushstring(L, "trying to reference deleted pointer");
223 lua_error(L);
224 return 0;
226 const QMetaObject * ret = __lua__obj->QBoxLayout::metaObject();
227 lqtL_pushudata(L, ret, "QMetaObject*");
228 return 1;
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*");
235 return 1;
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());
242 return 1;
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());
250 return 1;
252 int LuaBinder< QBoxLayout >::__LuaWrapCall__tr (lua_State *L) {
253 int score[3];
254 const int premium = 11+lua_gettop(L);
255 score[1] = 0;
256 if ((lua_type(L, 1)==LUA_TSTRING)) {
257 score[1] += premium;
258 } else if (false) {
259 score[1] += premium-1; // table: 0x10dae30;
260 } else {
261 score[1] -= premium*premium;
263 if ((lua_type(L, 2)==LUA_TSTRING)) {
264 score[1] += premium;
265 } else if (true) {
266 score[1] += premium-1; // table: 0x10dab90;
267 } else {
268 score[1] -= premium*premium;
270 score[2] = 0;
271 if ((lua_type(L, 1)==LUA_TSTRING)) {
272 score[2] += premium;
273 } else if (false) {
274 score[2] += premium-1; // table: 0x10dc870;
275 } else {
276 score[2] -= premium*premium;
278 if ((lua_type(L, 2)==LUA_TSTRING)) {
279 score[2] += premium;
280 } else if (false) {
281 score[2] += premium-1; // table: 0x10dcd60;
282 } else {
283 score[2] -= premium*premium;
285 if (lua_isnumber(L, 3)) {
286 score[2] += premium;
287 } else if (false) {
288 score[2] += premium-1; // table: 0x10dd110;
289 } else {
290 score[2] -= premium*premium;
292 int best = 1;
293 for (int i=1;i<=2;i++) {
294 if (score[best] < score[i]) { best = i; }
296 switch (best) {
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");
301 lua_error(L);
302 return 0;
304 int LuaBinder< QBoxLayout >::__LuaWrapCall__addStrut (lua_State *L) {
305 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
306 if (__lua__obj==0) {
307 lua_pushstring(L, "trying to reference deleted pointer");
308 lua_error(L);
309 return 0;
311 int arg1 = lua_tointeger(L, 2);
312 __lua__obj->QBoxLayout::addStrut(arg1);
313 return 0;
315 int LuaBinder< QBoxLayout >::__LuaWrapCall__minimumHeightForWidth (lua_State *L) {
316 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
317 if (__lua__obj==0) {
318 lua_pushstring(L, "trying to reference deleted pointer");
319 lua_error(L);
320 return 0;
322 int arg1 = lua_tointeger(L, 2);
323 int ret = __lua__obj->QBoxLayout::minimumHeightForWidth(arg1);
324 lua_pushinteger(L, ret);
325 return 1;
327 int LuaBinder< QBoxLayout >::__LuaWrapCall__setDirection (lua_State *L) {
328 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
329 if (__lua__obj==0) {
330 lua_pushstring(L, "trying to reference deleted pointer");
331 lua_error(L);
332 return 0;
334 QBoxLayout::Direction arg1 = static_cast<QBoxLayout::Direction>(lqtL_toenum(L, 2, "QBoxLayout::Direction"));
335 __lua__obj->QBoxLayout::setDirection(arg1);
336 return 0;
338 int LuaBinder< QBoxLayout >::__LuaWrapCall__heightForWidth (lua_State *L) {
339 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
340 if (__lua__obj==0) {
341 lua_pushstring(L, "trying to reference deleted pointer");
342 lua_error(L);
343 return 0;
345 int arg1 = lua_tointeger(L, 2);
346 int ret = __lua__obj->QBoxLayout::heightForWidth(arg1);
347 lua_pushinteger(L, ret);
348 return 1;
350 int LuaBinder< QBoxLayout >::__LuaWrapCall__addItem (lua_State *L) {
351 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
352 if (__lua__obj==0) {
353 lua_pushstring(L, "trying to reference deleted pointer");
354 lua_error(L);
355 return 0;
357 QLayoutItem * arg1 = *static_cast<QLayoutItem**>(lqtL_checkudata(L, 2, "QLayoutItem*"));
358 __lua__obj->QBoxLayout::addItem(arg1);
359 return 0;
361 int LuaBinder< QBoxLayout >::__LuaWrapCall__setStretchFactor__OverloadedVersion__1 (lua_State *L) {
362 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
363 if (__lua__obj==0) {
364 lua_pushstring(L, "trying to reference deleted pointer");
365 lua_error(L);
366 return 0;
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);
372 return 1;
374 int LuaBinder< QBoxLayout >::__LuaWrapCall__setStretchFactor__OverloadedVersion__2 (lua_State *L) {
375 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
376 if (__lua__obj==0) {
377 lua_pushstring(L, "trying to reference deleted pointer");
378 lua_error(L);
379 return 0;
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);
385 return 1;
387 int LuaBinder< QBoxLayout >::__LuaWrapCall__setStretchFactor (lua_State *L) {
388 int score[3];
389 const int premium = 11+lua_gettop(L);
390 score[1] = 0;
391 score[1] += lqtL_testudata(L, 1, "QBoxLayout*")?premium:-premium*premium;
392 if (lqtL_testudata(L, 2, "QWidget*")) {
393 score[1] += premium;
394 } else if (false) {
395 score[1] += premium-1; // table: 0x10ed010;
396 } else {
397 score[1] -= premium*premium;
399 if (lua_isnumber(L, 3)) {
400 score[1] += premium;
401 } else if (false) {
402 score[1] += premium-1; // table: 0x10eca40;
403 } else {
404 score[1] -= premium*premium;
406 score[2] = 0;
407 score[2] += lqtL_testudata(L, 1, "QBoxLayout*")?premium:-premium*premium;
408 if (lqtL_testudata(L, 2, "QLayout*")) {
409 score[2] += premium;
410 } else if (false) {
411 score[2] += premium-1; // table: 0x10ede50;
412 } else {
413 score[2] -= premium*premium;
415 if (lua_isnumber(L, 3)) {
416 score[2] += premium;
417 } else if (false) {
418 score[2] += premium-1; // table: 0x10ed8f0;
419 } else {
420 score[2] -= premium*premium;
422 int best = 1;
423 for (int i=1;i<=2;i++) {
424 if (score[best] < score[i]) { best = i; }
426 switch (best) {
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");
431 lua_error(L);
432 return 0;
434 int LuaBinder< QBoxLayout >::__LuaWrapCall__expandingDirections (lua_State *L) {
435 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
436 if (__lua__obj==0) {
437 lua_pushstring(L, "trying to reference deleted pointer");
438 lua_error(L);
439 return 0;
441 QFlags<Qt::Orientation> ret = __lua__obj->QBoxLayout::expandingDirections();
442 lqtL_passudata(L, new QFlags<Qt::Orientation>(ret), "QFlags<Qt::Orientation>*");
443 return 1;
445 int LuaBinder< QBoxLayout >::__LuaWrapCall__insertSpacing (lua_State *L) {
446 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
447 if (__lua__obj==0) {
448 lua_pushstring(L, "trying to reference deleted pointer");
449 lua_error(L);
450 return 0;
452 int arg1 = lua_tointeger(L, 2);
453 int arg2 = lua_tointeger(L, 3);
454 __lua__obj->QBoxLayout::insertSpacing(arg1, arg2);
455 return 0;
457 int LuaBinder< QBoxLayout >::__LuaWrapCall__addLayout (lua_State *L) {
458 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
459 if (__lua__obj==0) {
460 lua_pushstring(L, "trying to reference deleted pointer");
461 lua_error(L);
462 return 0;
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);
467 return 0;
469 int LuaBinder< QBoxLayout >::__LuaWrapCall__count (lua_State *L) {
470 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
471 if (__lua__obj==0) {
472 lua_pushstring(L, "trying to reference deleted pointer");
473 lua_error(L);
474 return 0;
476 int ret = __lua__obj->QBoxLayout::count();
477 lua_pushinteger(L, ret);
478 return 1;
480 int LuaBinder< QBoxLayout >::__LuaWrapCall__addWidget (lua_State *L) {
481 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
482 if (__lua__obj==0) {
483 lua_pushstring(L, "trying to reference deleted pointer");
484 lua_error(L);
485 return 0;
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);
491 return 0;
493 int LuaBinder< QBoxLayout >::__LuaWrapCall__maximumSize (lua_State *L) {
494 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
495 if (__lua__obj==0) {
496 lua_pushstring(L, "trying to reference deleted pointer");
497 lua_error(L);
498 return 0;
500 QSize ret = __lua__obj->QBoxLayout::maximumSize();
501 lqtL_passudata(L, new QSize(ret), "QSize*");
502 return 1;
504 int LuaBinder< QBoxLayout >::__LuaWrapCall__setGeometry (lua_State *L) {
505 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
506 if (__lua__obj==0) {
507 lua_pushstring(L, "trying to reference deleted pointer");
508 lua_error(L);
509 return 0;
511 const QRect& arg1 = **static_cast<QRect**>(lqtL_checkudata(L, 2, "QRect*"));
512 __lua__obj->QBoxLayout::setGeometry(arg1);
513 return 0;
515 int LuaBinder< QBoxLayout >::__LuaWrapCall__itemAt (lua_State *L) {
516 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
517 if (__lua__obj==0) {
518 lua_pushstring(L, "trying to reference deleted pointer");
519 lua_error(L);
520 return 0;
522 int arg1 = lua_tointeger(L, 2);
523 QLayoutItem * ret = __lua__obj->QBoxLayout::itemAt(arg1);
524 lqtL_pushudata(L, ret, "QLayoutItem*");
525 return 1;
527 int LuaBinder< QBoxLayout >::__LuaWrapCall__hasHeightForWidth (lua_State *L) {
528 QBoxLayout *& __lua__obj = *static_cast<QBoxLayout**>(lqtL_checkudata(L, 1, "QBoxLayout*"));
529 if (__lua__obj==0) {
530 lua_pushstring(L, "trying to reference deleted pointer");
531 lua_error(L);
532 return 0;
534 bool ret = __lua__obj->QBoxLayout::hasHeightForWidth();
535 lua_pushboolean(L, ret);
536 return 1;
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");
544 lua_remove(L, -2);
545 } else {
546 lua_pushnil(L);
548 lua_insert(L, -2);
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);
552 lua_pop(L, 1);
554 if (!absorbed) {
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);
560 return ret;
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");
568 lua_remove(L, -2);
569 } else {
570 lua_pushnil(L);
572 lua_insert(L, -2);
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);
577 lua_pop(L, 1);
579 if (!absorbed) {
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);
585 return ret;
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");
593 lua_remove(L, -2);
594 } else {
595 lua_pushnil(L);
597 lua_insert(L, -2);
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);
602 lua_pop(L, 1);
604 if (!absorbed) {
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");
616 lua_remove(L, -2);
617 } else {
618 lua_pushnil(L);
620 lua_insert(L, -2);
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);
625 lua_pop(L, 1);
627 if (!absorbed) {
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);
633 return ret;
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");
641 lua_remove(L, -2);
642 } else {
643 lua_pushnil(L);
645 lua_insert(L, -2);
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);
650 lua_pop(L, 1);
652 if (!absorbed) {
653 lua_settop(L, oldtop);
654 return this->QBoxLayout::heightForWidth(arg1);
656 int ret = lua_tointeger(L, -1);
657 lua_settop(L, oldtop);
658 return ret;
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");
666 lua_remove(L, -2);
667 } else {
668 lua_pushnil(L);
670 lua_insert(L, -2);
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);
674 lua_pop(L, 1);
676 if (!absorbed) {
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);
682 return ret;
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");
690 lua_remove(L, -2);
691 } else {
692 lua_pushnil(L);
694 lua_insert(L, -2);
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);
698 lua_pop(L, 1);
700 if (!absorbed) {
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");
712 lua_remove(L, -2);
713 } else {
714 lua_pushnil(L);
716 lua_insert(L, -2);
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);
721 lua_pop(L, 1);
723 if (!absorbed) {
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");
735 lua_remove(L, -2);
736 } else {
737 lua_pushnil(L);
739 lua_insert(L, -2);
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);
744 lua_pop(L, 1);
746 if (!absorbed) {
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");
758 lua_remove(L, -2);
759 } else {
760 lua_pushnil(L);
762 lua_insert(L, -2);
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);
767 lua_pop(L, 1);
769 if (!absorbed) {
770 lua_settop(L, oldtop);
771 return this->QBoxLayout::minimumHeightForWidth(arg1);
773 int ret = lua_tointeger(L, -1);
774 lua_settop(L, oldtop);
775 return ret;
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");
783 lua_remove(L, -2);
784 } else {
785 lua_pushnil(L);
787 lua_insert(L, -2);
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);
791 lua_pop(L, 1);
793 if (!absorbed) {
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);
799 return ret;
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");
807 lua_remove(L, -2);
808 } else {
809 lua_pushnil(L);
811 lua_insert(L, -2);
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);
815 lua_pop(L, 1);
817 if (!absorbed) {
818 lua_settop(L, oldtop);
819 return this->QBoxLayout::hasHeightForWidth();
821 bool ret = (bool)lua_toboolean(L, -1);
822 lua_settop(L, oldtop);
823 return ret;
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");
831 lua_remove(L, -2);
832 } else {
833 lua_pushnil(L);
835 lua_insert(L, -2);
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);
840 lua_pop(L, 1);
842 if (!absorbed) {
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");
854 lua_remove(L, -2);
855 } else {
856 lua_pushnil(L);
858 lua_insert(L, -2);
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);
864 lua_pop(L, 1);
866 if (!absorbed) {
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);
872 return ret;
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");
880 lua_remove(L, -2);
881 } else {
882 lua_pushnil(L);
884 lua_insert(L, -2);
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);
888 lua_pop(L, 1);
890 if (!absorbed) {
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);
896 return ret;
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");
904 lua_remove(L, -2);
905 } else {
906 lua_pushnil(L);
908 lua_insert(L, -2);
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);
912 lua_pop(L, 1);
914 if (!absorbed) {
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);
920 return ret;
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");
928 lua_remove(L, -2);
929 } else {
930 lua_pushnil(L);
932 lua_insert(L, -2);
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);
937 lua_pop(L, 1);
939 if (!absorbed) {
940 lua_settop(L, oldtop);
941 return this->QLayout::indexOf(arg1);
943 int ret = lua_tointeger(L, -1);
944 lua_settop(L, oldtop);
945 return ret;
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");
953 lua_remove(L, -2);
954 } else {
955 lua_pushnil(L);
957 lua_insert(L, -2);
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);
961 lua_pop(L, 1);
963 if (!absorbed) {
964 lua_settop(L, oldtop);
965 return this->QLayout::isEmpty();
967 bool ret = (bool)lua_toboolean(L, -1);
968 lua_settop(L, oldtop);
969 return ret;
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");
977 lua_remove(L, -2);
978 } else {
979 lua_pushnil(L);
981 lua_insert(L, -2);
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);
986 lua_pop(L, 1);
988 if (!absorbed) {
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");
1000 lua_remove(L, -2);
1001 } else {
1002 lua_pushnil(L);
1004 lua_insert(L, -2);
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);
1009 lua_pop(L, 1);
1011 if (!absorbed) {
1012 lua_settop(L, oldtop);
1013 return this->QObject::event(arg1);
1015 bool ret = (bool)lua_toboolean(L, -1);
1016 lua_settop(L, oldtop);
1017 return ret;
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");
1025 lua_remove(L, -2);
1026 } else {
1027 lua_pushnil(L);
1029 lua_insert(L, -2);
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);
1033 lua_pop(L, 1);
1035 if (!absorbed) {
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);
1041 return ret;
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");
1049 lua_remove(L, -2);
1050 } else {
1051 lua_pushnil(L);
1053 lua_insert(L, -2);
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);
1057 lua_pop(L, 1);
1059 if (!absorbed) {
1060 lua_settop(L, oldtop);
1061 return this->QBoxLayout::count();
1063 int ret = lua_tointeger(L, -1);
1064 lua_settop(L, oldtop);
1065 return ret;
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");
1073 lua_remove(L, -2);
1074 } else {
1075 lua_pushnil(L);
1077 lua_insert(L, -2);
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);
1081 lua_pop(L, 1);
1083 if (!absorbed) {
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);
1089 return ret;
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");
1097 lua_remove(L, -2);
1098 } else {
1099 lua_pushnil(L);
1101 lua_insert(L, -2);
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);
1105 lua_pop(L, 1);
1107 if (!absorbed) {
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);
1113 return ret;
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");
1121 lua_remove(L, -2);
1122 } else {
1123 lua_pushnil(L);
1125 lua_insert(L, -2);
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);
1130 lua_pop(L, 1);
1132 if (!absorbed) {
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");
1144 lua_remove(L, -2);
1145 } else {
1146 lua_pushnil(L);
1148 lua_insert(L, -2);
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);
1152 lua_pop(L, 1);
1154 if (!absorbed) {
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);
1160 return ret;
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");
1168 lua_remove(L, -2);
1169 } else {
1170 lua_pushnil(L);
1172 lua_insert(L, -2);
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);
1177 lua_pop(L, 1);
1179 if (!absorbed) {
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)) {
1191 lua_insert(L, -2);
1192 lua_pcall(L, 1, 1, 0);
1193 } else {
1195 lua_settop(L, oldtop);
1197 int LuaBinder< QBoxLayout >::lqt_pushenum_Direction (lua_State *L) {
1198 int enum_table = 0;
1199 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1200 if (!lua_istable(L, -1)) {
1201 lua_pop(L, 1);
1202 lua_newtable(L);
1203 lua_pushvalue(L, -1);
1204 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1206 lua_newtable(L);
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");
1236 lua_remove(L, -2);
1237 return 1;
1239 int LuaBinder< QBoxLayout >::lqt_pushenum_Direction_QFLAGS_CREATOR (lua_State *L) {
1240 int argn = lua_gettop(L);
1241 int i = 0;
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]) );
1244 *(void**)p = fl;
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);
1253 return 1;
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");
1323 lua_newtable(L);
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");
1340 } else {
1341 lua_pop(L, 1);
1343 return 0;