1 #include "lqt_bind_QGraphicsItem.hpp"
3 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__scenePos (lua_State
*L
) {
4 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
6 lua_pushstring(L
, "trying to reference deleted pointer");
10 QPointF ret
= __lua__obj
->QGraphicsItem::scenePos();
11 lqtL_passudata(L
, new QPointF(ret
), "QPointF*");
14 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setCursor (lua_State
*L
) {
15 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
17 lua_pushstring(L
, "trying to reference deleted pointer");
21 const QCursor
& arg1
= **static_cast<QCursor
**>(lqtL_checkudata(L
, 2, "QCursor*"));
22 __lua__obj
->QGraphicsItem::setCursor(arg1
);
25 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setPos__OverloadedVersion__1 (lua_State
*L
) {
26 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
28 lua_pushstring(L
, "trying to reference deleted pointer");
32 const QPointF
& arg1
= **static_cast<QPointF
**>(lqtL_checkudata(L
, 2, "QPointF*"));
33 __lua__obj
->QGraphicsItem::setPos(arg1
);
36 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setPos__OverloadedVersion__2 (lua_State
*L
) {
37 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
39 lua_pushstring(L
, "trying to reference deleted pointer");
43 double arg1
= lua_tonumber(L
, 2);
44 double arg2
= lua_tonumber(L
, 3);
45 __lua__obj
->QGraphicsItem::setPos(arg1
, arg2
);
48 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setPos (lua_State
*L
) {
50 const int premium
= 11+lua_gettop(L
);
52 score
[1] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
53 if (lqtL_testudata(L
, 2, "QPointF*")) {
56 score
[1] += premium
-1; // table: 0x1278560;
58 score
[1] -= premium
*premium
;
61 score
[2] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
62 if (lua_isnumber(L
, 2)) {
65 score
[2] += premium
-1; // table: 0x1278f80;
67 score
[2] -= premium
*premium
;
69 if (lua_isnumber(L
, 3)) {
72 score
[2] += premium
-1; // table: 0x1279490;
74 score
[2] -= premium
*premium
;
77 for (int i
=1;i
<=2;i
++) {
78 if (score
[best
] < score
[i
]) { best
= i
; }
81 case 1: return __LuaWrapCall__setPos__OverloadedVersion__1(L
); break;
82 case 2: return __LuaWrapCall__setPos__OverloadedVersion__2(L
); break;
84 lua_pushstring(L
, "no overload of function __LuaWrapCall__setPos matching arguments");
88 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__isVisible (lua_State
*L
) {
89 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
91 lua_pushstring(L
, "trying to reference deleted pointer");
95 bool ret
= __lua__obj
->QGraphicsItem::isVisible();
96 lua_pushboolean(L
, ret
);
99 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setAcceptsHoverEvents (lua_State
*L
) {
100 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
102 lua_pushstring(L
, "trying to reference deleted pointer");
106 bool arg1
= (bool)lua_toboolean(L
, 2);
107 __lua__obj
->QGraphicsItem::setAcceptsHoverEvents(arg1
);
110 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__hasCursor (lua_State
*L
) {
111 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
113 lua_pushstring(L
, "trying to reference deleted pointer");
117 bool ret
= __lua__obj
->QGraphicsItem::hasCursor();
118 lua_pushboolean(L
, ret
);
121 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__topLevelItem (lua_State
*L
) {
122 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
124 lua_pushstring(L
, "trying to reference deleted pointer");
128 QGraphicsItem
* ret
= __lua__obj
->QGraphicsItem::topLevelItem();
129 lqtL_pushudata(L
, ret
, "QGraphicsItem*");
132 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__y (lua_State
*L
) {
133 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
135 lua_pushstring(L
, "trying to reference deleted pointer");
139 double ret
= __lua__obj
->QGraphicsItem::y();
140 lua_pushnumber(L
, ret
);
143 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__x (lua_State
*L
) {
144 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
146 lua_pushstring(L
, "trying to reference deleted pointer");
150 double ret
= __lua__obj
->QGraphicsItem::x();
151 lua_pushnumber(L
, ret
);
154 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setAcceptDrops (lua_State
*L
) {
155 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
157 lua_pushstring(L
, "trying to reference deleted pointer");
161 bool arg1
= (bool)lua_toboolean(L
, 2);
162 __lua__obj
->QGraphicsItem::setAcceptDrops(arg1
);
165 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__clearFocus (lua_State
*L
) {
166 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
168 lua_pushstring(L
, "trying to reference deleted pointer");
172 __lua__obj
->QGraphicsItem::clearFocus();
175 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__deviceTransform (lua_State
*L
) {
176 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
178 lua_pushstring(L
, "trying to reference deleted pointer");
182 const QTransform
& arg1
= **static_cast<QTransform
**>(lqtL_checkudata(L
, 2, "QTransform*"));
183 QTransform ret
= __lua__obj
->QGraphicsItem::deviceTransform(arg1
);
184 lqtL_passudata(L
, new QTransform(ret
), "QTransform*");
187 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__shape (lua_State
*L
) {
188 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
190 lua_pushstring(L
, "trying to reference deleted pointer");
194 QPainterPath ret
= __lua__obj
->QGraphicsItem::shape();
195 lqtL_passudata(L
, new QPainterPath(ret
), "QPainterPath*");
198 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__pos (lua_State
*L
) {
199 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
201 lua_pushstring(L
, "trying to reference deleted pointer");
205 QPointF ret
= __lua__obj
->QGraphicsItem::pos();
206 lqtL_passudata(L
, new QPointF(ret
), "QPointF*");
209 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__moveBy (lua_State
*L
) {
210 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
212 lua_pushstring(L
, "trying to reference deleted pointer");
216 double arg1
= lua_tonumber(L
, 2);
217 double arg2
= lua_tonumber(L
, 3);
218 __lua__obj
->QGraphicsItem::moveBy(arg1
, arg2
);
221 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__scale (lua_State
*L
) {
222 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
224 lua_pushstring(L
, "trying to reference deleted pointer");
228 double arg1
= lua_tonumber(L
, 2);
229 double arg2
= lua_tonumber(L
, 3);
230 __lua__obj
->QGraphicsItem::scale(arg1
, arg2
);
233 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__isSelected (lua_State
*L
) {
234 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
236 lua_pushstring(L
, "trying to reference deleted pointer");
240 bool ret
= __lua__obj
->QGraphicsItem::isSelected();
241 lua_pushboolean(L
, ret
);
244 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setParentItem (lua_State
*L
) {
245 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
247 lua_pushstring(L
, "trying to reference deleted pointer");
251 QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
252 __lua__obj
->QGraphicsItem::setParentItem(arg1
);
255 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__hasFocus (lua_State
*L
) {
256 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
258 lua_pushstring(L
, "trying to reference deleted pointer");
262 bool ret
= __lua__obj
->QGraphicsItem::hasFocus();
263 lua_pushboolean(L
, ret
);
266 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setFocus (lua_State
*L
) {
267 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
269 lua_pushstring(L
, "trying to reference deleted pointer");
273 Qt::FocusReason arg1
= lqtL_isenum(L
, 2, "Qt::FocusReason")?static_cast<Qt::FocusReason
>(lqtL_toenum(L
, 2, "Qt::FocusReason")):Qt::OtherFocusReason
;
274 __lua__obj
->QGraphicsItem::setFocus(arg1
);
277 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setFlag (lua_State
*L
) {
278 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
280 lua_pushstring(L
, "trying to reference deleted pointer");
284 QGraphicsItem::GraphicsItemFlag arg1
= static_cast<QGraphicsItem::GraphicsItemFlag
>(lqtL_toenum(L
, 2, "QGraphicsItem::GraphicsItemFlag"));
285 bool arg2
= lua_isboolean(L
, 3)?(bool)lua_toboolean(L
, 3):true;
286 __lua__obj
->QGraphicsItem::setFlag(arg1
, arg2
);
289 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__translate (lua_State
*L
) {
290 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
292 lua_pushstring(L
, "trying to reference deleted pointer");
296 double arg1
= lua_tonumber(L
, 2);
297 double arg2
= lua_tonumber(L
, 3);
298 __lua__obj
->QGraphicsItem::translate(arg1
, arg2
);
301 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__acceptedMouseButtons (lua_State
*L
) {
302 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
304 lua_pushstring(L
, "trying to reference deleted pointer");
308 QFlags
<Qt::MouseButton
> ret
= __lua__obj
->QGraphicsItem::acceptedMouseButtons();
309 lqtL_passudata(L
, new QFlags
<Qt::MouseButton
>(ret
), "QFlags<Qt::MouseButton>*");
312 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__opaqueArea (lua_State
*L
) {
313 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
315 lua_pushstring(L
, "trying to reference deleted pointer");
319 QPainterPath ret
= __lua__obj
->QGraphicsItem::opaqueArea();
320 lqtL_passudata(L
, new QPainterPath(ret
), "QPainterPath*");
323 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__sceneTransform (lua_State
*L
) {
324 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
326 lua_pushstring(L
, "trying to reference deleted pointer");
330 QTransform ret
= __lua__obj
->QGraphicsItem::sceneTransform();
331 lqtL_passudata(L
, new QTransform(ret
), "QTransform*");
334 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__resetTransform (lua_State
*L
) {
335 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
337 lua_pushstring(L
, "trying to reference deleted pointer");
341 __lua__obj
->QGraphicsItem::resetTransform();
344 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setToolTip (lua_State
*L
) {
345 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
347 lua_pushstring(L
, "trying to reference deleted pointer");
351 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
352 __lua__obj
->QGraphicsItem::setToolTip(arg1
);
355 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__parentItem (lua_State
*L
) {
356 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
358 lua_pushstring(L
, "trying to reference deleted pointer");
362 QGraphicsItem
* ret
= __lua__obj
->QGraphicsItem::parentItem();
363 lqtL_pushudata(L
, ret
, "QGraphicsItem*");
366 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__collidesWithItem (lua_State
*L
) {
367 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
369 lua_pushstring(L
, "trying to reference deleted pointer");
373 const QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
374 Qt::ItemSelectionMode arg2
= lqtL_isenum(L
, 3, "Qt::ItemSelectionMode")?static_cast<Qt::ItemSelectionMode
>(lqtL_toenum(L
, 3, "Qt::ItemSelectionMode")):Qt::IntersectsItemShape
;
375 bool ret
= __lua__obj
->QGraphicsItem::collidesWithItem(arg1
, arg2
);
376 lua_pushboolean(L
, ret
);
379 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__show (lua_State
*L
) {
380 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
382 lua_pushstring(L
, "trying to reference deleted pointer");
386 __lua__obj
->QGraphicsItem::show();
389 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__isEnabled (lua_State
*L
) {
390 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
392 lua_pushstring(L
, "trying to reference deleted pointer");
396 bool ret
= __lua__obj
->QGraphicsItem::isEnabled();
397 lua_pushboolean(L
, ret
);
400 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setFlags (lua_State
*L
) {
401 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
403 lua_pushstring(L
, "trying to reference deleted pointer");
407 QFlags
<QGraphicsItem::GraphicsItemFlag
> arg1
= **static_cast<QFlags
<QGraphicsItem::GraphicsItemFlag
>**>(lqtL_checkudata(L
, 2, "QFlags<QGraphicsItem::GraphicsItemFlag>*"));
408 __lua__obj
->QGraphicsItem::setFlags(arg1
);
411 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setGroup (lua_State
*L
) {
412 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
414 lua_pushstring(L
, "trying to reference deleted pointer");
418 QGraphicsItemGroup
* arg1
= *static_cast<QGraphicsItemGroup
**>(lqtL_checkudata(L
, 2, "QGraphicsItemGroup*"));
419 __lua__obj
->QGraphicsItem::setGroup(arg1
);
422 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__transform (lua_State
*L
) {
423 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
425 lua_pushstring(L
, "trying to reference deleted pointer");
429 QTransform ret
= __lua__obj
->QGraphicsItem::transform();
430 lqtL_passudata(L
, new QTransform(ret
), "QTransform*");
433 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToItem__OverloadedVersion__1 (lua_State
*L
) {
434 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
436 lua_pushstring(L
, "trying to reference deleted pointer");
440 const QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
441 const QPointF
& arg2
= **static_cast<QPointF
**>(lqtL_checkudata(L
, 3, "QPointF*"));
442 QPointF ret
= __lua__obj
->QGraphicsItem::mapToItem(arg1
, arg2
);
443 lqtL_passudata(L
, new QPointF(ret
), "QPointF*");
446 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToItem__OverloadedVersion__2 (lua_State
*L
) {
447 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
449 lua_pushstring(L
, "trying to reference deleted pointer");
453 const QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
454 const QRectF
& arg2
= **static_cast<QRectF
**>(lqtL_checkudata(L
, 3, "QRectF*"));
455 QPolygonF ret
= __lua__obj
->QGraphicsItem::mapToItem(arg1
, arg2
);
456 lqtL_passudata(L
, new QPolygonF(ret
), "QPolygonF*");
459 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToItem__OverloadedVersion__3 (lua_State
*L
) {
460 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
462 lua_pushstring(L
, "trying to reference deleted pointer");
466 const QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
467 const QPolygonF
& arg2
= **static_cast<QPolygonF
**>(lqtL_checkudata(L
, 3, "QPolygonF*"));
468 QPolygonF ret
= __lua__obj
->QGraphicsItem::mapToItem(arg1
, arg2
);
469 lqtL_passudata(L
, new QPolygonF(ret
), "QPolygonF*");
472 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToItem__OverloadedVersion__4 (lua_State
*L
) {
473 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
475 lua_pushstring(L
, "trying to reference deleted pointer");
479 const QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
480 const QPainterPath
& arg2
= **static_cast<QPainterPath
**>(lqtL_checkudata(L
, 3, "QPainterPath*"));
481 QPainterPath ret
= __lua__obj
->QGraphicsItem::mapToItem(arg1
, arg2
);
482 lqtL_passudata(L
, new QPainterPath(ret
), "QPainterPath*");
485 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToItem__OverloadedVersion__5 (lua_State
*L
) {
486 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
488 lua_pushstring(L
, "trying to reference deleted pointer");
492 const QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
493 double arg2
= lua_tonumber(L
, 3);
494 double arg3
= lua_tonumber(L
, 4);
495 QPointF ret
= __lua__obj
->QGraphicsItem::mapToItem(arg1
, arg2
, arg3
);
496 lqtL_passudata(L
, new QPointF(ret
), "QPointF*");
499 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToItem__OverloadedVersion__6 (lua_State
*L
) {
500 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
502 lua_pushstring(L
, "trying to reference deleted pointer");
506 const QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
507 double arg2
= lua_tonumber(L
, 3);
508 double arg3
= lua_tonumber(L
, 4);
509 double arg4
= lua_tonumber(L
, 5);
510 double arg5
= lua_tonumber(L
, 6);
511 QPolygonF ret
= __lua__obj
->QGraphicsItem::mapToItem(arg1
, arg2
, arg3
, arg4
, arg5
);
512 lqtL_passudata(L
, new QPolygonF(ret
), "QPolygonF*");
515 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToItem (lua_State
*L
) {
517 const int premium
= 11+lua_gettop(L
);
519 score
[1] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
520 if (lqtL_testudata(L
, 2, "QGraphicsItem*")) {
523 score
[1] += premium
-1; // table: 0x1293ba0;
525 score
[1] -= premium
*premium
;
527 if (lqtL_testudata(L
, 3, "QPointF*")) {
530 score
[1] += premium
-1; // table: 0x1293830;
532 score
[1] -= premium
*premium
;
535 score
[2] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
536 if (lqtL_testudata(L
, 2, "QGraphicsItem*")) {
539 score
[2] += premium
-1; // table: 0x1295f10;
541 score
[2] -= premium
*premium
;
543 if (lqtL_testudata(L
, 3, "QRectF*")) {
546 score
[2] += premium
-1; // table: 0x12959d0;
548 score
[2] -= premium
*premium
;
551 score
[3] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
552 if (lqtL_testudata(L
, 2, "QGraphicsItem*")) {
555 score
[3] += premium
-1; // table: 0x12981f0;
557 score
[3] -= premium
*premium
;
559 if (lqtL_testudata(L
, 3, "QPolygonF*")) {
562 score
[3] += premium
-1; // table: 0x1297cb0;
564 score
[3] -= premium
*premium
;
567 score
[4] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
568 if (lqtL_testudata(L
, 2, "QGraphicsItem*")) {
571 score
[4] += premium
-1; // table: 0x129a510;
573 score
[4] -= premium
*premium
;
575 if (lqtL_testudata(L
, 3, "QPainterPath*")) {
578 score
[4] += premium
-1; // table: 0x1299fa0;
580 score
[4] -= premium
*premium
;
583 score
[5] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
584 if (lqtL_testudata(L
, 2, "QGraphicsItem*")) {
587 score
[5] += premium
-1; // table: 0x12a5650;
589 score
[5] -= premium
*premium
;
591 if (lua_isnumber(L
, 3)) {
594 score
[5] += premium
-1; // table: 0x12a5b60;
596 score
[5] -= premium
*premium
;
598 if (lua_isnumber(L
, 4)) {
601 score
[5] += premium
-1; // table: 0x12a5f10;
603 score
[5] -= premium
*premium
;
606 score
[6] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
607 if (lqtL_testudata(L
, 2, "QGraphicsItem*")) {
610 score
[6] += premium
-1; // table: 0x12a8590;
612 score
[6] -= premium
*premium
;
614 if (lua_isnumber(L
, 3)) {
617 score
[6] += premium
-1; // table: 0x12a8aa0;
619 score
[6] -= premium
*premium
;
621 if (lua_isnumber(L
, 4)) {
624 score
[6] += premium
-1; // table: 0x12a8e50;
626 score
[6] -= premium
*premium
;
628 if (lua_isnumber(L
, 5)) {
631 score
[6] += premium
-1; // table: 0x12a8df0;
633 score
[6] -= premium
*premium
;
635 if (lua_isnumber(L
, 6)) {
638 score
[6] += premium
-1; // table: 0x12a9600;
640 score
[6] -= premium
*premium
;
643 for (int i
=1;i
<=6;i
++) {
644 if (score
[best
] < score
[i
]) { best
= i
; }
647 case 1: return __LuaWrapCall__mapToItem__OverloadedVersion__1(L
); break;
648 case 2: return __LuaWrapCall__mapToItem__OverloadedVersion__2(L
); break;
649 case 3: return __LuaWrapCall__mapToItem__OverloadedVersion__3(L
); break;
650 case 4: return __LuaWrapCall__mapToItem__OverloadedVersion__4(L
); break;
651 case 5: return __LuaWrapCall__mapToItem__OverloadedVersion__5(L
); break;
652 case 6: return __LuaWrapCall__mapToItem__OverloadedVersion__6(L
); break;
654 lua_pushstring(L
, "no overload of function __LuaWrapCall__mapToItem matching arguments");
658 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__ensureVisible__OverloadedVersion__1 (lua_State
*L
) {
659 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
661 lua_pushstring(L
, "trying to reference deleted pointer");
665 const QRectF
& arg1
= lqtL_testudata(L
, 2, "QRectF*")?**static_cast<QRectF
**>(lqtL_checkudata(L
, 2, "QRectF*")):QRectF();
666 int arg2
= lua_isnumber(L
, 3)?lua_tointeger(L
, 3):static_cast< int >(50);
667 int arg3
= lua_isnumber(L
, 4)?lua_tointeger(L
, 4):static_cast< int >(50);
668 __lua__obj
->QGraphicsItem::ensureVisible(arg1
, arg2
, arg3
);
671 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__ensureVisible__OverloadedVersion__2 (lua_State
*L
) {
672 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
674 lua_pushstring(L
, "trying to reference deleted pointer");
678 double arg1
= lua_tonumber(L
, 2);
679 double arg2
= lua_tonumber(L
, 3);
680 double arg3
= lua_tonumber(L
, 4);
681 double arg4
= lua_tonumber(L
, 5);
682 int arg5
= lua_isnumber(L
, 6)?lua_tointeger(L
, 6):static_cast< int >(50);
683 int arg6
= lua_isnumber(L
, 7)?lua_tointeger(L
, 7):static_cast< int >(50);
684 __lua__obj
->QGraphicsItem::ensureVisible(arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
687 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__ensureVisible (lua_State
*L
) {
689 const int premium
= 11+lua_gettop(L
);
691 score
[1] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
692 if (lqtL_testudata(L
, 2, "QRectF*")) {
695 score
[1] += premium
-1; // table: 0x127ac70;
697 score
[1] -= premium
*premium
;
699 if (lua_isnumber(L
, 3)) {
702 score
[1] += premium
-1; // table: 0x127a6f0;
704 score
[1] -= premium
*premium
;
706 if (lua_isnumber(L
, 4)) {
709 score
[1] += premium
-1; // table: 0x127b130;
711 score
[1] -= premium
*premium
;
714 score
[2] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
715 if (lua_isnumber(L
, 2)) {
718 score
[2] += premium
-1; // table: 0x127bea0;
720 score
[2] -= premium
*premium
;
722 if (lua_isnumber(L
, 3)) {
725 score
[2] += premium
-1; // table: 0x127c3c0;
727 score
[2] -= premium
*premium
;
729 if (lua_isnumber(L
, 4)) {
732 score
[2] += premium
-1; // table: 0x127c770;
734 score
[2] -= premium
*premium
;
736 if (lua_isnumber(L
, 5)) {
739 score
[2] += premium
-1; // table: 0x127c710;
741 score
[2] -= premium
*premium
;
743 if (lua_isnumber(L
, 6)) {
746 score
[2] += premium
-1; // table: 0x127cf30;
748 score
[2] -= premium
*premium
;
750 if (lua_isnumber(L
, 7)) {
753 score
[2] += premium
-1; // table: 0x127caf0;
755 score
[2] -= premium
*premium
;
758 for (int i
=1;i
<=2;i
++) {
759 if (score
[best
] < score
[i
]) { best
= i
; }
762 case 1: return __LuaWrapCall__ensureVisible__OverloadedVersion__1(L
); break;
763 case 2: return __LuaWrapCall__ensureVisible__OverloadedVersion__2(L
); break;
765 lua_pushstring(L
, "no overload of function __LuaWrapCall__ensureVisible matching arguments");
769 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__update__OverloadedVersion__1 (lua_State
*L
) {
770 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
772 lua_pushstring(L
, "trying to reference deleted pointer");
776 const QRectF
& arg1
= lqtL_testudata(L
, 2, "QRectF*")?**static_cast<QRectF
**>(lqtL_checkudata(L
, 2, "QRectF*")):QRectF();
777 __lua__obj
->QGraphicsItem::update(arg1
);
780 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__update__OverloadedVersion__2 (lua_State
*L
) {
781 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
783 lua_pushstring(L
, "trying to reference deleted pointer");
787 double arg1
= lua_tonumber(L
, 2);
788 double arg2
= lua_tonumber(L
, 3);
789 double arg3
= lua_tonumber(L
, 4);
790 double arg4
= lua_tonumber(L
, 5);
791 __lua__obj
->QGraphicsItem::update(arg1
, arg2
, arg3
, arg4
);
794 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__update (lua_State
*L
) {
796 const int premium
= 11+lua_gettop(L
);
798 score
[1] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
799 if (lqtL_testudata(L
, 2, "QRectF*")) {
802 score
[1] += premium
-1; // table: 0x1291af0;
804 score
[1] -= premium
*premium
;
807 score
[2] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
808 if (lua_isnumber(L
, 2)) {
811 score
[2] += premium
-1; // table: 0x1292540;
813 score
[2] -= premium
*premium
;
815 if (lua_isnumber(L
, 3)) {
818 score
[2] += premium
-1; // table: 0x1292a50;
820 score
[2] -= premium
*premium
;
822 if (lua_isnumber(L
, 4)) {
825 score
[2] += premium
-1; // table: 0x12929f0;
827 score
[2] -= premium
*premium
;
829 if (lua_isnumber(L
, 5)) {
832 score
[2] += premium
-1; // table: 0x1293240;
834 score
[2] -= premium
*premium
;
837 for (int i
=1;i
<=2;i
++) {
838 if (score
[best
] < score
[i
]) { best
= i
; }
841 case 1: return __LuaWrapCall__update__OverloadedVersion__1(L
); break;
842 case 2: return __LuaWrapCall__update__OverloadedVersion__2(L
); break;
844 lua_pushstring(L
, "no overload of function __LuaWrapCall__update matching arguments");
848 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__isObscured__OverloadedVersion__1 (lua_State
*L
) {
849 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
851 lua_pushstring(L
, "trying to reference deleted pointer");
855 bool ret
= __lua__obj
->QGraphicsItem::isObscured();
856 lua_pushboolean(L
, ret
);
859 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__isObscured__OverloadedVersion__2 (lua_State
*L
) {
860 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
862 lua_pushstring(L
, "trying to reference deleted pointer");
866 const QRectF
& arg1
= **static_cast<QRectF
**>(lqtL_checkudata(L
, 2, "QRectF*"));
867 bool ret
= __lua__obj
->QGraphicsItem::isObscured(arg1
);
868 lua_pushboolean(L
, ret
);
871 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__isObscured__OverloadedVersion__3 (lua_State
*L
) {
872 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
874 lua_pushstring(L
, "trying to reference deleted pointer");
878 double arg1
= lua_tonumber(L
, 2);
879 double arg2
= lua_tonumber(L
, 3);
880 double arg3
= lua_tonumber(L
, 4);
881 double arg4
= lua_tonumber(L
, 5);
882 bool ret
= __lua__obj
->QGraphicsItem::isObscured(arg1
, arg2
, arg3
, arg4
);
883 lua_pushboolean(L
, ret
);
886 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__isObscured (lua_State
*L
) {
888 const int premium
= 11+lua_gettop(L
);
890 score
[1] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
892 score
[2] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
893 if (lqtL_testudata(L
, 2, "QRectF*")) {
896 score
[2] += premium
-1; // table: 0x128d680;
898 score
[2] -= premium
*premium
;
901 score
[3] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
902 if (lua_isnumber(L
, 2)) {
905 score
[3] += premium
-1; // table: 0x128e120;
907 score
[3] -= premium
*premium
;
909 if (lua_isnumber(L
, 3)) {
912 score
[3] += premium
-1; // table: 0x128e650;
914 score
[3] -= premium
*premium
;
916 if (lua_isnumber(L
, 4)) {
919 score
[3] += premium
-1; // table: 0x128ea00;
921 score
[3] -= premium
*premium
;
923 if (lua_isnumber(L
, 5)) {
926 score
[3] += premium
-1; // table: 0x128e9a0;
928 score
[3] -= premium
*premium
;
931 for (int i
=1;i
<=3;i
++) {
932 if (score
[best
] < score
[i
]) { best
= i
; }
935 case 1: return __LuaWrapCall__isObscured__OverloadedVersion__1(L
); break;
936 case 2: return __LuaWrapCall__isObscured__OverloadedVersion__2(L
); break;
937 case 3: return __LuaWrapCall__isObscured__OverloadedVersion__3(L
); break;
939 lua_pushstring(L
, "no overload of function __LuaWrapCall__isObscured matching arguments");
943 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setAcceptedMouseButtons (lua_State
*L
) {
944 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
946 lua_pushstring(L
, "trying to reference deleted pointer");
950 QFlags
<Qt::MouseButton
> arg1
= **static_cast<QFlags
<Qt::MouseButton
>**>(lqtL_checkudata(L
, 2, "QFlags<Qt::MouseButton>*"));
951 __lua__obj
->QGraphicsItem::setAcceptedMouseButtons(arg1
);
954 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__matrix (lua_State
*L
) {
955 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
957 lua_pushstring(L
, "trying to reference deleted pointer");
961 QMatrix ret
= __lua__obj
->QGraphicsItem::matrix();
962 lqtL_passudata(L
, new QMatrix(ret
), "QMatrix*");
965 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__advance (lua_State
*L
) {
966 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
968 lua_pushstring(L
, "trying to reference deleted pointer");
972 int arg1
= lua_tointeger(L
, 2);
973 __lua__obj
->QGraphicsItem::advance(arg1
);
976 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__toolTip (lua_State
*L
) {
977 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
979 lua_pushstring(L
, "trying to reference deleted pointer");
983 QString ret
= __lua__obj
->QGraphicsItem::toolTip();
984 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
987 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__delete (lua_State
*L
) {
988 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
990 lua_pushstring(L
, "trying to reference deleted pointer");
998 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__sceneBoundingRect (lua_State
*L
) {
999 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1000 if (__lua__obj
==0) {
1001 lua_pushstring(L
, "trying to reference deleted pointer");
1005 QRectF ret
= __lua__obj
->QGraphicsItem::sceneBoundingRect();
1006 lqtL_passudata(L
, new QRectF(ret
), "QRectF*");
1009 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__flags (lua_State
*L
) {
1010 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1011 if (__lua__obj
==0) {
1012 lua_pushstring(L
, "trying to reference deleted pointer");
1016 QFlags
<QGraphicsItem::GraphicsItemFlag
> ret
= __lua__obj
->QGraphicsItem::flags();
1017 lqtL_passudata(L
, new QFlags
<QGraphicsItem::GraphicsItemFlag
>(ret
), "QFlags<QGraphicsItem::GraphicsItemFlag>*");
1020 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__isAncestorOf (lua_State
*L
) {
1021 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1022 if (__lua__obj
==0) {
1023 lua_pushstring(L
, "trying to reference deleted pointer");
1027 const QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
1028 bool ret
= __lua__obj
->QGraphicsItem::isAncestorOf(arg1
);
1029 lua_pushboolean(L
, ret
);
1032 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__collidesWithPath (lua_State
*L
) {
1033 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1034 if (__lua__obj
==0) {
1035 lua_pushstring(L
, "trying to reference deleted pointer");
1039 const QPainterPath
& arg1
= **static_cast<QPainterPath
**>(lqtL_checkudata(L
, 2, "QPainterPath*"));
1040 Qt::ItemSelectionMode arg2
= lqtL_isenum(L
, 3, "Qt::ItemSelectionMode")?static_cast<Qt::ItemSelectionMode
>(lqtL_toenum(L
, 3, "Qt::ItemSelectionMode")):Qt::IntersectsItemShape
;
1041 bool ret
= __lua__obj
->QGraphicsItem::collidesWithPath(arg1
, arg2
);
1042 lua_pushboolean(L
, ret
);
1045 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__new (lua_State
*L
) {
1046 QGraphicsItem
* arg1
= lqtL_testudata(L
, 1, "QGraphicsItem*")?*static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*")):static_cast< QGraphicsItem
* >(0);
1047 QGraphicsScene
* arg2
= lqtL_testudata(L
, 2, "QGraphicsScene*")?*static_cast<QGraphicsScene
**>(lqtL_checkudata(L
, 2, "QGraphicsScene*")):static_cast< QGraphicsScene
* >(0);
1048 QGraphicsItem
* ret
= new LuaBinder
< QGraphicsItem
>(L
, arg1
, arg2
);
1049 lqtL_passudata(L
, ret
, "QGraphicsItem*");
1052 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__scene (lua_State
*L
) {
1053 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1054 if (__lua__obj
==0) {
1055 lua_pushstring(L
, "trying to reference deleted pointer");
1059 QGraphicsScene
* ret
= __lua__obj
->QGraphicsItem::scene();
1060 lqtL_pushudata(L
, ret
, "QGraphicsScene*");
1063 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__rotate (lua_State
*L
) {
1064 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1065 if (__lua__obj
==0) {
1066 lua_pushstring(L
, "trying to reference deleted pointer");
1070 double arg1
= lua_tonumber(L
, 2);
1071 __lua__obj
->QGraphicsItem::rotate(arg1
);
1074 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setSelected (lua_State
*L
) {
1075 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1076 if (__lua__obj
==0) {
1077 lua_pushstring(L
, "trying to reference deleted pointer");
1081 bool arg1
= (bool)lua_toboolean(L
, 2);
1082 __lua__obj
->QGraphicsItem::setSelected(arg1
);
1085 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__hide (lua_State
*L
) {
1086 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1087 if (__lua__obj
==0) {
1088 lua_pushstring(L
, "trying to reference deleted pointer");
1092 __lua__obj
->QGraphicsItem::hide();
1095 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__installSceneEventFilter (lua_State
*L
) {
1096 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1097 if (__lua__obj
==0) {
1098 lua_pushstring(L
, "trying to reference deleted pointer");
1102 QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
1103 __lua__obj
->QGraphicsItem::installSceneEventFilter(arg1
);
1106 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__contains (lua_State
*L
) {
1107 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1108 if (__lua__obj
==0) {
1109 lua_pushstring(L
, "trying to reference deleted pointer");
1113 const QPointF
& arg1
= **static_cast<QPointF
**>(lqtL_checkudata(L
, 2, "QPointF*"));
1114 bool ret
= __lua__obj
->QGraphicsItem::contains(arg1
);
1115 lua_pushboolean(L
, ret
);
1118 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__sceneMatrix (lua_State
*L
) {
1119 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1120 if (__lua__obj
==0) {
1121 lua_pushstring(L
, "trying to reference deleted pointer");
1125 QMatrix ret
= __lua__obj
->QGraphicsItem::sceneMatrix();
1126 lqtL_passudata(L
, new QMatrix(ret
), "QMatrix*");
1129 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setTransform (lua_State
*L
) {
1130 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1131 if (__lua__obj
==0) {
1132 lua_pushstring(L
, "trying to reference deleted pointer");
1136 const QTransform
& arg1
= **static_cast<QTransform
**>(lqtL_checkudata(L
, 2, "QTransform*"));
1137 bool arg2
= lua_isboolean(L
, 3)?(bool)lua_toboolean(L
, 3):false;
1138 __lua__obj
->QGraphicsItem::setTransform(arg1
, arg2
);
1141 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__group (lua_State
*L
) {
1142 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1143 if (__lua__obj
==0) {
1144 lua_pushstring(L
, "trying to reference deleted pointer");
1148 QGraphicsItemGroup
* ret
= __lua__obj
->QGraphicsItem::group();
1149 lqtL_pushudata(L
, ret
, "QGraphicsItemGroup*");
1152 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromScene__OverloadedVersion__1 (lua_State
*L
) {
1153 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1154 if (__lua__obj
==0) {
1155 lua_pushstring(L
, "trying to reference deleted pointer");
1159 const QPointF
& arg1
= **static_cast<QPointF
**>(lqtL_checkudata(L
, 2, "QPointF*"));
1160 QPointF ret
= __lua__obj
->QGraphicsItem::mapFromScene(arg1
);
1161 lqtL_passudata(L
, new QPointF(ret
), "QPointF*");
1164 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromScene__OverloadedVersion__2 (lua_State
*L
) {
1165 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1166 if (__lua__obj
==0) {
1167 lua_pushstring(L
, "trying to reference deleted pointer");
1171 const QRectF
& arg1
= **static_cast<QRectF
**>(lqtL_checkudata(L
, 2, "QRectF*"));
1172 QPolygonF ret
= __lua__obj
->QGraphicsItem::mapFromScene(arg1
);
1173 lqtL_passudata(L
, new QPolygonF(ret
), "QPolygonF*");
1176 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromScene__OverloadedVersion__3 (lua_State
*L
) {
1177 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1178 if (__lua__obj
==0) {
1179 lua_pushstring(L
, "trying to reference deleted pointer");
1183 const QPolygonF
& arg1
= **static_cast<QPolygonF
**>(lqtL_checkudata(L
, 2, "QPolygonF*"));
1184 QPolygonF ret
= __lua__obj
->QGraphicsItem::mapFromScene(arg1
);
1185 lqtL_passudata(L
, new QPolygonF(ret
), "QPolygonF*");
1188 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromScene__OverloadedVersion__4 (lua_State
*L
) {
1189 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1190 if (__lua__obj
==0) {
1191 lua_pushstring(L
, "trying to reference deleted pointer");
1195 const QPainterPath
& arg1
= **static_cast<QPainterPath
**>(lqtL_checkudata(L
, 2, "QPainterPath*"));
1196 QPainterPath ret
= __lua__obj
->QGraphicsItem::mapFromScene(arg1
);
1197 lqtL_passudata(L
, new QPainterPath(ret
), "QPainterPath*");
1200 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromScene__OverloadedVersion__5 (lua_State
*L
) {
1201 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1202 if (__lua__obj
==0) {
1203 lua_pushstring(L
, "trying to reference deleted pointer");
1207 double arg1
= lua_tonumber(L
, 2);
1208 double arg2
= lua_tonumber(L
, 3);
1209 QPointF ret
= __lua__obj
->QGraphicsItem::mapFromScene(arg1
, arg2
);
1210 lqtL_passudata(L
, new QPointF(ret
), "QPointF*");
1213 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromScene__OverloadedVersion__6 (lua_State
*L
) {
1214 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1215 if (__lua__obj
==0) {
1216 lua_pushstring(L
, "trying to reference deleted pointer");
1220 double arg1
= lua_tonumber(L
, 2);
1221 double arg2
= lua_tonumber(L
, 3);
1222 double arg3
= lua_tonumber(L
, 4);
1223 double arg4
= lua_tonumber(L
, 5);
1224 QPolygonF ret
= __lua__obj
->QGraphicsItem::mapFromScene(arg1
, arg2
, arg3
, arg4
);
1225 lqtL_passudata(L
, new QPolygonF(ret
), "QPolygonF*");
1228 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromScene (lua_State
*L
) {
1230 const int premium
= 11+lua_gettop(L
);
1232 score
[1] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
1233 if (lqtL_testudata(L
, 2, "QPointF*")) {
1234 score
[1] += premium
;
1236 score
[1] += premium
-1; // table: 0x129e230;
1238 score
[1] -= premium
*premium
;
1241 score
[2] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
1242 if (lqtL_testudata(L
, 2, "QRectF*")) {
1243 score
[2] += premium
;
1245 score
[2] += premium
-1; // table: 0x12a0530;
1247 score
[2] -= premium
*premium
;
1250 score
[3] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
1251 if (lqtL_testudata(L
, 2, "QPolygonF*")) {
1252 score
[3] += premium
;
1254 score
[3] += premium
-1; // table: 0x12a2860;
1256 score
[3] -= premium
*premium
;
1259 score
[4] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
1260 if (lqtL_testudata(L
, 2, "QPainterPath*")) {
1261 score
[4] += premium
;
1263 score
[4] += premium
-1; // table: 0x12a4bd0;
1265 score
[4] -= premium
*premium
;
1268 score
[5] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
1269 if (lua_isnumber(L
, 2)) {
1270 score
[5] += premium
;
1272 score
[5] += premium
-1; // table: 0x12aec80;
1274 score
[5] -= premium
*premium
;
1276 if (lua_isnumber(L
, 3)) {
1277 score
[5] += premium
;
1279 score
[5] += premium
-1; // table: 0x12af1a0;
1281 score
[5] -= premium
*premium
;
1284 score
[6] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
1285 if (lua_isnumber(L
, 2)) {
1286 score
[6] += premium
;
1288 score
[6] += premium
-1; // table: 0x12b2af0;
1290 score
[6] -= premium
*premium
;
1292 if (lua_isnumber(L
, 3)) {
1293 score
[6] += premium
;
1295 score
[6] += premium
-1; // table: 0x12b3000;
1297 score
[6] -= premium
*premium
;
1299 if (lua_isnumber(L
, 4)) {
1300 score
[6] += premium
;
1302 score
[6] += premium
-1; // table: 0x12b33b0;
1304 score
[6] -= premium
*premium
;
1306 if (lua_isnumber(L
, 5)) {
1307 score
[6] += premium
;
1309 score
[6] += premium
-1; // table: 0x12b3350;
1311 score
[6] -= premium
*premium
;
1314 for (int i
=1;i
<=6;i
++) {
1315 if (score
[best
] < score
[i
]) { best
= i
; }
1318 case 1: return __LuaWrapCall__mapFromScene__OverloadedVersion__1(L
); break;
1319 case 2: return __LuaWrapCall__mapFromScene__OverloadedVersion__2(L
); break;
1320 case 3: return __LuaWrapCall__mapFromScene__OverloadedVersion__3(L
); break;
1321 case 4: return __LuaWrapCall__mapFromScene__OverloadedVersion__4(L
); break;
1322 case 5: return __LuaWrapCall__mapFromScene__OverloadedVersion__5(L
); break;
1323 case 6: return __LuaWrapCall__mapFromScene__OverloadedVersion__6(L
); break;
1325 lua_pushstring(L
, "no overload of function __LuaWrapCall__mapFromScene matching arguments");
1329 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__acceptsHoverEvents (lua_State
*L
) {
1330 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1331 if (__lua__obj
==0) {
1332 lua_pushstring(L
, "trying to reference deleted pointer");
1336 bool ret
= __lua__obj
->QGraphicsItem::acceptsHoverEvents();
1337 lua_pushboolean(L
, ret
);
1340 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setZValue (lua_State
*L
) {
1341 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1342 if (__lua__obj
==0) {
1343 lua_pushstring(L
, "trying to reference deleted pointer");
1347 double arg1
= lua_tonumber(L
, 2);
1348 __lua__obj
->QGraphicsItem::setZValue(arg1
);
1351 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setMatrix (lua_State
*L
) {
1352 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1353 if (__lua__obj
==0) {
1354 lua_pushstring(L
, "trying to reference deleted pointer");
1358 const QMatrix
& arg1
= **static_cast<QMatrix
**>(lqtL_checkudata(L
, 2, "QMatrix*"));
1359 bool arg2
= lua_isboolean(L
, 3)?(bool)lua_toboolean(L
, 3):false;
1360 __lua__obj
->QGraphicsItem::setMatrix(arg1
, arg2
);
1363 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setVisible (lua_State
*L
) {
1364 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1365 if (__lua__obj
==0) {
1366 lua_pushstring(L
, "trying to reference deleted pointer");
1370 bool arg1
= (bool)lua_toboolean(L
, 2);
1371 __lua__obj
->QGraphicsItem::setVisible(arg1
);
1374 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__handlesChildEvents (lua_State
*L
) {
1375 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1376 if (__lua__obj
==0) {
1377 lua_pushstring(L
, "trying to reference deleted pointer");
1381 bool ret
= __lua__obj
->QGraphicsItem::handlesChildEvents();
1382 lua_pushboolean(L
, ret
);
1385 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromItem__OverloadedVersion__1 (lua_State
*L
) {
1386 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1387 if (__lua__obj
==0) {
1388 lua_pushstring(L
, "trying to reference deleted pointer");
1392 const QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
1393 const QPointF
& arg2
= **static_cast<QPointF
**>(lqtL_checkudata(L
, 3, "QPointF*"));
1394 QPointF ret
= __lua__obj
->QGraphicsItem::mapFromItem(arg1
, arg2
);
1395 lqtL_passudata(L
, new QPointF(ret
), "QPointF*");
1398 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromItem__OverloadedVersion__2 (lua_State
*L
) {
1399 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1400 if (__lua__obj
==0) {
1401 lua_pushstring(L
, "trying to reference deleted pointer");
1405 const QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
1406 const QRectF
& arg2
= **static_cast<QRectF
**>(lqtL_checkudata(L
, 3, "QRectF*"));
1407 QPolygonF ret
= __lua__obj
->QGraphicsItem::mapFromItem(arg1
, arg2
);
1408 lqtL_passudata(L
, new QPolygonF(ret
), "QPolygonF*");
1411 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromItem__OverloadedVersion__3 (lua_State
*L
) {
1412 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1413 if (__lua__obj
==0) {
1414 lua_pushstring(L
, "trying to reference deleted pointer");
1418 const QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
1419 const QPolygonF
& arg2
= **static_cast<QPolygonF
**>(lqtL_checkudata(L
, 3, "QPolygonF*"));
1420 QPolygonF ret
= __lua__obj
->QGraphicsItem::mapFromItem(arg1
, arg2
);
1421 lqtL_passudata(L
, new QPolygonF(ret
), "QPolygonF*");
1424 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromItem__OverloadedVersion__4 (lua_State
*L
) {
1425 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1426 if (__lua__obj
==0) {
1427 lua_pushstring(L
, "trying to reference deleted pointer");
1431 const QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
1432 const QPainterPath
& arg2
= **static_cast<QPainterPath
**>(lqtL_checkudata(L
, 3, "QPainterPath*"));
1433 QPainterPath ret
= __lua__obj
->QGraphicsItem::mapFromItem(arg1
, arg2
);
1434 lqtL_passudata(L
, new QPainterPath(ret
), "QPainterPath*");
1437 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromItem__OverloadedVersion__5 (lua_State
*L
) {
1438 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1439 if (__lua__obj
==0) {
1440 lua_pushstring(L
, "trying to reference deleted pointer");
1444 const QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
1445 double arg2
= lua_tonumber(L
, 3);
1446 double arg3
= lua_tonumber(L
, 4);
1447 QPointF ret
= __lua__obj
->QGraphicsItem::mapFromItem(arg1
, arg2
, arg3
);
1448 lqtL_passudata(L
, new QPointF(ret
), "QPointF*");
1451 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromItem__OverloadedVersion__6 (lua_State
*L
) {
1452 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1453 if (__lua__obj
==0) {
1454 lua_pushstring(L
, "trying to reference deleted pointer");
1458 const QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
1459 double arg2
= lua_tonumber(L
, 3);
1460 double arg3
= lua_tonumber(L
, 4);
1461 double arg4
= lua_tonumber(L
, 5);
1462 double arg5
= lua_tonumber(L
, 6);
1463 QPolygonF ret
= __lua__obj
->QGraphicsItem::mapFromItem(arg1
, arg2
, arg3
, arg4
, arg5
);
1464 lqtL_passudata(L
, new QPolygonF(ret
), "QPolygonF*");
1467 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromItem (lua_State
*L
) {
1469 const int premium
= 11+lua_gettop(L
);
1471 score
[1] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
1472 if (lqtL_testudata(L
, 2, "QGraphicsItem*")) {
1473 score
[1] += premium
;
1475 score
[1] += premium
-1; // table: 0x129c8f0;
1477 score
[1] -= premium
*premium
;
1479 if (lqtL_testudata(L
, 3, "QPointF*")) {
1480 score
[1] += premium
;
1482 score
[1] += premium
-1; // table: 0x129c310;
1484 score
[1] -= premium
*premium
;
1487 score
[2] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
1488 if (lqtL_testudata(L
, 2, "QGraphicsItem*")) {
1489 score
[2] += premium
;
1491 score
[2] += premium
-1; // table: 0x129ec90;
1493 score
[2] -= premium
*premium
;
1495 if (lqtL_testudata(L
, 3, "QRectF*")) {
1496 score
[2] += premium
;
1498 score
[2] += premium
-1; // table: 0x129e740;
1500 score
[2] -= premium
*premium
;
1503 score
[3] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
1504 if (lqtL_testudata(L
, 2, "QGraphicsItem*")) {
1505 score
[3] += premium
;
1507 score
[3] += premium
-1; // table: 0x12a0fb0;
1509 score
[3] -= premium
*premium
;
1511 if (lqtL_testudata(L
, 3, "QPolygonF*")) {
1512 score
[3] += premium
;
1514 score
[3] += premium
-1; // table: 0x12a0a40;
1516 score
[3] -= premium
*premium
;
1519 score
[4] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
1520 if (lqtL_testudata(L
, 2, "QGraphicsItem*")) {
1521 score
[4] += premium
;
1523 score
[4] += premium
-1; // table: 0x12a32e0;
1525 score
[4] -= premium
*premium
;
1527 if (lqtL_testudata(L
, 3, "QPainterPath*")) {
1528 score
[4] += premium
;
1530 score
[4] += premium
-1; // table: 0x12a2d70;
1532 score
[4] -= premium
*premium
;
1535 score
[5] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
1536 if (lqtL_testudata(L
, 2, "QGraphicsItem*")) {
1537 score
[5] += premium
;
1539 score
[5] += premium
-1; // table: 0x12acba0;
1541 score
[5] -= premium
*premium
;
1543 if (lua_isnumber(L
, 3)) {
1544 score
[5] += premium
;
1546 score
[5] += premium
-1; // table: 0x12ad0d0;
1548 score
[5] -= premium
*premium
;
1550 if (lua_isnumber(L
, 4)) {
1551 score
[5] += premium
;
1553 score
[5] += premium
-1; // table: 0x12ad480;
1555 score
[5] -= premium
*premium
;
1558 score
[6] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
1559 if (lqtL_testudata(L
, 2, "QGraphicsItem*")) {
1560 score
[6] += premium
;
1562 score
[6] += premium
-1; // table: 0x12afb00;
1564 score
[6] -= premium
*premium
;
1566 if (lua_isnumber(L
, 3)) {
1567 score
[6] += premium
;
1569 score
[6] += premium
-1; // table: 0x12b0010;
1571 score
[6] -= premium
*premium
;
1573 if (lua_isnumber(L
, 4)) {
1574 score
[6] += premium
;
1576 score
[6] += premium
-1; // table: 0x12b03c0;
1578 score
[6] -= premium
*premium
;
1580 if (lua_isnumber(L
, 5)) {
1581 score
[6] += premium
;
1583 score
[6] += premium
-1; // table: 0x12b0360;
1585 score
[6] -= premium
*premium
;
1587 if (lua_isnumber(L
, 6)) {
1588 score
[6] += premium
;
1590 score
[6] += premium
-1; // table: 0x12b0b70;
1592 score
[6] -= premium
*premium
;
1595 for (int i
=1;i
<=6;i
++) {
1596 if (score
[best
] < score
[i
]) { best
= i
; }
1599 case 1: return __LuaWrapCall__mapFromItem__OverloadedVersion__1(L
); break;
1600 case 2: return __LuaWrapCall__mapFromItem__OverloadedVersion__2(L
); break;
1601 case 3: return __LuaWrapCall__mapFromItem__OverloadedVersion__3(L
); break;
1602 case 4: return __LuaWrapCall__mapFromItem__OverloadedVersion__4(L
); break;
1603 case 5: return __LuaWrapCall__mapFromItem__OverloadedVersion__5(L
); break;
1604 case 6: return __LuaWrapCall__mapFromItem__OverloadedVersion__6(L
); break;
1606 lua_pushstring(L
, "no overload of function __LuaWrapCall__mapFromItem matching arguments");
1610 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__childrenBoundingRect (lua_State
*L
) {
1611 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1612 if (__lua__obj
==0) {
1613 lua_pushstring(L
, "trying to reference deleted pointer");
1617 QRectF ret
= __lua__obj
->QGraphicsItem::childrenBoundingRect();
1618 lqtL_passudata(L
, new QRectF(ret
), "QRectF*");
1621 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__isObscuredBy (lua_State
*L
) {
1622 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1623 if (__lua__obj
==0) {
1624 lua_pushstring(L
, "trying to reference deleted pointer");
1628 const QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
1629 bool ret
= __lua__obj
->QGraphicsItem::isObscuredBy(arg1
);
1630 lua_pushboolean(L
, ret
);
1633 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__children (lua_State
*L
) {
1634 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1635 if (__lua__obj
==0) {
1636 lua_pushstring(L
, "trying to reference deleted pointer");
1640 QList
<QGraphicsItem
*> ret
= __lua__obj
->QGraphicsItem::children();
1641 lqtL_passudata(L
, new QList
<QGraphicsItem
*>(ret
), "QList<QGraphicsItem*>*");
1644 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__unsetCursor (lua_State
*L
) {
1645 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1646 if (__lua__obj
==0) {
1647 lua_pushstring(L
, "trying to reference deleted pointer");
1651 __lua__obj
->QGraphicsItem::unsetCursor();
1654 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__shear (lua_State
*L
) {
1655 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1656 if (__lua__obj
==0) {
1657 lua_pushstring(L
, "trying to reference deleted pointer");
1661 double arg1
= lua_tonumber(L
, 2);
1662 double arg2
= lua_tonumber(L
, 3);
1663 __lua__obj
->QGraphicsItem::shear(arg1
, arg2
);
1666 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__type (lua_State
*L
) {
1667 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1668 if (__lua__obj
==0) {
1669 lua_pushstring(L
, "trying to reference deleted pointer");
1673 int ret
= __lua__obj
->QGraphicsItem::type();
1674 lua_pushinteger(L
, ret
);
1677 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToScene__OverloadedVersion__1 (lua_State
*L
) {
1678 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1679 if (__lua__obj
==0) {
1680 lua_pushstring(L
, "trying to reference deleted pointer");
1684 const QPointF
& arg1
= **static_cast<QPointF
**>(lqtL_checkudata(L
, 2, "QPointF*"));
1685 QPointF ret
= __lua__obj
->QGraphicsItem::mapToScene(arg1
);
1686 lqtL_passudata(L
, new QPointF(ret
), "QPointF*");
1689 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToScene__OverloadedVersion__2 (lua_State
*L
) {
1690 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1691 if (__lua__obj
==0) {
1692 lua_pushstring(L
, "trying to reference deleted pointer");
1696 const QRectF
& arg1
= **static_cast<QRectF
**>(lqtL_checkudata(L
, 2, "QRectF*"));
1697 QPolygonF ret
= __lua__obj
->QGraphicsItem::mapToScene(arg1
);
1698 lqtL_passudata(L
, new QPolygonF(ret
), "QPolygonF*");
1701 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToScene__OverloadedVersion__3 (lua_State
*L
) {
1702 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1703 if (__lua__obj
==0) {
1704 lua_pushstring(L
, "trying to reference deleted pointer");
1708 const QPolygonF
& arg1
= **static_cast<QPolygonF
**>(lqtL_checkudata(L
, 2, "QPolygonF*"));
1709 QPolygonF ret
= __lua__obj
->QGraphicsItem::mapToScene(arg1
);
1710 lqtL_passudata(L
, new QPolygonF(ret
), "QPolygonF*");
1713 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToScene__OverloadedVersion__4 (lua_State
*L
) {
1714 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1715 if (__lua__obj
==0) {
1716 lua_pushstring(L
, "trying to reference deleted pointer");
1720 const QPainterPath
& arg1
= **static_cast<QPainterPath
**>(lqtL_checkudata(L
, 2, "QPainterPath*"));
1721 QPainterPath ret
= __lua__obj
->QGraphicsItem::mapToScene(arg1
);
1722 lqtL_passudata(L
, new QPainterPath(ret
), "QPainterPath*");
1725 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToScene__OverloadedVersion__5 (lua_State
*L
) {
1726 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1727 if (__lua__obj
==0) {
1728 lua_pushstring(L
, "trying to reference deleted pointer");
1732 double arg1
= lua_tonumber(L
, 2);
1733 double arg2
= lua_tonumber(L
, 3);
1734 QPointF ret
= __lua__obj
->QGraphicsItem::mapToScene(arg1
, arg2
);
1735 lqtL_passudata(L
, new QPointF(ret
), "QPointF*");
1738 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToScene__OverloadedVersion__6 (lua_State
*L
) {
1739 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1740 if (__lua__obj
==0) {
1741 lua_pushstring(L
, "trying to reference deleted pointer");
1745 double arg1
= lua_tonumber(L
, 2);
1746 double arg2
= lua_tonumber(L
, 3);
1747 double arg3
= lua_tonumber(L
, 4);
1748 double arg4
= lua_tonumber(L
, 5);
1749 QPolygonF ret
= __lua__obj
->QGraphicsItem::mapToScene(arg1
, arg2
, arg3
, arg4
);
1750 lqtL_passudata(L
, new QPolygonF(ret
), "QPolygonF*");
1753 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToScene (lua_State
*L
) {
1755 const int premium
= 11+lua_gettop(L
);
1757 score
[1] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
1758 if (lqtL_testudata(L
, 2, "QPointF*")) {
1759 score
[1] += premium
;
1761 score
[1] += premium
-1; // table: 0x12954c0;
1763 score
[1] -= premium
*premium
;
1766 score
[2] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
1767 if (lqtL_testudata(L
, 2, "QRectF*")) {
1768 score
[2] += premium
;
1770 score
[2] += premium
-1; // table: 0x12977a0;
1772 score
[2] -= premium
*premium
;
1775 score
[3] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
1776 if (lqtL_testudata(L
, 2, "QPolygonF*")) {
1777 score
[3] += premium
;
1779 score
[3] += premium
-1; // table: 0x1299a90;
1781 score
[3] -= premium
*premium
;
1784 score
[4] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
1785 if (lqtL_testudata(L
, 2, "QPainterPath*")) {
1786 score
[4] += premium
;
1788 score
[4] += premium
-1; // table: 0x129be00;
1790 score
[4] -= premium
*premium
;
1793 score
[5] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
1794 if (lua_isnumber(L
, 2)) {
1795 score
[5] += premium
;
1797 score
[5] += premium
-1; // table: 0x12a7700;
1799 score
[5] -= premium
*premium
;
1801 if (lua_isnumber(L
, 3)) {
1802 score
[5] += premium
;
1804 score
[5] += premium
-1; // table: 0x12a7c30;
1806 score
[5] -= premium
*premium
;
1809 score
[6] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
1810 if (lua_isnumber(L
, 2)) {
1811 score
[6] += premium
;
1813 score
[6] += premium
-1; // table: 0x12ab520;
1815 score
[6] -= premium
*premium
;
1817 if (lua_isnumber(L
, 3)) {
1818 score
[6] += premium
;
1820 score
[6] += premium
-1; // table: 0x12aba50;
1822 score
[6] -= premium
*premium
;
1824 if (lua_isnumber(L
, 4)) {
1825 score
[6] += premium
;
1827 score
[6] += premium
-1; // table: 0x12abe00;
1829 score
[6] -= premium
*premium
;
1831 if (lua_isnumber(L
, 5)) {
1832 score
[6] += premium
;
1834 score
[6] += premium
-1; // table: 0x12abda0;
1836 score
[6] -= premium
*premium
;
1839 for (int i
=1;i
<=6;i
++) {
1840 if (score
[best
] < score
[i
]) { best
= i
; }
1843 case 1: return __LuaWrapCall__mapToScene__OverloadedVersion__1(L
); break;
1844 case 2: return __LuaWrapCall__mapToScene__OverloadedVersion__2(L
); break;
1845 case 3: return __LuaWrapCall__mapToScene__OverloadedVersion__3(L
); break;
1846 case 4: return __LuaWrapCall__mapToScene__OverloadedVersion__4(L
); break;
1847 case 5: return __LuaWrapCall__mapToScene__OverloadedVersion__5(L
); break;
1848 case 6: return __LuaWrapCall__mapToScene__OverloadedVersion__6(L
); break;
1850 lua_pushstring(L
, "no overload of function __LuaWrapCall__mapToScene matching arguments");
1854 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__collidingItems (lua_State
*L
) {
1855 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1856 if (__lua__obj
==0) {
1857 lua_pushstring(L
, "trying to reference deleted pointer");
1861 Qt::ItemSelectionMode arg1
= lqtL_isenum(L
, 2, "Qt::ItemSelectionMode")?static_cast<Qt::ItemSelectionMode
>(lqtL_toenum(L
, 2, "Qt::ItemSelectionMode")):Qt::IntersectsItemShape
;
1862 QList
<QGraphicsItem
*> ret
= __lua__obj
->QGraphicsItem::collidingItems(arg1
);
1863 lqtL_passudata(L
, new QList
<QGraphicsItem
*>(ret
), "QList<QGraphicsItem*>*");
1866 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setEnabled (lua_State
*L
) {
1867 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1868 if (__lua__obj
==0) {
1869 lua_pushstring(L
, "trying to reference deleted pointer");
1873 bool arg1
= (bool)lua_toboolean(L
, 2);
1874 __lua__obj
->QGraphicsItem::setEnabled(arg1
);
1877 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__acceptDrops (lua_State
*L
) {
1878 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1879 if (__lua__obj
==0) {
1880 lua_pushstring(L
, "trying to reference deleted pointer");
1884 bool ret
= __lua__obj
->QGraphicsItem::acceptDrops();
1885 lua_pushboolean(L
, ret
);
1888 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__zValue (lua_State
*L
) {
1889 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1890 if (__lua__obj
==0) {
1891 lua_pushstring(L
, "trying to reference deleted pointer");
1895 double ret
= __lua__obj
->QGraphicsItem::zValue();
1896 lua_pushnumber(L
, ret
);
1899 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__resetMatrix (lua_State
*L
) {
1900 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1901 if (__lua__obj
==0) {
1902 lua_pushstring(L
, "trying to reference deleted pointer");
1906 __lua__obj
->QGraphicsItem::resetMatrix();
1909 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__cursor (lua_State
*L
) {
1910 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1911 if (__lua__obj
==0) {
1912 lua_pushstring(L
, "trying to reference deleted pointer");
1916 QCursor ret
= __lua__obj
->QGraphicsItem::cursor();
1917 lqtL_passudata(L
, new QCursor(ret
), "QCursor*");
1920 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromParent__OverloadedVersion__1 (lua_State
*L
) {
1921 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1922 if (__lua__obj
==0) {
1923 lua_pushstring(L
, "trying to reference deleted pointer");
1927 const QPointF
& arg1
= **static_cast<QPointF
**>(lqtL_checkudata(L
, 2, "QPointF*"));
1928 QPointF ret
= __lua__obj
->QGraphicsItem::mapFromParent(arg1
);
1929 lqtL_passudata(L
, new QPointF(ret
), "QPointF*");
1932 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromParent__OverloadedVersion__2 (lua_State
*L
) {
1933 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1934 if (__lua__obj
==0) {
1935 lua_pushstring(L
, "trying to reference deleted pointer");
1939 const QRectF
& arg1
= **static_cast<QRectF
**>(lqtL_checkudata(L
, 2, "QRectF*"));
1940 QPolygonF ret
= __lua__obj
->QGraphicsItem::mapFromParent(arg1
);
1941 lqtL_passudata(L
, new QPolygonF(ret
), "QPolygonF*");
1944 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromParent__OverloadedVersion__3 (lua_State
*L
) {
1945 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1946 if (__lua__obj
==0) {
1947 lua_pushstring(L
, "trying to reference deleted pointer");
1951 const QPolygonF
& arg1
= **static_cast<QPolygonF
**>(lqtL_checkudata(L
, 2, "QPolygonF*"));
1952 QPolygonF ret
= __lua__obj
->QGraphicsItem::mapFromParent(arg1
);
1953 lqtL_passudata(L
, new QPolygonF(ret
), "QPolygonF*");
1956 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromParent__OverloadedVersion__4 (lua_State
*L
) {
1957 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1958 if (__lua__obj
==0) {
1959 lua_pushstring(L
, "trying to reference deleted pointer");
1963 const QPainterPath
& arg1
= **static_cast<QPainterPath
**>(lqtL_checkudata(L
, 2, "QPainterPath*"));
1964 QPainterPath ret
= __lua__obj
->QGraphicsItem::mapFromParent(arg1
);
1965 lqtL_passudata(L
, new QPainterPath(ret
), "QPainterPath*");
1968 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromParent__OverloadedVersion__5 (lua_State
*L
) {
1969 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1970 if (__lua__obj
==0) {
1971 lua_pushstring(L
, "trying to reference deleted pointer");
1975 double arg1
= lua_tonumber(L
, 2);
1976 double arg2
= lua_tonumber(L
, 3);
1977 QPointF ret
= __lua__obj
->QGraphicsItem::mapFromParent(arg1
, arg2
);
1978 lqtL_passudata(L
, new QPointF(ret
), "QPointF*");
1981 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromParent__OverloadedVersion__6 (lua_State
*L
) {
1982 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
1983 if (__lua__obj
==0) {
1984 lua_pushstring(L
, "trying to reference deleted pointer");
1988 double arg1
= lua_tonumber(L
, 2);
1989 double arg2
= lua_tonumber(L
, 3);
1990 double arg3
= lua_tonumber(L
, 4);
1991 double arg4
= lua_tonumber(L
, 5);
1992 QPolygonF ret
= __lua__obj
->QGraphicsItem::mapFromParent(arg1
, arg2
, arg3
, arg4
);
1993 lqtL_passudata(L
, new QPolygonF(ret
), "QPolygonF*");
1996 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromParent (lua_State
*L
) {
1998 const int premium
= 11+lua_gettop(L
);
2000 score
[1] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
2001 if (lqtL_testudata(L
, 2, "QPointF*")) {
2002 score
[1] += premium
;
2004 score
[1] += premium
-1; // table: 0x129d7d0;
2006 score
[1] -= premium
*premium
;
2009 score
[2] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
2010 if (lqtL_testudata(L
, 2, "QRectF*")) {
2011 score
[2] += premium
;
2013 score
[2] += premium
-1; // table: 0x129fae0;
2015 score
[2] -= premium
*premium
;
2018 score
[3] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
2019 if (lqtL_testudata(L
, 2, "QPolygonF*")) {
2020 score
[3] += premium
;
2022 score
[3] += premium
-1; // table: 0x12a1e00;
2024 score
[3] -= premium
*premium
;
2027 score
[4] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
2028 if (lqtL_testudata(L
, 2, "QPainterPath*")) {
2029 score
[4] += premium
;
2031 score
[4] += premium
-1; // table: 0x12a4150;
2033 score
[4] -= premium
*premium
;
2036 score
[5] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
2037 if (lua_isnumber(L
, 2)) {
2038 score
[5] += premium
;
2040 score
[5] += premium
-1; // table: 0x12ade10;
2042 score
[5] -= premium
*premium
;
2044 if (lua_isnumber(L
, 3)) {
2045 score
[5] += premium
;
2047 score
[5] += premium
-1; // table: 0x12ae340;
2049 score
[5] -= premium
*premium
;
2052 score
[6] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
2053 if (lua_isnumber(L
, 2)) {
2054 score
[6] += premium
;
2056 score
[6] += premium
-1; // table: 0x12b14f0;
2058 score
[6] -= premium
*premium
;
2060 if (lua_isnumber(L
, 3)) {
2061 score
[6] += premium
;
2063 score
[6] += premium
-1; // table: 0x12b1a10;
2065 score
[6] -= premium
*premium
;
2067 if (lua_isnumber(L
, 4)) {
2068 score
[6] += premium
;
2070 score
[6] += premium
-1; // table: 0x12b1dc0;
2072 score
[6] -= premium
*premium
;
2074 if (lua_isnumber(L
, 5)) {
2075 score
[6] += premium
;
2077 score
[6] += premium
-1; // table: 0x12b1d60;
2079 score
[6] -= premium
*premium
;
2082 for (int i
=1;i
<=6;i
++) {
2083 if (score
[best
] < score
[i
]) { best
= i
; }
2086 case 1: return __LuaWrapCall__mapFromParent__OverloadedVersion__1(L
); break;
2087 case 2: return __LuaWrapCall__mapFromParent__OverloadedVersion__2(L
); break;
2088 case 3: return __LuaWrapCall__mapFromParent__OverloadedVersion__3(L
); break;
2089 case 4: return __LuaWrapCall__mapFromParent__OverloadedVersion__4(L
); break;
2090 case 5: return __LuaWrapCall__mapFromParent__OverloadedVersion__5(L
); break;
2091 case 6: return __LuaWrapCall__mapFromParent__OverloadedVersion__6(L
); break;
2093 lua_pushstring(L
, "no overload of function __LuaWrapCall__mapFromParent matching arguments");
2097 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToParent__OverloadedVersion__1 (lua_State
*L
) {
2098 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
2099 if (__lua__obj
==0) {
2100 lua_pushstring(L
, "trying to reference deleted pointer");
2104 const QPointF
& arg1
= **static_cast<QPointF
**>(lqtL_checkudata(L
, 2, "QPointF*"));
2105 QPointF ret
= __lua__obj
->QGraphicsItem::mapToParent(arg1
);
2106 lqtL_passudata(L
, new QPointF(ret
), "QPointF*");
2109 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToParent__OverloadedVersion__2 (lua_State
*L
) {
2110 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
2111 if (__lua__obj
==0) {
2112 lua_pushstring(L
, "trying to reference deleted pointer");
2116 const QRectF
& arg1
= **static_cast<QRectF
**>(lqtL_checkudata(L
, 2, "QRectF*"));
2117 QPolygonF ret
= __lua__obj
->QGraphicsItem::mapToParent(arg1
);
2118 lqtL_passudata(L
, new QPolygonF(ret
), "QPolygonF*");
2121 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToParent__OverloadedVersion__3 (lua_State
*L
) {
2122 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
2123 if (__lua__obj
==0) {
2124 lua_pushstring(L
, "trying to reference deleted pointer");
2128 const QPolygonF
& arg1
= **static_cast<QPolygonF
**>(lqtL_checkudata(L
, 2, "QPolygonF*"));
2129 QPolygonF ret
= __lua__obj
->QGraphicsItem::mapToParent(arg1
);
2130 lqtL_passudata(L
, new QPolygonF(ret
), "QPolygonF*");
2133 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToParent__OverloadedVersion__4 (lua_State
*L
) {
2134 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
2135 if (__lua__obj
==0) {
2136 lua_pushstring(L
, "trying to reference deleted pointer");
2140 const QPainterPath
& arg1
= **static_cast<QPainterPath
**>(lqtL_checkudata(L
, 2, "QPainterPath*"));
2141 QPainterPath ret
= __lua__obj
->QGraphicsItem::mapToParent(arg1
);
2142 lqtL_passudata(L
, new QPainterPath(ret
), "QPainterPath*");
2145 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToParent__OverloadedVersion__5 (lua_State
*L
) {
2146 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
2147 if (__lua__obj
==0) {
2148 lua_pushstring(L
, "trying to reference deleted pointer");
2152 double arg1
= lua_tonumber(L
, 2);
2153 double arg2
= lua_tonumber(L
, 3);
2154 QPointF ret
= __lua__obj
->QGraphicsItem::mapToParent(arg1
, arg2
);
2155 lqtL_passudata(L
, new QPointF(ret
), "QPointF*");
2158 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToParent__OverloadedVersion__6 (lua_State
*L
) {
2159 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
2160 if (__lua__obj
==0) {
2161 lua_pushstring(L
, "trying to reference deleted pointer");
2165 double arg1
= lua_tonumber(L
, 2);
2166 double arg2
= lua_tonumber(L
, 3);
2167 double arg3
= lua_tonumber(L
, 4);
2168 double arg4
= lua_tonumber(L
, 5);
2169 QPolygonF ret
= __lua__obj
->QGraphicsItem::mapToParent(arg1
, arg2
, arg3
, arg4
);
2170 lqtL_passudata(L
, new QPolygonF(ret
), "QPolygonF*");
2173 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToParent (lua_State
*L
) {
2175 const int premium
= 11+lua_gettop(L
);
2177 score
[1] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
2178 if (lqtL_testudata(L
, 2, "QPointF*")) {
2179 score
[1] += premium
;
2181 score
[1] += premium
-1; // table: 0x1294a70;
2183 score
[1] -= premium
*premium
;
2186 score
[2] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
2187 if (lqtL_testudata(L
, 2, "QRectF*")) {
2188 score
[2] += premium
;
2190 score
[2] += premium
-1; // table: 0x1296d50;
2192 score
[2] -= premium
*premium
;
2195 score
[3] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
2196 if (lqtL_testudata(L
, 2, "QPolygonF*")) {
2197 score
[3] += premium
;
2199 score
[3] += premium
-1; // table: 0x1299040;
2201 score
[3] -= premium
*premium
;
2204 score
[4] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
2205 if (lqtL_testudata(L
, 2, "QPainterPath*")) {
2206 score
[4] += premium
;
2208 score
[4] += premium
-1; // table: 0x129b380;
2210 score
[4] -= premium
*premium
;
2213 score
[5] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
2214 if (lua_isnumber(L
, 2)) {
2215 score
[5] += premium
;
2217 score
[5] += premium
-1; // table: 0x12a6870;
2219 score
[5] -= premium
*premium
;
2221 if (lua_isnumber(L
, 3)) {
2222 score
[5] += premium
;
2224 score
[5] += premium
-1; // table: 0x12a6d90;
2226 score
[5] -= premium
*premium
;
2229 score
[6] += lqtL_testudata(L
, 1, "QGraphicsItem*")?premium
:-premium
*premium
;
2230 if (lua_isnumber(L
, 2)) {
2231 score
[6] += premium
;
2233 score
[6] += premium
-1; // table: 0x12a9f60;
2235 score
[6] -= premium
*premium
;
2237 if (lua_isnumber(L
, 3)) {
2238 score
[6] += premium
;
2240 score
[6] += premium
-1; // table: 0x12aa480;
2242 score
[6] -= premium
*premium
;
2244 if (lua_isnumber(L
, 4)) {
2245 score
[6] += premium
;
2247 score
[6] += premium
-1; // table: 0x12aa830;
2249 score
[6] -= premium
*premium
;
2251 if (lua_isnumber(L
, 5)) {
2252 score
[6] += premium
;
2254 score
[6] += premium
-1; // table: 0x12aa7d0;
2256 score
[6] -= premium
*premium
;
2259 for (int i
=1;i
<=6;i
++) {
2260 if (score
[best
] < score
[i
]) { best
= i
; }
2263 case 1: return __LuaWrapCall__mapToParent__OverloadedVersion__1(L
); break;
2264 case 2: return __LuaWrapCall__mapToParent__OverloadedVersion__2(L
); break;
2265 case 3: return __LuaWrapCall__mapToParent__OverloadedVersion__3(L
); break;
2266 case 4: return __LuaWrapCall__mapToParent__OverloadedVersion__4(L
); break;
2267 case 5: return __LuaWrapCall__mapToParent__OverloadedVersion__5(L
); break;
2268 case 6: return __LuaWrapCall__mapToParent__OverloadedVersion__6(L
); break;
2270 lua_pushstring(L
, "no overload of function __LuaWrapCall__mapToParent matching arguments");
2274 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setHandlesChildEvents (lua_State
*L
) {
2275 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
2276 if (__lua__obj
==0) {
2277 lua_pushstring(L
, "trying to reference deleted pointer");
2281 bool arg1
= (bool)lua_toboolean(L
, 2);
2282 __lua__obj
->QGraphicsItem::setHandlesChildEvents(arg1
);
2285 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__removeSceneEventFilter (lua_State
*L
) {
2286 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
2287 if (__lua__obj
==0) {
2288 lua_pushstring(L
, "trying to reference deleted pointer");
2292 QGraphicsItem
* arg1
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 2, "QGraphicsItem*"));
2293 __lua__obj
->QGraphicsItem::removeSceneEventFilter(arg1
);
2296 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__data (lua_State
*L
) {
2297 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
2298 if (__lua__obj
==0) {
2299 lua_pushstring(L
, "trying to reference deleted pointer");
2303 int arg1
= lua_tointeger(L
, 2);
2304 QVariant ret
= __lua__obj
->QGraphicsItem::data(arg1
);
2305 lqtL_passudata(L
, new QVariant(ret
), "QVariant*");
2308 int LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setData (lua_State
*L
) {
2309 QGraphicsItem
*& __lua__obj
= *static_cast<QGraphicsItem
**>(lqtL_checkudata(L
, 1, "QGraphicsItem*"));
2310 if (__lua__obj
==0) {
2311 lua_pushstring(L
, "trying to reference deleted pointer");
2315 int arg1
= lua_tointeger(L
, 2);
2316 const QVariant
& arg2
= **static_cast<QVariant
**>(lqtL_checkudata(L
, 3, "QVariant*"));
2317 __lua__obj
->QGraphicsItem::setData(arg1
, arg2
);
2320 void LuaBinder
< QGraphicsItem
>::advance (int arg1
) {
2321 bool absorbed
= false;
2322 int oldtop
= lua_gettop(L
);
2323 lqtL_pushudata(L
, this, "QGraphicsItem*");
2324 if (lua_getmetatable(L
, -1)) {
2325 lua_getfield(L
, -1, "advance");
2331 lua_pushinteger(L
, arg1
);
2332 if (lua_isfunction(L
, -1-2)) {
2333 lua_pcall(L
, 1+1, 2, 0);
2334 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2338 lua_settop(L
, oldtop
);
2339 this->QGraphicsItem::advance(arg1
);
2341 lua_settop(L
, oldtop
);
2343 void LuaBinder
< QGraphicsItem
>::focusInEvent (QFocusEvent
* arg1
) {
2344 bool absorbed
= false;
2345 int oldtop
= lua_gettop(L
);
2346 lqtL_pushudata(L
, this, "QGraphicsItem*");
2347 if (lua_getmetatable(L
, -1)) {
2348 lua_getfield(L
, -1, "focusInEvent");
2354 lqtL_pushudata(L
, arg1
, "QFocusEvent*");
2355 if (lua_isfunction(L
, -1-2)) {
2356 lua_pcall(L
, 1+1, 2, 0);
2357 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2361 lua_settop(L
, oldtop
);
2362 this->QGraphicsItem::focusInEvent(arg1
);
2364 lua_settop(L
, oldtop
);
2366 void LuaBinder
< QGraphicsItem
>::keyPressEvent (QKeyEvent
* arg1
) {
2367 bool absorbed
= false;
2368 int oldtop
= lua_gettop(L
);
2369 lqtL_pushudata(L
, this, "QGraphicsItem*");
2370 if (lua_getmetatable(L
, -1)) {
2371 lua_getfield(L
, -1, "keyPressEvent");
2377 lqtL_pushudata(L
, arg1
, "QKeyEvent*");
2378 if (lua_isfunction(L
, -1-2)) {
2379 lua_pcall(L
, 1+1, 2, 0);
2380 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2384 lua_settop(L
, oldtop
);
2385 this->QGraphicsItem::keyPressEvent(arg1
);
2387 lua_settop(L
, oldtop
);
2389 void LuaBinder
< QGraphicsItem
>::contextMenuEvent (QGraphicsSceneContextMenuEvent
* arg1
) {
2390 bool absorbed
= false;
2391 int oldtop
= lua_gettop(L
);
2392 lqtL_pushudata(L
, this, "QGraphicsItem*");
2393 if (lua_getmetatable(L
, -1)) {
2394 lua_getfield(L
, -1, "contextMenuEvent");
2400 lqtL_pushudata(L
, arg1
, "QGraphicsSceneContextMenuEvent*");
2401 if (lua_isfunction(L
, -1-2)) {
2402 lua_pcall(L
, 1+1, 2, 0);
2403 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2407 lua_settop(L
, oldtop
);
2408 this->QGraphicsItem::contextMenuEvent(arg1
);
2410 lua_settop(L
, oldtop
);
2412 void LuaBinder
< QGraphicsItem
>::keyReleaseEvent (QKeyEvent
* arg1
) {
2413 bool absorbed
= false;
2414 int oldtop
= lua_gettop(L
);
2415 lqtL_pushudata(L
, this, "QGraphicsItem*");
2416 if (lua_getmetatable(L
, -1)) {
2417 lua_getfield(L
, -1, "keyReleaseEvent");
2423 lqtL_pushudata(L
, arg1
, "QKeyEvent*");
2424 if (lua_isfunction(L
, -1-2)) {
2425 lua_pcall(L
, 1+1, 2, 0);
2426 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2430 lua_settop(L
, oldtop
);
2431 this->QGraphicsItem::keyReleaseEvent(arg1
);
2433 lua_settop(L
, oldtop
);
2435 void LuaBinder
< QGraphicsItem
>::dragLeaveEvent (QGraphicsSceneDragDropEvent
* arg1
) {
2436 bool absorbed
= false;
2437 int oldtop
= lua_gettop(L
);
2438 lqtL_pushudata(L
, this, "QGraphicsItem*");
2439 if (lua_getmetatable(L
, -1)) {
2440 lua_getfield(L
, -1, "dragLeaveEvent");
2446 lqtL_pushudata(L
, arg1
, "QGraphicsSceneDragDropEvent*");
2447 if (lua_isfunction(L
, -1-2)) {
2448 lua_pcall(L
, 1+1, 2, 0);
2449 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2453 lua_settop(L
, oldtop
);
2454 this->QGraphicsItem::dragLeaveEvent(arg1
);
2456 lua_settop(L
, oldtop
);
2458 void LuaBinder
< QGraphicsItem
>::mousePressEvent (QGraphicsSceneMouseEvent
* arg1
) {
2459 bool absorbed
= false;
2460 int oldtop
= lua_gettop(L
);
2461 lqtL_pushudata(L
, this, "QGraphicsItem*");
2462 if (lua_getmetatable(L
, -1)) {
2463 lua_getfield(L
, -1, "mousePressEvent");
2469 lqtL_pushudata(L
, arg1
, "QGraphicsSceneMouseEvent*");
2470 if (lua_isfunction(L
, -1-2)) {
2471 lua_pcall(L
, 1+1, 2, 0);
2472 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2476 lua_settop(L
, oldtop
);
2477 this->QGraphicsItem::mousePressEvent(arg1
);
2479 lua_settop(L
, oldtop
);
2481 bool LuaBinder
< QGraphicsItem
>::collidesWithPath (const QPainterPath
& arg1
, Qt::ItemSelectionMode arg2
) const {
2482 bool absorbed
= false;
2483 int oldtop
= lua_gettop(L
);
2484 lqtL_pushudata(L
, this, "QGraphicsItem*");
2485 if (lua_getmetatable(L
, -1)) {
2486 lua_getfield(L
, -1, "collidesWithPath");
2492 lqtL_pushudata(L
, &(arg1
), "QPainterPath*");
2493 lqtL_pushenum(L
, arg2
, "Qt::ItemSelectionMode");
2494 if (lua_isfunction(L
, -2-2)) {
2495 lua_pcall(L
, 2+1, 2, 0);
2496 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2500 lua_settop(L
, oldtop
);
2501 return this->QGraphicsItem::collidesWithPath(arg1
, arg2
);
2503 bool ret
= (bool)lua_toboolean(L
, -1);
2504 lua_settop(L
, oldtop
);
2507 void LuaBinder
< QGraphicsItem
>::hoverMoveEvent (QGraphicsSceneHoverEvent
* arg1
) {
2508 bool absorbed
= false;
2509 int oldtop
= lua_gettop(L
);
2510 lqtL_pushudata(L
, this, "QGraphicsItem*");
2511 if (lua_getmetatable(L
, -1)) {
2512 lua_getfield(L
, -1, "hoverMoveEvent");
2518 lqtL_pushudata(L
, arg1
, "QGraphicsSceneHoverEvent*");
2519 if (lua_isfunction(L
, -1-2)) {
2520 lua_pcall(L
, 1+1, 2, 0);
2521 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2525 lua_settop(L
, oldtop
);
2526 this->QGraphicsItem::hoverMoveEvent(arg1
);
2528 lua_settop(L
, oldtop
);
2530 void LuaBinder
< QGraphicsItem
>::dragMoveEvent (QGraphicsSceneDragDropEvent
* arg1
) {
2531 bool absorbed
= false;
2532 int oldtop
= lua_gettop(L
);
2533 lqtL_pushudata(L
, this, "QGraphicsItem*");
2534 if (lua_getmetatable(L
, -1)) {
2535 lua_getfield(L
, -1, "dragMoveEvent");
2541 lqtL_pushudata(L
, arg1
, "QGraphicsSceneDragDropEvent*");
2542 if (lua_isfunction(L
, -1-2)) {
2543 lua_pcall(L
, 1+1, 2, 0);
2544 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2548 lua_settop(L
, oldtop
);
2549 this->QGraphicsItem::dragMoveEvent(arg1
);
2551 lua_settop(L
, oldtop
);
2553 bool LuaBinder
< QGraphicsItem
>::isObscuredBy (const QGraphicsItem
* arg1
) const {
2554 bool absorbed
= false;
2555 int oldtop
= lua_gettop(L
);
2556 lqtL_pushudata(L
, this, "QGraphicsItem*");
2557 if (lua_getmetatable(L
, -1)) {
2558 lua_getfield(L
, -1, "isObscuredBy");
2564 lqtL_pushudata(L
, arg1
, "QGraphicsItem*");
2565 if (lua_isfunction(L
, -1-2)) {
2566 lua_pcall(L
, 1+1, 2, 0);
2567 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2571 lua_settop(L
, oldtop
);
2572 return this->QGraphicsItem::isObscuredBy(arg1
);
2574 bool ret
= (bool)lua_toboolean(L
, -1);
2575 lua_settop(L
, oldtop
);
2578 void LuaBinder
< QGraphicsItem
>::hoverLeaveEvent (QGraphicsSceneHoverEvent
* arg1
) {
2579 bool absorbed
= false;
2580 int oldtop
= lua_gettop(L
);
2581 lqtL_pushudata(L
, this, "QGraphicsItem*");
2582 if (lua_getmetatable(L
, -1)) {
2583 lua_getfield(L
, -1, "hoverLeaveEvent");
2589 lqtL_pushudata(L
, arg1
, "QGraphicsSceneHoverEvent*");
2590 if (lua_isfunction(L
, -1-2)) {
2591 lua_pcall(L
, 1+1, 2, 0);
2592 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2596 lua_settop(L
, oldtop
);
2597 this->QGraphicsItem::hoverLeaveEvent(arg1
);
2599 lua_settop(L
, oldtop
);
2601 bool LuaBinder
< QGraphicsItem
>::sceneEvent (QEvent
* arg1
) {
2602 bool absorbed
= false;
2603 int oldtop
= lua_gettop(L
);
2604 lqtL_pushudata(L
, this, "QGraphicsItem*");
2605 if (lua_getmetatable(L
, -1)) {
2606 lua_getfield(L
, -1, "sceneEvent");
2612 lqtL_pushudata(L
, arg1
, "QEvent*");
2613 if (lua_isfunction(L
, -1-2)) {
2614 lua_pcall(L
, 1+1, 2, 0);
2615 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2619 lua_settop(L
, oldtop
);
2620 return this->QGraphicsItem::sceneEvent(arg1
);
2622 bool ret
= (bool)lua_toboolean(L
, -1);
2623 lua_settop(L
, oldtop
);
2626 bool LuaBinder
< QGraphicsItem
>::sceneEventFilter (QGraphicsItem
* arg1
, QEvent
* arg2
) {
2627 bool absorbed
= false;
2628 int oldtop
= lua_gettop(L
);
2629 lqtL_pushudata(L
, this, "QGraphicsItem*");
2630 if (lua_getmetatable(L
, -1)) {
2631 lua_getfield(L
, -1, "sceneEventFilter");
2637 lqtL_pushudata(L
, arg1
, "QGraphicsItem*");
2638 lqtL_pushudata(L
, arg2
, "QEvent*");
2639 if (lua_isfunction(L
, -2-2)) {
2640 lua_pcall(L
, 2+1, 2, 0);
2641 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2645 lua_settop(L
, oldtop
);
2646 return this->QGraphicsItem::sceneEventFilter(arg1
, arg2
);
2648 bool ret
= (bool)lua_toboolean(L
, -1);
2649 lua_settop(L
, oldtop
);
2652 QRectF LuaBinder
< QGraphicsItem
>::boundingRect () const {
2653 bool absorbed
= false;
2654 int oldtop
= lua_gettop(L
);
2655 lqtL_pushudata(L
, this, "QGraphicsItem*");
2656 if (lua_getmetatable(L
, -1)) {
2657 lua_getfield(L
, -1, "boundingRect");
2663 if (lua_isfunction(L
, -0-2)) {
2664 lua_pcall(L
, 0+1, 2, 0);
2665 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2669 lua_settop(L
, oldtop
);
2671 QRectF ret
= **static_cast<QRectF
**>(lqtL_checkudata(L
, -1, "QRectF*"));
2672 lua_settop(L
, oldtop
);
2675 QVariant LuaBinder
< QGraphicsItem
>::itemChange (QGraphicsItem::GraphicsItemChange arg1
, const QVariant
& arg2
) {
2676 bool absorbed
= false;
2677 int oldtop
= lua_gettop(L
);
2678 lqtL_pushudata(L
, this, "QGraphicsItem*");
2679 if (lua_getmetatable(L
, -1)) {
2680 lua_getfield(L
, -1, "itemChange");
2686 lqtL_pushenum(L
, arg1
, "QGraphicsItem::GraphicsItemChange");
2687 lqtL_pushudata(L
, &(arg2
), "QVariant*");
2688 if (lua_isfunction(L
, -2-2)) {
2689 lua_pcall(L
, 2+1, 2, 0);
2690 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2694 lua_settop(L
, oldtop
);
2695 return this->QGraphicsItem::itemChange(arg1
, arg2
);
2697 QVariant ret
= **static_cast<QVariant
**>(lqtL_checkudata(L
, -1, "QVariant*"));
2698 lua_settop(L
, oldtop
);
2701 void LuaBinder
< QGraphicsItem
>::mouseDoubleClickEvent (QGraphicsSceneMouseEvent
* arg1
) {
2702 bool absorbed
= false;
2703 int oldtop
= lua_gettop(L
);
2704 lqtL_pushudata(L
, this, "QGraphicsItem*");
2705 if (lua_getmetatable(L
, -1)) {
2706 lua_getfield(L
, -1, "mouseDoubleClickEvent");
2712 lqtL_pushudata(L
, arg1
, "QGraphicsSceneMouseEvent*");
2713 if (lua_isfunction(L
, -1-2)) {
2714 lua_pcall(L
, 1+1, 2, 0);
2715 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2719 lua_settop(L
, oldtop
);
2720 this->QGraphicsItem::mouseDoubleClickEvent(arg1
);
2722 lua_settop(L
, oldtop
);
2724 void LuaBinder
< QGraphicsItem
>::mouseMoveEvent (QGraphicsSceneMouseEvent
* arg1
) {
2725 bool absorbed
= false;
2726 int oldtop
= lua_gettop(L
);
2727 lqtL_pushudata(L
, this, "QGraphicsItem*");
2728 if (lua_getmetatable(L
, -1)) {
2729 lua_getfield(L
, -1, "mouseMoveEvent");
2735 lqtL_pushudata(L
, arg1
, "QGraphicsSceneMouseEvent*");
2736 if (lua_isfunction(L
, -1-2)) {
2737 lua_pcall(L
, 1+1, 2, 0);
2738 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2742 lua_settop(L
, oldtop
);
2743 this->QGraphicsItem::mouseMoveEvent(arg1
);
2745 lua_settop(L
, oldtop
);
2747 QPainterPath LuaBinder
< QGraphicsItem
>::opaqueArea () const {
2748 bool absorbed
= false;
2749 int oldtop
= lua_gettop(L
);
2750 lqtL_pushudata(L
, this, "QGraphicsItem*");
2751 if (lua_getmetatable(L
, -1)) {
2752 lua_getfield(L
, -1, "opaqueArea");
2758 if (lua_isfunction(L
, -0-2)) {
2759 lua_pcall(L
, 0+1, 2, 0);
2760 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2764 lua_settop(L
, oldtop
);
2765 return this->QGraphicsItem::opaqueArea();
2767 QPainterPath ret
= **static_cast<QPainterPath
**>(lqtL_checkudata(L
, -1, "QPainterPath*"));
2768 lua_settop(L
, oldtop
);
2771 void LuaBinder
< QGraphicsItem
>::focusOutEvent (QFocusEvent
* arg1
) {
2772 bool absorbed
= false;
2773 int oldtop
= lua_gettop(L
);
2774 lqtL_pushudata(L
, this, "QGraphicsItem*");
2775 if (lua_getmetatable(L
, -1)) {
2776 lua_getfield(L
, -1, "focusOutEvent");
2782 lqtL_pushudata(L
, arg1
, "QFocusEvent*");
2783 if (lua_isfunction(L
, -1-2)) {
2784 lua_pcall(L
, 1+1, 2, 0);
2785 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2789 lua_settop(L
, oldtop
);
2790 this->QGraphicsItem::focusOutEvent(arg1
);
2792 lua_settop(L
, oldtop
);
2794 QVariant LuaBinder
< QGraphicsItem
>::extension (const QVariant
& arg1
) const {
2795 bool absorbed
= false;
2796 int oldtop
= lua_gettop(L
);
2797 lqtL_pushudata(L
, this, "QGraphicsItem*");
2798 if (lua_getmetatable(L
, -1)) {
2799 lua_getfield(L
, -1, "extension");
2805 lqtL_pushudata(L
, &(arg1
), "QVariant*");
2806 if (lua_isfunction(L
, -1-2)) {
2807 lua_pcall(L
, 1+1, 2, 0);
2808 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2812 lua_settop(L
, oldtop
);
2813 return this->QGraphicsItem::extension(arg1
);
2815 QVariant ret
= **static_cast<QVariant
**>(lqtL_checkudata(L
, -1, "QVariant*"));
2816 lua_settop(L
, oldtop
);
2819 void LuaBinder
< QGraphicsItem
>::setExtension (QGraphicsItem::Extension arg1
, const QVariant
& arg2
) {
2820 bool absorbed
= false;
2821 int oldtop
= lua_gettop(L
);
2822 lqtL_pushudata(L
, this, "QGraphicsItem*");
2823 if (lua_getmetatable(L
, -1)) {
2824 lua_getfield(L
, -1, "setExtension");
2830 lqtL_pushenum(L
, arg1
, "QGraphicsItem::Extension");
2831 lqtL_pushudata(L
, &(arg2
), "QVariant*");
2832 if (lua_isfunction(L
, -2-2)) {
2833 lua_pcall(L
, 2+1, 2, 0);
2834 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2838 lua_settop(L
, oldtop
);
2839 this->QGraphicsItem::setExtension(arg1
, arg2
);
2841 lua_settop(L
, oldtop
);
2843 void LuaBinder
< QGraphicsItem
>::inputMethodEvent (QInputMethodEvent
* arg1
) {
2844 bool absorbed
= false;
2845 int oldtop
= lua_gettop(L
);
2846 lqtL_pushudata(L
, this, "QGraphicsItem*");
2847 if (lua_getmetatable(L
, -1)) {
2848 lua_getfield(L
, -1, "inputMethodEvent");
2854 lqtL_pushudata(L
, arg1
, "QInputMethodEvent*");
2855 if (lua_isfunction(L
, -1-2)) {
2856 lua_pcall(L
, 1+1, 2, 0);
2857 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2861 lua_settop(L
, oldtop
);
2862 this->QGraphicsItem::inputMethodEvent(arg1
);
2864 lua_settop(L
, oldtop
);
2866 int LuaBinder
< QGraphicsItem
>::type () const {
2867 bool absorbed
= false;
2868 int oldtop
= lua_gettop(L
);
2869 lqtL_pushudata(L
, this, "QGraphicsItem*");
2870 if (lua_getmetatable(L
, -1)) {
2871 lua_getfield(L
, -1, "type");
2877 if (lua_isfunction(L
, -0-2)) {
2878 lua_pcall(L
, 0+1, 2, 0);
2879 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2883 lua_settop(L
, oldtop
);
2884 return this->QGraphicsItem::type();
2886 int ret
= lua_tointeger(L
, -1);
2887 lua_settop(L
, oldtop
);
2890 bool LuaBinder
< QGraphicsItem
>::supportsExtension (QGraphicsItem::Extension arg1
) const {
2891 bool absorbed
= false;
2892 int oldtop
= lua_gettop(L
);
2893 lqtL_pushudata(L
, this, "QGraphicsItem*");
2894 if (lua_getmetatable(L
, -1)) {
2895 lua_getfield(L
, -1, "supportsExtension");
2901 lqtL_pushenum(L
, arg1
, "QGraphicsItem::Extension");
2902 if (lua_isfunction(L
, -1-2)) {
2903 lua_pcall(L
, 1+1, 2, 0);
2904 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2908 lua_settop(L
, oldtop
);
2909 return this->QGraphicsItem::supportsExtension(arg1
);
2911 bool ret
= (bool)lua_toboolean(L
, -1);
2912 lua_settop(L
, oldtop
);
2915 QVariant LuaBinder
< QGraphicsItem
>::inputMethodQuery (Qt::InputMethodQuery arg1
) const {
2916 bool absorbed
= false;
2917 int oldtop
= lua_gettop(L
);
2918 lqtL_pushudata(L
, this, "QGraphicsItem*");
2919 if (lua_getmetatable(L
, -1)) {
2920 lua_getfield(L
, -1, "inputMethodQuery");
2926 lqtL_pushenum(L
, arg1
, "Qt::InputMethodQuery");
2927 if (lua_isfunction(L
, -1-2)) {
2928 lua_pcall(L
, 1+1, 2, 0);
2929 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2933 lua_settop(L
, oldtop
);
2934 return this->QGraphicsItem::inputMethodQuery(arg1
);
2936 QVariant ret
= **static_cast<QVariant
**>(lqtL_checkudata(L
, -1, "QVariant*"));
2937 lua_settop(L
, oldtop
);
2940 void LuaBinder
< QGraphicsItem
>::wheelEvent (QGraphicsSceneWheelEvent
* arg1
) {
2941 bool absorbed
= false;
2942 int oldtop
= lua_gettop(L
);
2943 lqtL_pushudata(L
, this, "QGraphicsItem*");
2944 if (lua_getmetatable(L
, -1)) {
2945 lua_getfield(L
, -1, "wheelEvent");
2951 lqtL_pushudata(L
, arg1
, "QGraphicsSceneWheelEvent*");
2952 if (lua_isfunction(L
, -1-2)) {
2953 lua_pcall(L
, 1+1, 2, 0);
2954 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2958 lua_settop(L
, oldtop
);
2959 this->QGraphicsItem::wheelEvent(arg1
);
2961 lua_settop(L
, oldtop
);
2963 bool LuaBinder
< QGraphicsItem
>::contains (const QPointF
& arg1
) const {
2964 bool absorbed
= false;
2965 int oldtop
= lua_gettop(L
);
2966 lqtL_pushudata(L
, this, "QGraphicsItem*");
2967 if (lua_getmetatable(L
, -1)) {
2968 lua_getfield(L
, -1, "contains");
2974 lqtL_pushudata(L
, &(arg1
), "QPointF*");
2975 if (lua_isfunction(L
, -1-2)) {
2976 lua_pcall(L
, 1+1, 2, 0);
2977 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2981 lua_settop(L
, oldtop
);
2982 return this->QGraphicsItem::contains(arg1
);
2984 bool ret
= (bool)lua_toboolean(L
, -1);
2985 lua_settop(L
, oldtop
);
2988 void LuaBinder
< QGraphicsItem
>::mouseReleaseEvent (QGraphicsSceneMouseEvent
* arg1
) {
2989 bool absorbed
= false;
2990 int oldtop
= lua_gettop(L
);
2991 lqtL_pushudata(L
, this, "QGraphicsItem*");
2992 if (lua_getmetatable(L
, -1)) {
2993 lua_getfield(L
, -1, "mouseReleaseEvent");
2999 lqtL_pushudata(L
, arg1
, "QGraphicsSceneMouseEvent*");
3000 if (lua_isfunction(L
, -1-2)) {
3001 lua_pcall(L
, 1+1, 2, 0);
3002 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
3006 lua_settop(L
, oldtop
);
3007 this->QGraphicsItem::mouseReleaseEvent(arg1
);
3009 lua_settop(L
, oldtop
);
3011 QPainterPath LuaBinder
< QGraphicsItem
>::shape () const {
3012 bool absorbed
= false;
3013 int oldtop
= lua_gettop(L
);
3014 lqtL_pushudata(L
, this, "QGraphicsItem*");
3015 if (lua_getmetatable(L
, -1)) {
3016 lua_getfield(L
, -1, "shape");
3022 if (lua_isfunction(L
, -0-2)) {
3023 lua_pcall(L
, 0+1, 2, 0);
3024 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
3028 lua_settop(L
, oldtop
);
3029 return this->QGraphicsItem::shape();
3031 QPainterPath ret
= **static_cast<QPainterPath
**>(lqtL_checkudata(L
, -1, "QPainterPath*"));
3032 lua_settop(L
, oldtop
);
3035 void LuaBinder
< QGraphicsItem
>::paint (QPainter
* arg1
, const QStyleOptionGraphicsItem
* arg2
, QWidget
* arg3
) {
3036 bool absorbed
= false;
3037 int oldtop
= lua_gettop(L
);
3038 lqtL_pushudata(L
, this, "QGraphicsItem*");
3039 if (lua_getmetatable(L
, -1)) {
3040 lua_getfield(L
, -1, "paint");
3046 lqtL_pushudata(L
, arg1
, "QPainter*");
3047 lqtL_pushudata(L
, arg2
, "QStyleOptionGraphicsItem*");
3048 lqtL_pushudata(L
, arg3
, "QWidget*");
3049 if (lua_isfunction(L
, -3-2)) {
3050 lua_pcall(L
, 3+1, 2, 0);
3051 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
3055 lua_settop(L
, oldtop
);
3057 lua_settop(L
, oldtop
);
3059 bool LuaBinder
< QGraphicsItem
>::collidesWithItem (const QGraphicsItem
* arg1
, Qt::ItemSelectionMode arg2
) const {
3060 bool absorbed
= false;
3061 int oldtop
= lua_gettop(L
);
3062 lqtL_pushudata(L
, this, "QGraphicsItem*");
3063 if (lua_getmetatable(L
, -1)) {
3064 lua_getfield(L
, -1, "collidesWithItem");
3070 lqtL_pushudata(L
, arg1
, "QGraphicsItem*");
3071 lqtL_pushenum(L
, arg2
, "Qt::ItemSelectionMode");
3072 if (lua_isfunction(L
, -2-2)) {
3073 lua_pcall(L
, 2+1, 2, 0);
3074 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
3078 lua_settop(L
, oldtop
);
3079 return this->QGraphicsItem::collidesWithItem(arg1
, arg2
);
3081 bool ret
= (bool)lua_toboolean(L
, -1);
3082 lua_settop(L
, oldtop
);
3085 void LuaBinder
< QGraphicsItem
>::hoverEnterEvent (QGraphicsSceneHoverEvent
* arg1
) {
3086 bool absorbed
= false;
3087 int oldtop
= lua_gettop(L
);
3088 lqtL_pushudata(L
, this, "QGraphicsItem*");
3089 if (lua_getmetatable(L
, -1)) {
3090 lua_getfield(L
, -1, "hoverEnterEvent");
3096 lqtL_pushudata(L
, arg1
, "QGraphicsSceneHoverEvent*");
3097 if (lua_isfunction(L
, -1-2)) {
3098 lua_pcall(L
, 1+1, 2, 0);
3099 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
3103 lua_settop(L
, oldtop
);
3104 this->QGraphicsItem::hoverEnterEvent(arg1
);
3106 lua_settop(L
, oldtop
);
3108 void LuaBinder
< QGraphicsItem
>::dragEnterEvent (QGraphicsSceneDragDropEvent
* arg1
) {
3109 bool absorbed
= false;
3110 int oldtop
= lua_gettop(L
);
3111 lqtL_pushudata(L
, this, "QGraphicsItem*");
3112 if (lua_getmetatable(L
, -1)) {
3113 lua_getfield(L
, -1, "dragEnterEvent");
3119 lqtL_pushudata(L
, arg1
, "QGraphicsSceneDragDropEvent*");
3120 if (lua_isfunction(L
, -1-2)) {
3121 lua_pcall(L
, 1+1, 2, 0);
3122 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
3126 lua_settop(L
, oldtop
);
3127 this->QGraphicsItem::dragEnterEvent(arg1
);
3129 lua_settop(L
, oldtop
);
3131 void LuaBinder
< QGraphicsItem
>::dropEvent (QGraphicsSceneDragDropEvent
* arg1
) {
3132 bool absorbed
= false;
3133 int oldtop
= lua_gettop(L
);
3134 lqtL_pushudata(L
, this, "QGraphicsItem*");
3135 if (lua_getmetatable(L
, -1)) {
3136 lua_getfield(L
, -1, "dropEvent");
3142 lqtL_pushudata(L
, arg1
, "QGraphicsSceneDragDropEvent*");
3143 if (lua_isfunction(L
, -1-2)) {
3144 lua_pcall(L
, 1+1, 2, 0);
3145 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
3149 lua_settop(L
, oldtop
);
3150 this->QGraphicsItem::dropEvent(arg1
);
3152 lua_settop(L
, oldtop
);
3154 LuaBinder
< QGraphicsItem
>:: ~LuaBinder
< QGraphicsItem
> () {
3155 int oldtop
= lua_gettop(L
);
3156 lqtL_pushudata(L
, this, "QGraphicsItem*");
3157 lua_getfield(L
, -1, "~QGraphicsItem");
3159 if (lua_isfunction(L
, -1)) {
3161 lua_pcall(L
, 1, 1, 0);
3164 lua_settop(L
, oldtop
);
3166 int LuaBinder
< QGraphicsItem
>::lqt_pushenum_GraphicsItemFlag (lua_State
*L
) {
3168 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
3169 if (!lua_istable(L
, -1)) {
3172 lua_pushvalue(L
, -1);
3173 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
3176 enum_table
= lua_gettop(L
);
3177 lua_pushstring(L
, "ItemIsMovable");
3178 lua_rawseti(L
, enum_table
, 1);
3179 lua_pushinteger(L
, 1);
3180 lua_setfield(L
, enum_table
, "ItemIsMovable");
3181 lua_pushstring(L
, "ItemIsSelectable");
3182 lua_rawseti(L
, enum_table
, 2);
3183 lua_pushinteger(L
, 2);
3184 lua_setfield(L
, enum_table
, "ItemIsSelectable");
3185 lua_pushstring(L
, "ItemIsFocusable");
3186 lua_rawseti(L
, enum_table
, 4);
3187 lua_pushinteger(L
, 4);
3188 lua_setfield(L
, enum_table
, "ItemIsFocusable");
3189 lua_pushstring(L
, "ItemClipsToShape");
3190 lua_rawseti(L
, enum_table
, 8);
3191 lua_pushinteger(L
, 8);
3192 lua_setfield(L
, enum_table
, "ItemClipsToShape");
3193 lua_pushstring(L
, "ItemClipsChildrenToShape");
3194 lua_rawseti(L
, enum_table
, 16);
3195 lua_pushinteger(L
, 16);
3196 lua_setfield(L
, enum_table
, "ItemClipsChildrenToShape");
3197 lua_pushstring(L
, "ItemIgnoresTransformations");
3198 lua_rawseti(L
, enum_table
, 32);
3199 lua_pushinteger(L
, 32);
3200 lua_setfield(L
, enum_table
, "ItemIgnoresTransformations");
3201 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::lqt_pushenum_GraphicsItemFlag_QFLAGS_CREATOR
);
3202 lua_setfield(L
, enum_table
, "QFlags");
3203 lua_pushvalue(L
, -1);
3204 lua_setfield(L
, -3, "QGraphicsItem::GraphicsItemFlag");
3208 int LuaBinder
< QGraphicsItem
>::lqt_pushenum_GraphicsItemFlag_QFLAGS_CREATOR (lua_State
*L
) {
3209 int argn
= lua_gettop(L
);
3211 void *p
= lua_newuserdata(L
, sizeof(QFlags
<QGraphicsItem::GraphicsItemFlag
>*) + sizeof(QFlags
<QGraphicsItem::GraphicsItemFlag
>));
3212 QFlags
<QGraphicsItem::GraphicsItemFlag
> *fl
= static_cast<QFlags
<QGraphicsItem::GraphicsItemFlag
>*>( static_cast<void*>(&static_cast<QFlags
<QGraphicsItem::GraphicsItemFlag
>**>(p
)[1]) );
3214 for (i
=1;i
<=argn
;i
++) {
3215 *fl
|= static_cast<QGraphicsItem::GraphicsItemFlag
>(lqtL_toenum(L
, i
, "QGraphicsItem::GraphicsItemFlag"));
3217 if (luaL_newmetatable(L
, "QFlags<QGraphicsItem::GraphicsItemFlag>*")) {
3218 lua_pushstring(L
, "QFlags<QGraphicsItem::GraphicsItemFlag>*");
3219 lua_setfield(L
, -2, "__qtype");
3221 lua_setmetatable(L
, -2);
3224 int LuaBinder
< QGraphicsItem
>::lqt_pushenum_GraphicsItemChange (lua_State
*L
) {
3226 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
3227 if (!lua_istable(L
, -1)) {
3230 lua_pushvalue(L
, -1);
3231 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
3234 enum_table
= lua_gettop(L
);
3235 lua_pushstring(L
, "ItemPositionChange");
3236 lua_rawseti(L
, enum_table
, 0);
3237 lua_pushinteger(L
, 0);
3238 lua_setfield(L
, enum_table
, "ItemPositionChange");
3239 lua_pushstring(L
, "ItemMatrixChange");
3240 lua_rawseti(L
, enum_table
, 1);
3241 lua_pushinteger(L
, 1);
3242 lua_setfield(L
, enum_table
, "ItemMatrixChange");
3243 lua_pushstring(L
, "ItemVisibleChange");
3244 lua_rawseti(L
, enum_table
, 2);
3245 lua_pushinteger(L
, 2);
3246 lua_setfield(L
, enum_table
, "ItemVisibleChange");
3247 lua_pushstring(L
, "ItemEnabledChange");
3248 lua_rawseti(L
, enum_table
, 3);
3249 lua_pushinteger(L
, 3);
3250 lua_setfield(L
, enum_table
, "ItemEnabledChange");
3251 lua_pushstring(L
, "ItemSelectedChange");
3252 lua_rawseti(L
, enum_table
, 4);
3253 lua_pushinteger(L
, 4);
3254 lua_setfield(L
, enum_table
, "ItemSelectedChange");
3255 lua_pushstring(L
, "ItemParentChange");
3256 lua_rawseti(L
, enum_table
, 5);
3257 lua_pushinteger(L
, 5);
3258 lua_setfield(L
, enum_table
, "ItemParentChange");
3259 lua_pushstring(L
, "ItemChildAddedChange");
3260 lua_rawseti(L
, enum_table
, 6);
3261 lua_pushinteger(L
, 6);
3262 lua_setfield(L
, enum_table
, "ItemChildAddedChange");
3263 lua_pushstring(L
, "ItemChildRemovedChange");
3264 lua_rawseti(L
, enum_table
, 7);
3265 lua_pushinteger(L
, 7);
3266 lua_setfield(L
, enum_table
, "ItemChildRemovedChange");
3267 lua_pushstring(L
, "ItemTransformChange");
3268 lua_rawseti(L
, enum_table
, 8);
3269 lua_pushinteger(L
, 8);
3270 lua_setfield(L
, enum_table
, "ItemTransformChange");
3271 lua_pushstring(L
, "ItemPositionHasChanged");
3272 lua_rawseti(L
, enum_table
, 9);
3273 lua_pushinteger(L
, 9);
3274 lua_setfield(L
, enum_table
, "ItemPositionHasChanged");
3275 lua_pushstring(L
, "ItemTransformHasChanged");
3276 lua_rawseti(L
, enum_table
, 10);
3277 lua_pushinteger(L
, 10);
3278 lua_setfield(L
, enum_table
, "ItemTransformHasChanged");
3279 lua_pushstring(L
, "ItemSceneChange");
3280 lua_rawseti(L
, enum_table
, 11);
3281 lua_pushinteger(L
, 11);
3282 lua_setfield(L
, enum_table
, "ItemSceneChange");
3283 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::lqt_pushenum_GraphicsItemChange_QFLAGS_CREATOR
);
3284 lua_setfield(L
, enum_table
, "QFlags");
3285 lua_pushvalue(L
, -1);
3286 lua_setfield(L
, -3, "QGraphicsItem::GraphicsItemChange");
3290 int LuaBinder
< QGraphicsItem
>::lqt_pushenum_GraphicsItemChange_QFLAGS_CREATOR (lua_State
*L
) {
3291 int argn
= lua_gettop(L
);
3293 void *p
= lua_newuserdata(L
, sizeof(QFlags
<QGraphicsItem::GraphicsItemChange
>*) + sizeof(QFlags
<QGraphicsItem::GraphicsItemChange
>));
3294 QFlags
<QGraphicsItem::GraphicsItemChange
> *fl
= static_cast<QFlags
<QGraphicsItem::GraphicsItemChange
>*>( static_cast<void*>(&static_cast<QFlags
<QGraphicsItem::GraphicsItemChange
>**>(p
)[1]) );
3296 for (i
=1;i
<=argn
;i
++) {
3297 *fl
|= static_cast<QGraphicsItem::GraphicsItemChange
>(lqtL_toenum(L
, i
, "QGraphicsItem::GraphicsItemChange"));
3299 if (luaL_newmetatable(L
, "QFlags<QGraphicsItem::GraphicsItemChange>*")) {
3300 lua_pushstring(L
, "QFlags<QGraphicsItem::GraphicsItemChange>*");
3301 lua_setfield(L
, -2, "__qtype");
3303 lua_setmetatable(L
, -2);
3306 int LuaBinder
< QGraphicsItem
>::lqt_pushenum_Extension (lua_State
*L
) {
3308 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
3309 if (!lua_istable(L
, -1)) {
3312 lua_pushvalue(L
, -1);
3313 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
3316 enum_table
= lua_gettop(L
);
3317 lua_pushstring(L
, "UserExtension");
3318 lua_rawseti(L
, enum_table
, -2147483648);
3319 lua_pushinteger(L
, -2147483648);
3320 lua_setfield(L
, enum_table
, "UserExtension");
3321 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::lqt_pushenum_Extension_QFLAGS_CREATOR
);
3322 lua_setfield(L
, enum_table
, "QFlags");
3323 lua_pushvalue(L
, -1);
3324 lua_setfield(L
, -3, "QGraphicsItem::Extension");
3328 int LuaBinder
< QGraphicsItem
>::lqt_pushenum_Extension_QFLAGS_CREATOR (lua_State
*L
) {
3329 int argn
= lua_gettop(L
);
3331 void *p
= lua_newuserdata(L
, sizeof(QFlags
<QGraphicsItem::Extension
>*) + sizeof(QFlags
<QGraphicsItem::Extension
>));
3332 QFlags
<QGraphicsItem::Extension
> *fl
= static_cast<QFlags
<QGraphicsItem::Extension
>*>( static_cast<void*>(&static_cast<QFlags
<QGraphicsItem::Extension
>**>(p
)[1]) );
3334 for (i
=1;i
<=argn
;i
++) {
3335 *fl
|= static_cast<QGraphicsItem::Extension
>(lqtL_toenum(L
, i
, "QGraphicsItem::Extension"));
3337 if (luaL_newmetatable(L
, "QFlags<QGraphicsItem::Extension>*")) {
3338 lua_pushstring(L
, "QFlags<QGraphicsItem::Extension>*");
3339 lua_setfield(L
, -2, "__qtype");
3341 lua_setmetatable(L
, -2);
3344 int luaopen_QGraphicsItem (lua_State
*L
) {
3345 if (luaL_newmetatable(L
, "QGraphicsItem*")) {
3346 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__scenePos
);
3347 lua_setfield(L
, -2, "scenePos");
3348 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setCursor
);
3349 lua_setfield(L
, -2, "setCursor");
3350 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setPos
);
3351 lua_setfield(L
, -2, "setPos");
3352 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__isVisible
);
3353 lua_setfield(L
, -2, "isVisible");
3354 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setAcceptsHoverEvents
);
3355 lua_setfield(L
, -2, "setAcceptsHoverEvents");
3356 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__hasCursor
);
3357 lua_setfield(L
, -2, "hasCursor");
3358 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__topLevelItem
);
3359 lua_setfield(L
, -2, "topLevelItem");
3360 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__y
);
3361 lua_setfield(L
, -2, "y");
3362 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__x
);
3363 lua_setfield(L
, -2, "x");
3364 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setAcceptDrops
);
3365 lua_setfield(L
, -2, "setAcceptDrops");
3366 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__clearFocus
);
3367 lua_setfield(L
, -2, "clearFocus");
3368 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__deviceTransform
);
3369 lua_setfield(L
, -2, "deviceTransform");
3370 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__shape
);
3371 lua_setfield(L
, -2, "shape");
3372 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__pos
);
3373 lua_setfield(L
, -2, "pos");
3374 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__moveBy
);
3375 lua_setfield(L
, -2, "moveBy");
3376 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__scale
);
3377 lua_setfield(L
, -2, "scale");
3378 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__isSelected
);
3379 lua_setfield(L
, -2, "isSelected");
3380 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setParentItem
);
3381 lua_setfield(L
, -2, "setParentItem");
3382 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__hasFocus
);
3383 lua_setfield(L
, -2, "hasFocus");
3384 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setFocus
);
3385 lua_setfield(L
, -2, "setFocus");
3386 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setFlag
);
3387 lua_setfield(L
, -2, "setFlag");
3388 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__translate
);
3389 lua_setfield(L
, -2, "translate");
3390 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__acceptedMouseButtons
);
3391 lua_setfield(L
, -2, "acceptedMouseButtons");
3392 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__opaqueArea
);
3393 lua_setfield(L
, -2, "opaqueArea");
3394 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__sceneTransform
);
3395 lua_setfield(L
, -2, "sceneTransform");
3396 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__resetTransform
);
3397 lua_setfield(L
, -2, "resetTransform");
3398 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setToolTip
);
3399 lua_setfield(L
, -2, "setToolTip");
3400 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__parentItem
);
3401 lua_setfield(L
, -2, "parentItem");
3402 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__collidesWithItem
);
3403 lua_setfield(L
, -2, "collidesWithItem");
3404 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__show
);
3405 lua_setfield(L
, -2, "show");
3406 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__isEnabled
);
3407 lua_setfield(L
, -2, "isEnabled");
3408 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setFlags
);
3409 lua_setfield(L
, -2, "setFlags");
3410 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setGroup
);
3411 lua_setfield(L
, -2, "setGroup");
3412 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__transform
);
3413 lua_setfield(L
, -2, "transform");
3414 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToItem
);
3415 lua_setfield(L
, -2, "mapToItem");
3416 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__ensureVisible
);
3417 lua_setfield(L
, -2, "ensureVisible");
3418 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__update
);
3419 lua_setfield(L
, -2, "update");
3420 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__isObscured
);
3421 lua_setfield(L
, -2, "isObscured");
3422 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setAcceptedMouseButtons
);
3423 lua_setfield(L
, -2, "setAcceptedMouseButtons");
3424 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__matrix
);
3425 lua_setfield(L
, -2, "matrix");
3426 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__advance
);
3427 lua_setfield(L
, -2, "advance");
3428 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__toolTip
);
3429 lua_setfield(L
, -2, "toolTip");
3430 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__delete
);
3431 lua_setfield(L
, -2, "delete");
3432 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__sceneBoundingRect
);
3433 lua_setfield(L
, -2, "sceneBoundingRect");
3434 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__flags
);
3435 lua_setfield(L
, -2, "flags");
3436 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__isAncestorOf
);
3437 lua_setfield(L
, -2, "isAncestorOf");
3438 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__collidesWithPath
);
3439 lua_setfield(L
, -2, "collidesWithPath");
3440 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__new
);
3441 lua_setfield(L
, -2, "new");
3442 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__scene
);
3443 lua_setfield(L
, -2, "scene");
3444 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__rotate
);
3445 lua_setfield(L
, -2, "rotate");
3446 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setSelected
);
3447 lua_setfield(L
, -2, "setSelected");
3448 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__hide
);
3449 lua_setfield(L
, -2, "hide");
3450 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__installSceneEventFilter
);
3451 lua_setfield(L
, -2, "installSceneEventFilter");
3452 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__contains
);
3453 lua_setfield(L
, -2, "contains");
3454 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__sceneMatrix
);
3455 lua_setfield(L
, -2, "sceneMatrix");
3456 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setTransform
);
3457 lua_setfield(L
, -2, "setTransform");
3458 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__group
);
3459 lua_setfield(L
, -2, "group");
3460 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromScene
);
3461 lua_setfield(L
, -2, "mapFromScene");
3462 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__acceptsHoverEvents
);
3463 lua_setfield(L
, -2, "acceptsHoverEvents");
3464 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setZValue
);
3465 lua_setfield(L
, -2, "setZValue");
3466 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setMatrix
);
3467 lua_setfield(L
, -2, "setMatrix");
3468 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setVisible
);
3469 lua_setfield(L
, -2, "setVisible");
3470 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__handlesChildEvents
);
3471 lua_setfield(L
, -2, "handlesChildEvents");
3472 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromItem
);
3473 lua_setfield(L
, -2, "mapFromItem");
3474 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__childrenBoundingRect
);
3475 lua_setfield(L
, -2, "childrenBoundingRect");
3476 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__isObscuredBy
);
3477 lua_setfield(L
, -2, "isObscuredBy");
3478 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__children
);
3479 lua_setfield(L
, -2, "children");
3480 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__unsetCursor
);
3481 lua_setfield(L
, -2, "unsetCursor");
3482 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__shear
);
3483 lua_setfield(L
, -2, "shear");
3484 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__type
);
3485 lua_setfield(L
, -2, "type");
3486 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToScene
);
3487 lua_setfield(L
, -2, "mapToScene");
3488 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__collidingItems
);
3489 lua_setfield(L
, -2, "collidingItems");
3490 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setEnabled
);
3491 lua_setfield(L
, -2, "setEnabled");
3492 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__acceptDrops
);
3493 lua_setfield(L
, -2, "acceptDrops");
3494 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__zValue
);
3495 lua_setfield(L
, -2, "zValue");
3496 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__resetMatrix
);
3497 lua_setfield(L
, -2, "resetMatrix");
3498 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__cursor
);
3499 lua_setfield(L
, -2, "cursor");
3500 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapFromParent
);
3501 lua_setfield(L
, -2, "mapFromParent");
3502 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__mapToParent
);
3503 lua_setfield(L
, -2, "mapToParent");
3504 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setHandlesChildEvents
);
3505 lua_setfield(L
, -2, "setHandlesChildEvents");
3506 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__removeSceneEventFilter
);
3507 lua_setfield(L
, -2, "removeSceneEventFilter");
3508 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__data
);
3509 lua_setfield(L
, -2, "data");
3510 lua_pushcfunction(L
, LuaBinder
< QGraphicsItem
>::__LuaWrapCall__setData
);
3511 lua_setfield(L
, -2, "setData");
3512 LuaBinder
< QGraphicsItem
>::lqt_pushenum_GraphicsItemFlag(L
);
3513 lua_setfield(L
, -2, "GraphicsItemFlag");
3514 LuaBinder
< QGraphicsItem
>::lqt_pushenum_GraphicsItemChange(L
);
3515 lua_setfield(L
, -2, "GraphicsItemChange");
3516 LuaBinder
< QGraphicsItem
>::lqt_pushenum_Extension(L
);
3517 lua_setfield(L
, -2, "Extension");
3519 lua_setfield(L
, -2, "__base");
3520 lua_pushcfunction(L
, lqtL_newindex
);
3521 lua_setfield(L
, -2, "__newindex");
3522 lua_pushcfunction(L
, lqtL_index
);
3523 lua_setfield(L
, -2, "__index");
3524 lua_pushcfunction(L
, lqtL_gc
);
3525 lua_setfield(L
, -2, "__gc");
3526 lua_pushstring(L
, "QGraphicsItem");
3527 lua_setfield(L
, -2, "__qtype");
3528 lua_setglobal(L
, "QGraphicsItem");