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*"));
6 lua_pushstring(L
, "trying to reference deleted pointer");
10 int ret
= __lua__obj
->QFrame::lineWidth();
11 lua_pushinteger(L
, ret
);
14 int LuaBinder
< QFrame
>::__LuaWrapCall__setLineWidth (lua_State
*L
) {
15 QFrame
*& __lua__obj
= *static_cast<QFrame
**>(lqtL_checkudata(L
, 1, "QFrame*"));
17 lua_pushstring(L
, "trying to reference deleted pointer");
21 int arg1
= lua_tointeger(L
, 2);
22 __lua__obj
->QFrame::setLineWidth(arg1
);
25 int LuaBinder
< QFrame
>::__LuaWrapCall__sizeHint (lua_State
*L
) {
26 QFrame
*& __lua__obj
= *static_cast<QFrame
**>(lqtL_checkudata(L
, 1, "QFrame*"));
28 lua_pushstring(L
, "trying to reference deleted pointer");
32 QSize ret
= __lua__obj
->QFrame::sizeHint();
33 lqtL_passudata(L
, new QSize(ret
), "QSize*");
36 int LuaBinder
< QFrame
>::__LuaWrapCall__setFrameStyle (lua_State
*L
) {
37 QFrame
*& __lua__obj
= *static_cast<QFrame
**>(lqtL_checkudata(L
, 1, "QFrame*"));
39 lua_pushstring(L
, "trying to reference deleted pointer");
43 int arg1
= lua_tointeger(L
, 2);
44 __lua__obj
->QFrame::setFrameStyle(arg1
);
47 int LuaBinder
< QFrame
>::__LuaWrapCall__setMidLineWidth (lua_State
*L
) {
48 QFrame
*& __lua__obj
= *static_cast<QFrame
**>(lqtL_checkudata(L
, 1, "QFrame*"));
50 lua_pushstring(L
, "trying to reference deleted pointer");
54 int arg1
= lua_tointeger(L
, 2);
55 __lua__obj
->QFrame::setMidLineWidth(arg1
);
58 int LuaBinder
< QFrame
>::__LuaWrapCall__frameStyle (lua_State
*L
) {
59 QFrame
*& __lua__obj
= *static_cast<QFrame
**>(lqtL_checkudata(L
, 1, "QFrame*"));
61 lua_pushstring(L
, "trying to reference deleted pointer");
65 int ret
= __lua__obj
->QFrame::frameStyle();
66 lua_pushinteger(L
, ret
);
69 int LuaBinder
< QFrame
>::__LuaWrapCall__metaObject (lua_State
*L
) {
70 QFrame
*& __lua__obj
= *static_cast<QFrame
**>(lqtL_checkudata(L
, 1, "QFrame*"));
72 lua_pushstring(L
, "trying to reference deleted pointer");
76 const QMetaObject
* ret
= __lua__obj
->QFrame::metaObject();
77 lqtL_pushudata(L
, ret
, "QMetaObject*");
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*");
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());
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());
102 int LuaBinder
< QFrame
>::__LuaWrapCall__tr (lua_State
*L
) {
104 const int premium
= 11+lua_gettop(L
);
106 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
109 score
[1] += premium
-1; // table: 0x1089de0;
111 score
[1] -= premium
*premium
;
113 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
116 score
[1] += premium
-1; // table: 0x1089b50;
118 score
[1] -= premium
*premium
;
121 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
124 score
[2] += premium
-1; // table: 0x108b7e0;
126 score
[2] -= premium
*premium
;
128 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
131 score
[2] += premium
-1; // table: 0x108bce0;
133 score
[2] -= premium
*premium
;
135 if (lua_isnumber(L
, 3)) {
138 score
[2] += premium
-1; // table: 0x108c090;
140 score
[2] -= premium
*premium
;
143 for (int i
=1;i
<=2;i
++) {
144 if (score
[best
] < score
[i
]) { best
= i
; }
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");
154 int LuaBinder
< QFrame
>::__LuaWrapCall__delete (lua_State
*L
) {
155 QFrame
*& __lua__obj
= *static_cast<QFrame
**>(lqtL_checkudata(L
, 1, "QFrame*"));
157 lua_pushstring(L
, "trying to reference deleted pointer");
165 int LuaBinder
< QFrame
>::__LuaWrapCall__frameShadow (lua_State
*L
) {
166 QFrame
*& __lua__obj
= *static_cast<QFrame
**>(lqtL_checkudata(L
, 1, "QFrame*"));
168 lua_pushstring(L
, "trying to reference deleted pointer");
172 QFrame::Shadow ret
= __lua__obj
->QFrame::frameShadow();
173 lqtL_pushenum(L
, ret
, "QFrame::Shadow");
176 int LuaBinder
< QFrame
>::__LuaWrapCall__frameShape (lua_State
*L
) {
177 QFrame
*& __lua__obj
= *static_cast<QFrame
**>(lqtL_checkudata(L
, 1, "QFrame*"));
179 lua_pushstring(L
, "trying to reference deleted pointer");
183 QFrame::Shape ret
= __lua__obj
->QFrame::frameShape();
184 lqtL_pushenum(L
, ret
, "QFrame::Shape");
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());
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());
202 int LuaBinder
< QFrame
>::__LuaWrapCall__trUtf8 (lua_State
*L
) {
204 const int premium
= 11+lua_gettop(L
);
206 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
209 score
[1] += premium
-1; // table: 0x108ab20;
211 score
[1] -= premium
*premium
;
213 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
216 score
[1] += premium
-1; // table: 0x108a680;
218 score
[1] -= premium
*premium
;
221 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
224 score
[2] += premium
-1; // table: 0x108c900;
226 score
[2] -= premium
*premium
;
228 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
231 score
[2] += premium
-1; // table: 0x108c030;
233 score
[2] -= premium
*premium
;
235 if (lua_isnumber(L
, 3)) {
238 score
[2] += premium
-1; // table: 0x108cd90;
240 score
[2] -= premium
*premium
;
243 for (int i
=1;i
<=2;i
++) {
244 if (score
[best
] < score
[i
]) { best
= i
; }
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");
254 int LuaBinder
< QFrame
>::__LuaWrapCall__setFrameShadow (lua_State
*L
) {
255 QFrame
*& __lua__obj
= *static_cast<QFrame
**>(lqtL_checkudata(L
, 1, "QFrame*"));
257 lua_pushstring(L
, "trying to reference deleted pointer");
261 QFrame::Shadow arg1
= static_cast<QFrame::Shadow
>(lqtL_toenum(L
, 2, "QFrame::Shadow"));
262 __lua__obj
->QFrame::setFrameShadow(arg1
);
265 int LuaBinder
< QFrame
>::__LuaWrapCall__frameWidth (lua_State
*L
) {
266 QFrame
*& __lua__obj
= *static_cast<QFrame
**>(lqtL_checkudata(L
, 1, "QFrame*"));
268 lua_pushstring(L
, "trying to reference deleted pointer");
272 int ret
= __lua__obj
->QFrame::frameWidth();
273 lua_pushinteger(L
, ret
);
276 int LuaBinder
< QFrame
>::__LuaWrapCall__midLineWidth (lua_State
*L
) {
277 QFrame
*& __lua__obj
= *static_cast<QFrame
**>(lqtL_checkudata(L
, 1, "QFrame*"));
279 lua_pushstring(L
, "trying to reference deleted pointer");
283 int ret
= __lua__obj
->QFrame::midLineWidth();
284 lua_pushinteger(L
, ret
);
287 int LuaBinder
< QFrame
>::__LuaWrapCall__setFrameShape (lua_State
*L
) {
288 QFrame
*& __lua__obj
= *static_cast<QFrame
**>(lqtL_checkudata(L
, 1, "QFrame*"));
290 lua_pushstring(L
, "trying to reference deleted pointer");
294 QFrame::Shape arg1
= static_cast<QFrame::Shape
>(lqtL_toenum(L
, 2, "QFrame::Shape"));
295 __lua__obj
->QFrame::setFrameShape(arg1
);
298 int LuaBinder
< QFrame
>::__LuaWrapCall__frameRect (lua_State
*L
) {
299 QFrame
*& __lua__obj
= *static_cast<QFrame
**>(lqtL_checkudata(L
, 1, "QFrame*"));
301 lua_pushstring(L
, "trying to reference deleted pointer");
305 QRect ret
= __lua__obj
->QFrame::frameRect();
306 lqtL_passudata(L
, new QRect(ret
), "QRect*");
309 int LuaBinder
< QFrame
>::__LuaWrapCall__setFrameRect (lua_State
*L
) {
310 QFrame
*& __lua__obj
= *static_cast<QFrame
**>(lqtL_checkudata(L
, 1, "QFrame*"));
312 lua_pushstring(L
, "trying to reference deleted pointer");
316 const QRect
& arg1
= **static_cast<QRect
**>(lqtL_checkudata(L
, 2, "QRect*"));
317 __lua__obj
->QFrame::setFrameRect(arg1
);
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");
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);
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");
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);
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");
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);
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");
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);
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
);
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");
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);
430 lua_settop(L
, oldtop
);
431 return this->QWidget::devType();
433 int ret
= lua_tointeger(L
, -1);
434 lua_settop(L
, oldtop
);
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");
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);
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");
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);
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
);
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");
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);
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
);
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");
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);
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");
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);
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");
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);
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
);
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");
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);
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");
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);
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");
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);
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");
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);
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");
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);
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
);
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");
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);
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");
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);
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");
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);
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");
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);
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");
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);
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");
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);
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");
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);
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");
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);
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");
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);
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");
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);
920 lua_settop(L
, oldtop
);
921 return this->QWidget::heightForWidth(arg1
);
923 int ret
= lua_tointeger(L
, -1);
924 lua_settop(L
, oldtop
);
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");
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);
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");
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);
968 lua_settop(L
, oldtop
);
969 return this->QWidget::focusNextPrevChild(arg1
);
971 bool ret
= (bool)lua_toboolean(L
, -1);
972 lua_settop(L
, oldtop
);
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");
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);
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");
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);
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");
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);
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");
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);
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");
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);
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");
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);
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");
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);
1131 lua_settop(L
, oldtop
);
1132 return this->QWidget::metric(arg1
);
1134 int ret
= lua_tointeger(L
, -1);
1135 lua_settop(L
, oldtop
);
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");
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);
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
);
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");
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);
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");
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);
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");
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);
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");
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);
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");
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);
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");
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);
1296 lua_settop(L
, oldtop
);
1297 return this->QFrame::event(arg1
);
1299 bool ret
= (bool)lua_toboolean(L
, -1);
1300 lua_settop(L
, oldtop
);
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");
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);
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");
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);
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");
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);
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");
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);
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");
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);
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");
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);
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");
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);
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)) {
1471 lua_pcall(L
, 1, 1, 0);
1474 lua_settop(L
, oldtop
);
1476 int LuaBinder
< QFrame
>::lqt_pushenum_Shape (lua_State
*L
) {
1478 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
1479 if (!lua_istable(L
, -1)) {
1482 lua_pushvalue(L
, -1);
1483 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
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");
1522 int LuaBinder
< QFrame
>::lqt_pushenum_Shape_QFLAGS_CREATOR (lua_State
*L
) {
1523 int argn
= lua_gettop(L
);
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]) );
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);
1538 int LuaBinder
< QFrame
>::lqt_pushenum_Shadow (lua_State
*L
) {
1540 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
1541 if (!lua_istable(L
, -1)) {
1544 lua_pushvalue(L
, -1);
1545 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
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");
1568 int LuaBinder
< QFrame
>::lqt_pushenum_Shadow_QFLAGS_CREATOR (lua_State
*L
) {
1569 int argn
= lua_gettop(L
);
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]) );
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);
1584 int LuaBinder
< QFrame
>::lqt_pushenum_StyleMask (lua_State
*L
) {
1586 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
1587 if (!lua_istable(L
, -1)) {
1590 lua_pushvalue(L
, -1);
1591 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
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");
1610 int LuaBinder
< QFrame
>::lqt_pushenum_StyleMask_QFLAGS_CREATOR (lua_State
*L
) {
1611 int argn
= lua_gettop(L
);
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]) );
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);
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");
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");