updated binding sources to the last version
[Leditor.git] / src / lqt_bind_QFrame.cpp
blobbaafcef5e4fb532a44e6b13d07151862f07bdbb5
1 #include "lqt_bind_QFrame.hpp"
3 int LuaBinder< QFrame >::__LuaWrapCall__lineWidth (lua_State *L) {
4 QFrame *& __lua__obj = *static_cast<QFrame**>(lqtL_checkudata(L, 1, "QFrame*"));
5 if (__lua__obj==0) {
6 lua_pushstring(L, "trying to reference deleted pointer");
7 lua_error(L);
8 return 0;
10 int ret = __lua__obj->QFrame::lineWidth();
11 lua_pushinteger(L, ret);
12 return 1;
14 int LuaBinder< QFrame >::__LuaWrapCall__setLineWidth (lua_State *L) {
15 QFrame *& __lua__obj = *static_cast<QFrame**>(lqtL_checkudata(L, 1, "QFrame*"));
16 if (__lua__obj==0) {
17 lua_pushstring(L, "trying to reference deleted pointer");
18 lua_error(L);
19 return 0;
21 int arg1 = lua_tointeger(L, 2);
22 __lua__obj->QFrame::setLineWidth(arg1);
23 return 0;
25 int LuaBinder< QFrame >::__LuaWrapCall__sizeHint (lua_State *L) {
26 QFrame *& __lua__obj = *static_cast<QFrame**>(lqtL_checkudata(L, 1, "QFrame*"));
27 if (__lua__obj==0) {
28 lua_pushstring(L, "trying to reference deleted pointer");
29 lua_error(L);
30 return 0;
32 QSize ret = __lua__obj->QFrame::sizeHint();
33 lqtL_passudata(L, new QSize(ret), "QSize*");
34 return 1;
36 int LuaBinder< QFrame >::__LuaWrapCall__setFrameStyle (lua_State *L) {
37 QFrame *& __lua__obj = *static_cast<QFrame**>(lqtL_checkudata(L, 1, "QFrame*"));
38 if (__lua__obj==0) {
39 lua_pushstring(L, "trying to reference deleted pointer");
40 lua_error(L);
41 return 0;
43 int arg1 = lua_tointeger(L, 2);
44 __lua__obj->QFrame::setFrameStyle(arg1);
45 return 0;
47 int LuaBinder< QFrame >::__LuaWrapCall__setMidLineWidth (lua_State *L) {
48 QFrame *& __lua__obj = *static_cast<QFrame**>(lqtL_checkudata(L, 1, "QFrame*"));
49 if (__lua__obj==0) {
50 lua_pushstring(L, "trying to reference deleted pointer");
51 lua_error(L);
52 return 0;
54 int arg1 = lua_tointeger(L, 2);
55 __lua__obj->QFrame::setMidLineWidth(arg1);
56 return 0;
58 int LuaBinder< QFrame >::__LuaWrapCall__frameStyle (lua_State *L) {
59 QFrame *& __lua__obj = *static_cast<QFrame**>(lqtL_checkudata(L, 1, "QFrame*"));
60 if (__lua__obj==0) {
61 lua_pushstring(L, "trying to reference deleted pointer");
62 lua_error(L);
63 return 0;
65 int ret = __lua__obj->QFrame::frameStyle();
66 lua_pushinteger(L, ret);
67 return 1;
69 int LuaBinder< QFrame >::__LuaWrapCall__metaObject (lua_State *L) {
70 QFrame *& __lua__obj = *static_cast<QFrame**>(lqtL_checkudata(L, 1, "QFrame*"));
71 if (__lua__obj==0) {
72 lua_pushstring(L, "trying to reference deleted pointer");
73 lua_error(L);
74 return 0;
76 const QMetaObject * ret = __lua__obj->QFrame::metaObject();
77 lqtL_pushudata(L, ret, "QMetaObject*");
78 return 1;
80 int LuaBinder< QFrame >::__LuaWrapCall__new (lua_State *L) {
81 QWidget * arg1 = lqtL_testudata(L, 1, "QWidget*")?*static_cast<QWidget**>(lqtL_checkudata(L, 1, "QWidget*")):static_cast< QWidget * >(0);
82 QFlags<Qt::WindowType> arg2 = lqtL_testudata(L, 2, "QFlags<Qt::WindowType>*")?**static_cast<QFlags<Qt::WindowType>**>(lqtL_checkudata(L, 2, "QFlags<Qt::WindowType>*")):static_cast< QFlags<Qt::WindowType> >(0);
83 QFrame * ret = new LuaBinder< QFrame >(L, arg1, arg2);
84 lqtL_passudata(L, ret, "QFrame*");
85 return 1;
87 int LuaBinder< QFrame >::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State *L) {
88 const char * arg1 = lua_tostring(L, 1);
89 const char * arg2 = (lua_type(L, 2)==LUA_TSTRING)?lua_tostring(L, 2):static_cast< const char * >(0);
90 QString ret = QFrame::tr(arg1, arg2);
91 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
92 return 1;
94 int LuaBinder< QFrame >::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State *L) {
95 const char * arg1 = lua_tostring(L, 1);
96 const char * arg2 = lua_tostring(L, 2);
97 int arg3 = lua_tointeger(L, 3);
98 QString ret = QFrame::tr(arg1, arg2, arg3);
99 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
100 return 1;
102 int LuaBinder< QFrame >::__LuaWrapCall__tr (lua_State *L) {
103 int score[3];
104 const int premium = 11+lua_gettop(L);
105 score[1] = 0;
106 if ((lua_type(L, 1)==LUA_TSTRING)) {
107 score[1] += premium;
108 } else if (false) {
109 score[1] += premium-1; // table: 0x1089de0;
110 } else {
111 score[1] -= premium*premium;
113 if ((lua_type(L, 2)==LUA_TSTRING)) {
114 score[1] += premium;
115 } else if (true) {
116 score[1] += premium-1; // table: 0x1089b50;
117 } else {
118 score[1] -= premium*premium;
120 score[2] = 0;
121 if ((lua_type(L, 1)==LUA_TSTRING)) {
122 score[2] += premium;
123 } else if (false) {
124 score[2] += premium-1; // table: 0x108b7e0;
125 } else {
126 score[2] -= premium*premium;
128 if ((lua_type(L, 2)==LUA_TSTRING)) {
129 score[2] += premium;
130 } else if (false) {
131 score[2] += premium-1; // table: 0x108bce0;
132 } else {
133 score[2] -= premium*premium;
135 if (lua_isnumber(L, 3)) {
136 score[2] += premium;
137 } else if (false) {
138 score[2] += premium-1; // table: 0x108c090;
139 } else {
140 score[2] -= premium*premium;
142 int best = 1;
143 for (int i=1;i<=2;i++) {
144 if (score[best] < score[i]) { best = i; }
146 switch (best) {
147 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L); break;
148 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L); break;
150 lua_pushstring(L, "no overload of function __LuaWrapCall__tr matching arguments");
151 lua_error(L);
152 return 0;
154 int LuaBinder< QFrame >::__LuaWrapCall__delete (lua_State *L) {
155 QFrame *& __lua__obj = *static_cast<QFrame**>(lqtL_checkudata(L, 1, "QFrame*"));
156 if (__lua__obj==0) {
157 lua_pushstring(L, "trying to reference deleted pointer");
158 lua_error(L);
159 return 0;
161 delete __lua__obj;
162 __lua__obj = 0;
163 return 0;
165 int LuaBinder< QFrame >::__LuaWrapCall__frameShadow (lua_State *L) {
166 QFrame *& __lua__obj = *static_cast<QFrame**>(lqtL_checkudata(L, 1, "QFrame*"));
167 if (__lua__obj==0) {
168 lua_pushstring(L, "trying to reference deleted pointer");
169 lua_error(L);
170 return 0;
172 QFrame::Shadow ret = __lua__obj->QFrame::frameShadow();
173 lqtL_pushenum(L, ret, "QFrame::Shadow");
174 return 1;
176 int LuaBinder< QFrame >::__LuaWrapCall__frameShape (lua_State *L) {
177 QFrame *& __lua__obj = *static_cast<QFrame**>(lqtL_checkudata(L, 1, "QFrame*"));
178 if (__lua__obj==0) {
179 lua_pushstring(L, "trying to reference deleted pointer");
180 lua_error(L);
181 return 0;
183 QFrame::Shape ret = __lua__obj->QFrame::frameShape();
184 lqtL_pushenum(L, ret, "QFrame::Shape");
185 return 1;
187 int LuaBinder< QFrame >::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State *L) {
188 const char * arg1 = lua_tostring(L, 1);
189 const char * arg2 = (lua_type(L, 2)==LUA_TSTRING)?lua_tostring(L, 2):static_cast< const char * >(0);
190 QString ret = QFrame::trUtf8(arg1, arg2);
191 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
192 return 1;
194 int LuaBinder< QFrame >::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State *L) {
195 const char * arg1 = lua_tostring(L, 1);
196 const char * arg2 = lua_tostring(L, 2);
197 int arg3 = lua_tointeger(L, 3);
198 QString ret = QFrame::trUtf8(arg1, arg2, arg3);
199 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
200 return 1;
202 int LuaBinder< QFrame >::__LuaWrapCall__trUtf8 (lua_State *L) {
203 int score[3];
204 const int premium = 11+lua_gettop(L);
205 score[1] = 0;
206 if ((lua_type(L, 1)==LUA_TSTRING)) {
207 score[1] += premium;
208 } else if (false) {
209 score[1] += premium-1; // table: 0x108ab20;
210 } else {
211 score[1] -= premium*premium;
213 if ((lua_type(L, 2)==LUA_TSTRING)) {
214 score[1] += premium;
215 } else if (true) {
216 score[1] += premium-1; // table: 0x108a680;
217 } else {
218 score[1] -= premium*premium;
220 score[2] = 0;
221 if ((lua_type(L, 1)==LUA_TSTRING)) {
222 score[2] += premium;
223 } else if (false) {
224 score[2] += premium-1; // table: 0x108c900;
225 } else {
226 score[2] -= premium*premium;
228 if ((lua_type(L, 2)==LUA_TSTRING)) {
229 score[2] += premium;
230 } else if (false) {
231 score[2] += premium-1; // table: 0x108c030;
232 } else {
233 score[2] -= premium*premium;
235 if (lua_isnumber(L, 3)) {
236 score[2] += premium;
237 } else if (false) {
238 score[2] += premium-1; // table: 0x108cd90;
239 } else {
240 score[2] -= premium*premium;
242 int best = 1;
243 for (int i=1;i<=2;i++) {
244 if (score[best] < score[i]) { best = i; }
246 switch (best) {
247 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L); break;
248 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L); break;
250 lua_pushstring(L, "no overload of function __LuaWrapCall__trUtf8 matching arguments");
251 lua_error(L);
252 return 0;
254 int LuaBinder< QFrame >::__LuaWrapCall__setFrameShadow (lua_State *L) {
255 QFrame *& __lua__obj = *static_cast<QFrame**>(lqtL_checkudata(L, 1, "QFrame*"));
256 if (__lua__obj==0) {
257 lua_pushstring(L, "trying to reference deleted pointer");
258 lua_error(L);
259 return 0;
261 QFrame::Shadow arg1 = static_cast<QFrame::Shadow>(lqtL_toenum(L, 2, "QFrame::Shadow"));
262 __lua__obj->QFrame::setFrameShadow(arg1);
263 return 0;
265 int LuaBinder< QFrame >::__LuaWrapCall__frameWidth (lua_State *L) {
266 QFrame *& __lua__obj = *static_cast<QFrame**>(lqtL_checkudata(L, 1, "QFrame*"));
267 if (__lua__obj==0) {
268 lua_pushstring(L, "trying to reference deleted pointer");
269 lua_error(L);
270 return 0;
272 int ret = __lua__obj->QFrame::frameWidth();
273 lua_pushinteger(L, ret);
274 return 1;
276 int LuaBinder< QFrame >::__LuaWrapCall__midLineWidth (lua_State *L) {
277 QFrame *& __lua__obj = *static_cast<QFrame**>(lqtL_checkudata(L, 1, "QFrame*"));
278 if (__lua__obj==0) {
279 lua_pushstring(L, "trying to reference deleted pointer");
280 lua_error(L);
281 return 0;
283 int ret = __lua__obj->QFrame::midLineWidth();
284 lua_pushinteger(L, ret);
285 return 1;
287 int LuaBinder< QFrame >::__LuaWrapCall__setFrameShape (lua_State *L) {
288 QFrame *& __lua__obj = *static_cast<QFrame**>(lqtL_checkudata(L, 1, "QFrame*"));
289 if (__lua__obj==0) {
290 lua_pushstring(L, "trying to reference deleted pointer");
291 lua_error(L);
292 return 0;
294 QFrame::Shape arg1 = static_cast<QFrame::Shape>(lqtL_toenum(L, 2, "QFrame::Shape"));
295 __lua__obj->QFrame::setFrameShape(arg1);
296 return 0;
298 int LuaBinder< QFrame >::__LuaWrapCall__frameRect (lua_State *L) {
299 QFrame *& __lua__obj = *static_cast<QFrame**>(lqtL_checkudata(L, 1, "QFrame*"));
300 if (__lua__obj==0) {
301 lua_pushstring(L, "trying to reference deleted pointer");
302 lua_error(L);
303 return 0;
305 QRect ret = __lua__obj->QFrame::frameRect();
306 lqtL_passudata(L, new QRect(ret), "QRect*");
307 return 1;
309 int LuaBinder< QFrame >::__LuaWrapCall__setFrameRect (lua_State *L) {
310 QFrame *& __lua__obj = *static_cast<QFrame**>(lqtL_checkudata(L, 1, "QFrame*"));
311 if (__lua__obj==0) {
312 lua_pushstring(L, "trying to reference deleted pointer");
313 lua_error(L);
314 return 0;
316 const QRect& arg1 = **static_cast<QRect**>(lqtL_checkudata(L, 2, "QRect*"));
317 __lua__obj->QFrame::setFrameRect(arg1);
318 return 0;
320 void LuaBinder< QFrame >::styleChange (QStyle& arg1) {
321 bool absorbed = false;
322 int oldtop = lua_gettop(L);
323 lqtL_pushudata(L, this, "QFrame*");
324 if (lua_getmetatable(L, -1)) {
325 lua_getfield(L, -1, "styleChange");
326 lua_remove(L, -2);
327 } else {
328 lua_pushnil(L);
330 lua_insert(L, -2);
331 lqtL_pushudata(L, &(arg1), "QStyle*");
332 if (lua_isfunction(L, -1-2)) {
333 lua_pcall(L, 1+1, 2, 0);
334 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
335 lua_pop(L, 1);
337 if (!absorbed) {
338 lua_settop(L, oldtop);
339 this->QWidget::styleChange(arg1);
341 lua_settop(L, oldtop);
343 void LuaBinder< QFrame >::focusInEvent (QFocusEvent * arg1) {
344 bool absorbed = false;
345 int oldtop = lua_gettop(L);
346 lqtL_pushudata(L, this, "QFrame*");
347 if (lua_getmetatable(L, -1)) {
348 lua_getfield(L, -1, "focusInEvent");
349 lua_remove(L, -2);
350 } else {
351 lua_pushnil(L);
353 lua_insert(L, -2);
354 lqtL_pushudata(L, arg1, "QFocusEvent*");
355 if (lua_isfunction(L, -1-2)) {
356 lua_pcall(L, 1+1, 2, 0);
357 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
358 lua_pop(L, 1);
360 if (!absorbed) {
361 lua_settop(L, oldtop);
362 this->QWidget::focusInEvent(arg1);
364 lua_settop(L, oldtop);
366 void LuaBinder< QFrame >::keyPressEvent (QKeyEvent * arg1) {
367 bool absorbed = false;
368 int oldtop = lua_gettop(L);
369 lqtL_pushudata(L, this, "QFrame*");
370 if (lua_getmetatable(L, -1)) {
371 lua_getfield(L, -1, "keyPressEvent");
372 lua_remove(L, -2);
373 } else {
374 lua_pushnil(L);
376 lua_insert(L, -2);
377 lqtL_pushudata(L, arg1, "QKeyEvent*");
378 if (lua_isfunction(L, -1-2)) {
379 lua_pcall(L, 1+1, 2, 0);
380 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
381 lua_pop(L, 1);
383 if (!absorbed) {
384 lua_settop(L, oldtop);
385 this->QWidget::keyPressEvent(arg1);
387 lua_settop(L, oldtop);
389 const QMetaObject * LuaBinder< QFrame >::metaObject () const {
390 bool absorbed = false;
391 int oldtop = lua_gettop(L);
392 lqtL_pushudata(L, this, "QFrame*");
393 if (lua_getmetatable(L, -1)) {
394 lua_getfield(L, -1, "metaObject");
395 lua_remove(L, -2);
396 } else {
397 lua_pushnil(L);
399 lua_insert(L, -2);
400 if (lua_isfunction(L, -0-2)) {
401 lua_pcall(L, 0+1, 2, 0);
402 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
403 lua_pop(L, 1);
405 if (!absorbed) {
406 lua_settop(L, oldtop);
407 return this->QFrame::metaObject();
409 const QMetaObject * ret = *static_cast<QMetaObject**>(lqtL_checkudata(L, -1, "QMetaObject*"));
410 lua_settop(L, oldtop);
411 return ret;
413 int LuaBinder< QFrame >::devType () const {
414 bool absorbed = false;
415 int oldtop = lua_gettop(L);
416 lqtL_pushudata(L, this, "QFrame*");
417 if (lua_getmetatable(L, -1)) {
418 lua_getfield(L, -1, "devType");
419 lua_remove(L, -2);
420 } else {
421 lua_pushnil(L);
423 lua_insert(L, -2);
424 if (lua_isfunction(L, -0-2)) {
425 lua_pcall(L, 0+1, 2, 0);
426 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
427 lua_pop(L, 1);
429 if (!absorbed) {
430 lua_settop(L, oldtop);
431 return this->QWidget::devType();
433 int ret = lua_tointeger(L, -1);
434 lua_settop(L, oldtop);
435 return ret;
437 void LuaBinder< QFrame >::setVisible (bool arg1) {
438 bool absorbed = false;
439 int oldtop = lua_gettop(L);
440 lqtL_pushudata(L, this, "QFrame*");
441 if (lua_getmetatable(L, -1)) {
442 lua_getfield(L, -1, "setVisible");
443 lua_remove(L, -2);
444 } else {
445 lua_pushnil(L);
447 lua_insert(L, -2);
448 lua_pushboolean(L, arg1);
449 if (lua_isfunction(L, -1-2)) {
450 lua_pcall(L, 1+1, 2, 0);
451 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
452 lua_pop(L, 1);
454 if (!absorbed) {
455 lua_settop(L, oldtop);
456 this->QWidget::setVisible(arg1);
458 lua_settop(L, oldtop);
460 QVariant LuaBinder< QFrame >::inputMethodQuery (Qt::InputMethodQuery arg1) const {
461 bool absorbed = false;
462 int oldtop = lua_gettop(L);
463 lqtL_pushudata(L, this, "QFrame*");
464 if (lua_getmetatable(L, -1)) {
465 lua_getfield(L, -1, "inputMethodQuery");
466 lua_remove(L, -2);
467 } else {
468 lua_pushnil(L);
470 lua_insert(L, -2);
471 lqtL_pushenum(L, arg1, "Qt::InputMethodQuery");
472 if (lua_isfunction(L, -1-2)) {
473 lua_pcall(L, 1+1, 2, 0);
474 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
475 lua_pop(L, 1);
477 if (!absorbed) {
478 lua_settop(L, oldtop);
479 return this->QWidget::inputMethodQuery(arg1);
481 QVariant ret = **static_cast<QVariant**>(lqtL_checkudata(L, -1, "QVariant*"));
482 lua_settop(L, oldtop);
483 return ret;
485 QPaintEngine * LuaBinder< QFrame >::paintEngine () const {
486 bool absorbed = false;
487 int oldtop = lua_gettop(L);
488 lqtL_pushudata(L, this, "QFrame*");
489 if (lua_getmetatable(L, -1)) {
490 lua_getfield(L, -1, "paintEngine");
491 lua_remove(L, -2);
492 } else {
493 lua_pushnil(L);
495 lua_insert(L, -2);
496 if (lua_isfunction(L, -0-2)) {
497 lua_pcall(L, 0+1, 2, 0);
498 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
499 lua_pop(L, 1);
501 if (!absorbed) {
502 lua_settop(L, oldtop);
503 return this->QWidget::paintEngine();
505 QPaintEngine * ret = *static_cast<QPaintEngine**>(lqtL_checkudata(L, -1, "QPaintEngine*"));
506 lua_settop(L, oldtop);
507 return ret;
509 void LuaBinder< QFrame >::dragLeaveEvent (QDragLeaveEvent * arg1) {
510 bool absorbed = false;
511 int oldtop = lua_gettop(L);
512 lqtL_pushudata(L, this, "QFrame*");
513 if (lua_getmetatable(L, -1)) {
514 lua_getfield(L, -1, "dragLeaveEvent");
515 lua_remove(L, -2);
516 } else {
517 lua_pushnil(L);
519 lua_insert(L, -2);
520 lqtL_pushudata(L, arg1, "QDragLeaveEvent*");
521 if (lua_isfunction(L, -1-2)) {
522 lua_pcall(L, 1+1, 2, 0);
523 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
524 lua_pop(L, 1);
526 if (!absorbed) {
527 lua_settop(L, oldtop);
528 this->QWidget::dragLeaveEvent(arg1);
530 lua_settop(L, oldtop);
532 void LuaBinder< QFrame >::mousePressEvent (QMouseEvent * arg1) {
533 bool absorbed = false;
534 int oldtop = lua_gettop(L);
535 lqtL_pushudata(L, this, "QFrame*");
536 if (lua_getmetatable(L, -1)) {
537 lua_getfield(L, -1, "mousePressEvent");
538 lua_remove(L, -2);
539 } else {
540 lua_pushnil(L);
542 lua_insert(L, -2);
543 lqtL_pushudata(L, arg1, "QMouseEvent*");
544 if (lua_isfunction(L, -1-2)) {
545 lua_pcall(L, 1+1, 2, 0);
546 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
547 lua_pop(L, 1);
549 if (!absorbed) {
550 lua_settop(L, oldtop);
551 this->QWidget::mousePressEvent(arg1);
553 lua_settop(L, oldtop);
555 QSize LuaBinder< QFrame >::sizeHint () const {
556 bool absorbed = false;
557 int oldtop = lua_gettop(L);
558 lqtL_pushudata(L, this, "QFrame*");
559 if (lua_getmetatable(L, -1)) {
560 lua_getfield(L, -1, "sizeHint");
561 lua_remove(L, -2);
562 } else {
563 lua_pushnil(L);
565 lua_insert(L, -2);
566 if (lua_isfunction(L, -0-2)) {
567 lua_pcall(L, 0+1, 2, 0);
568 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
569 lua_pop(L, 1);
571 if (!absorbed) {
572 lua_settop(L, oldtop);
573 return this->QFrame::sizeHint();
575 QSize ret = **static_cast<QSize**>(lqtL_checkudata(L, -1, "QSize*"));
576 lua_settop(L, oldtop);
577 return ret;
579 void LuaBinder< QFrame >::moveEvent (QMoveEvent * arg1) {
580 bool absorbed = false;
581 int oldtop = lua_gettop(L);
582 lqtL_pushudata(L, this, "QFrame*");
583 if (lua_getmetatable(L, -1)) {
584 lua_getfield(L, -1, "moveEvent");
585 lua_remove(L, -2);
586 } else {
587 lua_pushnil(L);
589 lua_insert(L, -2);
590 lqtL_pushudata(L, arg1, "QMoveEvent*");
591 if (lua_isfunction(L, -1-2)) {
592 lua_pcall(L, 1+1, 2, 0);
593 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
594 lua_pop(L, 1);
596 if (!absorbed) {
597 lua_settop(L, oldtop);
598 this->QWidget::moveEvent(arg1);
600 lua_settop(L, oldtop);
602 void LuaBinder< QFrame >::tabletEvent (QTabletEvent * arg1) {
603 bool absorbed = false;
604 int oldtop = lua_gettop(L);
605 lqtL_pushudata(L, this, "QFrame*");
606 if (lua_getmetatable(L, -1)) {
607 lua_getfield(L, -1, "tabletEvent");
608 lua_remove(L, -2);
609 } else {
610 lua_pushnil(L);
612 lua_insert(L, -2);
613 lqtL_pushudata(L, arg1, "QTabletEvent*");
614 if (lua_isfunction(L, -1-2)) {
615 lua_pcall(L, 1+1, 2, 0);
616 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
617 lua_pop(L, 1);
619 if (!absorbed) {
620 lua_settop(L, oldtop);
621 this->QWidget::tabletEvent(arg1);
623 lua_settop(L, oldtop);
625 void LuaBinder< QFrame >::enterEvent (QEvent * arg1) {
626 bool absorbed = false;
627 int oldtop = lua_gettop(L);
628 lqtL_pushudata(L, this, "QFrame*");
629 if (lua_getmetatable(L, -1)) {
630 lua_getfield(L, -1, "enterEvent");
631 lua_remove(L, -2);
632 } else {
633 lua_pushnil(L);
635 lua_insert(L, -2);
636 lqtL_pushudata(L, arg1, "QEvent*");
637 if (lua_isfunction(L, -1-2)) {
638 lua_pcall(L, 1+1, 2, 0);
639 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
640 lua_pop(L, 1);
642 if (!absorbed) {
643 lua_settop(L, oldtop);
644 this->QWidget::enterEvent(arg1);
646 lua_settop(L, oldtop);
648 void LuaBinder< QFrame >::closeEvent (QCloseEvent * arg1) {
649 bool absorbed = false;
650 int oldtop = lua_gettop(L);
651 lqtL_pushudata(L, this, "QFrame*");
652 if (lua_getmetatable(L, -1)) {
653 lua_getfield(L, -1, "closeEvent");
654 lua_remove(L, -2);
655 } else {
656 lua_pushnil(L);
658 lua_insert(L, -2);
659 lqtL_pushudata(L, arg1, "QCloseEvent*");
660 if (lua_isfunction(L, -1-2)) {
661 lua_pcall(L, 1+1, 2, 0);
662 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
663 lua_pop(L, 1);
665 if (!absorbed) {
666 lua_settop(L, oldtop);
667 this->QWidget::closeEvent(arg1);
669 lua_settop(L, oldtop);
671 QSize LuaBinder< QFrame >::minimumSizeHint () const {
672 bool absorbed = false;
673 int oldtop = lua_gettop(L);
674 lqtL_pushudata(L, this, "QFrame*");
675 if (lua_getmetatable(L, -1)) {
676 lua_getfield(L, -1, "minimumSizeHint");
677 lua_remove(L, -2);
678 } else {
679 lua_pushnil(L);
681 lua_insert(L, -2);
682 if (lua_isfunction(L, -0-2)) {
683 lua_pcall(L, 0+1, 2, 0);
684 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
685 lua_pop(L, 1);
687 if (!absorbed) {
688 lua_settop(L, oldtop);
689 return this->QWidget::minimumSizeHint();
691 QSize ret = **static_cast<QSize**>(lqtL_checkudata(L, -1, "QSize*"));
692 lua_settop(L, oldtop);
693 return ret;
695 void LuaBinder< QFrame >::dropEvent (QDropEvent * arg1) {
696 bool absorbed = false;
697 int oldtop = lua_gettop(L);
698 lqtL_pushudata(L, this, "QFrame*");
699 if (lua_getmetatable(L, -1)) {
700 lua_getfield(L, -1, "dropEvent");
701 lua_remove(L, -2);
702 } else {
703 lua_pushnil(L);
705 lua_insert(L, -2);
706 lqtL_pushudata(L, arg1, "QDropEvent*");
707 if (lua_isfunction(L, -1-2)) {
708 lua_pcall(L, 1+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 this->QWidget::dropEvent(arg1);
716 lua_settop(L, oldtop);
718 void LuaBinder< QFrame >::actionEvent (QActionEvent * arg1) {
719 bool absorbed = false;
720 int oldtop = lua_gettop(L);
721 lqtL_pushudata(L, this, "QFrame*");
722 if (lua_getmetatable(L, -1)) {
723 lua_getfield(L, -1, "actionEvent");
724 lua_remove(L, -2);
725 } else {
726 lua_pushnil(L);
728 lua_insert(L, -2);
729 lqtL_pushudata(L, arg1, "QActionEvent*");
730 if (lua_isfunction(L, -1-2)) {
731 lua_pcall(L, 1+1, 2, 0);
732 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
733 lua_pop(L, 1);
735 if (!absorbed) {
736 lua_settop(L, oldtop);
737 this->QWidget::actionEvent(arg1);
739 lua_settop(L, oldtop);
741 void LuaBinder< QFrame >::showEvent (QShowEvent * arg1) {
742 bool absorbed = false;
743 int oldtop = lua_gettop(L);
744 lqtL_pushudata(L, this, "QFrame*");
745 if (lua_getmetatable(L, -1)) {
746 lua_getfield(L, -1, "showEvent");
747 lua_remove(L, -2);
748 } else {
749 lua_pushnil(L);
751 lua_insert(L, -2);
752 lqtL_pushudata(L, arg1, "QShowEvent*");
753 if (lua_isfunction(L, -1-2)) {
754 lua_pcall(L, 1+1, 2, 0);
755 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
756 lua_pop(L, 1);
758 if (!absorbed) {
759 lua_settop(L, oldtop);
760 this->QWidget::showEvent(arg1);
762 lua_settop(L, oldtop);
764 void LuaBinder< QFrame >::dragEnterEvent (QDragEnterEvent * arg1) {
765 bool absorbed = false;
766 int oldtop = lua_gettop(L);
767 lqtL_pushudata(L, this, "QFrame*");
768 if (lua_getmetatable(L, -1)) {
769 lua_getfield(L, -1, "dragEnterEvent");
770 lua_remove(L, -2);
771 } else {
772 lua_pushnil(L);
774 lua_insert(L, -2);
775 lqtL_pushudata(L, arg1, "QDragEnterEvent*");
776 if (lua_isfunction(L, -1-2)) {
777 lua_pcall(L, 1+1, 2, 0);
778 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
779 lua_pop(L, 1);
781 if (!absorbed) {
782 lua_settop(L, oldtop);
783 this->QWidget::dragEnterEvent(arg1);
785 lua_settop(L, oldtop);
787 void LuaBinder< QFrame >::paintEvent (QPaintEvent * arg1) {
788 bool absorbed = false;
789 int oldtop = lua_gettop(L);
790 lqtL_pushudata(L, this, "QFrame*");
791 if (lua_getmetatable(L, -1)) {
792 lua_getfield(L, -1, "paintEvent");
793 lua_remove(L, -2);
794 } else {
795 lua_pushnil(L);
797 lua_insert(L, -2);
798 lqtL_pushudata(L, arg1, "QPaintEvent*");
799 if (lua_isfunction(L, -1-2)) {
800 lua_pcall(L, 1+1, 2, 0);
801 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
802 lua_pop(L, 1);
804 if (!absorbed) {
805 lua_settop(L, oldtop);
806 this->QFrame::paintEvent(arg1);
808 lua_settop(L, oldtop);
810 void LuaBinder< QFrame >::dragMoveEvent (QDragMoveEvent * arg1) {
811 bool absorbed = false;
812 int oldtop = lua_gettop(L);
813 lqtL_pushudata(L, this, "QFrame*");
814 if (lua_getmetatable(L, -1)) {
815 lua_getfield(L, -1, "dragMoveEvent");
816 lua_remove(L, -2);
817 } else {
818 lua_pushnil(L);
820 lua_insert(L, -2);
821 lqtL_pushudata(L, arg1, "QDragMoveEvent*");
822 if (lua_isfunction(L, -1-2)) {
823 lua_pcall(L, 1+1, 2, 0);
824 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
825 lua_pop(L, 1);
827 if (!absorbed) {
828 lua_settop(L, oldtop);
829 this->QWidget::dragMoveEvent(arg1);
831 lua_settop(L, oldtop);
833 void LuaBinder< QFrame >::mouseDoubleClickEvent (QMouseEvent * arg1) {
834 bool absorbed = false;
835 int oldtop = lua_gettop(L);
836 lqtL_pushudata(L, this, "QFrame*");
837 if (lua_getmetatable(L, -1)) {
838 lua_getfield(L, -1, "mouseDoubleClickEvent");
839 lua_remove(L, -2);
840 } else {
841 lua_pushnil(L);
843 lua_insert(L, -2);
844 lqtL_pushudata(L, arg1, "QMouseEvent*");
845 if (lua_isfunction(L, -1-2)) {
846 lua_pcall(L, 1+1, 2, 0);
847 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
848 lua_pop(L, 1);
850 if (!absorbed) {
851 lua_settop(L, oldtop);
852 this->QWidget::mouseDoubleClickEvent(arg1);
854 lua_settop(L, oldtop);
856 void LuaBinder< QFrame >::enabledChange (bool arg1) {
857 bool absorbed = false;
858 int oldtop = lua_gettop(L);
859 lqtL_pushudata(L, this, "QFrame*");
860 if (lua_getmetatable(L, -1)) {
861 lua_getfield(L, -1, "enabledChange");
862 lua_remove(L, -2);
863 } else {
864 lua_pushnil(L);
866 lua_insert(L, -2);
867 lua_pushboolean(L, arg1);
868 if (lua_isfunction(L, -1-2)) {
869 lua_pcall(L, 1+1, 2, 0);
870 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
871 lua_pop(L, 1);
873 if (!absorbed) {
874 lua_settop(L, oldtop);
875 this->QWidget::enabledChange(arg1);
877 lua_settop(L, oldtop);
879 void LuaBinder< QFrame >::contextMenuEvent (QContextMenuEvent * arg1) {
880 bool absorbed = false;
881 int oldtop = lua_gettop(L);
882 lqtL_pushudata(L, this, "QFrame*");
883 if (lua_getmetatable(L, -1)) {
884 lua_getfield(L, -1, "contextMenuEvent");
885 lua_remove(L, -2);
886 } else {
887 lua_pushnil(L);
889 lua_insert(L, -2);
890 lqtL_pushudata(L, arg1, "QContextMenuEvent*");
891 if (lua_isfunction(L, -1-2)) {
892 lua_pcall(L, 1+1, 2, 0);
893 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
894 lua_pop(L, 1);
896 if (!absorbed) {
897 lua_settop(L, oldtop);
898 this->QWidget::contextMenuEvent(arg1);
900 lua_settop(L, oldtop);
902 int LuaBinder< QFrame >::heightForWidth (int arg1) const {
903 bool absorbed = false;
904 int oldtop = lua_gettop(L);
905 lqtL_pushudata(L, this, "QFrame*");
906 if (lua_getmetatable(L, -1)) {
907 lua_getfield(L, -1, "heightForWidth");
908 lua_remove(L, -2);
909 } else {
910 lua_pushnil(L);
912 lua_insert(L, -2);
913 lua_pushinteger(L, arg1);
914 if (lua_isfunction(L, -1-2)) {
915 lua_pcall(L, 1+1, 2, 0);
916 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
917 lua_pop(L, 1);
919 if (!absorbed) {
920 lua_settop(L, oldtop);
921 return this->QWidget::heightForWidth(arg1);
923 int ret = lua_tointeger(L, -1);
924 lua_settop(L, oldtop);
925 return ret;
927 void LuaBinder< QFrame >::fontChange (const QFont& arg1) {
928 bool absorbed = false;
929 int oldtop = lua_gettop(L);
930 lqtL_pushudata(L, this, "QFrame*");
931 if (lua_getmetatable(L, -1)) {
932 lua_getfield(L, -1, "fontChange");
933 lua_remove(L, -2);
934 } else {
935 lua_pushnil(L);
937 lua_insert(L, -2);
938 lqtL_pushudata(L, &(arg1), "QFont*");
939 if (lua_isfunction(L, -1-2)) {
940 lua_pcall(L, 1+1, 2, 0);
941 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
942 lua_pop(L, 1);
944 if (!absorbed) {
945 lua_settop(L, oldtop);
946 this->QWidget::fontChange(arg1);
948 lua_settop(L, oldtop);
950 bool LuaBinder< QFrame >::focusNextPrevChild (bool arg1) {
951 bool absorbed = false;
952 int oldtop = lua_gettop(L);
953 lqtL_pushudata(L, this, "QFrame*");
954 if (lua_getmetatable(L, -1)) {
955 lua_getfield(L, -1, "focusNextPrevChild");
956 lua_remove(L, -2);
957 } else {
958 lua_pushnil(L);
960 lua_insert(L, -2);
961 lua_pushboolean(L, arg1);
962 if (lua_isfunction(L, -1-2)) {
963 lua_pcall(L, 1+1, 2, 0);
964 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
965 lua_pop(L, 1);
967 if (!absorbed) {
968 lua_settop(L, oldtop);
969 return this->QWidget::focusNextPrevChild(arg1);
971 bool ret = (bool)lua_toboolean(L, -1);
972 lua_settop(L, oldtop);
973 return ret;
975 void LuaBinder< QFrame >::timerEvent (QTimerEvent * arg1) {
976 bool absorbed = false;
977 int oldtop = lua_gettop(L);
978 lqtL_pushudata(L, this, "QFrame*");
979 if (lua_getmetatable(L, -1)) {
980 lua_getfield(L, -1, "timerEvent");
981 lua_remove(L, -2);
982 } else {
983 lua_pushnil(L);
985 lua_insert(L, -2);
986 lqtL_pushudata(L, arg1, "QTimerEvent*");
987 if (lua_isfunction(L, -1-2)) {
988 lua_pcall(L, 1+1, 2, 0);
989 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
990 lua_pop(L, 1);
992 if (!absorbed) {
993 lua_settop(L, oldtop);
994 this->QObject::timerEvent(arg1);
996 lua_settop(L, oldtop);
998 void LuaBinder< QFrame >::mouseMoveEvent (QMouseEvent * arg1) {
999 bool absorbed = false;
1000 int oldtop = lua_gettop(L);
1001 lqtL_pushudata(L, this, "QFrame*");
1002 if (lua_getmetatable(L, -1)) {
1003 lua_getfield(L, -1, "mouseMoveEvent");
1004 lua_remove(L, -2);
1005 } else {
1006 lua_pushnil(L);
1008 lua_insert(L, -2);
1009 lqtL_pushudata(L, arg1, "QMouseEvent*");
1010 if (lua_isfunction(L, -1-2)) {
1011 lua_pcall(L, 1+1, 2, 0);
1012 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1013 lua_pop(L, 1);
1015 if (!absorbed) {
1016 lua_settop(L, oldtop);
1017 this->QWidget::mouseMoveEvent(arg1);
1019 lua_settop(L, oldtop);
1021 void LuaBinder< QFrame >::focusOutEvent (QFocusEvent * arg1) {
1022 bool absorbed = false;
1023 int oldtop = lua_gettop(L);
1024 lqtL_pushudata(L, this, "QFrame*");
1025 if (lua_getmetatable(L, -1)) {
1026 lua_getfield(L, -1, "focusOutEvent");
1027 lua_remove(L, -2);
1028 } else {
1029 lua_pushnil(L);
1031 lua_insert(L, -2);
1032 lqtL_pushudata(L, arg1, "QFocusEvent*");
1033 if (lua_isfunction(L, -1-2)) {
1034 lua_pcall(L, 1+1, 2, 0);
1035 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1036 lua_pop(L, 1);
1038 if (!absorbed) {
1039 lua_settop(L, oldtop);
1040 this->QWidget::focusOutEvent(arg1);
1042 lua_settop(L, oldtop);
1044 void LuaBinder< QFrame >::childEvent (QChildEvent * arg1) {
1045 bool absorbed = false;
1046 int oldtop = lua_gettop(L);
1047 lqtL_pushudata(L, this, "QFrame*");
1048 if (lua_getmetatable(L, -1)) {
1049 lua_getfield(L, -1, "childEvent");
1050 lua_remove(L, -2);
1051 } else {
1052 lua_pushnil(L);
1054 lua_insert(L, -2);
1055 lqtL_pushudata(L, arg1, "QChildEvent*");
1056 if (lua_isfunction(L, -1-2)) {
1057 lua_pcall(L, 1+1, 2, 0);
1058 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1059 lua_pop(L, 1);
1061 if (!absorbed) {
1062 lua_settop(L, oldtop);
1063 this->QObject::childEvent(arg1);
1065 lua_settop(L, oldtop);
1067 void LuaBinder< QFrame >::connectNotify (const char * arg1) {
1068 bool absorbed = false;
1069 int oldtop = lua_gettop(L);
1070 lqtL_pushudata(L, this, "QFrame*");
1071 if (lua_getmetatable(L, -1)) {
1072 lua_getfield(L, -1, "connectNotify");
1073 lua_remove(L, -2);
1074 } else {
1075 lua_pushnil(L);
1077 lua_insert(L, -2);
1078 lua_pushstring(L, arg1);
1079 if (lua_isfunction(L, -1-2)) {
1080 lua_pcall(L, 1+1, 2, 0);
1081 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1082 lua_pop(L, 1);
1084 if (!absorbed) {
1085 lua_settop(L, oldtop);
1086 this->QObject::connectNotify(arg1);
1088 lua_settop(L, oldtop);
1090 void LuaBinder< QFrame >::mouseReleaseEvent (QMouseEvent * arg1) {
1091 bool absorbed = false;
1092 int oldtop = lua_gettop(L);
1093 lqtL_pushudata(L, this, "QFrame*");
1094 if (lua_getmetatable(L, -1)) {
1095 lua_getfield(L, -1, "mouseReleaseEvent");
1096 lua_remove(L, -2);
1097 } else {
1098 lua_pushnil(L);
1100 lua_insert(L, -2);
1101 lqtL_pushudata(L, arg1, "QMouseEvent*");
1102 if (lua_isfunction(L, -1-2)) {
1103 lua_pcall(L, 1+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 this->QWidget::mouseReleaseEvent(arg1);
1111 lua_settop(L, oldtop);
1113 int LuaBinder< QFrame >::metric (QPaintDevice::PaintDeviceMetric arg1) const {
1114 bool absorbed = false;
1115 int oldtop = lua_gettop(L);
1116 lqtL_pushudata(L, this, "QFrame*");
1117 if (lua_getmetatable(L, -1)) {
1118 lua_getfield(L, -1, "metric");
1119 lua_remove(L, -2);
1120 } else {
1121 lua_pushnil(L);
1123 lua_insert(L, -2);
1124 lqtL_pushenum(L, arg1, "QPaintDevice::PaintDeviceMetric");
1125 if (lua_isfunction(L, -1-2)) {
1126 lua_pcall(L, 1+1, 2, 0);
1127 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1128 lua_pop(L, 1);
1130 if (!absorbed) {
1131 lua_settop(L, oldtop);
1132 return this->QWidget::metric(arg1);
1134 int ret = lua_tointeger(L, -1);
1135 lua_settop(L, oldtop);
1136 return ret;
1138 bool LuaBinder< QFrame >::eventFilter (QObject * arg1, QEvent * arg2) {
1139 bool absorbed = false;
1140 int oldtop = lua_gettop(L);
1141 lqtL_pushudata(L, this, "QFrame*");
1142 if (lua_getmetatable(L, -1)) {
1143 lua_getfield(L, -1, "eventFilter");
1144 lua_remove(L, -2);
1145 } else {
1146 lua_pushnil(L);
1148 lua_insert(L, -2);
1149 lqtL_pushudata(L, arg1, "QObject*");
1150 lqtL_pushudata(L, arg2, "QEvent*");
1151 if (lua_isfunction(L, -2-2)) {
1152 lua_pcall(L, 2+1, 2, 0);
1153 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1154 lua_pop(L, 1);
1156 if (!absorbed) {
1157 lua_settop(L, oldtop);
1158 return this->QObject::eventFilter(arg1, arg2);
1160 bool ret = (bool)lua_toboolean(L, -1);
1161 lua_settop(L, oldtop);
1162 return ret;
1164 void LuaBinder< QFrame >::inputMethodEvent (QInputMethodEvent * arg1) {
1165 bool absorbed = false;
1166 int oldtop = lua_gettop(L);
1167 lqtL_pushudata(L, this, "QFrame*");
1168 if (lua_getmetatable(L, -1)) {
1169 lua_getfield(L, -1, "inputMethodEvent");
1170 lua_remove(L, -2);
1171 } else {
1172 lua_pushnil(L);
1174 lua_insert(L, -2);
1175 lqtL_pushudata(L, arg1, "QInputMethodEvent*");
1176 if (lua_isfunction(L, -1-2)) {
1177 lua_pcall(L, 1+1, 2, 0);
1178 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1179 lua_pop(L, 1);
1181 if (!absorbed) {
1182 lua_settop(L, oldtop);
1183 this->QWidget::inputMethodEvent(arg1);
1185 lua_settop(L, oldtop);
1187 void LuaBinder< QFrame >::wheelEvent (QWheelEvent * arg1) {
1188 bool absorbed = false;
1189 int oldtop = lua_gettop(L);
1190 lqtL_pushudata(L, this, "QFrame*");
1191 if (lua_getmetatable(L, -1)) {
1192 lua_getfield(L, -1, "wheelEvent");
1193 lua_remove(L, -2);
1194 } else {
1195 lua_pushnil(L);
1197 lua_insert(L, -2);
1198 lqtL_pushudata(L, arg1, "QWheelEvent*");
1199 if (lua_isfunction(L, -1-2)) {
1200 lua_pcall(L, 1+1, 2, 0);
1201 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1202 lua_pop(L, 1);
1204 if (!absorbed) {
1205 lua_settop(L, oldtop);
1206 this->QWidget::wheelEvent(arg1);
1208 lua_settop(L, oldtop);
1210 void LuaBinder< QFrame >::resizeEvent (QResizeEvent * arg1) {
1211 bool absorbed = false;
1212 int oldtop = lua_gettop(L);
1213 lqtL_pushudata(L, this, "QFrame*");
1214 if (lua_getmetatable(L, -1)) {
1215 lua_getfield(L, -1, "resizeEvent");
1216 lua_remove(L, -2);
1217 } else {
1218 lua_pushnil(L);
1220 lua_insert(L, -2);
1221 lqtL_pushudata(L, arg1, "QResizeEvent*");
1222 if (lua_isfunction(L, -1-2)) {
1223 lua_pcall(L, 1+1, 2, 0);
1224 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1225 lua_pop(L, 1);
1227 if (!absorbed) {
1228 lua_settop(L, oldtop);
1229 this->QWidget::resizeEvent(arg1);
1231 lua_settop(L, oldtop);
1233 void LuaBinder< QFrame >::paletteChange (const QPalette& arg1) {
1234 bool absorbed = false;
1235 int oldtop = lua_gettop(L);
1236 lqtL_pushudata(L, this, "QFrame*");
1237 if (lua_getmetatable(L, -1)) {
1238 lua_getfield(L, -1, "paletteChange");
1239 lua_remove(L, -2);
1240 } else {
1241 lua_pushnil(L);
1243 lua_insert(L, -2);
1244 lqtL_pushudata(L, &(arg1), "QPalette*");
1245 if (lua_isfunction(L, -1-2)) {
1246 lua_pcall(L, 1+1, 2, 0);
1247 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1248 lua_pop(L, 1);
1250 if (!absorbed) {
1251 lua_settop(L, oldtop);
1252 this->QWidget::paletteChange(arg1);
1254 lua_settop(L, oldtop);
1256 void LuaBinder< QFrame >::languageChange () {
1257 bool absorbed = false;
1258 int oldtop = lua_gettop(L);
1259 lqtL_pushudata(L, this, "QFrame*");
1260 if (lua_getmetatable(L, -1)) {
1261 lua_getfield(L, -1, "languageChange");
1262 lua_remove(L, -2);
1263 } else {
1264 lua_pushnil(L);
1266 lua_insert(L, -2);
1267 if (lua_isfunction(L, -0-2)) {
1268 lua_pcall(L, 0+1, 2, 0);
1269 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1270 lua_pop(L, 1);
1272 if (!absorbed) {
1273 lua_settop(L, oldtop);
1274 this->QWidget::languageChange();
1276 lua_settop(L, oldtop);
1278 bool LuaBinder< QFrame >::event (QEvent * arg1) {
1279 bool absorbed = false;
1280 int oldtop = lua_gettop(L);
1281 lqtL_pushudata(L, this, "QFrame*");
1282 if (lua_getmetatable(L, -1)) {
1283 lua_getfield(L, -1, "event");
1284 lua_remove(L, -2);
1285 } else {
1286 lua_pushnil(L);
1288 lua_insert(L, -2);
1289 lqtL_pushudata(L, arg1, "QEvent*");
1290 if (lua_isfunction(L, -1-2)) {
1291 lua_pcall(L, 1+1, 2, 0);
1292 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1293 lua_pop(L, 1);
1295 if (!absorbed) {
1296 lua_settop(L, oldtop);
1297 return this->QFrame::event(arg1);
1299 bool ret = (bool)lua_toboolean(L, -1);
1300 lua_settop(L, oldtop);
1301 return ret;
1303 void LuaBinder< QFrame >::hideEvent (QHideEvent * arg1) {
1304 bool absorbed = false;
1305 int oldtop = lua_gettop(L);
1306 lqtL_pushudata(L, this, "QFrame*");
1307 if (lua_getmetatable(L, -1)) {
1308 lua_getfield(L, -1, "hideEvent");
1309 lua_remove(L, -2);
1310 } else {
1311 lua_pushnil(L);
1313 lua_insert(L, -2);
1314 lqtL_pushudata(L, arg1, "QHideEvent*");
1315 if (lua_isfunction(L, -1-2)) {
1316 lua_pcall(L, 1+1, 2, 0);
1317 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1318 lua_pop(L, 1);
1320 if (!absorbed) {
1321 lua_settop(L, oldtop);
1322 this->QWidget::hideEvent(arg1);
1324 lua_settop(L, oldtop);
1326 void LuaBinder< QFrame >::disconnectNotify (const char * arg1) {
1327 bool absorbed = false;
1328 int oldtop = lua_gettop(L);
1329 lqtL_pushudata(L, this, "QFrame*");
1330 if (lua_getmetatable(L, -1)) {
1331 lua_getfield(L, -1, "disconnectNotify");
1332 lua_remove(L, -2);
1333 } else {
1334 lua_pushnil(L);
1336 lua_insert(L, -2);
1337 lua_pushstring(L, arg1);
1338 if (lua_isfunction(L, -1-2)) {
1339 lua_pcall(L, 1+1, 2, 0);
1340 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1341 lua_pop(L, 1);
1343 if (!absorbed) {
1344 lua_settop(L, oldtop);
1345 this->QObject::disconnectNotify(arg1);
1347 lua_settop(L, oldtop);
1349 void LuaBinder< QFrame >::keyReleaseEvent (QKeyEvent * arg1) {
1350 bool absorbed = false;
1351 int oldtop = lua_gettop(L);
1352 lqtL_pushudata(L, this, "QFrame*");
1353 if (lua_getmetatable(L, -1)) {
1354 lua_getfield(L, -1, "keyReleaseEvent");
1355 lua_remove(L, -2);
1356 } else {
1357 lua_pushnil(L);
1359 lua_insert(L, -2);
1360 lqtL_pushudata(L, arg1, "QKeyEvent*");
1361 if (lua_isfunction(L, -1-2)) {
1362 lua_pcall(L, 1+1, 2, 0);
1363 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1364 lua_pop(L, 1);
1366 if (!absorbed) {
1367 lua_settop(L, oldtop);
1368 this->QWidget::keyReleaseEvent(arg1);
1370 lua_settop(L, oldtop);
1372 void LuaBinder< QFrame >::windowActivationChange (bool arg1) {
1373 bool absorbed = false;
1374 int oldtop = lua_gettop(L);
1375 lqtL_pushudata(L, this, "QFrame*");
1376 if (lua_getmetatable(L, -1)) {
1377 lua_getfield(L, -1, "windowActivationChange");
1378 lua_remove(L, -2);
1379 } else {
1380 lua_pushnil(L);
1382 lua_insert(L, -2);
1383 lua_pushboolean(L, arg1);
1384 if (lua_isfunction(L, -1-2)) {
1385 lua_pcall(L, 1+1, 2, 0);
1386 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1387 lua_pop(L, 1);
1389 if (!absorbed) {
1390 lua_settop(L, oldtop);
1391 this->QWidget::windowActivationChange(arg1);
1393 lua_settop(L, oldtop);
1395 void LuaBinder< QFrame >::leaveEvent (QEvent * arg1) {
1396 bool absorbed = false;
1397 int oldtop = lua_gettop(L);
1398 lqtL_pushudata(L, this, "QFrame*");
1399 if (lua_getmetatable(L, -1)) {
1400 lua_getfield(L, -1, "leaveEvent");
1401 lua_remove(L, -2);
1402 } else {
1403 lua_pushnil(L);
1405 lua_insert(L, -2);
1406 lqtL_pushudata(L, arg1, "QEvent*");
1407 if (lua_isfunction(L, -1-2)) {
1408 lua_pcall(L, 1+1, 2, 0);
1409 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1410 lua_pop(L, 1);
1412 if (!absorbed) {
1413 lua_settop(L, oldtop);
1414 this->QWidget::leaveEvent(arg1);
1416 lua_settop(L, oldtop);
1418 void LuaBinder< QFrame >::changeEvent (QEvent * arg1) {
1419 bool absorbed = false;
1420 int oldtop = lua_gettop(L);
1421 lqtL_pushudata(L, this, "QFrame*");
1422 if (lua_getmetatable(L, -1)) {
1423 lua_getfield(L, -1, "changeEvent");
1424 lua_remove(L, -2);
1425 } else {
1426 lua_pushnil(L);
1428 lua_insert(L, -2);
1429 lqtL_pushudata(L, arg1, "QEvent*");
1430 if (lua_isfunction(L, -1-2)) {
1431 lua_pcall(L, 1+1, 2, 0);
1432 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1433 lua_pop(L, 1);
1435 if (!absorbed) {
1436 lua_settop(L, oldtop);
1437 this->QFrame::changeEvent(arg1);
1439 lua_settop(L, oldtop);
1441 void LuaBinder< QFrame >::customEvent (QEvent * arg1) {
1442 bool absorbed = false;
1443 int oldtop = lua_gettop(L);
1444 lqtL_pushudata(L, this, "QFrame*");
1445 if (lua_getmetatable(L, -1)) {
1446 lua_getfield(L, -1, "customEvent");
1447 lua_remove(L, -2);
1448 } else {
1449 lua_pushnil(L);
1451 lua_insert(L, -2);
1452 lqtL_pushudata(L, arg1, "QEvent*");
1453 if (lua_isfunction(L, -1-2)) {
1454 lua_pcall(L, 1+1, 2, 0);
1455 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1456 lua_pop(L, 1);
1458 if (!absorbed) {
1459 lua_settop(L, oldtop);
1460 this->QObject::customEvent(arg1);
1462 lua_settop(L, oldtop);
1464 LuaBinder< QFrame >:: ~LuaBinder< QFrame > () {
1465 int oldtop = lua_gettop(L);
1466 lqtL_pushudata(L, this, "QFrame*");
1467 lua_getfield(L, -1, "~QFrame");
1469 if (lua_isfunction(L, -1)) {
1470 lua_insert(L, -2);
1471 lua_pcall(L, 1, 1, 0);
1472 } else {
1474 lua_settop(L, oldtop);
1476 int LuaBinder< QFrame >::lqt_pushenum_Shape (lua_State *L) {
1477 int enum_table = 0;
1478 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1479 if (!lua_istable(L, -1)) {
1480 lua_pop(L, 1);
1481 lua_newtable(L);
1482 lua_pushvalue(L, -1);
1483 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1485 lua_newtable(L);
1486 enum_table = lua_gettop(L);
1487 lua_pushstring(L, "NoFrame");
1488 lua_rawseti(L, enum_table, 0);
1489 lua_pushinteger(L, 0);
1490 lua_setfield(L, enum_table, "NoFrame");
1491 lua_pushstring(L, "Box");
1492 lua_rawseti(L, enum_table, 1);
1493 lua_pushinteger(L, 1);
1494 lua_setfield(L, enum_table, "Box");
1495 lua_pushstring(L, "Panel");
1496 lua_rawseti(L, enum_table, 2);
1497 lua_pushinteger(L, 2);
1498 lua_setfield(L, enum_table, "Panel");
1499 lua_pushstring(L, "WinPanel");
1500 lua_rawseti(L, enum_table, 3);
1501 lua_pushinteger(L, 3);
1502 lua_setfield(L, enum_table, "WinPanel");
1503 lua_pushstring(L, "HLine");
1504 lua_rawseti(L, enum_table, 4);
1505 lua_pushinteger(L, 4);
1506 lua_setfield(L, enum_table, "HLine");
1507 lua_pushstring(L, "VLine");
1508 lua_rawseti(L, enum_table, 5);
1509 lua_pushinteger(L, 5);
1510 lua_setfield(L, enum_table, "VLine");
1511 lua_pushstring(L, "StyledPanel");
1512 lua_rawseti(L, enum_table, 6);
1513 lua_pushinteger(L, 6);
1514 lua_setfield(L, enum_table, "StyledPanel");
1515 lua_pushcfunction(L, LuaBinder< QFrame >::lqt_pushenum_Shape_QFLAGS_CREATOR);
1516 lua_setfield(L, enum_table, "QFlags");
1517 lua_pushvalue(L, -1);
1518 lua_setfield(L, -3, "QFrame::Shape");
1519 lua_remove(L, -2);
1520 return 1;
1522 int LuaBinder< QFrame >::lqt_pushenum_Shape_QFLAGS_CREATOR (lua_State *L) {
1523 int argn = lua_gettop(L);
1524 int i = 0;
1525 void *p = lua_newuserdata(L, sizeof(QFlags<QFrame::Shape>*) + sizeof(QFlags<QFrame::Shape>));
1526 QFlags<QFrame::Shape> *fl = static_cast<QFlags<QFrame::Shape>*>( static_cast<void*>(&static_cast<QFlags<QFrame::Shape>**>(p)[1]) );
1527 *(void**)p = fl;
1528 for (i=1;i<=argn;i++) {
1529 *fl |= static_cast<QFrame::Shape>(lqtL_toenum(L, i, "QFrame::Shape"));
1531 if (luaL_newmetatable(L, "QFlags<QFrame::Shape>*")) {
1532 lua_pushstring(L, "QFlags<QFrame::Shape>*");
1533 lua_setfield(L, -2, "__qtype");
1535 lua_setmetatable(L, -2);
1536 return 1;
1538 int LuaBinder< QFrame >::lqt_pushenum_Shadow (lua_State *L) {
1539 int enum_table = 0;
1540 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1541 if (!lua_istable(L, -1)) {
1542 lua_pop(L, 1);
1543 lua_newtable(L);
1544 lua_pushvalue(L, -1);
1545 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1547 lua_newtable(L);
1548 enum_table = lua_gettop(L);
1549 lua_pushstring(L, "Plain");
1550 lua_rawseti(L, enum_table, 16);
1551 lua_pushinteger(L, 16);
1552 lua_setfield(L, enum_table, "Plain");
1553 lua_pushstring(L, "Raised");
1554 lua_rawseti(L, enum_table, 32);
1555 lua_pushinteger(L, 32);
1556 lua_setfield(L, enum_table, "Raised");
1557 lua_pushstring(L, "Sunken");
1558 lua_rawseti(L, enum_table, 48);
1559 lua_pushinteger(L, 48);
1560 lua_setfield(L, enum_table, "Sunken");
1561 lua_pushcfunction(L, LuaBinder< QFrame >::lqt_pushenum_Shadow_QFLAGS_CREATOR);
1562 lua_setfield(L, enum_table, "QFlags");
1563 lua_pushvalue(L, -1);
1564 lua_setfield(L, -3, "QFrame::Shadow");
1565 lua_remove(L, -2);
1566 return 1;
1568 int LuaBinder< QFrame >::lqt_pushenum_Shadow_QFLAGS_CREATOR (lua_State *L) {
1569 int argn = lua_gettop(L);
1570 int i = 0;
1571 void *p = lua_newuserdata(L, sizeof(QFlags<QFrame::Shadow>*) + sizeof(QFlags<QFrame::Shadow>));
1572 QFlags<QFrame::Shadow> *fl = static_cast<QFlags<QFrame::Shadow>*>( static_cast<void*>(&static_cast<QFlags<QFrame::Shadow>**>(p)[1]) );
1573 *(void**)p = fl;
1574 for (i=1;i<=argn;i++) {
1575 *fl |= static_cast<QFrame::Shadow>(lqtL_toenum(L, i, "QFrame::Shadow"));
1577 if (luaL_newmetatable(L, "QFlags<QFrame::Shadow>*")) {
1578 lua_pushstring(L, "QFlags<QFrame::Shadow>*");
1579 lua_setfield(L, -2, "__qtype");
1581 lua_setmetatable(L, -2);
1582 return 1;
1584 int LuaBinder< QFrame >::lqt_pushenum_StyleMask (lua_State *L) {
1585 int enum_table = 0;
1586 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1587 if (!lua_istable(L, -1)) {
1588 lua_pop(L, 1);
1589 lua_newtable(L);
1590 lua_pushvalue(L, -1);
1591 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1593 lua_newtable(L);
1594 enum_table = lua_gettop(L);
1595 lua_pushstring(L, "Shadow_Mask");
1596 lua_rawseti(L, enum_table, 240);
1597 lua_pushinteger(L, 240);
1598 lua_setfield(L, enum_table, "Shadow_Mask");
1599 lua_pushstring(L, "Shape_Mask");
1600 lua_rawseti(L, enum_table, 15);
1601 lua_pushinteger(L, 15);
1602 lua_setfield(L, enum_table, "Shape_Mask");
1603 lua_pushcfunction(L, LuaBinder< QFrame >::lqt_pushenum_StyleMask_QFLAGS_CREATOR);
1604 lua_setfield(L, enum_table, "QFlags");
1605 lua_pushvalue(L, -1);
1606 lua_setfield(L, -3, "QFrame::StyleMask");
1607 lua_remove(L, -2);
1608 return 1;
1610 int LuaBinder< QFrame >::lqt_pushenum_StyleMask_QFLAGS_CREATOR (lua_State *L) {
1611 int argn = lua_gettop(L);
1612 int i = 0;
1613 void *p = lua_newuserdata(L, sizeof(QFlags<QFrame::StyleMask>*) + sizeof(QFlags<QFrame::StyleMask>));
1614 QFlags<QFrame::StyleMask> *fl = static_cast<QFlags<QFrame::StyleMask>*>( static_cast<void*>(&static_cast<QFlags<QFrame::StyleMask>**>(p)[1]) );
1615 *(void**)p = fl;
1616 for (i=1;i<=argn;i++) {
1617 *fl |= static_cast<QFrame::StyleMask>(lqtL_toenum(L, i, "QFrame::StyleMask"));
1619 if (luaL_newmetatable(L, "QFlags<QFrame::StyleMask>*")) {
1620 lua_pushstring(L, "QFlags<QFrame::StyleMask>*");
1621 lua_setfield(L, -2, "__qtype");
1623 lua_setmetatable(L, -2);
1624 return 1;
1626 int luaopen_QFrame (lua_State *L) {
1627 if (luaL_newmetatable(L, "QFrame*")) {
1628 lua_pushcfunction(L, LuaBinder< QFrame >::__LuaWrapCall__lineWidth);
1629 lua_setfield(L, -2, "lineWidth");
1630 lua_pushcfunction(L, LuaBinder< QFrame >::__LuaWrapCall__setLineWidth);
1631 lua_setfield(L, -2, "setLineWidth");
1632 lua_pushcfunction(L, LuaBinder< QFrame >::__LuaWrapCall__sizeHint);
1633 lua_setfield(L, -2, "sizeHint");
1634 lua_pushcfunction(L, LuaBinder< QFrame >::__LuaWrapCall__setFrameStyle);
1635 lua_setfield(L, -2, "setFrameStyle");
1636 lua_pushcfunction(L, LuaBinder< QFrame >::__LuaWrapCall__setMidLineWidth);
1637 lua_setfield(L, -2, "setMidLineWidth");
1638 lua_pushcfunction(L, LuaBinder< QFrame >::__LuaWrapCall__frameStyle);
1639 lua_setfield(L, -2, "frameStyle");
1640 lua_pushcfunction(L, LuaBinder< QFrame >::__LuaWrapCall__metaObject);
1641 lua_setfield(L, -2, "metaObject");
1642 lua_pushcfunction(L, LuaBinder< QFrame >::__LuaWrapCall__new);
1643 lua_setfield(L, -2, "new");
1644 lua_pushcfunction(L, LuaBinder< QFrame >::__LuaWrapCall__tr);
1645 lua_setfield(L, -2, "tr");
1646 lua_pushcfunction(L, LuaBinder< QFrame >::__LuaWrapCall__delete);
1647 lua_setfield(L, -2, "delete");
1648 lua_pushcfunction(L, LuaBinder< QFrame >::__LuaWrapCall__frameShadow);
1649 lua_setfield(L, -2, "frameShadow");
1650 lua_pushcfunction(L, LuaBinder< QFrame >::__LuaWrapCall__frameShape);
1651 lua_setfield(L, -2, "frameShape");
1652 lua_pushcfunction(L, LuaBinder< QFrame >::__LuaWrapCall__trUtf8);
1653 lua_setfield(L, -2, "trUtf8");
1654 lua_pushcfunction(L, LuaBinder< QFrame >::__LuaWrapCall__setFrameShadow);
1655 lua_setfield(L, -2, "setFrameShadow");
1656 lua_pushcfunction(L, LuaBinder< QFrame >::__LuaWrapCall__frameWidth);
1657 lua_setfield(L, -2, "frameWidth");
1658 lua_pushcfunction(L, LuaBinder< QFrame >::__LuaWrapCall__midLineWidth);
1659 lua_setfield(L, -2, "midLineWidth");
1660 lua_pushcfunction(L, LuaBinder< QFrame >::__LuaWrapCall__setFrameShape);
1661 lua_setfield(L, -2, "setFrameShape");
1662 lua_pushcfunction(L, LuaBinder< QFrame >::__LuaWrapCall__frameRect);
1663 lua_setfield(L, -2, "frameRect");
1664 lua_pushcfunction(L, LuaBinder< QFrame >::__LuaWrapCall__setFrameRect);
1665 lua_setfield(L, -2, "setFrameRect");
1666 LuaBinder< QFrame >::lqt_pushenum_Shape(L);
1667 lua_setfield(L, -2, "Shape");
1668 LuaBinder< QFrame >::lqt_pushenum_Shadow(L);
1669 lua_setfield(L, -2, "Shadow");
1670 LuaBinder< QFrame >::lqt_pushenum_StyleMask(L);
1671 lua_setfield(L, -2, "StyleMask");
1672 lua_newtable(L);
1673 lua_pushboolean(L, 1);
1674 lua_setfield(L, -2, "QWidget*");
1675 lua_pushboolean(L, 0);
1676 lua_setfield(L, -2, "QObject*");
1677 lua_pushboolean(L, 0);
1678 lua_setfield(L, -2, "QPaintDevice*");
1679 lua_setfield(L, -2, "__base");
1680 lua_pushcfunction(L, lqtL_newindex);
1681 lua_setfield(L, -2, "__newindex");
1682 lua_pushcfunction(L, lqtL_index);
1683 lua_setfield(L, -2, "__index");
1684 lua_pushcfunction(L, lqtL_gc);
1685 lua_setfield(L, -2, "__gc");
1686 lua_pushstring(L, "QFrame");
1687 lua_setfield(L, -2, "__qtype");
1688 lua_setglobal(L, "QFrame");
1689 } else {
1690 lua_pop(L, 1);
1692 return 0;