1 #include "lqt_bind_QGraphicsScene.hpp"
3 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__render (lua_State
*L
) {
4 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
6 lua_pushstring(L
, "trying to reference deleted pointer");
10 QPainter
* arg1
= *static_cast<QPainter
**>(lqtL_checkudata(L
, 2, "QPainter*"));
11 const QRectF
& arg2
= lqtL_testudata(L
, 3, "QRectF*")?**static_cast<QRectF
**>(lqtL_checkudata(L
, 3, "QRectF*")):QRectF();
12 const QRectF
& arg3
= lqtL_testudata(L
, 4, "QRectF*")?**static_cast<QRectF
**>(lqtL_checkudata(L
, 4, "QRectF*")):QRectF();
13 Qt::AspectRatioMode arg4
= lqtL_isenum(L
, 5, "Qt::AspectRatioMode")?static_cast<Qt::AspectRatioMode
>(lqtL_toenum(L
, 5, "Qt::AspectRatioMode")):Qt::KeepAspectRatio
;
14 __lua__obj
->QGraphicsScene::render(arg1
, arg2
, arg3
, arg4
);
17 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addPixmap (lua_State
*L
) {
18 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
20 lua_pushstring(L
, "trying to reference deleted pointer");
24 const QPixmap
& arg1
= **static_cast<QPixmap
**>(lqtL_checkudata(L
, 2, "QPixmap*"));
25 QGraphicsPixmapItem
* ret
= __lua__obj
->QGraphicsScene::addPixmap(arg1
);
26 lqtL_pushudata(L
, ret
, "QGraphicsPixmapItem*");
29 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__focusItem (lua_State
*L
) {
30 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
32 lua_pushstring(L
, "trying to reference deleted pointer");
36 QGraphicsItem
* ret
= __lua__obj
->QGraphicsScene::focusItem();
37 lqtL_pushudata(L
, ret
, "QGraphicsItem*");
40 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__clearSelection (lua_State
*L
) {
41 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
43 lua_pushstring(L
, "trying to reference deleted pointer");
47 __lua__obj
->QGraphicsScene::clearSelection();
50 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__update__OverloadedVersion__1 (lua_State
*L
) {
51 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
53 lua_pushstring(L
, "trying to reference deleted pointer");
57 double arg1
= lua_tonumber(L
, 2);
58 double arg2
= lua_tonumber(L
, 3);
59 double arg3
= lua_tonumber(L
, 4);
60 double arg4
= lua_tonumber(L
, 5);
61 __lua__obj
->QGraphicsScene::update(arg1
, arg2
, arg3
, arg4
);
64 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__update__OverloadedVersion__2 (lua_State
*L
) {
65 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
67 lua_pushstring(L
, "trying to reference deleted pointer");
71 const QRectF
& arg1
= lqtL_testudata(L
, 2, "QRectF*")?**static_cast<QRectF
**>(lqtL_checkudata(L
, 2, "QRectF*")):QRectF();
72 __lua__obj
->QGraphicsScene::update(arg1
);
75 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__update (lua_State
*L
) {
77 const int premium
= 11+lua_gettop(L
);
79 score
[1] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
80 if (lua_isnumber(L
, 2)) {
83 score
[1] += premium
-1; // table: 0x1142160;
85 score
[1] -= premium
*premium
;
87 if (lua_isnumber(L
, 3)) {
90 score
[1] += premium
-1; // table: 0x1142670;
92 score
[1] -= premium
*premium
;
94 if (lua_isnumber(L
, 4)) {
97 score
[1] += premium
-1; // table: 0x1142a20;
99 score
[1] -= premium
*premium
;
101 if (lua_isnumber(L
, 5)) {
104 score
[1] += premium
-1; // table: 0x11429c0;
106 score
[1] -= premium
*premium
;
109 score
[2] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
110 if (lqtL_testudata(L
, 2, "QRectF*")) {
113 score
[2] += premium
-1; // table: 0x1145180;
115 score
[2] -= premium
*premium
;
118 for (int i
=1;i
<=2;i
++) {
119 if (score
[best
] < score
[i
]) { best
= i
; }
122 case 1: return __LuaWrapCall__update__OverloadedVersion__1(L
); break;
123 case 2: return __LuaWrapCall__update__OverloadedVersion__2(L
); break;
125 lua_pushstring(L
, "no overload of function __LuaWrapCall__update matching arguments");
129 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__sceneRect (lua_State
*L
) {
130 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
132 lua_pushstring(L
, "trying to reference deleted pointer");
136 QRectF ret
= __lua__obj
->QGraphicsScene::sceneRect();
137 lqtL_passudata(L
, new QRectF(ret
), "QRectF*");
140 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addLine__OverloadedVersion__1 (lua_State
*L
) {
141 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
143 lua_pushstring(L
, "trying to reference deleted pointer");
147 const QLineF
& arg1
= **static_cast<QLineF
**>(lqtL_checkudata(L
, 2, "QLineF*"));
148 const QPen
& arg2
= lqtL_testudata(L
, 3, "QPen*")?**static_cast<QPen
**>(lqtL_checkudata(L
, 3, "QPen*")):QPen();
149 QGraphicsLineItem
* ret
= __lua__obj
->QGraphicsScene::addLine(arg1
, arg2
);
150 lqtL_pushudata(L
, ret
, "QGraphicsLineItem*");
153 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addLine__OverloadedVersion__2 (lua_State
*L
) {
154 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
156 lua_pushstring(L
, "trying to reference deleted pointer");
160 double arg1
= lua_tonumber(L
, 2);
161 double arg2
= lua_tonumber(L
, 3);
162 double arg3
= lua_tonumber(L
, 4);
163 double arg4
= lua_tonumber(L
, 5);
164 const QPen
& arg5
= lqtL_testudata(L
, 6, "QPen*")?**static_cast<QPen
**>(lqtL_checkudata(L
, 6, "QPen*")):QPen();
165 QGraphicsLineItem
* ret
= __lua__obj
->QGraphicsScene::addLine(arg1
, arg2
, arg3
, arg4
, arg5
);
166 lqtL_pushudata(L
, ret
, "QGraphicsLineItem*");
169 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addLine (lua_State
*L
) {
171 const int premium
= 11+lua_gettop(L
);
173 score
[1] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
174 if (lqtL_testudata(L
, 2, "QLineF*")) {
177 score
[1] += premium
-1; // table: 0x112db90;
179 score
[1] -= premium
*premium
;
181 if (lqtL_testudata(L
, 3, "QPen*")) {
184 score
[1] += premium
-1; // table: 0x112d800;
186 score
[1] -= premium
*premium
;
189 score
[2] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
190 if (lua_isnumber(L
, 2)) {
193 score
[2] += premium
-1; // table: 0x1136d20;
195 score
[2] -= premium
*premium
;
197 if (lua_isnumber(L
, 3)) {
200 score
[2] += premium
-1; // table: 0x1136a10;
202 score
[2] -= premium
*premium
;
204 if (lua_isnumber(L
, 4)) {
207 score
[2] += premium
-1; // table: 0x1137200;
209 score
[2] -= premium
*premium
;
211 if (lua_isnumber(L
, 5)) {
214 score
[2] += premium
-1; // table: 0x1137ac0;
216 score
[2] -= premium
*premium
;
218 if (lqtL_testudata(L
, 6, "QPen*")) {
221 score
[2] += premium
-1; // table: 0x1137eb0;
223 score
[2] -= premium
*premium
;
226 for (int i
=1;i
<=2;i
++) {
227 if (score
[best
] < score
[i
]) { best
= i
; }
230 case 1: return __LuaWrapCall__addLine__OverloadedVersion__1(L
); break;
231 case 2: return __LuaWrapCall__addLine__OverloadedVersion__2(L
); break;
233 lua_pushstring(L
, "no overload of function __LuaWrapCall__addLine matching arguments");
237 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__itemsBoundingRect (lua_State
*L
) {
238 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
240 lua_pushstring(L
, "trying to reference deleted pointer");
244 QRectF ret
= __lua__obj
->QGraphicsScene::itemsBoundingRect();
245 lqtL_passudata(L
, new QRectF(ret
), "QRectF*");
248 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State
*L
) {
249 const char * arg1
= lua_tostring(L
, 1);
250 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
251 QString ret
= QGraphicsScene::trUtf8(arg1
, arg2
);
252 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
255 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State
*L
) {
256 const char * arg1
= lua_tostring(L
, 1);
257 const char * arg2
= lua_tostring(L
, 2);
258 int arg3
= lua_tointeger(L
, 3);
259 QString ret
= QGraphicsScene::trUtf8(arg1
, arg2
, arg3
);
260 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
263 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__trUtf8 (lua_State
*L
) {
265 const int premium
= 11+lua_gettop(L
);
267 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
270 score
[1] += premium
-1; // table: 0x1110070;
272 score
[1] -= premium
*premium
;
274 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
277 score
[1] += premium
-1; // table: 0x110fbc0;
279 score
[1] -= premium
*premium
;
282 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
285 score
[2] += premium
-1; // table: 0x1111e60;
287 score
[2] -= premium
*premium
;
289 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
292 score
[2] += premium
-1; // table: 0x1111580;
294 score
[2] -= premium
*premium
;
296 if (lua_isnumber(L
, 3)) {
299 score
[2] += premium
-1; // table: 0x11122e0;
301 score
[2] -= premium
*premium
;
304 for (int i
=1;i
<=2;i
++) {
305 if (score
[best
] < score
[i
]) { best
= i
; }
308 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L
); break;
309 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L
); break;
311 lua_pushstring(L
, "no overload of function __LuaWrapCall__trUtf8 matching arguments");
315 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addRect__OverloadedVersion__1 (lua_State
*L
) {
316 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
318 lua_pushstring(L
, "trying to reference deleted pointer");
322 const QRectF
& arg1
= **static_cast<QRectF
**>(lqtL_checkudata(L
, 2, "QRectF*"));
323 const QPen
& arg2
= lqtL_testudata(L
, 3, "QPen*")?**static_cast<QPen
**>(lqtL_checkudata(L
, 3, "QPen*")):QPen();
324 const QBrush
& arg3
= lqtL_testudata(L
, 4, "QBrush*")?**static_cast<QBrush
**>(lqtL_checkudata(L
, 4, "QBrush*")):QBrush();
325 QGraphicsRectItem
* ret
= __lua__obj
->QGraphicsScene::addRect(arg1
, arg2
, arg3
);
326 lqtL_pushudata(L
, ret
, "QGraphicsRectItem*");
329 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addRect__OverloadedVersion__2 (lua_State
*L
) {
330 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
332 lua_pushstring(L
, "trying to reference deleted pointer");
336 double arg1
= lua_tonumber(L
, 2);
337 double arg2
= lua_tonumber(L
, 3);
338 double arg3
= lua_tonumber(L
, 4);
339 double arg4
= lua_tonumber(L
, 5);
340 const QPen
& arg5
= lqtL_testudata(L
, 6, "QPen*")?**static_cast<QPen
**>(lqtL_checkudata(L
, 6, "QPen*")):QPen();
341 const QBrush
& arg6
= lqtL_testudata(L
, 7, "QBrush*")?**static_cast<QBrush
**>(lqtL_checkudata(L
, 7, "QBrush*")):QBrush();
342 QGraphicsRectItem
* ret
= __lua__obj
->QGraphicsScene::addRect(arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
343 lqtL_pushudata(L
, ret
, "QGraphicsRectItem*");
346 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addRect (lua_State
*L
) {
348 const int premium
= 11+lua_gettop(L
);
350 score
[1] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
351 if (lqtL_testudata(L
, 2, "QRectF*")) {
354 score
[1] += premium
-1; // table: 0x1131d30;
356 score
[1] -= premium
*premium
;
358 if (lqtL_testudata(L
, 3, "QPen*")) {
361 score
[1] += premium
-1; // table: 0x1131310;
363 score
[1] -= premium
*premium
;
365 if (lqtL_testudata(L
, 4, "QBrush*")) {
368 score
[1] += premium
-1; // table: 0x1132280;
370 score
[1] -= premium
*premium
;
373 score
[2] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
374 if (lua_isnumber(L
, 2)) {
377 score
[2] += premium
-1; // table: 0x1138830;
379 score
[2] -= premium
*premium
;
381 if (lua_isnumber(L
, 3)) {
384 score
[2] += premium
-1; // table: 0x1138d60;
386 score
[2] -= premium
*premium
;
388 if (lua_isnumber(L
, 4)) {
391 score
[2] += premium
-1; // table: 0x1139110;
393 score
[2] -= premium
*premium
;
395 if (lua_isnumber(L
, 5)) {
398 score
[2] += premium
-1; // table: 0x11390b0;
400 score
[2] -= premium
*premium
;
402 if (lqtL_testudata(L
, 6, "QPen*")) {
405 score
[2] += premium
-1; // table: 0x11398e0;
407 score
[2] -= premium
*premium
;
409 if (lqtL_testudata(L
, 7, "QBrush*")) {
412 score
[2] += premium
-1; // table: 0x1139490;
414 score
[2] -= premium
*premium
;
417 for (int i
=1;i
<=2;i
++) {
418 if (score
[best
] < score
[i
]) { best
= i
; }
421 case 1: return __LuaWrapCall__addRect__OverloadedVersion__1(L
); break;
422 case 2: return __LuaWrapCall__addRect__OverloadedVersion__2(L
); break;
424 lua_pushstring(L
, "no overload of function __LuaWrapCall__addRect matching arguments");
428 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__advance (lua_State
*L
) {
429 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
431 lua_pushstring(L
, "trying to reference deleted pointer");
435 __lua__obj
->QGraphicsScene::advance();
438 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__selectionArea (lua_State
*L
) {
439 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
441 lua_pushstring(L
, "trying to reference deleted pointer");
445 QPainterPath ret
= __lua__obj
->QGraphicsScene::selectionArea();
446 lqtL_passudata(L
, new QPainterPath(ret
), "QPainterPath*");
449 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setSelectionArea__OverloadedVersion__1 (lua_State
*L
) {
450 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
452 lua_pushstring(L
, "trying to reference deleted pointer");
456 const QPainterPath
& arg1
= **static_cast<QPainterPath
**>(lqtL_checkudata(L
, 2, "QPainterPath*"));
457 __lua__obj
->QGraphicsScene::setSelectionArea(arg1
);
460 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setSelectionArea__OverloadedVersion__2 (lua_State
*L
) {
461 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
463 lua_pushstring(L
, "trying to reference deleted pointer");
467 const QPainterPath
& arg1
= **static_cast<QPainterPath
**>(lqtL_checkudata(L
, 2, "QPainterPath*"));
468 Qt::ItemSelectionMode arg2
= static_cast<Qt::ItemSelectionMode
>(lqtL_toenum(L
, 3, "Qt::ItemSelectionMode"));
469 __lua__obj
->QGraphicsScene::setSelectionArea(arg1
, arg2
);
472 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setSelectionArea (lua_State
*L
) {
474 const int premium
= 11+lua_gettop(L
);
476 score
[1] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
477 if (lqtL_testudata(L
, 2, "QPainterPath*")) {
480 score
[1] += premium
-1; // table: 0x11285f0;
482 score
[1] -= premium
*premium
;
485 score
[2] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
486 if (lqtL_testudata(L
, 2, "QPainterPath*")) {
489 score
[2] += premium
-1; // table: 0x1129060;
491 score
[2] -= premium
*premium
;
493 if (lqtL_isenum(L
, 3, "Qt::ItemSelectionMode")) {
496 score
[2] += premium
-1; // table: 0x11295b0;
498 score
[2] -= premium
*premium
;
501 for (int i
=1;i
<=2;i
++) {
502 if (score
[best
] < score
[i
]) { best
= i
; }
505 case 1: return __LuaWrapCall__setSelectionArea__OverloadedVersion__1(L
); break;
506 case 2: return __LuaWrapCall__setSelectionArea__OverloadedVersion__2(L
); break;
508 lua_pushstring(L
, "no overload of function __LuaWrapCall__setSelectionArea matching arguments");
512 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setItemIndexMethod (lua_State
*L
) {
513 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
515 lua_pushstring(L
, "trying to reference deleted pointer");
519 QGraphicsScene::ItemIndexMethod arg1
= static_cast<QGraphicsScene::ItemIndexMethod
>(lqtL_toenum(L
, 2, "QGraphicsScene::ItemIndexMethod"));
520 __lua__obj
->QGraphicsScene::setItemIndexMethod(arg1
);
523 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__hasFocus (lua_State
*L
) {
524 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
526 lua_pushstring(L
, "trying to reference deleted pointer");
530 bool ret
= __lua__obj
->QGraphicsScene::hasFocus();
531 lua_pushboolean(L
, ret
);
534 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__bspTreeDepth (lua_State
*L
) {
535 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
537 lua_pushstring(L
, "trying to reference deleted pointer");
541 int ret
= __lua__obj
->QGraphicsScene::bspTreeDepth();
542 lua_pushinteger(L
, ret
);
545 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__collidingItems (lua_State
*L
) {
546 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
548 lua_pushstring(L
, "trying to reference deleted pointer");
552 const QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
553 Qt::ItemSelectionMode arg2
= lqtL_isenum(L
, 3, "Qt::ItemSelectionMode")?static_cast<Qt::ItemSelectionMode
>(lqtL_toenum(L
, 3, "Qt::ItemSelectionMode")):Qt::IntersectsItemShape
;
554 QList
<QGraphicsItem
*> ret
= __lua__obj
->QGraphicsScene::collidingItems(arg1
, arg2
);
555 lqtL_passudata(L
, new QList
<QGraphicsItem
*>(ret
), "QList<QGraphicsItem*>*");
558 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__height (lua_State
*L
) {
559 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
561 lua_pushstring(L
, "trying to reference deleted pointer");
565 double ret
= __lua__obj
->QGraphicsScene::height();
566 lua_pushnumber(L
, ret
);
569 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addEllipse__OverloadedVersion__1 (lua_State
*L
) {
570 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
572 lua_pushstring(L
, "trying to reference deleted pointer");
576 const QRectF
& arg1
= **static_cast<QRectF
**>(lqtL_checkudata(L
, 2, "QRectF*"));
577 const QPen
& arg2
= lqtL_testudata(L
, 3, "QPen*")?**static_cast<QPen
**>(lqtL_checkudata(L
, 3, "QPen*")):QPen();
578 const QBrush
& arg3
= lqtL_testudata(L
, 4, "QBrush*")?**static_cast<QBrush
**>(lqtL_checkudata(L
, 4, "QBrush*")):QBrush();
579 QGraphicsEllipseItem
* ret
= __lua__obj
->QGraphicsScene::addEllipse(arg1
, arg2
, arg3
);
580 lqtL_pushudata(L
, ret
, "QGraphicsEllipseItem*");
583 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addEllipse__OverloadedVersion__2 (lua_State
*L
) {
584 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
586 lua_pushstring(L
, "trying to reference deleted pointer");
590 double arg1
= lua_tonumber(L
, 2);
591 double arg2
= lua_tonumber(L
, 3);
592 double arg3
= lua_tonumber(L
, 4);
593 double arg4
= lua_tonumber(L
, 5);
594 const QPen
& arg5
= lqtL_testudata(L
, 6, "QPen*")?**static_cast<QPen
**>(lqtL_checkudata(L
, 6, "QPen*")):QPen();
595 const QBrush
& arg6
= lqtL_testudata(L
, 7, "QBrush*")?**static_cast<QBrush
**>(lqtL_checkudata(L
, 7, "QBrush*")):QBrush();
596 QGraphicsEllipseItem
* ret
= __lua__obj
->QGraphicsScene::addEllipse(arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
597 lqtL_pushudata(L
, ret
, "QGraphicsEllipseItem*");
600 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addEllipse (lua_State
*L
) {
602 const int premium
= 11+lua_gettop(L
);
604 score
[1] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
605 if (lqtL_testudata(L
, 2, "QRectF*")) {
608 score
[1] += premium
-1; // table: 0x112c720;
610 score
[1] -= premium
*premium
;
612 if (lqtL_testudata(L
, 3, "QPen*")) {
615 score
[1] += premium
-1; // table: 0x112c160;
617 score
[1] -= premium
*premium
;
619 if (lqtL_testudata(L
, 4, "QBrush*")) {
622 score
[1] += premium
-1; // table: 0x112cc80;
624 score
[1] -= premium
*premium
;
627 score
[2] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
628 if (lua_isnumber(L
, 2)) {
631 score
[2] += premium
-1; // table: 0x1134f50;
633 score
[2] -= premium
*premium
;
635 if (lua_isnumber(L
, 3)) {
638 score
[2] += premium
-1; // table: 0x1135470;
640 score
[2] -= premium
*premium
;
642 if (lua_isnumber(L
, 4)) {
645 score
[2] += premium
-1; // table: 0x1135820;
647 score
[2] -= premium
*premium
;
649 if (lua_isnumber(L
, 5)) {
652 score
[2] += premium
-1; // table: 0x11357c0;
654 score
[2] -= premium
*premium
;
656 if (lqtL_testudata(L
, 6, "QPen*")) {
659 score
[2] += premium
-1; // table: 0x1135ff0;
661 score
[2] -= premium
*premium
;
663 if (lqtL_testudata(L
, 7, "QBrush*")) {
666 score
[2] += premium
-1; // table: 0x1135ba0;
668 score
[2] -= premium
*premium
;
671 for (int i
=1;i
<=2;i
++) {
672 if (score
[best
] < score
[i
]) { best
= i
; }
675 case 1: return __LuaWrapCall__addEllipse__OverloadedVersion__1(L
); break;
676 case 2: return __LuaWrapCall__addEllipse__OverloadedVersion__2(L
); break;
678 lua_pushstring(L
, "no overload of function __LuaWrapCall__addEllipse matching arguments");
682 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addSimpleText (lua_State
*L
) {
683 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
685 lua_pushstring(L
, "trying to reference deleted pointer");
689 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
690 const QFont
& arg2
= lqtL_testudata(L
, 3, "QFont*")?**static_cast<QFont
**>(lqtL_checkudata(L
, 3, "QFont*")):QFont();
691 QGraphicsSimpleTextItem
* ret
= __lua__obj
->QGraphicsScene::addSimpleText(arg1
, arg2
);
692 lqtL_pushudata(L
, ret
, "QGraphicsSimpleTextItem*");
695 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setSceneRect__OverloadedVersion__1 (lua_State
*L
) {
696 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
698 lua_pushstring(L
, "trying to reference deleted pointer");
702 const QRectF
& arg1
= **static_cast<QRectF
**>(lqtL_checkudata(L
, 2, "QRectF*"));
703 __lua__obj
->QGraphicsScene::setSceneRect(arg1
);
706 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setSceneRect__OverloadedVersion__2 (lua_State
*L
) {
707 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
709 lua_pushstring(L
, "trying to reference deleted pointer");
713 double arg1
= lua_tonumber(L
, 2);
714 double arg2
= lua_tonumber(L
, 3);
715 double arg3
= lua_tonumber(L
, 4);
716 double arg4
= lua_tonumber(L
, 5);
717 __lua__obj
->QGraphicsScene::setSceneRect(arg1
, arg2
, arg3
, arg4
);
720 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setSceneRect (lua_State
*L
) {
722 const int premium
= 11+lua_gettop(L
);
724 score
[1] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
725 if (lqtL_testudata(L
, 2, "QRectF*")) {
728 score
[1] += premium
-1; // table: 0x1118e20;
730 score
[1] -= premium
*premium
;
733 score
[2] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
734 if (lua_isnumber(L
, 2)) {
737 score
[2] += premium
-1; // table: 0x1119870;
739 score
[2] -= premium
*premium
;
741 if (lua_isnumber(L
, 3)) {
744 score
[2] += premium
-1; // table: 0x1119d90;
746 score
[2] -= premium
*premium
;
748 if (lua_isnumber(L
, 4)) {
751 score
[2] += premium
-1; // table: 0x111a140;
753 score
[2] -= premium
*premium
;
755 if (lua_isnumber(L
, 5)) {
758 score
[2] += premium
-1; // table: 0x111a0e0;
760 score
[2] -= premium
*premium
;
763 for (int i
=1;i
<=2;i
++) {
764 if (score
[best
] < score
[i
]) { best
= i
; }
767 case 1: return __LuaWrapCall__setSceneRect__OverloadedVersion__1(L
); break;
768 case 2: return __LuaWrapCall__setSceneRect__OverloadedVersion__2(L
); break;
770 lua_pushstring(L
, "no overload of function __LuaWrapCall__setSceneRect matching arguments");
774 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__destroyItemGroup (lua_State
*L
) {
775 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
777 lua_pushstring(L
, "trying to reference deleted pointer");
781 QGraphicsItemGroup
* arg1
= *static_cast<QGraphicsItemGroup
**>(lqtL_checkudata(L
, 2, "QGraphicsItemGroup*"));
782 __lua__obj
->QGraphicsScene::destroyItemGroup(arg1
);
785 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__createItemGroup (lua_State
*L
) {
786 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
788 lua_pushstring(L
, "trying to reference deleted pointer");
792 const QList
<QGraphicsItem
*>& arg1
= **static_cast<QList
<QGraphicsItem
*>**>(lqtL_checkudata(L
, 2, "QList<QGraphicsItem*>*"));
793 QGraphicsItemGroup
* ret
= __lua__obj
->QGraphicsScene::createItemGroup(arg1
);
794 lqtL_pushudata(L
, ret
, "QGraphicsItemGroup*");
797 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__invalidate__OverloadedVersion__1 (lua_State
*L
) {
798 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
800 lua_pushstring(L
, "trying to reference deleted pointer");
804 double arg1
= lua_tonumber(L
, 2);
805 double arg2
= lua_tonumber(L
, 3);
806 double arg3
= lua_tonumber(L
, 4);
807 double arg4
= lua_tonumber(L
, 5);
808 QFlags
<QGraphicsScene::SceneLayer
> arg5
= lqtL_testudata(L
, 6, "QFlags<QGraphicsScene::SceneLayer>*")?**static_cast<QFlags
<QGraphicsScene::SceneLayer
>**>(lqtL_checkudata(L
, 6, "QFlags<QGraphicsScene::SceneLayer>*")):AllLayers
;
809 __lua__obj
->QGraphicsScene::invalidate(arg1
, arg2
, arg3
, arg4
, arg5
);
812 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__invalidate__OverloadedVersion__2 (lua_State
*L
) {
813 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
815 lua_pushstring(L
, "trying to reference deleted pointer");
819 const QRectF
& arg1
= lqtL_testudata(L
, 2, "QRectF*")?**static_cast<QRectF
**>(lqtL_checkudata(L
, 2, "QRectF*")):QRectF();
820 QFlags
<QGraphicsScene::SceneLayer
> arg2
= lqtL_testudata(L
, 3, "QFlags<QGraphicsScene::SceneLayer>*")?**static_cast<QFlags
<QGraphicsScene::SceneLayer
>**>(lqtL_checkudata(L
, 3, "QFlags<QGraphicsScene::SceneLayer>*")):AllLayers
;
821 __lua__obj
->QGraphicsScene::invalidate(arg1
, arg2
);
824 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__invalidate (lua_State
*L
) {
826 const int premium
= 11+lua_gettop(L
);
828 score
[1] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
829 if (lua_isnumber(L
, 2)) {
832 score
[1] += premium
-1; // table: 0x1143740;
834 score
[1] -= premium
*premium
;
836 if (lua_isnumber(L
, 3)) {
839 score
[1] += premium
-1; // table: 0x1143c60;
841 score
[1] -= premium
*premium
;
843 if (lua_isnumber(L
, 4)) {
846 score
[1] += premium
-1; // table: 0x1144010;
848 score
[1] -= premium
*premium
;
850 if (lua_isnumber(L
, 5)) {
853 score
[1] += premium
-1; // table: 0x1143fb0;
855 score
[1] -= premium
*premium
;
857 if (lqtL_testudata(L
, 6, "QFlags<QGraphicsScene::SceneLayer>*")) {
860 score
[1] += premium
-1; // table: 0x11447e0;
862 score
[1] -= premium
*premium
;
865 score
[2] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
866 if (lqtL_testudata(L
, 2, "QRectF*")) {
869 score
[2] += premium
-1; // table: 0x1145be0;
871 score
[2] -= premium
*premium
;
873 if (lqtL_testudata(L
, 3, "QFlags<QGraphicsScene::SceneLayer>*")) {
876 score
[2] += premium
-1; // table: 0x1145690;
878 score
[2] -= premium
*premium
;
881 for (int i
=1;i
<=2;i
++) {
882 if (score
[best
] < score
[i
]) { best
= i
; }
885 case 1: return __LuaWrapCall__invalidate__OverloadedVersion__1(L
); break;
886 case 2: return __LuaWrapCall__invalidate__OverloadedVersion__2(L
); break;
888 lua_pushstring(L
, "no overload of function __LuaWrapCall__invalidate matching arguments");
892 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addItem (lua_State
*L
) {
893 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
895 lua_pushstring(L
, "trying to reference deleted pointer");
899 QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
900 __lua__obj
->QGraphicsScene::addItem(arg1
);
903 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setFocusItem (lua_State
*L
) {
904 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
906 lua_pushstring(L
, "trying to reference deleted pointer");
910 QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
911 Qt::FocusReason arg2
= lqtL_isenum(L
, 3, "Qt::FocusReason")?static_cast<Qt::FocusReason
>(lqtL_toenum(L
, 3, "Qt::FocusReason")):Qt::OtherFocusReason
;
912 __lua__obj
->QGraphicsScene::setFocusItem(arg1
, arg2
);
915 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setFocus (lua_State
*L
) {
916 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
918 lua_pushstring(L
, "trying to reference deleted pointer");
922 Qt::FocusReason arg1
= lqtL_isenum(L
, 2, "Qt::FocusReason")?static_cast<Qt::FocusReason
>(lqtL_toenum(L
, 2, "Qt::FocusReason")):Qt::OtherFocusReason
;
923 __lua__obj
->QGraphicsScene::setFocus(arg1
);
926 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__items__OverloadedVersion__1 (lua_State
*L
) {
927 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
929 lua_pushstring(L
, "trying to reference deleted pointer");
933 QList
<QGraphicsItem
*> ret
= __lua__obj
->QGraphicsScene::items();
934 lqtL_passudata(L
, new QList
<QGraphicsItem
*>(ret
), "QList<QGraphicsItem*>*");
937 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__items__OverloadedVersion__2 (lua_State
*L
) {
938 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
940 lua_pushstring(L
, "trying to reference deleted pointer");
944 const QPointF
& arg1
= **static_cast<QPointF
**>(lqtL_checkudata(L
, 2, "QPointF*"));
945 QList
<QGraphicsItem
*> ret
= __lua__obj
->QGraphicsScene::items(arg1
);
946 lqtL_passudata(L
, new QList
<QGraphicsItem
*>(ret
), "QList<QGraphicsItem*>*");
949 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__items__OverloadedVersion__3 (lua_State
*L
) {
950 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
952 lua_pushstring(L
, "trying to reference deleted pointer");
956 const QRectF
& arg1
= **static_cast<QRectF
**>(lqtL_checkudata(L
, 2, "QRectF*"));
957 Qt::ItemSelectionMode arg2
= lqtL_isenum(L
, 3, "Qt::ItemSelectionMode")?static_cast<Qt::ItemSelectionMode
>(lqtL_toenum(L
, 3, "Qt::ItemSelectionMode")):Qt::IntersectsItemShape
;
958 QList
<QGraphicsItem
*> ret
= __lua__obj
->QGraphicsScene::items(arg1
, arg2
);
959 lqtL_passudata(L
, new QList
<QGraphicsItem
*>(ret
), "QList<QGraphicsItem*>*");
962 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__items__OverloadedVersion__4 (lua_State
*L
) {
963 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
965 lua_pushstring(L
, "trying to reference deleted pointer");
969 const QPolygonF
& arg1
= **static_cast<QPolygonF
**>(lqtL_checkudata(L
, 2, "QPolygonF*"));
970 Qt::ItemSelectionMode arg2
= lqtL_isenum(L
, 3, "Qt::ItemSelectionMode")?static_cast<Qt::ItemSelectionMode
>(lqtL_toenum(L
, 3, "Qt::ItemSelectionMode")):Qt::IntersectsItemShape
;
971 QList
<QGraphicsItem
*> ret
= __lua__obj
->QGraphicsScene::items(arg1
, arg2
);
972 lqtL_passudata(L
, new QList
<QGraphicsItem
*>(ret
), "QList<QGraphicsItem*>*");
975 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__items__OverloadedVersion__5 (lua_State
*L
) {
976 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
978 lua_pushstring(L
, "trying to reference deleted pointer");
982 const QPainterPath
& arg1
= **static_cast<QPainterPath
**>(lqtL_checkudata(L
, 2, "QPainterPath*"));
983 Qt::ItemSelectionMode arg2
= lqtL_isenum(L
, 3, "Qt::ItemSelectionMode")?static_cast<Qt::ItemSelectionMode
>(lqtL_toenum(L
, 3, "Qt::ItemSelectionMode")):Qt::IntersectsItemShape
;
984 QList
<QGraphicsItem
*> ret
= __lua__obj
->QGraphicsScene::items(arg1
, arg2
);
985 lqtL_passudata(L
, new QList
<QGraphicsItem
*>(ret
), "QList<QGraphicsItem*>*");
988 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__items__OverloadedVersion__6 (lua_State
*L
) {
989 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
991 lua_pushstring(L
, "trying to reference deleted pointer");
995 double arg1
= lua_tonumber(L
, 2);
996 double arg2
= lua_tonumber(L
, 3);
997 double arg3
= lua_tonumber(L
, 4);
998 double arg4
= lua_tonumber(L
, 5);
999 Qt::ItemSelectionMode arg5
= lqtL_isenum(L
, 6, "Qt::ItemSelectionMode")?static_cast<Qt::ItemSelectionMode
>(lqtL_toenum(L
, 6, "Qt::ItemSelectionMode")):Qt::IntersectsItemShape
;
1000 QList
<QGraphicsItem
*> ret
= __lua__obj
->QGraphicsScene::items(arg1
, arg2
, arg3
, arg4
, arg5
);
1001 lqtL_passudata(L
, new QList
<QGraphicsItem
*>(ret
), "QList<QGraphicsItem*>*");
1004 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__items (lua_State
*L
) {
1006 const int premium
= 11+lua_gettop(L
);
1008 score
[1] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
1010 score
[2] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
1011 if (lqtL_testudata(L
, 2, "QPointF*")) {
1012 score
[2] += premium
;
1014 score
[2] += premium
-1; // table: 0x111fb00;
1016 score
[2] -= premium
*premium
;
1019 score
[3] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
1020 if (lqtL_testudata(L
, 2, "QRectF*")) {
1021 score
[3] += premium
;
1023 score
[3] += premium
-1; // table: 0x11205c0;
1025 score
[3] -= premium
*premium
;
1027 if (lqtL_isenum(L
, 3, "Qt::ItemSelectionMode")) {
1028 score
[3] += premium
;
1030 score
[3] += premium
-1; // table: 0x1120020;
1032 score
[3] -= premium
*premium
;
1035 score
[4] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
1036 if (lqtL_testudata(L
, 2, "QPolygonF*")) {
1037 score
[4] += premium
;
1039 score
[4] += premium
-1; // table: 0x1121550;
1041 score
[4] -= premium
*premium
;
1043 if (lqtL_isenum(L
, 3, "Qt::ItemSelectionMode")) {
1044 score
[4] += premium
;
1046 score
[4] += premium
-1; // table: 0x11211f0;
1048 score
[4] -= premium
*premium
;
1051 score
[5] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
1052 if (lqtL_testudata(L
, 2, "QPainterPath*")) {
1053 score
[5] += premium
;
1055 score
[5] += premium
-1; // table: 0x1122470;
1057 score
[5] -= premium
*premium
;
1059 if (lqtL_isenum(L
, 3, "Qt::ItemSelectionMode")) {
1060 score
[5] += premium
;
1062 score
[5] += premium
-1; // table: 0x1121ef0;
1064 score
[5] -= premium
*premium
;
1067 score
[6] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
1068 if (lua_isnumber(L
, 2)) {
1069 score
[6] += premium
;
1071 score
[6] += premium
-1; // table: 0x1124e50;
1073 score
[6] -= premium
*premium
;
1075 if (lua_isnumber(L
, 3)) {
1076 score
[6] += premium
;
1078 score
[6] += premium
-1; // table: 0x1125380;
1080 score
[6] -= premium
*premium
;
1082 if (lua_isnumber(L
, 4)) {
1083 score
[6] += premium
;
1085 score
[6] += premium
-1; // table: 0x1125730;
1087 score
[6] -= premium
*premium
;
1089 if (lua_isnumber(L
, 5)) {
1090 score
[6] += premium
;
1092 score
[6] += premium
-1; // table: 0x11256d0;
1094 score
[6] -= premium
*premium
;
1096 if (lqtL_isenum(L
, 6, "Qt::ItemSelectionMode")) {
1097 score
[6] += premium
;
1099 score
[6] += premium
-1; // table: 0x1125f10;
1101 score
[6] -= premium
*premium
;
1104 for (int i
=1;i
<=6;i
++) {
1105 if (score
[best
] < score
[i
]) { best
= i
; }
1108 case 1: return __LuaWrapCall__items__OverloadedVersion__1(L
); break;
1109 case 2: return __LuaWrapCall__items__OverloadedVersion__2(L
); break;
1110 case 3: return __LuaWrapCall__items__OverloadedVersion__3(L
); break;
1111 case 4: return __LuaWrapCall__items__OverloadedVersion__4(L
); break;
1112 case 5: return __LuaWrapCall__items__OverloadedVersion__5(L
); break;
1113 case 6: return __LuaWrapCall__items__OverloadedVersion__6(L
); break;
1115 lua_pushstring(L
, "no overload of function __LuaWrapCall__items matching arguments");
1119 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addText (lua_State
*L
) {
1120 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1121 if (__lua__obj
==0) {
1122 lua_pushstring(L
, "trying to reference deleted pointer");
1126 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
1127 const QFont
& arg2
= lqtL_testudata(L
, 3, "QFont*")?**static_cast<QFont
**>(lqtL_checkudata(L
, 3, "QFont*")):QFont();
1128 QGraphicsTextItem
* ret
= __lua__obj
->QGraphicsScene::addText(arg1
, arg2
);
1129 lqtL_pushudata(L
, ret
, "QGraphicsTextItem*");
1132 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__metaObject (lua_State
*L
) {
1133 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1134 if (__lua__obj
==0) {
1135 lua_pushstring(L
, "trying to reference deleted pointer");
1139 const QMetaObject
* ret
= __lua__obj
->QGraphicsScene::metaObject();
1140 lqtL_pushudata(L
, ret
, "QMetaObject*");
1143 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__itemIndexMethod (lua_State
*L
) {
1144 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1145 if (__lua__obj
==0) {
1146 lua_pushstring(L
, "trying to reference deleted pointer");
1150 QGraphicsScene::ItemIndexMethod ret
= __lua__obj
->QGraphicsScene::itemIndexMethod();
1151 lqtL_pushenum(L
, ret
, "QGraphicsScene::ItemIndexMethod");
1154 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__backgroundBrush (lua_State
*L
) {
1155 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1156 if (__lua__obj
==0) {
1157 lua_pushstring(L
, "trying to reference deleted pointer");
1161 QBrush ret
= __lua__obj
->QGraphicsScene::backgroundBrush();
1162 lqtL_passudata(L
, new QBrush(ret
), "QBrush*");
1165 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__new__OverloadedVersion__2 (lua_State
*L
) {
1166 QObject
* arg1
= lqtL_testudata(L
, 1, "QObject*")?*static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*")):static_cast< QObject
* >(0);
1167 QGraphicsScene
* ret
= new LuaBinder
< QGraphicsScene
>(L
, arg1
);
1168 lqtL_passudata(L
, ret
, "QGraphicsScene*");
1171 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__new__OverloadedVersion__3 (lua_State
*L
) {
1172 const QRectF
& arg1
= **static_cast<QRectF
**>(lqtL_checkudata(L
, 1, "QRectF*"));
1173 QObject
* arg2
= lqtL_testudata(L
, 2, "QObject*")?*static_cast<QObject
**>(lqtL_checkudata(L
, 2, "QObject*")):static_cast< QObject
* >(0);
1174 QGraphicsScene
* ret
= new LuaBinder
< QGraphicsScene
>(L
, arg1
, arg2
);
1175 lqtL_passudata(L
, ret
, "QGraphicsScene*");
1178 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__new__OverloadedVersion__4 (lua_State
*L
) {
1179 double arg1
= lua_tonumber(L
, 1);
1180 double arg2
= lua_tonumber(L
, 2);
1181 double arg3
= lua_tonumber(L
, 3);
1182 double arg4
= lua_tonumber(L
, 4);
1183 QObject
* arg5
= lqtL_testudata(L
, 5, "QObject*")?*static_cast<QObject
**>(lqtL_checkudata(L
, 5, "QObject*")):static_cast< QObject
* >(0);
1184 QGraphicsScene
* ret
= new LuaBinder
< QGraphicsScene
>(L
, arg1
, arg2
, arg3
, arg4
, arg5
);
1185 lqtL_passudata(L
, ret
, "QGraphicsScene*");
1188 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__new (lua_State
*L
) {
1190 const int premium
= 11+lua_gettop(L
);
1192 if (lqtL_testudata(L
, 1, "QObject*")) {
1193 score
[2] += premium
;
1195 score
[2] += premium
-1; // table: 0x1113f50;
1197 score
[2] -= premium
*premium
;
1200 if (lqtL_testudata(L
, 1, "QRectF*")) {
1201 score
[3] += premium
;
1203 score
[3] += premium
-1; // table: 0x11149c0;
1205 score
[3] -= premium
*premium
;
1207 if (lqtL_testudata(L
, 2, "QObject*")) {
1208 score
[3] += premium
;
1210 score
[3] += premium
-1; // table: 0x1114460;
1212 score
[3] -= premium
*premium
;
1215 if (lua_isnumber(L
, 1)) {
1216 score
[4] += premium
;
1218 score
[4] += premium
-1; // table: 0x1115870;
1220 score
[4] -= premium
*premium
;
1222 if (lua_isnumber(L
, 2)) {
1223 score
[4] += premium
;
1225 score
[4] += premium
-1; // table: 0x1115d90;
1227 score
[4] -= premium
*premium
;
1229 if (lua_isnumber(L
, 3)) {
1230 score
[4] += premium
;
1232 score
[4] += premium
-1; // table: 0x1115d30;
1234 score
[4] -= premium
*premium
;
1236 if (lua_isnumber(L
, 4)) {
1237 score
[4] += premium
;
1239 score
[4] += premium
-1; // table: 0x1116580;
1241 score
[4] -= premium
*premium
;
1243 if (lqtL_testudata(L
, 5, "QObject*")) {
1244 score
[4] += premium
;
1246 score
[4] += premium
-1; // table: 0x1116940;
1248 score
[4] -= premium
*premium
;
1251 for (int i
=1;i
<=4;i
++) {
1252 if (score
[best
] < score
[i
]) { best
= i
; }
1255 case 2: return __LuaWrapCall__new__OverloadedVersion__2(L
); break;
1256 case 3: return __LuaWrapCall__new__OverloadedVersion__3(L
); break;
1257 case 4: return __LuaWrapCall__new__OverloadedVersion__4(L
); break;
1259 lua_pushstring(L
, "no overload of function __LuaWrapCall__new matching arguments");
1263 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__inputMethodQuery (lua_State
*L
) {
1264 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1265 if (__lua__obj
==0) {
1266 lua_pushstring(L
, "trying to reference deleted pointer");
1270 Qt::InputMethodQuery arg1
= static_cast<Qt::InputMethodQuery
>(lqtL_toenum(L
, 2, "Qt::InputMethodQuery"));
1271 QVariant ret
= __lua__obj
->QGraphicsScene::inputMethodQuery(arg1
);
1272 lqtL_passudata(L
, new QVariant(ret
), "QVariant*");
1275 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__delete (lua_State
*L
) {
1276 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1277 if (__lua__obj
==0) {
1278 lua_pushstring(L
, "trying to reference deleted pointer");
1286 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addPath (lua_State
*L
) {
1287 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1288 if (__lua__obj
==0) {
1289 lua_pushstring(L
, "trying to reference deleted pointer");
1293 const QPainterPath
& arg1
= **static_cast<QPainterPath
**>(lqtL_checkudata(L
, 2, "QPainterPath*"));
1294 const QPen
& arg2
= lqtL_testudata(L
, 3, "QPen*")?**static_cast<QPen
**>(lqtL_checkudata(L
, 3, "QPen*")):QPen();
1295 const QBrush
& arg3
= lqtL_testudata(L
, 4, "QBrush*")?**static_cast<QBrush
**>(lqtL_checkudata(L
, 4, "QBrush*")):QBrush();
1296 QGraphicsPathItem
* ret
= __lua__obj
->QGraphicsScene::addPath(arg1
, arg2
, arg3
);
1297 lqtL_pushudata(L
, ret
, "QGraphicsPathItem*");
1300 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__foregroundBrush (lua_State
*L
) {
1301 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1302 if (__lua__obj
==0) {
1303 lua_pushstring(L
, "trying to reference deleted pointer");
1307 QBrush ret
= __lua__obj
->QGraphicsScene::foregroundBrush();
1308 lqtL_passudata(L
, new QBrush(ret
), "QBrush*");
1311 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__selectedItems (lua_State
*L
) {
1312 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1313 if (__lua__obj
==0) {
1314 lua_pushstring(L
, "trying to reference deleted pointer");
1318 QList
<QGraphicsItem
*> ret
= __lua__obj
->QGraphicsScene::selectedItems();
1319 lqtL_passudata(L
, new QList
<QGraphicsItem
*>(ret
), "QList<QGraphicsItem*>*");
1322 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__mouseGrabberItem (lua_State
*L
) {
1323 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1324 if (__lua__obj
==0) {
1325 lua_pushstring(L
, "trying to reference deleted pointer");
1329 QGraphicsItem
* ret
= __lua__obj
->QGraphicsScene::mouseGrabberItem();
1330 lqtL_pushudata(L
, ret
, "QGraphicsItem*");
1333 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setBspTreeDepth (lua_State
*L
) {
1334 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1335 if (__lua__obj
==0) {
1336 lua_pushstring(L
, "trying to reference deleted pointer");
1340 int arg1
= lua_tointeger(L
, 2);
1341 __lua__obj
->QGraphicsScene::setBspTreeDepth(arg1
);
1344 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__width (lua_State
*L
) {
1345 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1346 if (__lua__obj
==0) {
1347 lua_pushstring(L
, "trying to reference deleted pointer");
1351 double ret
= __lua__obj
->QGraphicsScene::width();
1352 lua_pushnumber(L
, ret
);
1355 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setForegroundBrush (lua_State
*L
) {
1356 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1357 if (__lua__obj
==0) {
1358 lua_pushstring(L
, "trying to reference deleted pointer");
1362 const QBrush
& arg1
= **static_cast<QBrush
**>(lqtL_checkudata(L
, 2, "QBrush*"));
1363 __lua__obj
->QGraphicsScene::setForegroundBrush(arg1
);
1366 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__itemAt__OverloadedVersion__1 (lua_State
*L
) {
1367 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1368 if (__lua__obj
==0) {
1369 lua_pushstring(L
, "trying to reference deleted pointer");
1373 const QPointF
& arg1
= **static_cast<QPointF
**>(lqtL_checkudata(L
, 2, "QPointF*"));
1374 QGraphicsItem
* ret
= __lua__obj
->QGraphicsScene::itemAt(arg1
);
1375 lqtL_pushudata(L
, ret
, "QGraphicsItem*");
1378 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__itemAt__OverloadedVersion__2 (lua_State
*L
) {
1379 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1380 if (__lua__obj
==0) {
1381 lua_pushstring(L
, "trying to reference deleted pointer");
1385 double arg1
= lua_tonumber(L
, 2);
1386 double arg2
= lua_tonumber(L
, 3);
1387 QGraphicsItem
* ret
= __lua__obj
->QGraphicsScene::itemAt(arg1
, arg2
);
1388 lqtL_pushudata(L
, ret
, "QGraphicsItem*");
1391 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__itemAt (lua_State
*L
) {
1393 const int premium
= 11+lua_gettop(L
);
1395 score
[1] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
1396 if (lqtL_testudata(L
, 2, "QPointF*")) {
1397 score
[1] += premium
;
1399 score
[1] += premium
-1; // table: 0x1124350;
1401 score
[1] -= premium
*premium
;
1404 score
[2] += lqtL_testudata(L
, 1, "QGraphicsScene*")?premium
:-premium
*premium
;
1405 if (lua_isnumber(L
, 2)) {
1406 score
[2] += premium
;
1408 score
[2] += premium
-1; // table: 0x1126840;
1410 score
[2] -= premium
*premium
;
1412 if (lua_isnumber(L
, 3)) {
1413 score
[2] += premium
;
1415 score
[2] += premium
-1; // table: 0x1126d50;
1417 score
[2] -= premium
*premium
;
1420 for (int i
=1;i
<=2;i
++) {
1421 if (score
[best
] < score
[i
]) { best
= i
; }
1424 case 1: return __LuaWrapCall__itemAt__OverloadedVersion__1(L
); break;
1425 case 2: return __LuaWrapCall__itemAt__OverloadedVersion__2(L
); break;
1427 lua_pushstring(L
, "no overload of function __LuaWrapCall__itemAt matching arguments");
1431 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setBackgroundBrush (lua_State
*L
) {
1432 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1433 if (__lua__obj
==0) {
1434 lua_pushstring(L
, "trying to reference deleted pointer");
1438 const QBrush
& arg1
= **static_cast<QBrush
**>(lqtL_checkudata(L
, 2, "QBrush*"));
1439 __lua__obj
->QGraphicsScene::setBackgroundBrush(arg1
);
1442 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State
*L
) {
1443 const char * arg1
= lua_tostring(L
, 1);
1444 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
1445 QString ret
= QGraphicsScene::tr(arg1
, arg2
);
1446 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
1449 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State
*L
) {
1450 const char * arg1
= lua_tostring(L
, 1);
1451 const char * arg2
= lua_tostring(L
, 2);
1452 int arg3
= lua_tointeger(L
, 3);
1453 QString ret
= QGraphicsScene::tr(arg1
, arg2
, arg3
);
1454 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
1457 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__tr (lua_State
*L
) {
1459 const int premium
= 11+lua_gettop(L
);
1461 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
1462 score
[1] += premium
;
1464 score
[1] += premium
-1; // table: 0x110f2d0;
1466 score
[1] -= premium
*premium
;
1468 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
1469 score
[1] += premium
;
1471 score
[1] += premium
-1; // table: 0x110f030;
1473 score
[1] -= premium
*premium
;
1476 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
1477 score
[2] += premium
;
1479 score
[2] += premium
-1; // table: 0x1110d40;
1481 score
[2] -= premium
*premium
;
1483 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
1484 score
[2] += premium
;
1486 score
[2] += premium
-1; // table: 0x1111230;
1488 score
[2] -= premium
*premium
;
1490 if (lua_isnumber(L
, 3)) {
1491 score
[2] += premium
;
1493 score
[2] += premium
-1; // table: 0x11115e0;
1495 score
[2] -= premium
*premium
;
1498 for (int i
=1;i
<=2;i
++) {
1499 if (score
[best
] < score
[i
]) { best
= i
; }
1502 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L
); break;
1503 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L
); break;
1505 lua_pushstring(L
, "no overload of function __LuaWrapCall__tr matching arguments");
1509 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__views (lua_State
*L
) {
1510 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1511 if (__lua__obj
==0) {
1512 lua_pushstring(L
, "trying to reference deleted pointer");
1516 QList
<QGraphicsView
*> ret
= __lua__obj
->QGraphicsScene::views();
1517 lqtL_passudata(L
, new QList
<QGraphicsView
*>(ret
), "QList<QGraphicsView*>*");
1520 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__removeItem (lua_State
*L
) {
1521 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1522 if (__lua__obj
==0) {
1523 lua_pushstring(L
, "trying to reference deleted pointer");
1527 QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
1528 __lua__obj
->QGraphicsScene::removeItem(arg1
);
1531 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addPolygon (lua_State
*L
) {
1532 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1533 if (__lua__obj
==0) {
1534 lua_pushstring(L
, "trying to reference deleted pointer");
1538 const QPolygonF
& arg1
= **static_cast<QPolygonF
**>(lqtL_checkudata(L
, 2, "QPolygonF*"));
1539 const QPen
& arg2
= lqtL_testudata(L
, 3, "QPen*")?**static_cast<QPen
**>(lqtL_checkudata(L
, 3, "QPen*")):QPen();
1540 const QBrush
& arg3
= lqtL_testudata(L
, 4, "QBrush*")?**static_cast<QBrush
**>(lqtL_checkudata(L
, 4, "QBrush*")):QBrush();
1541 QGraphicsPolygonItem
* ret
= __lua__obj
->QGraphicsScene::addPolygon(arg1
, arg2
, arg3
);
1542 lqtL_pushudata(L
, ret
, "QGraphicsPolygonItem*");
1545 int LuaBinder
< QGraphicsScene
>::__LuaWrapCall__clearFocus (lua_State
*L
) {
1546 QGraphicsScene
*& __lua__obj
= *static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 1, "QGraphicsScene*"));
1547 if (__lua__obj
==0) {
1548 lua_pushstring(L
, "trying to reference deleted pointer");
1552 __lua__obj
->QGraphicsScene::clearFocus();
1555 void LuaBinder
< QGraphicsScene
>::focusInEvent (QFocusEvent
* arg1
) {
1556 bool absorbed
= false;
1557 int oldtop
= lua_gettop(L
);
1558 lqtL_pushudata(L
, this, "QGraphicsScene*");
1559 if (lua_getmetatable(L
, -1)) {
1560 lua_getfield(L
, -1, "focusInEvent");
1566 lqtL_pushudata(L
, arg1
, "QFocusEvent*");
1567 if (lua_isfunction(L
, -1-2)) {
1568 lua_pcall(L
, 1+1, 2, 0);
1569 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1573 lua_settop(L
, oldtop
);
1574 this->QGraphicsScene::focusInEvent(arg1
);
1576 lua_settop(L
, oldtop
);
1578 void LuaBinder
< QGraphicsScene
>::keyPressEvent (QKeyEvent
* arg1
) {
1579 bool absorbed
= false;
1580 int oldtop
= lua_gettop(L
);
1581 lqtL_pushudata(L
, this, "QGraphicsScene*");
1582 if (lua_getmetatable(L
, -1)) {
1583 lua_getfield(L
, -1, "keyPressEvent");
1589 lqtL_pushudata(L
, arg1
, "QKeyEvent*");
1590 if (lua_isfunction(L
, -1-2)) {
1591 lua_pcall(L
, 1+1, 2, 0);
1592 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1596 lua_settop(L
, oldtop
);
1597 this->QGraphicsScene::keyPressEvent(arg1
);
1599 lua_settop(L
, oldtop
);
1601 void LuaBinder
< QGraphicsScene
>::contextMenuEvent (QGraphicsSceneContextMenuEvent
* arg1
) {
1602 bool absorbed
= false;
1603 int oldtop
= lua_gettop(L
);
1604 lqtL_pushudata(L
, this, "QGraphicsScene*");
1605 if (lua_getmetatable(L
, -1)) {
1606 lua_getfield(L
, -1, "contextMenuEvent");
1612 lqtL_pushudata(L
, arg1
, "QGraphicsSceneContextMenuEvent*");
1613 if (lua_isfunction(L
, -1-2)) {
1614 lua_pcall(L
, 1+1, 2, 0);
1615 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1619 lua_settop(L
, oldtop
);
1620 this->QGraphicsScene::contextMenuEvent(arg1
);
1622 lua_settop(L
, oldtop
);
1624 void LuaBinder
< QGraphicsScene
>::focusOutEvent (QFocusEvent
* arg1
) {
1625 bool absorbed
= false;
1626 int oldtop
= lua_gettop(L
);
1627 lqtL_pushudata(L
, this, "QGraphicsScene*");
1628 if (lua_getmetatable(L
, -1)) {
1629 lua_getfield(L
, -1, "focusOutEvent");
1635 lqtL_pushudata(L
, arg1
, "QFocusEvent*");
1636 if (lua_isfunction(L
, -1-2)) {
1637 lua_pcall(L
, 1+1, 2, 0);
1638 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1642 lua_settop(L
, oldtop
);
1643 this->QGraphicsScene::focusOutEvent(arg1
);
1645 lua_settop(L
, oldtop
);
1647 void LuaBinder
< QGraphicsScene
>::drawBackground (QPainter
* arg1
, const QRectF
& arg2
) {
1648 bool absorbed
= false;
1649 int oldtop
= lua_gettop(L
);
1650 lqtL_pushudata(L
, this, "QGraphicsScene*");
1651 if (lua_getmetatable(L
, -1)) {
1652 lua_getfield(L
, -1, "drawBackground");
1658 lqtL_pushudata(L
, arg1
, "QPainter*");
1659 lqtL_pushudata(L
, &(arg2
), "QRectF*");
1660 if (lua_isfunction(L
, -2-2)) {
1661 lua_pcall(L
, 2+1, 2, 0);
1662 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1666 lua_settop(L
, oldtop
);
1667 this->QGraphicsScene::drawBackground(arg1
, arg2
);
1669 lua_settop(L
, oldtop
);
1671 void LuaBinder
< QGraphicsScene
>::mouseDoubleClickEvent (QGraphicsSceneMouseEvent
* arg1
) {
1672 bool absorbed
= false;
1673 int oldtop
= lua_gettop(L
);
1674 lqtL_pushudata(L
, this, "QGraphicsScene*");
1675 if (lua_getmetatable(L
, -1)) {
1676 lua_getfield(L
, -1, "mouseDoubleClickEvent");
1682 lqtL_pushudata(L
, arg1
, "QGraphicsSceneMouseEvent*");
1683 if (lua_isfunction(L
, -1-2)) {
1684 lua_pcall(L
, 1+1, 2, 0);
1685 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1689 lua_settop(L
, oldtop
);
1690 this->QGraphicsScene::mouseDoubleClickEvent(arg1
);
1692 lua_settop(L
, oldtop
);
1694 void LuaBinder
< QGraphicsScene
>::childEvent (QChildEvent
* arg1
) {
1695 bool absorbed
= false;
1696 int oldtop
= lua_gettop(L
);
1697 lqtL_pushudata(L
, this, "QGraphicsScene*");
1698 if (lua_getmetatable(L
, -1)) {
1699 lua_getfield(L
, -1, "childEvent");
1705 lqtL_pushudata(L
, arg1
, "QChildEvent*");
1706 if (lua_isfunction(L
, -1-2)) {
1707 lua_pcall(L
, 1+1, 2, 0);
1708 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1712 lua_settop(L
, oldtop
);
1713 this->QObject::childEvent(arg1
);
1715 lua_settop(L
, oldtop
);
1717 void LuaBinder
< QGraphicsScene
>::disconnectNotify (const char * arg1
) {
1718 bool absorbed
= false;
1719 int oldtop
= lua_gettop(L
);
1720 lqtL_pushudata(L
, this, "QGraphicsScene*");
1721 if (lua_getmetatable(L
, -1)) {
1722 lua_getfield(L
, -1, "disconnectNotify");
1728 lua_pushstring(L
, arg1
);
1729 if (lua_isfunction(L
, -1-2)) {
1730 lua_pcall(L
, 1+1, 2, 0);
1731 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1735 lua_settop(L
, oldtop
);
1736 this->QObject::disconnectNotify(arg1
);
1738 lua_settop(L
, oldtop
);
1740 QVariant LuaBinder
< QGraphicsScene
>::inputMethodQuery (Qt::InputMethodQuery arg1
) const {
1741 bool absorbed
= false;
1742 int oldtop
= lua_gettop(L
);
1743 lqtL_pushudata(L
, this, "QGraphicsScene*");
1744 if (lua_getmetatable(L
, -1)) {
1745 lua_getfield(L
, -1, "inputMethodQuery");
1751 lqtL_pushenum(L
, arg1
, "Qt::InputMethodQuery");
1752 if (lua_isfunction(L
, -1-2)) {
1753 lua_pcall(L
, 1+1, 2, 0);
1754 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1758 lua_settop(L
, oldtop
);
1759 return this->QGraphicsScene::inputMethodQuery(arg1
);
1761 QVariant ret
= **static_cast<QVariant
**>(lqtL_checkudata(L
, -1, "QVariant*"));
1762 lua_settop(L
, oldtop
);
1765 void LuaBinder
< QGraphicsScene
>::connectNotify (const char * arg1
) {
1766 bool absorbed
= false;
1767 int oldtop
= lua_gettop(L
);
1768 lqtL_pushudata(L
, this, "QGraphicsScene*");
1769 if (lua_getmetatable(L
, -1)) {
1770 lua_getfield(L
, -1, "connectNotify");
1776 lua_pushstring(L
, arg1
);
1777 if (lua_isfunction(L
, -1-2)) {
1778 lua_pcall(L
, 1+1, 2, 0);
1779 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1783 lua_settop(L
, oldtop
);
1784 this->QObject::connectNotify(arg1
);
1786 lua_settop(L
, oldtop
);
1788 void LuaBinder
< QGraphicsScene
>::drawForeground (QPainter
* arg1
, const QRectF
& arg2
) {
1789 bool absorbed
= false;
1790 int oldtop
= lua_gettop(L
);
1791 lqtL_pushudata(L
, this, "QGraphicsScene*");
1792 if (lua_getmetatable(L
, -1)) {
1793 lua_getfield(L
, -1, "drawForeground");
1799 lqtL_pushudata(L
, arg1
, "QPainter*");
1800 lqtL_pushudata(L
, &(arg2
), "QRectF*");
1801 if (lua_isfunction(L
, -2-2)) {
1802 lua_pcall(L
, 2+1, 2, 0);
1803 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1807 lua_settop(L
, oldtop
);
1808 this->QGraphicsScene::drawForeground(arg1
, arg2
);
1810 lua_settop(L
, oldtop
);
1812 void LuaBinder
< QGraphicsScene
>::dragLeaveEvent (QGraphicsSceneDragDropEvent
* arg1
) {
1813 bool absorbed
= false;
1814 int oldtop
= lua_gettop(L
);
1815 lqtL_pushudata(L
, this, "QGraphicsScene*");
1816 if (lua_getmetatable(L
, -1)) {
1817 lua_getfield(L
, -1, "dragLeaveEvent");
1823 lqtL_pushudata(L
, arg1
, "QGraphicsSceneDragDropEvent*");
1824 if (lua_isfunction(L
, -1-2)) {
1825 lua_pcall(L
, 1+1, 2, 0);
1826 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1830 lua_settop(L
, oldtop
);
1831 this->QGraphicsScene::dragLeaveEvent(arg1
);
1833 lua_settop(L
, oldtop
);
1835 void LuaBinder
< QGraphicsScene
>::mousePressEvent (QGraphicsSceneMouseEvent
* arg1
) {
1836 bool absorbed
= false;
1837 int oldtop
= lua_gettop(L
);
1838 lqtL_pushudata(L
, this, "QGraphicsScene*");
1839 if (lua_getmetatable(L
, -1)) {
1840 lua_getfield(L
, -1, "mousePressEvent");
1846 lqtL_pushudata(L
, arg1
, "QGraphicsSceneMouseEvent*");
1847 if (lua_isfunction(L
, -1-2)) {
1848 lua_pcall(L
, 1+1, 2, 0);
1849 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1853 lua_settop(L
, oldtop
);
1854 this->QGraphicsScene::mousePressEvent(arg1
);
1856 lua_settop(L
, oldtop
);
1858 void LuaBinder
< QGraphicsScene
>::timerEvent (QTimerEvent
* arg1
) {
1859 bool absorbed
= false;
1860 int oldtop
= lua_gettop(L
);
1861 lqtL_pushudata(L
, this, "QGraphicsScene*");
1862 if (lua_getmetatable(L
, -1)) {
1863 lua_getfield(L
, -1, "timerEvent");
1869 lqtL_pushudata(L
, arg1
, "QTimerEvent*");
1870 if (lua_isfunction(L
, -1-2)) {
1871 lua_pcall(L
, 1+1, 2, 0);
1872 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1876 lua_settop(L
, oldtop
);
1877 this->QObject::timerEvent(arg1
);
1879 lua_settop(L
, oldtop
);
1881 bool LuaBinder
< QGraphicsScene
>::eventFilter (QObject
* arg1
, QEvent
* arg2
) {
1882 bool absorbed
= false;
1883 int oldtop
= lua_gettop(L
);
1884 lqtL_pushudata(L
, this, "QGraphicsScene*");
1885 if (lua_getmetatable(L
, -1)) {
1886 lua_getfield(L
, -1, "eventFilter");
1892 lqtL_pushudata(L
, arg1
, "QObject*");
1893 lqtL_pushudata(L
, arg2
, "QEvent*");
1894 if (lua_isfunction(L
, -2-2)) {
1895 lua_pcall(L
, 2+1, 2, 0);
1896 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1900 lua_settop(L
, oldtop
);
1901 return this->QObject::eventFilter(arg1
, arg2
);
1903 bool ret
= (bool)lua_toboolean(L
, -1);
1904 lua_settop(L
, oldtop
);
1907 void LuaBinder
< QGraphicsScene
>::inputMethodEvent (QInputMethodEvent
* arg1
) {
1908 bool absorbed
= false;
1909 int oldtop
= lua_gettop(L
);
1910 lqtL_pushudata(L
, this, "QGraphicsScene*");
1911 if (lua_getmetatable(L
, -1)) {
1912 lua_getfield(L
, -1, "inputMethodEvent");
1918 lqtL_pushudata(L
, arg1
, "QInputMethodEvent*");
1919 if (lua_isfunction(L
, -1-2)) {
1920 lua_pcall(L
, 1+1, 2, 0);
1921 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1925 lua_settop(L
, oldtop
);
1926 this->QGraphicsScene::inputMethodEvent(arg1
);
1928 lua_settop(L
, oldtop
);
1930 void LuaBinder
< QGraphicsScene
>::dragMoveEvent (QGraphicsSceneDragDropEvent
* arg1
) {
1931 bool absorbed
= false;
1932 int oldtop
= lua_gettop(L
);
1933 lqtL_pushudata(L
, this, "QGraphicsScene*");
1934 if (lua_getmetatable(L
, -1)) {
1935 lua_getfield(L
, -1, "dragMoveEvent");
1941 lqtL_pushudata(L
, arg1
, "QGraphicsSceneDragDropEvent*");
1942 if (lua_isfunction(L
, -1-2)) {
1943 lua_pcall(L
, 1+1, 2, 0);
1944 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1948 lua_settop(L
, oldtop
);
1949 this->QGraphicsScene::dragMoveEvent(arg1
);
1951 lua_settop(L
, oldtop
);
1953 void LuaBinder
< QGraphicsScene
>::drawItems (QPainter
* arg1
, int arg2
, QGraphicsItem
* * arg3
, const QStyleOptionGraphicsItem
* arg4
, QWidget
* arg5
) {
1954 bool absorbed
= false;
1955 int oldtop
= lua_gettop(L
);
1956 lqtL_pushudata(L
, this, "QGraphicsScene*");
1957 if (lua_getmetatable(L
, -1)) {
1958 lua_getfield(L
, -1, "drawItems");
1964 lqtL_pushudata(L
, arg1
, "QPainter*");
1965 lua_pushinteger(L
, arg2
);
1966 lqtL_pushudata(L
, arg3
, "QGraphicsItem **");
1967 lqtL_pushudata(L
, arg4
, "QStyleOptionGraphicsItem*");
1968 lqtL_pushudata(L
, arg5
, "QWidget*");
1969 if (lua_isfunction(L
, -5-2)) {
1970 lua_pcall(L
, 5+1, 2, 0);
1971 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1975 lua_settop(L
, oldtop
);
1976 this->QGraphicsScene::drawItems(arg1
, arg2
, arg3
, arg4
, arg5
);
1978 lua_settop(L
, oldtop
);
1980 void LuaBinder
< QGraphicsScene
>::wheelEvent (QGraphicsSceneWheelEvent
* arg1
) {
1981 bool absorbed
= false;
1982 int oldtop
= lua_gettop(L
);
1983 lqtL_pushudata(L
, this, "QGraphicsScene*");
1984 if (lua_getmetatable(L
, -1)) {
1985 lua_getfield(L
, -1, "wheelEvent");
1991 lqtL_pushudata(L
, arg1
, "QGraphicsSceneWheelEvent*");
1992 if (lua_isfunction(L
, -1-2)) {
1993 lua_pcall(L
, 1+1, 2, 0);
1994 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1998 lua_settop(L
, oldtop
);
1999 this->QGraphicsScene::wheelEvent(arg1
);
2001 lua_settop(L
, oldtop
);
2003 void LuaBinder
< QGraphicsScene
>::mouseReleaseEvent (QGraphicsSceneMouseEvent
* arg1
) {
2004 bool absorbed
= false;
2005 int oldtop
= lua_gettop(L
);
2006 lqtL_pushudata(L
, this, "QGraphicsScene*");
2007 if (lua_getmetatable(L
, -1)) {
2008 lua_getfield(L
, -1, "mouseReleaseEvent");
2014 lqtL_pushudata(L
, arg1
, "QGraphicsSceneMouseEvent*");
2015 if (lua_isfunction(L
, -1-2)) {
2016 lua_pcall(L
, 1+1, 2, 0);
2017 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2021 lua_settop(L
, oldtop
);
2022 this->QGraphicsScene::mouseReleaseEvent(arg1
);
2024 lua_settop(L
, oldtop
);
2026 bool LuaBinder
< QGraphicsScene
>::event (QEvent
* arg1
) {
2027 bool absorbed
= false;
2028 int oldtop
= lua_gettop(L
);
2029 lqtL_pushudata(L
, this, "QGraphicsScene*");
2030 if (lua_getmetatable(L
, -1)) {
2031 lua_getfield(L
, -1, "event");
2037 lqtL_pushudata(L
, arg1
, "QEvent*");
2038 if (lua_isfunction(L
, -1-2)) {
2039 lua_pcall(L
, 1+1, 2, 0);
2040 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2044 lua_settop(L
, oldtop
);
2045 return this->QGraphicsScene::event(arg1
);
2047 bool ret
= (bool)lua_toboolean(L
, -1);
2048 lua_settop(L
, oldtop
);
2051 void LuaBinder
< QGraphicsScene
>::dragEnterEvent (QGraphicsSceneDragDropEvent
* arg1
) {
2052 bool absorbed
= false;
2053 int oldtop
= lua_gettop(L
);
2054 lqtL_pushudata(L
, this, "QGraphicsScene*");
2055 if (lua_getmetatable(L
, -1)) {
2056 lua_getfield(L
, -1, "dragEnterEvent");
2062 lqtL_pushudata(L
, arg1
, "QGraphicsSceneDragDropEvent*");
2063 if (lua_isfunction(L
, -1-2)) {
2064 lua_pcall(L
, 1+1, 2, 0);
2065 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2069 lua_settop(L
, oldtop
);
2070 this->QGraphicsScene::dragEnterEvent(arg1
);
2072 lua_settop(L
, oldtop
);
2074 void LuaBinder
< QGraphicsScene
>::mouseMoveEvent (QGraphicsSceneMouseEvent
* arg1
) {
2075 bool absorbed
= false;
2076 int oldtop
= lua_gettop(L
);
2077 lqtL_pushudata(L
, this, "QGraphicsScene*");
2078 if (lua_getmetatable(L
, -1)) {
2079 lua_getfield(L
, -1, "mouseMoveEvent");
2085 lqtL_pushudata(L
, arg1
, "QGraphicsSceneMouseEvent*");
2086 if (lua_isfunction(L
, -1-2)) {
2087 lua_pcall(L
, 1+1, 2, 0);
2088 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2092 lua_settop(L
, oldtop
);
2093 this->QGraphicsScene::mouseMoveEvent(arg1
);
2095 lua_settop(L
, oldtop
);
2097 void LuaBinder
< QGraphicsScene
>::helpEvent (QGraphicsSceneHelpEvent
* arg1
) {
2098 bool absorbed
= false;
2099 int oldtop
= lua_gettop(L
);
2100 lqtL_pushudata(L
, this, "QGraphicsScene*");
2101 if (lua_getmetatable(L
, -1)) {
2102 lua_getfield(L
, -1, "helpEvent");
2108 lqtL_pushudata(L
, arg1
, "QGraphicsSceneHelpEvent*");
2109 if (lua_isfunction(L
, -1-2)) {
2110 lua_pcall(L
, 1+1, 2, 0);
2111 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2115 lua_settop(L
, oldtop
);
2116 this->QGraphicsScene::helpEvent(arg1
);
2118 lua_settop(L
, oldtop
);
2120 const QMetaObject
* LuaBinder
< QGraphicsScene
>::metaObject () const {
2121 bool absorbed
= false;
2122 int oldtop
= lua_gettop(L
);
2123 lqtL_pushudata(L
, this, "QGraphicsScene*");
2124 if (lua_getmetatable(L
, -1)) {
2125 lua_getfield(L
, -1, "metaObject");
2131 if (lua_isfunction(L
, -0-2)) {
2132 lua_pcall(L
, 0+1, 2, 0);
2133 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2137 lua_settop(L
, oldtop
);
2138 return this->QGraphicsScene::metaObject();
2140 const QMetaObject
* ret
= *static_cast<QMetaObject
**>(lqtL_checkudata(L
, -1, "QMetaObject*"));
2141 lua_settop(L
, oldtop
);
2144 void LuaBinder
< QGraphicsScene
>::keyReleaseEvent (QKeyEvent
* arg1
) {
2145 bool absorbed
= false;
2146 int oldtop
= lua_gettop(L
);
2147 lqtL_pushudata(L
, this, "QGraphicsScene*");
2148 if (lua_getmetatable(L
, -1)) {
2149 lua_getfield(L
, -1, "keyReleaseEvent");
2155 lqtL_pushudata(L
, arg1
, "QKeyEvent*");
2156 if (lua_isfunction(L
, -1-2)) {
2157 lua_pcall(L
, 1+1, 2, 0);
2158 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2162 lua_settop(L
, oldtop
);
2163 this->QGraphicsScene::keyReleaseEvent(arg1
);
2165 lua_settop(L
, oldtop
);
2167 void LuaBinder
< QGraphicsScene
>::dropEvent (QGraphicsSceneDragDropEvent
* arg1
) {
2168 bool absorbed
= false;
2169 int oldtop
= lua_gettop(L
);
2170 lqtL_pushudata(L
, this, "QGraphicsScene*");
2171 if (lua_getmetatable(L
, -1)) {
2172 lua_getfield(L
, -1, "dropEvent");
2178 lqtL_pushudata(L
, arg1
, "QGraphicsSceneDragDropEvent*");
2179 if (lua_isfunction(L
, -1-2)) {
2180 lua_pcall(L
, 1+1, 2, 0);
2181 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2185 lua_settop(L
, oldtop
);
2186 this->QGraphicsScene::dropEvent(arg1
);
2188 lua_settop(L
, oldtop
);
2190 void LuaBinder
< QGraphicsScene
>::customEvent (QEvent
* arg1
) {
2191 bool absorbed
= false;
2192 int oldtop
= lua_gettop(L
);
2193 lqtL_pushudata(L
, this, "QGraphicsScene*");
2194 if (lua_getmetatable(L
, -1)) {
2195 lua_getfield(L
, -1, "customEvent");
2201 lqtL_pushudata(L
, arg1
, "QEvent*");
2202 if (lua_isfunction(L
, -1-2)) {
2203 lua_pcall(L
, 1+1, 2, 0);
2204 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2208 lua_settop(L
, oldtop
);
2209 this->QObject::customEvent(arg1
);
2211 lua_settop(L
, oldtop
);
2213 LuaBinder
< QGraphicsScene
>:: ~LuaBinder
< QGraphicsScene
> () {
2214 int oldtop
= lua_gettop(L
);
2215 lqtL_pushudata(L
, this, "QGraphicsScene*");
2216 lua_getfield(L
, -1, "~QGraphicsScene");
2218 if (lua_isfunction(L
, -1)) {
2220 lua_pcall(L
, 1, 1, 0);
2223 lua_settop(L
, oldtop
);
2225 int LuaBinder
< QGraphicsScene
>::lqt_pushenum_ItemIndexMethod (lua_State
*L
) {
2227 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
2228 if (!lua_istable(L
, -1)) {
2231 lua_pushvalue(L
, -1);
2232 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
2235 enum_table
= lua_gettop(L
);
2236 lua_pushstring(L
, "BspTreeIndex");
2237 lua_rawseti(L
, enum_table
, 0);
2238 lua_pushinteger(L
, 0);
2239 lua_setfield(L
, enum_table
, "BspTreeIndex");
2240 lua_pushstring(L
, "NoIndex");
2241 lua_rawseti(L
, enum_table
, -1);
2242 lua_pushinteger(L
, -1);
2243 lua_setfield(L
, enum_table
, "NoIndex");
2244 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::lqt_pushenum_ItemIndexMethod_QFLAGS_CREATOR
);
2245 lua_setfield(L
, enum_table
, "QFlags");
2246 lua_pushvalue(L
, -1);
2247 lua_setfield(L
, -3, "QGraphicsScene::ItemIndexMethod");
2251 int LuaBinder
< QGraphicsScene
>::lqt_pushenum_ItemIndexMethod_QFLAGS_CREATOR (lua_State
*L
) {
2252 int argn
= lua_gettop(L
);
2254 void *p
= lua_newuserdata(L
, sizeof(QFlags
<QGraphicsScene::ItemIndexMethod
>*) + sizeof(QFlags
<QGraphicsScene::ItemIndexMethod
>));
2255 QFlags
<QGraphicsScene::ItemIndexMethod
> *fl
= static_cast<QFlags
<QGraphicsScene::ItemIndexMethod
>*>( static_cast<void*>(&static_cast<QFlags
<QGraphicsScene::ItemIndexMethod
>**>(p
)[1]) );
2257 for (i
=1;i
<=argn
;i
++) {
2258 *fl
|= static_cast<QGraphicsScene::ItemIndexMethod
>(lqtL_toenum(L
, i
, "QGraphicsScene::ItemIndexMethod"));
2260 if (luaL_newmetatable(L
, "QFlags<QGraphicsScene::ItemIndexMethod>*")) {
2261 lua_pushstring(L
, "QFlags<QGraphicsScene::ItemIndexMethod>*");
2262 lua_setfield(L
, -2, "__qtype");
2264 lua_setmetatable(L
, -2);
2267 int LuaBinder
< QGraphicsScene
>::lqt_pushenum_SceneLayer (lua_State
*L
) {
2269 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
2270 if (!lua_istable(L
, -1)) {
2273 lua_pushvalue(L
, -1);
2274 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
2277 enum_table
= lua_gettop(L
);
2278 lua_pushstring(L
, "ItemLayer");
2279 lua_rawseti(L
, enum_table
, 1);
2280 lua_pushinteger(L
, 1);
2281 lua_setfield(L
, enum_table
, "ItemLayer");
2282 lua_pushstring(L
, "BackgroundLayer");
2283 lua_rawseti(L
, enum_table
, 2);
2284 lua_pushinteger(L
, 2);
2285 lua_setfield(L
, enum_table
, "BackgroundLayer");
2286 lua_pushstring(L
, "ForegroundLayer");
2287 lua_rawseti(L
, enum_table
, 4);
2288 lua_pushinteger(L
, 4);
2289 lua_setfield(L
, enum_table
, "ForegroundLayer");
2290 lua_pushstring(L
, "AllLayers");
2291 lua_rawseti(L
, enum_table
, 65535);
2292 lua_pushinteger(L
, 65535);
2293 lua_setfield(L
, enum_table
, "AllLayers");
2294 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::lqt_pushenum_SceneLayer_QFLAGS_CREATOR
);
2295 lua_setfield(L
, enum_table
, "QFlags");
2296 lua_pushvalue(L
, -1);
2297 lua_setfield(L
, -3, "QGraphicsScene::SceneLayer");
2301 int LuaBinder
< QGraphicsScene
>::lqt_pushenum_SceneLayer_QFLAGS_CREATOR (lua_State
*L
) {
2302 int argn
= lua_gettop(L
);
2304 void *p
= lua_newuserdata(L
, sizeof(QFlags
<QGraphicsScene::SceneLayer
>*) + sizeof(QFlags
<QGraphicsScene::SceneLayer
>));
2305 QFlags
<QGraphicsScene::SceneLayer
> *fl
= static_cast<QFlags
<QGraphicsScene::SceneLayer
>*>( static_cast<void*>(&static_cast<QFlags
<QGraphicsScene::SceneLayer
>**>(p
)[1]) );
2307 for (i
=1;i
<=argn
;i
++) {
2308 *fl
|= static_cast<QGraphicsScene::SceneLayer
>(lqtL_toenum(L
, i
, "QGraphicsScene::SceneLayer"));
2310 if (luaL_newmetatable(L
, "QFlags<QGraphicsScene::SceneLayer>*")) {
2311 lua_pushstring(L
, "QFlags<QGraphicsScene::SceneLayer>*");
2312 lua_setfield(L
, -2, "__qtype");
2314 lua_setmetatable(L
, -2);
2317 int luaopen_QGraphicsScene (lua_State
*L
) {
2318 if (luaL_newmetatable(L
, "QGraphicsScene*")) {
2319 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__render
);
2320 lua_setfield(L
, -2, "render");
2321 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addPixmap
);
2322 lua_setfield(L
, -2, "addPixmap");
2323 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__focusItem
);
2324 lua_setfield(L
, -2, "focusItem");
2325 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__clearSelection
);
2326 lua_setfield(L
, -2, "clearSelection");
2327 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__update
);
2328 lua_setfield(L
, -2, "update");
2329 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__sceneRect
);
2330 lua_setfield(L
, -2, "sceneRect");
2331 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addLine
);
2332 lua_setfield(L
, -2, "addLine");
2333 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__itemsBoundingRect
);
2334 lua_setfield(L
, -2, "itemsBoundingRect");
2335 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__trUtf8
);
2336 lua_setfield(L
, -2, "trUtf8");
2337 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addRect
);
2338 lua_setfield(L
, -2, "addRect");
2339 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__advance
);
2340 lua_setfield(L
, -2, "advance");
2341 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__selectionArea
);
2342 lua_setfield(L
, -2, "selectionArea");
2343 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setSelectionArea
);
2344 lua_setfield(L
, -2, "setSelectionArea");
2345 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setItemIndexMethod
);
2346 lua_setfield(L
, -2, "setItemIndexMethod");
2347 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__hasFocus
);
2348 lua_setfield(L
, -2, "hasFocus");
2349 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__bspTreeDepth
);
2350 lua_setfield(L
, -2, "bspTreeDepth");
2351 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__collidingItems
);
2352 lua_setfield(L
, -2, "collidingItems");
2353 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__height
);
2354 lua_setfield(L
, -2, "height");
2355 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addEllipse
);
2356 lua_setfield(L
, -2, "addEllipse");
2357 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addSimpleText
);
2358 lua_setfield(L
, -2, "addSimpleText");
2359 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setSceneRect
);
2360 lua_setfield(L
, -2, "setSceneRect");
2361 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__destroyItemGroup
);
2362 lua_setfield(L
, -2, "destroyItemGroup");
2363 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__createItemGroup
);
2364 lua_setfield(L
, -2, "createItemGroup");
2365 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__invalidate
);
2366 lua_setfield(L
, -2, "invalidate");
2367 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addItem
);
2368 lua_setfield(L
, -2, "addItem");
2369 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setFocusItem
);
2370 lua_setfield(L
, -2, "setFocusItem");
2371 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setFocus
);
2372 lua_setfield(L
, -2, "setFocus");
2373 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__items
);
2374 lua_setfield(L
, -2, "items");
2375 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addText
);
2376 lua_setfield(L
, -2, "addText");
2377 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__metaObject
);
2378 lua_setfield(L
, -2, "metaObject");
2379 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__itemIndexMethod
);
2380 lua_setfield(L
, -2, "itemIndexMethod");
2381 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__backgroundBrush
);
2382 lua_setfield(L
, -2, "backgroundBrush");
2383 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__new
);
2384 lua_setfield(L
, -2, "new");
2385 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__inputMethodQuery
);
2386 lua_setfield(L
, -2, "inputMethodQuery");
2387 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__delete
);
2388 lua_setfield(L
, -2, "delete");
2389 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addPath
);
2390 lua_setfield(L
, -2, "addPath");
2391 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__foregroundBrush
);
2392 lua_setfield(L
, -2, "foregroundBrush");
2393 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__selectedItems
);
2394 lua_setfield(L
, -2, "selectedItems");
2395 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__mouseGrabberItem
);
2396 lua_setfield(L
, -2, "mouseGrabberItem");
2397 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setBspTreeDepth
);
2398 lua_setfield(L
, -2, "setBspTreeDepth");
2399 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__width
);
2400 lua_setfield(L
, -2, "width");
2401 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setForegroundBrush
);
2402 lua_setfield(L
, -2, "setForegroundBrush");
2403 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__itemAt
);
2404 lua_setfield(L
, -2, "itemAt");
2405 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__setBackgroundBrush
);
2406 lua_setfield(L
, -2, "setBackgroundBrush");
2407 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__tr
);
2408 lua_setfield(L
, -2, "tr");
2409 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__views
);
2410 lua_setfield(L
, -2, "views");
2411 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__removeItem
);
2412 lua_setfield(L
, -2, "removeItem");
2413 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__addPolygon
);
2414 lua_setfield(L
, -2, "addPolygon");
2415 lua_pushcfunction(L
, LuaBinder
< QGraphicsScene
>::__LuaWrapCall__clearFocus
);
2416 lua_setfield(L
, -2, "clearFocus");
2417 LuaBinder
< QGraphicsScene
>::lqt_pushenum_ItemIndexMethod(L
);
2418 lua_setfield(L
, -2, "ItemIndexMethod");
2419 LuaBinder
< QGraphicsScene
>::lqt_pushenum_SceneLayer(L
);
2420 lua_setfield(L
, -2, "SceneLayer");
2422 lua_pushboolean(L
, 1);
2423 lua_setfield(L
, -2, "QObject*");
2424 lua_setfield(L
, -2, "__base");
2425 lua_pushcfunction(L
, lqtL_newindex
);
2426 lua_setfield(L
, -2, "__newindex");
2427 lua_pushcfunction(L
, lqtL_index
);
2428 lua_setfield(L
, -2, "__index");
2429 lua_pushcfunction(L
, lqtL_gc
);
2430 lua_setfield(L
, -2, "__gc");
2431 lua_pushstring(L
, "QGraphicsScene");
2432 lua_setfield(L
, -2, "__qtype");
2433 lua_setglobal(L
, "QGraphicsScene");