added "install" instruction
[Leditor.git] / src / lqt_bind_QGraphicsView.cpp
blob30af23e0c955ab7db140e53a2ffd82f802959c24
1 #include "lqt_bind_QGraphicsView.hpp"
3 int LuaBinder< QGraphicsView >::__LuaWrapCall__render (lua_State *L) {
4 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
5 if (__lua__obj==0) {
6 lua_pushstring(L, "trying to reference deleted pointer");
7 lua_error(L);
8 return 0;
10 QPainter * arg1 = *static_cast<QPainter**>(lqtL_checkudata(L, 2, "QPainter*"));
11 const QRectF& arg2 = lqtL_testudata(L, 3, "QRectF*")?**static_cast<QRectF**>(lqtL_checkudata(L, 3, "QRectF*")):QRectF();
12 const QRect& arg3 = lqtL_testudata(L, 4, "QRect*")?**static_cast<QRect**>(lqtL_checkudata(L, 4, "QRect*")):QRect();
13 Qt::AspectRatioMode arg4 = lqtL_isenum(L, 5, "Qt::AspectRatioMode")?static_cast<Qt::AspectRatioMode>(lqtL_toenum(L, 5, "Qt::AspectRatioMode")):Qt::KeepAspectRatio;
14 __lua__obj->QGraphicsView::render(arg1, arg2, arg3, arg4);
15 return 0;
17 int LuaBinder< QGraphicsView >::__LuaWrapCall__setOptimizationFlag (lua_State *L) {
18 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
19 if (__lua__obj==0) {
20 lua_pushstring(L, "trying to reference deleted pointer");
21 lua_error(L);
22 return 0;
24 QGraphicsView::OptimizationFlag arg1 = static_cast<QGraphicsView::OptimizationFlag>(lqtL_toenum(L, 2, "QGraphicsView::OptimizationFlag"));
25 bool arg2 = lua_isboolean(L, 3)?(bool)lua_toboolean(L, 3):true;
26 __lua__obj->QGraphicsView::setOptimizationFlag(arg1, arg2);
27 return 0;
29 int LuaBinder< QGraphicsView >::__LuaWrapCall__sizeHint (lua_State *L) {
30 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
31 if (__lua__obj==0) {
32 lua_pushstring(L, "trying to reference deleted pointer");
33 lua_error(L);
34 return 0;
36 QSize ret = __lua__obj->QGraphicsView::sizeHint();
37 lqtL_passudata(L, new QSize(ret), "QSize*");
38 return 1;
40 int LuaBinder< QGraphicsView >::__LuaWrapCall__setMatrix (lua_State *L) {
41 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
42 if (__lua__obj==0) {
43 lua_pushstring(L, "trying to reference deleted pointer");
44 lua_error(L);
45 return 0;
47 const QMatrix& arg1 = **static_cast<QMatrix**>(lqtL_checkudata(L, 2, "QMatrix*"));
48 bool arg2 = lua_isboolean(L, 3)?(bool)lua_toboolean(L, 3):false;
49 __lua__obj->QGraphicsView::setMatrix(arg1, arg2);
50 return 0;
52 int LuaBinder< QGraphicsView >::__LuaWrapCall__setInteractive (lua_State *L) {
53 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
54 if (__lua__obj==0) {
55 lua_pushstring(L, "trying to reference deleted pointer");
56 lua_error(L);
57 return 0;
59 bool arg1 = (bool)lua_toboolean(L, 2);
60 __lua__obj->QGraphicsView::setInteractive(arg1);
61 return 0;
63 int LuaBinder< QGraphicsView >::__LuaWrapCall__sceneRect (lua_State *L) {
64 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
65 if (__lua__obj==0) {
66 lua_pushstring(L, "trying to reference deleted pointer");
67 lua_error(L);
68 return 0;
70 QRectF ret = __lua__obj->QGraphicsView::sceneRect();
71 lqtL_passudata(L, new QRectF(ret), "QRectF*");
72 return 1;
74 int LuaBinder< QGraphicsView >::__LuaWrapCall__viewportTransform (lua_State *L) {
75 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
76 if (__lua__obj==0) {
77 lua_pushstring(L, "trying to reference deleted pointer");
78 lua_error(L);
79 return 0;
81 QTransform ret = __lua__obj->QGraphicsView::viewportTransform();
82 lqtL_passudata(L, new QTransform(ret), "QTransform*");
83 return 1;
85 int LuaBinder< QGraphicsView >::__LuaWrapCall__setOptimizationFlags (lua_State *L) {
86 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
87 if (__lua__obj==0) {
88 lua_pushstring(L, "trying to reference deleted pointer");
89 lua_error(L);
90 return 0;
92 QFlags<QGraphicsView::OptimizationFlag> arg1 = **static_cast<QFlags<QGraphicsView::OptimizationFlag>**>(lqtL_checkudata(L, 2, "QFlags<QGraphicsView::OptimizationFlag>*"));
93 __lua__obj->QGraphicsView::setOptimizationFlags(arg1);
94 return 0;
96 int LuaBinder< QGraphicsView >::__LuaWrapCall__setTransformationAnchor (lua_State *L) {
97 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
98 if (__lua__obj==0) {
99 lua_pushstring(L, "trying to reference deleted pointer");
100 lua_error(L);
101 return 0;
103 QGraphicsView::ViewportAnchor arg1 = static_cast<QGraphicsView::ViewportAnchor>(lqtL_toenum(L, 2, "QGraphicsView::ViewportAnchor"));
104 __lua__obj->QGraphicsView::setTransformationAnchor(arg1);
105 return 0;
107 int LuaBinder< QGraphicsView >::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State *L) {
108 const char * arg1 = lua_tostring(L, 1);
109 const char * arg2 = (lua_type(L, 2)==LUA_TSTRING)?lua_tostring(L, 2):static_cast< const char * >(0);
110 QString ret = QGraphicsView::trUtf8(arg1, arg2);
111 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
112 return 1;
114 int LuaBinder< QGraphicsView >::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State *L) {
115 const char * arg1 = lua_tostring(L, 1);
116 const char * arg2 = lua_tostring(L, 2);
117 int arg3 = lua_tointeger(L, 3);
118 QString ret = QGraphicsView::trUtf8(arg1, arg2, arg3);
119 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
120 return 1;
122 int LuaBinder< QGraphicsView >::__LuaWrapCall__trUtf8 (lua_State *L) {
123 int score[3];
124 const int premium = 11+lua_gettop(L);
125 score[1] = 0;
126 if ((lua_type(L, 1)==LUA_TSTRING)) {
127 score[1] += premium;
128 } else if (false) {
129 score[1] += premium-1; // table: 0x11608a0;
130 } else {
131 score[1] -= premium*premium;
133 if ((lua_type(L, 2)==LUA_TSTRING)) {
134 score[1] += premium;
135 } else if (true) {
136 score[1] += premium-1; // table: 0x11603f0;
137 } else {
138 score[1] -= premium*premium;
140 score[2] = 0;
141 if ((lua_type(L, 1)==LUA_TSTRING)) {
142 score[2] += premium;
143 } else if (false) {
144 score[2] += premium-1; // table: 0x1162690;
145 } else {
146 score[2] -= premium*premium;
148 if ((lua_type(L, 2)==LUA_TSTRING)) {
149 score[2] += premium;
150 } else if (false) {
151 score[2] += premium-1; // table: 0x1161db0;
152 } else {
153 score[2] -= premium*premium;
155 if (lua_isnumber(L, 3)) {
156 score[2] += premium;
157 } else if (false) {
158 score[2] += premium-1; // table: 0x1162b10;
159 } else {
160 score[2] -= premium*premium;
162 int best = 1;
163 for (int i=1;i<=2;i++) {
164 if (score[best] < score[i]) { best = i; }
166 switch (best) {
167 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L); break;
168 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L); break;
170 lua_pushstring(L, "no overload of function __LuaWrapCall__trUtf8 matching arguments");
171 lua_error(L);
172 return 0;
174 int LuaBinder< QGraphicsView >::__LuaWrapCall__optimizationFlags (lua_State *L) {
175 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
176 if (__lua__obj==0) {
177 lua_pushstring(L, "trying to reference deleted pointer");
178 lua_error(L);
179 return 0;
181 QFlags<QGraphicsView::OptimizationFlag> ret = __lua__obj->QGraphicsView::optimizationFlags();
182 lqtL_passudata(L, new QFlags<QGraphicsView::OptimizationFlag>(ret), "QFlags<QGraphicsView::OptimizationFlag>*");
183 return 1;
185 int LuaBinder< QGraphicsView >::__LuaWrapCall__rubberBandSelectionMode (lua_State *L) {
186 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
187 if (__lua__obj==0) {
188 lua_pushstring(L, "trying to reference deleted pointer");
189 lua_error(L);
190 return 0;
192 Qt::ItemSelectionMode ret = __lua__obj->QGraphicsView::rubberBandSelectionMode();
193 lqtL_pushenum(L, ret, "Qt::ItemSelectionMode");
194 return 1;
196 int LuaBinder< QGraphicsView >::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State *L) {
197 const char * arg1 = lua_tostring(L, 1);
198 const char * arg2 = (lua_type(L, 2)==LUA_TSTRING)?lua_tostring(L, 2):static_cast< const char * >(0);
199 QString ret = QGraphicsView::tr(arg1, arg2);
200 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
201 return 1;
203 int LuaBinder< QGraphicsView >::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State *L) {
204 const char * arg1 = lua_tostring(L, 1);
205 const char * arg2 = lua_tostring(L, 2);
206 int arg3 = lua_tointeger(L, 3);
207 QString ret = QGraphicsView::tr(arg1, arg2, arg3);
208 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
209 return 1;
211 int LuaBinder< QGraphicsView >::__LuaWrapCall__tr (lua_State *L) {
212 int score[3];
213 const int premium = 11+lua_gettop(L);
214 score[1] = 0;
215 if ((lua_type(L, 1)==LUA_TSTRING)) {
216 score[1] += premium;
217 } else if (false) {
218 score[1] += premium-1; // table: 0x115fb30;
219 } else {
220 score[1] -= premium*premium;
222 if ((lua_type(L, 2)==LUA_TSTRING)) {
223 score[1] += premium;
224 } else if (true) {
225 score[1] += premium-1; // table: 0x115f890;
226 } else {
227 score[1] -= premium*premium;
229 score[2] = 0;
230 if ((lua_type(L, 1)==LUA_TSTRING)) {
231 score[2] += premium;
232 } else if (false) {
233 score[2] += premium-1; // table: 0x1161570;
234 } else {
235 score[2] -= premium*premium;
237 if ((lua_type(L, 2)==LUA_TSTRING)) {
238 score[2] += premium;
239 } else if (false) {
240 score[2] += premium-1; // table: 0x1161a60;
241 } else {
242 score[2] -= premium*premium;
244 if (lua_isnumber(L, 3)) {
245 score[2] += premium;
246 } else if (false) {
247 score[2] += premium-1; // table: 0x1161e10;
248 } else {
249 score[2] -= premium*premium;
251 int best = 1;
252 for (int i=1;i<=2;i++) {
253 if (score[best] < score[i]) { best = i; }
255 switch (best) {
256 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L); break;
257 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L); break;
259 lua_pushstring(L, "no overload of function __LuaWrapCall__tr matching arguments");
260 lua_error(L);
261 return 0;
263 int LuaBinder< QGraphicsView >::__LuaWrapCall__renderHints (lua_State *L) {
264 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
265 if (__lua__obj==0) {
266 lua_pushstring(L, "trying to reference deleted pointer");
267 lua_error(L);
268 return 0;
270 QFlags<QPainter::RenderHint> ret = __lua__obj->QGraphicsView::renderHints();
271 lqtL_passudata(L, new QFlags<QPainter::RenderHint>(ret), "QFlags<QPainter::RenderHint>*");
272 return 1;
274 int LuaBinder< QGraphicsView >::__LuaWrapCall__setCacheMode (lua_State *L) {
275 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
276 if (__lua__obj==0) {
277 lua_pushstring(L, "trying to reference deleted pointer");
278 lua_error(L);
279 return 0;
281 QFlags<QGraphicsView::CacheModeFlag> arg1 = **static_cast<QFlags<QGraphicsView::CacheModeFlag>**>(lqtL_checkudata(L, 2, "QFlags<QGraphicsView::CacheModeFlag>*"));
282 __lua__obj->QGraphicsView::setCacheMode(arg1);
283 return 0;
285 int LuaBinder< QGraphicsView >::__LuaWrapCall__delete (lua_State *L) {
286 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
287 if (__lua__obj==0) {
288 lua_pushstring(L, "trying to reference deleted pointer");
289 lua_error(L);
290 return 0;
292 delete __lua__obj;
293 __lua__obj = 0;
294 return 0;
296 int LuaBinder< QGraphicsView >::__LuaWrapCall__new__OverloadedVersion__2 (lua_State *L) {
297 QWidget * arg1 = lqtL_testudata(L, 1, "QWidget*")?*static_cast<QWidget**>(lqtL_checkudata(L, 1, "QWidget*")):static_cast< QWidget * >(0);
298 QGraphicsView * ret = new LuaBinder< QGraphicsView >(L, arg1);
299 lqtL_passudata(L, ret, "QGraphicsView*");
300 return 1;
302 int LuaBinder< QGraphicsView >::__LuaWrapCall__new__OverloadedVersion__3 (lua_State *L) {
303 QGraphicsScene * arg1 = *static_cast<QGraphicsScene**>(lqtL_checkudata(L, 1, "QGraphicsScene*"));
304 QWidget * arg2 = lqtL_testudata(L, 2, "QWidget*")?*static_cast<QWidget**>(lqtL_checkudata(L, 2, "QWidget*")):static_cast< QWidget * >(0);
305 QGraphicsView * ret = new LuaBinder< QGraphicsView >(L, arg1, arg2);
306 lqtL_passudata(L, ret, "QGraphicsView*");
307 return 1;
309 int LuaBinder< QGraphicsView >::__LuaWrapCall__new (lua_State *L) {
310 int score[4];
311 const int premium = 11+lua_gettop(L);
312 score[2] = 0;
313 if (lqtL_testudata(L, 1, "QWidget*")) {
314 score[2] += premium;
315 } else if (true) {
316 score[2] += premium-1; // table: 0x1164780;
317 } else {
318 score[2] -= premium*premium;
320 score[3] = 0;
321 if (lqtL_testudata(L, 1, "QGraphicsScene*")) {
322 score[3] += premium;
323 } else if (false) {
324 score[3] += premium-1; // table: 0x11651f0;
325 } else {
326 score[3] -= premium*premium;
328 if (lqtL_testudata(L, 2, "QWidget*")) {
329 score[3] += premium;
330 } else if (true) {
331 score[3] += premium-1; // table: 0x1164c90;
332 } else {
333 score[3] -= premium*premium;
335 int best = 1;
336 for (int i=1;i<=3;i++) {
337 if (score[best] < score[i]) { best = i; }
339 switch (best) {
340 case 2: return __LuaWrapCall__new__OverloadedVersion__2(L); break;
341 case 3: return __LuaWrapCall__new__OverloadedVersion__3(L); break;
343 lua_pushstring(L, "no overload of function __LuaWrapCall__new matching arguments");
344 lua_error(L);
345 return 0;
347 int LuaBinder< QGraphicsView >::__LuaWrapCall__setRenderHints (lua_State *L) {
348 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
349 if (__lua__obj==0) {
350 lua_pushstring(L, "trying to reference deleted pointer");
351 lua_error(L);
352 return 0;
354 QFlags<QPainter::RenderHint> arg1 = **static_cast<QFlags<QPainter::RenderHint>**>(lqtL_checkudata(L, 2, "QFlags<QPainter::RenderHint>*"));
355 __lua__obj->QGraphicsView::setRenderHints(arg1);
356 return 0;
358 int LuaBinder< QGraphicsView >::__LuaWrapCall__updateScene (lua_State *L) {
359 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
360 if (__lua__obj==0) {
361 lua_pushstring(L, "trying to reference deleted pointer");
362 lua_error(L);
363 return 0;
365 const QList<QRectF>& arg1 = **static_cast<QList<QRectF>**>(lqtL_checkudata(L, 2, "QList<QRectF>*"));
366 __lua__obj->QGraphicsView::updateScene(arg1);
367 return 0;
369 int LuaBinder< QGraphicsView >::__LuaWrapCall__setRenderHint (lua_State *L) {
370 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
371 if (__lua__obj==0) {
372 lua_pushstring(L, "trying to reference deleted pointer");
373 lua_error(L);
374 return 0;
376 QPainter::RenderHint arg1 = static_cast<QPainter::RenderHint>(lqtL_toenum(L, 2, "QPainter::RenderHint"));
377 bool arg2 = lua_isboolean(L, 3)?(bool)lua_toboolean(L, 3):true;
378 __lua__obj->QGraphicsView::setRenderHint(arg1, arg2);
379 return 0;
381 int LuaBinder< QGraphicsView >::__LuaWrapCall__items__OverloadedVersion__1 (lua_State *L) {
382 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
383 if (__lua__obj==0) {
384 lua_pushstring(L, "trying to reference deleted pointer");
385 lua_error(L);
386 return 0;
388 QList<QGraphicsItem*> ret = __lua__obj->QGraphicsView::items();
389 lqtL_passudata(L, new QList<QGraphicsItem*>(ret), "QList<QGraphicsItem*>*");
390 return 1;
392 int LuaBinder< QGraphicsView >::__LuaWrapCall__items__OverloadedVersion__2 (lua_State *L) {
393 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
394 if (__lua__obj==0) {
395 lua_pushstring(L, "trying to reference deleted pointer");
396 lua_error(L);
397 return 0;
399 const QPoint& arg1 = **static_cast<QPoint**>(lqtL_checkudata(L, 2, "QPoint*"));
400 QList<QGraphicsItem*> ret = __lua__obj->QGraphicsView::items(arg1);
401 lqtL_passudata(L, new QList<QGraphicsItem*>(ret), "QList<QGraphicsItem*>*");
402 return 1;
404 int LuaBinder< QGraphicsView >::__LuaWrapCall__items__OverloadedVersion__3 (lua_State *L) {
405 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
406 if (__lua__obj==0) {
407 lua_pushstring(L, "trying to reference deleted pointer");
408 lua_error(L);
409 return 0;
411 int arg1 = lua_tointeger(L, 2);
412 int arg2 = lua_tointeger(L, 3);
413 QList<QGraphicsItem*> ret = __lua__obj->QGraphicsView::items(arg1, arg2);
414 lqtL_passudata(L, new QList<QGraphicsItem*>(ret), "QList<QGraphicsItem*>*");
415 return 1;
417 int LuaBinder< QGraphicsView >::__LuaWrapCall__items__OverloadedVersion__4 (lua_State *L) {
418 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
419 if (__lua__obj==0) {
420 lua_pushstring(L, "trying to reference deleted pointer");
421 lua_error(L);
422 return 0;
424 const QRect& arg1 = **static_cast<QRect**>(lqtL_checkudata(L, 2, "QRect*"));
425 Qt::ItemSelectionMode arg2 = lqtL_isenum(L, 3, "Qt::ItemSelectionMode")?static_cast<Qt::ItemSelectionMode>(lqtL_toenum(L, 3, "Qt::ItemSelectionMode")):Qt::IntersectsItemShape;
426 QList<QGraphicsItem*> ret = __lua__obj->QGraphicsView::items(arg1, arg2);
427 lqtL_passudata(L, new QList<QGraphicsItem*>(ret), "QList<QGraphicsItem*>*");
428 return 1;
430 int LuaBinder< QGraphicsView >::__LuaWrapCall__items__OverloadedVersion__5 (lua_State *L) {
431 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
432 if (__lua__obj==0) {
433 lua_pushstring(L, "trying to reference deleted pointer");
434 lua_error(L);
435 return 0;
437 int arg1 = lua_tointeger(L, 2);
438 int arg2 = lua_tointeger(L, 3);
439 int arg3 = lua_tointeger(L, 4);
440 int arg4 = lua_tointeger(L, 5);
441 Qt::ItemSelectionMode arg5 = lqtL_isenum(L, 6, "Qt::ItemSelectionMode")?static_cast<Qt::ItemSelectionMode>(lqtL_toenum(L, 6, "Qt::ItemSelectionMode")):Qt::IntersectsItemShape;
442 QList<QGraphicsItem*> ret = __lua__obj->QGraphicsView::items(arg1, arg2, arg3, arg4, arg5);
443 lqtL_passudata(L, new QList<QGraphicsItem*>(ret), "QList<QGraphicsItem*>*");
444 return 1;
446 int LuaBinder< QGraphicsView >::__LuaWrapCall__items__OverloadedVersion__6 (lua_State *L) {
447 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
448 if (__lua__obj==0) {
449 lua_pushstring(L, "trying to reference deleted pointer");
450 lua_error(L);
451 return 0;
453 const QPolygon& arg1 = **static_cast<QPolygon**>(lqtL_checkudata(L, 2, "QPolygon*"));
454 Qt::ItemSelectionMode arg2 = lqtL_isenum(L, 3, "Qt::ItemSelectionMode")?static_cast<Qt::ItemSelectionMode>(lqtL_toenum(L, 3, "Qt::ItemSelectionMode")):Qt::IntersectsItemShape;
455 QList<QGraphicsItem*> ret = __lua__obj->QGraphicsView::items(arg1, arg2);
456 lqtL_passudata(L, new QList<QGraphicsItem*>(ret), "QList<QGraphicsItem*>*");
457 return 1;
459 int LuaBinder< QGraphicsView >::__LuaWrapCall__items__OverloadedVersion__7 (lua_State *L) {
460 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
461 if (__lua__obj==0) {
462 lua_pushstring(L, "trying to reference deleted pointer");
463 lua_error(L);
464 return 0;
466 const QPainterPath& arg1 = **static_cast<QPainterPath**>(lqtL_checkudata(L, 2, "QPainterPath*"));
467 Qt::ItemSelectionMode arg2 = lqtL_isenum(L, 3, "Qt::ItemSelectionMode")?static_cast<Qt::ItemSelectionMode>(lqtL_toenum(L, 3, "Qt::ItemSelectionMode")):Qt::IntersectsItemShape;
468 QList<QGraphicsItem*> ret = __lua__obj->QGraphicsView::items(arg1, arg2);
469 lqtL_passudata(L, new QList<QGraphicsItem*>(ret), "QList<QGraphicsItem*>*");
470 return 1;
472 int LuaBinder< QGraphicsView >::__LuaWrapCall__items (lua_State *L) {
473 int score[8];
474 const int premium = 11+lua_gettop(L);
475 score[1] = 0;
476 score[1] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
477 score[2] = 0;
478 score[2] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
479 if (lqtL_testudata(L, 2, "QPoint*")) {
480 score[2] += premium;
481 } else if (false) {
482 score[2] += premium-1; // table: 0x118c240;
483 } else {
484 score[2] -= premium*premium;
486 score[3] = 0;
487 score[3] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
488 if (lua_isnumber(L, 2)) {
489 score[3] += premium;
490 } else if (false) {
491 score[3] += premium-1; // table: 0x118cc70;
492 } else {
493 score[3] -= premium*premium;
495 if (lua_isnumber(L, 3)) {
496 score[3] += premium;
497 } else if (false) {
498 score[3] += premium-1; // table: 0x118d180;
499 } else {
500 score[3] -= premium*premium;
502 score[4] = 0;
503 score[4] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
504 if (lqtL_testudata(L, 2, "QRect*")) {
505 score[4] += premium;
506 } else if (false) {
507 score[4] += premium-1; // table: 0x118dad0;
508 } else {
509 score[4] -= premium*premium;
511 if (lqtL_isenum(L, 3, "Qt::ItemSelectionMode")) {
512 score[4] += premium;
513 } else if (true) {
514 score[4] += premium-1; // table: 0x118d530;
515 } else {
516 score[4] -= premium*premium;
518 score[5] = 0;
519 score[5] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
520 if (lua_isnumber(L, 2)) {
521 score[5] += premium;
522 } else if (false) {
523 score[5] += premium-1; // table: 0x118e980;
524 } else {
525 score[5] -= premium*premium;
527 if (lua_isnumber(L, 3)) {
528 score[5] += premium;
529 } else if (false) {
530 score[5] += premium-1; // table: 0x118eea0;
531 } else {
532 score[5] -= premium*premium;
534 if (lua_isnumber(L, 4)) {
535 score[5] += premium;
536 } else if (false) {
537 score[5] += premium-1; // table: 0x118f250;
538 } else {
539 score[5] -= premium*premium;
541 if (lua_isnumber(L, 5)) {
542 score[5] += premium;
543 } else if (false) {
544 score[5] += premium-1; // table: 0x118f1f0;
545 } else {
546 score[5] -= premium*premium;
548 if (lqtL_isenum(L, 6, "Qt::ItemSelectionMode")) {
549 score[5] += premium;
550 } else if (true) {
551 score[5] += premium-1; // table: 0x118fa30;
552 } else {
553 score[5] -= premium*premium;
555 score[6] = 0;
556 score[6] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
557 if (lqtL_testudata(L, 2, "QPolygon*")) {
558 score[6] += premium;
559 } else if (false) {
560 score[6] += premium-1; // table: 0x1190390;
561 } else {
562 score[6] -= premium*premium;
564 if (lqtL_isenum(L, 3, "Qt::ItemSelectionMode")) {
565 score[6] += premium;
566 } else if (true) {
567 score[6] += premium-1; // table: 0x118f620;
568 } else {
569 score[6] -= premium*premium;
571 score[7] = 0;
572 score[7] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
573 if (lqtL_testudata(L, 2, "QPainterPath*")) {
574 score[7] += premium;
575 } else if (false) {
576 score[7] += premium-1; // table: 0x1191250;
577 } else {
578 score[7] -= premium*premium;
580 if (lqtL_isenum(L, 3, "Qt::ItemSelectionMode")) {
581 score[7] += premium;
582 } else if (true) {
583 score[7] += premium-1; // table: 0x1190cd0;
584 } else {
585 score[7] -= premium*premium;
587 int best = 1;
588 for (int i=1;i<=7;i++) {
589 if (score[best] < score[i]) { best = i; }
591 switch (best) {
592 case 1: return __LuaWrapCall__items__OverloadedVersion__1(L); break;
593 case 2: return __LuaWrapCall__items__OverloadedVersion__2(L); break;
594 case 3: return __LuaWrapCall__items__OverloadedVersion__3(L); break;
595 case 4: return __LuaWrapCall__items__OverloadedVersion__4(L); break;
596 case 5: return __LuaWrapCall__items__OverloadedVersion__5(L); break;
597 case 6: return __LuaWrapCall__items__OverloadedVersion__6(L); break;
598 case 7: return __LuaWrapCall__items__OverloadedVersion__7(L); break;
600 lua_pushstring(L, "no overload of function __LuaWrapCall__items matching arguments");
601 lua_error(L);
602 return 0;
604 int LuaBinder< QGraphicsView >::__LuaWrapCall__invalidateScene (lua_State *L) {
605 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
606 if (__lua__obj==0) {
607 lua_pushstring(L, "trying to reference deleted pointer");
608 lua_error(L);
609 return 0;
611 const QRectF& arg1 = lqtL_testudata(L, 2, "QRectF*")?**static_cast<QRectF**>(lqtL_checkudata(L, 2, "QRectF*")):QRectF();
612 QFlags<QGraphicsScene::SceneLayer> arg2 = lqtL_testudata(L, 3, "QFlags<QGraphicsScene::SceneLayer>*")?**static_cast<QFlags<QGraphicsScene::SceneLayer>**>(lqtL_checkudata(L, 3, "QFlags<QGraphicsScene::SceneLayer>*")):QGraphicsScene::AllLayers;
613 __lua__obj->QGraphicsView::invalidateScene(arg1, arg2);
614 return 0;
616 int LuaBinder< QGraphicsView >::__LuaWrapCall__matrix (lua_State *L) {
617 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
618 if (__lua__obj==0) {
619 lua_pushstring(L, "trying to reference deleted pointer");
620 lua_error(L);
621 return 0;
623 QMatrix ret = __lua__obj->QGraphicsView::matrix();
624 lqtL_passudata(L, new QMatrix(ret), "QMatrix*");
625 return 1;
627 int LuaBinder< QGraphicsView >::__LuaWrapCall__transformationAnchor (lua_State *L) {
628 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
629 if (__lua__obj==0) {
630 lua_pushstring(L, "trying to reference deleted pointer");
631 lua_error(L);
632 return 0;
634 QGraphicsView::ViewportAnchor ret = __lua__obj->QGraphicsView::transformationAnchor();
635 lqtL_pushenum(L, ret, "QGraphicsView::ViewportAnchor");
636 return 1;
638 int LuaBinder< QGraphicsView >::__LuaWrapCall__centerOn__OverloadedVersion__1 (lua_State *L) {
639 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
640 if (__lua__obj==0) {
641 lua_pushstring(L, "trying to reference deleted pointer");
642 lua_error(L);
643 return 0;
645 const QPointF& arg1 = **static_cast<QPointF**>(lqtL_checkudata(L, 2, "QPointF*"));
646 __lua__obj->QGraphicsView::centerOn(arg1);
647 return 0;
649 int LuaBinder< QGraphicsView >::__LuaWrapCall__centerOn__OverloadedVersion__2 (lua_State *L) {
650 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
651 if (__lua__obj==0) {
652 lua_pushstring(L, "trying to reference deleted pointer");
653 lua_error(L);
654 return 0;
656 double arg1 = lua_tonumber(L, 2);
657 double arg2 = lua_tonumber(L, 3);
658 __lua__obj->QGraphicsView::centerOn(arg1, arg2);
659 return 0;
661 int LuaBinder< QGraphicsView >::__LuaWrapCall__centerOn__OverloadedVersion__3 (lua_State *L) {
662 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
663 if (__lua__obj==0) {
664 lua_pushstring(L, "trying to reference deleted pointer");
665 lua_error(L);
666 return 0;
668 const QGraphicsItem * arg1 = *static_cast<QGraphicsItem**>(lqtL_checkudata(L, 2, "QGraphicsItem*"));
669 __lua__obj->QGraphicsView::centerOn(arg1);
670 return 0;
672 int LuaBinder< QGraphicsView >::__LuaWrapCall__centerOn (lua_State *L) {
673 int score[4];
674 const int premium = 11+lua_gettop(L);
675 score[1] = 0;
676 score[1] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
677 if (lqtL_testudata(L, 2, "QPointF*")) {
678 score[1] += premium;
679 } else if (false) {
680 score[1] += premium-1; // table: 0x1180590;
681 } else {
682 score[1] -= premium*premium;
684 score[2] = 0;
685 score[2] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
686 if (lua_isnumber(L, 2)) {
687 score[2] += premium;
688 } else if (false) {
689 score[2] += premium-1; // table: 0x1181040;
690 } else {
691 score[2] -= premium*premium;
693 if (lua_isnumber(L, 3)) {
694 score[2] += premium;
695 } else if (false) {
696 score[2] += premium-1; // table: 0x1180af0;
697 } else {
698 score[2] -= premium*premium;
700 score[3] = 0;
701 score[3] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
702 if (lqtL_testudata(L, 2, "QGraphicsItem*")) {
703 score[3] += premium;
704 } else if (false) {
705 score[3] += premium-1; // table: 0x1181e90;
706 } else {
707 score[3] -= premium*premium;
709 int best = 1;
710 for (int i=1;i<=3;i++) {
711 if (score[best] < score[i]) { best = i; }
713 switch (best) {
714 case 1: return __LuaWrapCall__centerOn__OverloadedVersion__1(L); break;
715 case 2: return __LuaWrapCall__centerOn__OverloadedVersion__2(L); break;
716 case 3: return __LuaWrapCall__centerOn__OverloadedVersion__3(L); break;
718 lua_pushstring(L, "no overload of function __LuaWrapCall__centerOn matching arguments");
719 lua_error(L);
720 return 0;
722 int LuaBinder< QGraphicsView >::__LuaWrapCall__rotate (lua_State *L) {
723 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
724 if (__lua__obj==0) {
725 lua_pushstring(L, "trying to reference deleted pointer");
726 lua_error(L);
727 return 0;
729 double arg1 = lua_tonumber(L, 2);
730 __lua__obj->QGraphicsView::rotate(arg1);
731 return 0;
733 int LuaBinder< QGraphicsView >::__LuaWrapCall__setScene (lua_State *L) {
734 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
735 if (__lua__obj==0) {
736 lua_pushstring(L, "trying to reference deleted pointer");
737 lua_error(L);
738 return 0;
740 QGraphicsScene * arg1 = *static_cast<QGraphicsScene**>(lqtL_checkudata(L, 2, "QGraphicsScene*"));
741 __lua__obj->QGraphicsView::setScene(arg1);
742 return 0;
744 int LuaBinder< QGraphicsView >::__LuaWrapCall__transform (lua_State *L) {
745 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
746 if (__lua__obj==0) {
747 lua_pushstring(L, "trying to reference deleted pointer");
748 lua_error(L);
749 return 0;
751 QTransform ret = __lua__obj->QGraphicsView::transform();
752 lqtL_passudata(L, new QTransform(ret), "QTransform*");
753 return 1;
755 int LuaBinder< QGraphicsView >::__LuaWrapCall__resetMatrix (lua_State *L) {
756 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
757 if (__lua__obj==0) {
758 lua_pushstring(L, "trying to reference deleted pointer");
759 lua_error(L);
760 return 0;
762 __lua__obj->QGraphicsView::resetMatrix();
763 return 0;
765 int LuaBinder< QGraphicsView >::__LuaWrapCall__setRubberBandSelectionMode (lua_State *L) {
766 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
767 if (__lua__obj==0) {
768 lua_pushstring(L, "trying to reference deleted pointer");
769 lua_error(L);
770 return 0;
772 Qt::ItemSelectionMode arg1 = static_cast<Qt::ItemSelectionMode>(lqtL_toenum(L, 2, "Qt::ItemSelectionMode"));
773 __lua__obj->QGraphicsView::setRubberBandSelectionMode(arg1);
774 return 0;
776 int LuaBinder< QGraphicsView >::__LuaWrapCall__setTransform (lua_State *L) {
777 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
778 if (__lua__obj==0) {
779 lua_pushstring(L, "trying to reference deleted pointer");
780 lua_error(L);
781 return 0;
783 const QTransform& arg1 = **static_cast<QTransform**>(lqtL_checkudata(L, 2, "QTransform*"));
784 bool arg2 = lua_isboolean(L, 3)?(bool)lua_toboolean(L, 3):false;
785 __lua__obj->QGraphicsView::setTransform(arg1, arg2);
786 return 0;
788 int LuaBinder< QGraphicsView >::__LuaWrapCall__setSceneRect__OverloadedVersion__1 (lua_State *L) {
789 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
790 if (__lua__obj==0) {
791 lua_pushstring(L, "trying to reference deleted pointer");
792 lua_error(L);
793 return 0;
795 const QRectF& arg1 = **static_cast<QRectF**>(lqtL_checkudata(L, 2, "QRectF*"));
796 __lua__obj->QGraphicsView::setSceneRect(arg1);
797 return 0;
799 int LuaBinder< QGraphicsView >::__LuaWrapCall__setSceneRect__OverloadedVersion__2 (lua_State *L) {
800 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
801 if (__lua__obj==0) {
802 lua_pushstring(L, "trying to reference deleted pointer");
803 lua_error(L);
804 return 0;
806 double arg1 = lua_tonumber(L, 2);
807 double arg2 = lua_tonumber(L, 3);
808 double arg3 = lua_tonumber(L, 4);
809 double arg4 = lua_tonumber(L, 5);
810 __lua__obj->QGraphicsView::setSceneRect(arg1, arg2, arg3, arg4);
811 return 0;
813 int LuaBinder< QGraphicsView >::__LuaWrapCall__setSceneRect (lua_State *L) {
814 int score[3];
815 const int premium = 11+lua_gettop(L);
816 score[1] = 0;
817 score[1] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
818 if (lqtL_testudata(L, 2, "QRectF*")) {
819 score[1] += premium;
820 } else if (false) {
821 score[1] += premium-1; // table: 0x1176810;
822 } else {
823 score[1] -= premium*premium;
825 score[2] = 0;
826 score[2] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
827 if (lua_isnumber(L, 2)) {
828 score[2] += premium;
829 } else if (false) {
830 score[2] += premium-1; // table: 0x1177290;
831 } else {
832 score[2] -= premium*premium;
834 if (lua_isnumber(L, 3)) {
835 score[2] += premium;
836 } else if (false) {
837 score[2] += premium-1; // table: 0x1176d20;
838 } else {
839 score[2] -= premium*premium;
841 if (lua_isnumber(L, 4)) {
842 score[2] += premium;
843 } else if (false) {
844 score[2] += premium-1; // table: 0x11777a0;
845 } else {
846 score[2] -= premium*premium;
848 if (lua_isnumber(L, 5)) {
849 score[2] += premium;
850 } else if (false) {
851 score[2] += premium-1; // table: 0x11780c0;
852 } else {
853 score[2] -= premium*premium;
855 int best = 1;
856 for (int i=1;i<=2;i++) {
857 if (score[best] < score[i]) { best = i; }
859 switch (best) {
860 case 1: return __LuaWrapCall__setSceneRect__OverloadedVersion__1(L); break;
861 case 2: return __LuaWrapCall__setSceneRect__OverloadedVersion__2(L); break;
863 lua_pushstring(L, "no overload of function __LuaWrapCall__setSceneRect matching arguments");
864 lua_error(L);
865 return 0;
867 int LuaBinder< QGraphicsView >::__LuaWrapCall__scale (lua_State *L) {
868 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
869 if (__lua__obj==0) {
870 lua_pushstring(L, "trying to reference deleted pointer");
871 lua_error(L);
872 return 0;
874 double arg1 = lua_tonumber(L, 2);
875 double arg2 = lua_tonumber(L, 3);
876 __lua__obj->QGraphicsView::scale(arg1, arg2);
877 return 0;
879 int LuaBinder< QGraphicsView >::__LuaWrapCall__resizeAnchor (lua_State *L) {
880 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
881 if (__lua__obj==0) {
882 lua_pushstring(L, "trying to reference deleted pointer");
883 lua_error(L);
884 return 0;
886 QGraphicsView::ViewportAnchor ret = __lua__obj->QGraphicsView::resizeAnchor();
887 lqtL_pushenum(L, ret, "QGraphicsView::ViewportAnchor");
888 return 1;
890 int LuaBinder< QGraphicsView >::__LuaWrapCall__dragMode (lua_State *L) {
891 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
892 if (__lua__obj==0) {
893 lua_pushstring(L, "trying to reference deleted pointer");
894 lua_error(L);
895 return 0;
897 QGraphicsView::DragMode ret = __lua__obj->QGraphicsView::dragMode();
898 lqtL_pushenum(L, ret, "QGraphicsView::DragMode");
899 return 1;
901 int LuaBinder< QGraphicsView >::__LuaWrapCall__shear (lua_State *L) {
902 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
903 if (__lua__obj==0) {
904 lua_pushstring(L, "trying to reference deleted pointer");
905 lua_error(L);
906 return 0;
908 double arg1 = lua_tonumber(L, 2);
909 double arg2 = lua_tonumber(L, 3);
910 __lua__obj->QGraphicsView::shear(arg1, arg2);
911 return 0;
913 int LuaBinder< QGraphicsView >::__LuaWrapCall__fitInView__OverloadedVersion__1 (lua_State *L) {
914 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
915 if (__lua__obj==0) {
916 lua_pushstring(L, "trying to reference deleted pointer");
917 lua_error(L);
918 return 0;
920 const QRectF& arg1 = **static_cast<QRectF**>(lqtL_checkudata(L, 2, "QRectF*"));
921 Qt::AspectRatioMode arg2 = lqtL_isenum(L, 3, "Qt::AspectRatioMode")?static_cast<Qt::AspectRatioMode>(lqtL_toenum(L, 3, "Qt::AspectRatioMode")):Qt::IgnoreAspectRatio;
922 __lua__obj->QGraphicsView::fitInView(arg1, arg2);
923 return 0;
925 int LuaBinder< QGraphicsView >::__LuaWrapCall__fitInView__OverloadedVersion__2 (lua_State *L) {
926 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
927 if (__lua__obj==0) {
928 lua_pushstring(L, "trying to reference deleted pointer");
929 lua_error(L);
930 return 0;
932 double arg1 = lua_tonumber(L, 2);
933 double arg2 = lua_tonumber(L, 3);
934 double arg3 = lua_tonumber(L, 4);
935 double arg4 = lua_tonumber(L, 5);
936 Qt::AspectRatioMode arg5 = lqtL_isenum(L, 6, "Qt::AspectRatioMode")?static_cast<Qt::AspectRatioMode>(lqtL_toenum(L, 6, "Qt::AspectRatioMode")):Qt::IgnoreAspectRatio;
937 __lua__obj->QGraphicsView::fitInView(arg1, arg2, arg3, arg4, arg5);
938 return 0;
940 int LuaBinder< QGraphicsView >::__LuaWrapCall__fitInView__OverloadedVersion__3 (lua_State *L) {
941 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
942 if (__lua__obj==0) {
943 lua_pushstring(L, "trying to reference deleted pointer");
944 lua_error(L);
945 return 0;
947 const QGraphicsItem * arg1 = *static_cast<QGraphicsItem**>(lqtL_checkudata(L, 2, "QGraphicsItem*"));
948 Qt::AspectRatioMode arg2 = lqtL_isenum(L, 3, "Qt::AspectRatioMode")?static_cast<Qt::AspectRatioMode>(lqtL_toenum(L, 3, "Qt::AspectRatioMode")):Qt::IgnoreAspectRatio;
949 __lua__obj->QGraphicsView::fitInView(arg1, arg2);
950 return 0;
952 int LuaBinder< QGraphicsView >::__LuaWrapCall__fitInView (lua_State *L) {
953 int score[4];
954 const int premium = 11+lua_gettop(L);
955 score[1] = 0;
956 score[1] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
957 if (lqtL_testudata(L, 2, "QRectF*")) {
958 score[1] += premium;
959 } else if (false) {
960 score[1] += premium-1; // table: 0x1186c60;
961 } else {
962 score[1] -= premium*premium;
964 if (lqtL_isenum(L, 3, "Qt::AspectRatioMode")) {
965 score[1] += premium;
966 } else if (true) {
967 score[1] += premium-1; // table: 0x1186200;
968 } else {
969 score[1] -= premium*premium;
971 score[2] = 0;
972 score[2] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
973 if (lua_isnumber(L, 2)) {
974 score[2] += premium;
975 } else if (false) {
976 score[2] += premium-1; // table: 0x1187c00;
977 } else {
978 score[2] -= premium*premium;
980 if (lua_isnumber(L, 3)) {
981 score[2] += premium;
982 } else if (false) {
983 score[2] += premium-1; // table: 0x11878d0;
984 } else {
985 score[2] -= premium*premium;
987 if (lua_isnumber(L, 4)) {
988 score[2] += premium;
989 } else if (false) {
990 score[2] += premium-1; // table: 0x11884d0;
991 } else {
992 score[2] -= premium*premium;
994 if (lua_isnumber(L, 5)) {
995 score[2] += premium;
996 } else if (false) {
997 score[2] += premium-1; // table: 0x1188470;
998 } else {
999 score[2] -= premium*premium;
1001 if (lqtL_isenum(L, 6, "Qt::AspectRatioMode")) {
1002 score[2] += premium;
1003 } else if (true) {
1004 score[2] += premium-1; // table: 0x1188ca0;
1005 } else {
1006 score[2] -= premium*premium;
1008 score[3] = 0;
1009 score[3] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
1010 if (lqtL_testudata(L, 2, "QGraphicsItem*")) {
1011 score[3] += premium;
1012 } else if (false) {
1013 score[3] += premium-1; // table: 0x11895d0;
1014 } else {
1015 score[3] -= premium*premium;
1017 if (lqtL_isenum(L, 3, "Qt::AspectRatioMode")) {
1018 score[3] += premium;
1019 } else if (true) {
1020 score[3] += premium-1; // table: 0x11888a0;
1021 } else {
1022 score[3] -= premium*premium;
1024 int best = 1;
1025 for (int i=1;i<=3;i++) {
1026 if (score[best] < score[i]) { best = i; }
1028 switch (best) {
1029 case 1: return __LuaWrapCall__fitInView__OverloadedVersion__1(L); break;
1030 case 2: return __LuaWrapCall__fitInView__OverloadedVersion__2(L); break;
1031 case 3: return __LuaWrapCall__fitInView__OverloadedVersion__3(L); break;
1033 lua_pushstring(L, "no overload of function __LuaWrapCall__fitInView matching arguments");
1034 lua_error(L);
1035 return 0;
1037 int LuaBinder< QGraphicsView >::__LuaWrapCall__isInteractive (lua_State *L) {
1038 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1039 if (__lua__obj==0) {
1040 lua_pushstring(L, "trying to reference deleted pointer");
1041 lua_error(L);
1042 return 0;
1044 bool ret = __lua__obj->QGraphicsView::isInteractive();
1045 lua_pushboolean(L, ret);
1046 return 1;
1048 int LuaBinder< QGraphicsView >::__LuaWrapCall__setResizeAnchor (lua_State *L) {
1049 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1050 if (__lua__obj==0) {
1051 lua_pushstring(L, "trying to reference deleted pointer");
1052 lua_error(L);
1053 return 0;
1055 QGraphicsView::ViewportAnchor arg1 = static_cast<QGraphicsView::ViewportAnchor>(lqtL_toenum(L, 2, "QGraphicsView::ViewportAnchor"));
1056 __lua__obj->QGraphicsView::setResizeAnchor(arg1);
1057 return 0;
1059 int LuaBinder< QGraphicsView >::__LuaWrapCall__translate (lua_State *L) {
1060 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1061 if (__lua__obj==0) {
1062 lua_pushstring(L, "trying to reference deleted pointer");
1063 lua_error(L);
1064 return 0;
1066 double arg1 = lua_tonumber(L, 2);
1067 double arg2 = lua_tonumber(L, 3);
1068 __lua__obj->QGraphicsView::translate(arg1, arg2);
1069 return 0;
1071 int LuaBinder< QGraphicsView >::__LuaWrapCall__ensureVisible__OverloadedVersion__1 (lua_State *L) {
1072 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1073 if (__lua__obj==0) {
1074 lua_pushstring(L, "trying to reference deleted pointer");
1075 lua_error(L);
1076 return 0;
1078 const QRectF& arg1 = **static_cast<QRectF**>(lqtL_checkudata(L, 2, "QRectF*"));
1079 int arg2 = lua_isnumber(L, 3)?lua_tointeger(L, 3):static_cast< int >(50);
1080 int arg3 = lua_isnumber(L, 4)?lua_tointeger(L, 4):static_cast< int >(50);
1081 __lua__obj->QGraphicsView::ensureVisible(arg1, arg2, arg3);
1082 return 0;
1084 int LuaBinder< QGraphicsView >::__LuaWrapCall__ensureVisible__OverloadedVersion__2 (lua_State *L) {
1085 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1086 if (__lua__obj==0) {
1087 lua_pushstring(L, "trying to reference deleted pointer");
1088 lua_error(L);
1089 return 0;
1091 double arg1 = lua_tonumber(L, 2);
1092 double arg2 = lua_tonumber(L, 3);
1093 double arg3 = lua_tonumber(L, 4);
1094 double arg4 = lua_tonumber(L, 5);
1095 int arg5 = lua_isnumber(L, 6)?lua_tointeger(L, 6):static_cast< int >(50);
1096 int arg6 = lua_isnumber(L, 7)?lua_tointeger(L, 7):static_cast< int >(50);
1097 __lua__obj->QGraphicsView::ensureVisible(arg1, arg2, arg3, arg4, arg5, arg6);
1098 return 0;
1100 int LuaBinder< QGraphicsView >::__LuaWrapCall__ensureVisible__OverloadedVersion__3 (lua_State *L) {
1101 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1102 if (__lua__obj==0) {
1103 lua_pushstring(L, "trying to reference deleted pointer");
1104 lua_error(L);
1105 return 0;
1107 const QGraphicsItem * arg1 = *static_cast<QGraphicsItem**>(lqtL_checkudata(L, 2, "QGraphicsItem*"));
1108 int arg2 = lua_isnumber(L, 3)?lua_tointeger(L, 3):static_cast< int >(50);
1109 int arg3 = lua_isnumber(L, 4)?lua_tointeger(L, 4):static_cast< int >(50);
1110 __lua__obj->QGraphicsView::ensureVisible(arg1, arg2, arg3);
1111 return 0;
1113 int LuaBinder< QGraphicsView >::__LuaWrapCall__ensureVisible (lua_State *L) {
1114 int score[4];
1115 const int premium = 11+lua_gettop(L);
1116 score[1] = 0;
1117 score[1] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
1118 if (lqtL_testudata(L, 2, "QRectF*")) {
1119 score[1] += premium;
1120 } else if (false) {
1121 score[1] += premium-1; // table: 0x11828e0;
1122 } else {
1123 score[1] -= premium*premium;
1125 if (lua_isnumber(L, 3)) {
1126 score[1] += premium;
1127 } else if (true) {
1128 score[1] += premium-1; // table: 0x11823a0;
1129 } else {
1130 score[1] -= premium*premium;
1132 if (lua_isnumber(L, 4)) {
1133 score[1] += premium;
1134 } else if (true) {
1135 score[1] += premium-1; // table: 0x1182d90;
1136 } else {
1137 score[1] -= premium*premium;
1139 score[2] = 0;
1140 score[2] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
1141 if (lua_isnumber(L, 2)) {
1142 score[2] += premium;
1143 } else if (false) {
1144 score[2] += premium-1; // table: 0x1183b60;
1145 } else {
1146 score[2] -= premium*premium;
1148 if (lua_isnumber(L, 3)) {
1149 score[2] += premium;
1150 } else if (false) {
1151 score[2] += premium-1; // table: 0x1183160;
1152 } else {
1153 score[2] -= premium*premium;
1155 if (lua_isnumber(L, 4)) {
1156 score[2] += premium;
1157 } else if (false) {
1158 score[2] += premium-1; // table: 0x1184010;
1159 } else {
1160 score[2] -= premium*premium;
1162 if (lua_isnumber(L, 5)) {
1163 score[2] += premium;
1164 } else if (false) {
1165 score[2] += premium-1; // table: 0x1184870;
1166 } else {
1167 score[2] -= premium*premium;
1169 if (lua_isnumber(L, 6)) {
1170 score[2] += premium;
1171 } else if (true) {
1172 score[2] += premium-1; // table: 0x1184c30;
1173 } else {
1174 score[2] -= premium*premium;
1176 if (lua_isnumber(L, 7)) {
1177 score[2] += premium;
1178 } else if (true) {
1179 score[2] += premium-1; // table: 0x11847c0;
1180 } else {
1181 score[2] -= premium*premium;
1183 score[3] = 0;
1184 score[3] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
1185 if (lqtL_testudata(L, 2, "QGraphicsItem*")) {
1186 score[3] += premium;
1187 } else if (false) {
1188 score[3] += premium-1; // table: 0x1185980;
1189 } else {
1190 score[3] -= premium*premium;
1192 if (lua_isnumber(L, 3)) {
1193 score[3] += premium;
1194 } else if (true) {
1195 score[3] += premium-1; // table: 0x1185650;
1196 } else {
1197 score[3] -= premium*premium;
1199 if (lua_isnumber(L, 4)) {
1200 score[3] += premium;
1201 } else if (true) {
1202 score[3] += premium-1; // table: 0x1185e30;
1203 } else {
1204 score[3] -= premium*premium;
1206 int best = 1;
1207 for (int i=1;i<=3;i++) {
1208 if (score[best] < score[i]) { best = i; }
1210 switch (best) {
1211 case 1: return __LuaWrapCall__ensureVisible__OverloadedVersion__1(L); break;
1212 case 2: return __LuaWrapCall__ensureVisible__OverloadedVersion__2(L); break;
1213 case 3: return __LuaWrapCall__ensureVisible__OverloadedVersion__3(L); break;
1215 lua_pushstring(L, "no overload of function __LuaWrapCall__ensureVisible matching arguments");
1216 lua_error(L);
1217 return 0;
1219 int LuaBinder< QGraphicsView >::__LuaWrapCall__updateSceneRect (lua_State *L) {
1220 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1221 if (__lua__obj==0) {
1222 lua_pushstring(L, "trying to reference deleted pointer");
1223 lua_error(L);
1224 return 0;
1226 const QRectF& arg1 = **static_cast<QRectF**>(lqtL_checkudata(L, 2, "QRectF*"));
1227 __lua__obj->QGraphicsView::updateSceneRect(arg1);
1228 return 0;
1230 int LuaBinder< QGraphicsView >::__LuaWrapCall__backgroundBrush (lua_State *L) {
1231 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1232 if (__lua__obj==0) {
1233 lua_pushstring(L, "trying to reference deleted pointer");
1234 lua_error(L);
1235 return 0;
1237 QBrush ret = __lua__obj->QGraphicsView::backgroundBrush();
1238 lqtL_passudata(L, new QBrush(ret), "QBrush*");
1239 return 1;
1241 int LuaBinder< QGraphicsView >::__LuaWrapCall__cacheMode (lua_State *L) {
1242 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1243 if (__lua__obj==0) {
1244 lua_pushstring(L, "trying to reference deleted pointer");
1245 lua_error(L);
1246 return 0;
1248 QFlags<QGraphicsView::CacheModeFlag> ret = __lua__obj->QGraphicsView::cacheMode();
1249 lqtL_passudata(L, new QFlags<QGraphicsView::CacheModeFlag>(ret), "QFlags<QGraphicsView::CacheModeFlag>*");
1250 return 1;
1252 int LuaBinder< QGraphicsView >::__LuaWrapCall__inputMethodQuery (lua_State *L) {
1253 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1254 if (__lua__obj==0) {
1255 lua_pushstring(L, "trying to reference deleted pointer");
1256 lua_error(L);
1257 return 0;
1259 Qt::InputMethodQuery arg1 = static_cast<Qt::InputMethodQuery>(lqtL_toenum(L, 2, "Qt::InputMethodQuery"));
1260 QVariant ret = __lua__obj->QGraphicsView::inputMethodQuery(arg1);
1261 lqtL_passudata(L, new QVariant(ret), "QVariant*");
1262 return 1;
1264 int LuaBinder< QGraphicsView >::__LuaWrapCall__setViewportUpdateMode (lua_State *L) {
1265 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1266 if (__lua__obj==0) {
1267 lua_pushstring(L, "trying to reference deleted pointer");
1268 lua_error(L);
1269 return 0;
1271 QGraphicsView::ViewportUpdateMode arg1 = static_cast<QGraphicsView::ViewportUpdateMode>(lqtL_toenum(L, 2, "QGraphicsView::ViewportUpdateMode"));
1272 __lua__obj->QGraphicsView::setViewportUpdateMode(arg1);
1273 return 0;
1275 int LuaBinder< QGraphicsView >::__LuaWrapCall__mapToScene__OverloadedVersion__1 (lua_State *L) {
1276 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1277 if (__lua__obj==0) {
1278 lua_pushstring(L, "trying to reference deleted pointer");
1279 lua_error(L);
1280 return 0;
1282 const QPoint& arg1 = **static_cast<QPoint**>(lqtL_checkudata(L, 2, "QPoint*"));
1283 QPointF ret = __lua__obj->QGraphicsView::mapToScene(arg1);
1284 lqtL_passudata(L, new QPointF(ret), "QPointF*");
1285 return 1;
1287 int LuaBinder< QGraphicsView >::__LuaWrapCall__mapToScene__OverloadedVersion__2 (lua_State *L) {
1288 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1289 if (__lua__obj==0) {
1290 lua_pushstring(L, "trying to reference deleted pointer");
1291 lua_error(L);
1292 return 0;
1294 const QRect& arg1 = **static_cast<QRect**>(lqtL_checkudata(L, 2, "QRect*"));
1295 QPolygonF ret = __lua__obj->QGraphicsView::mapToScene(arg1);
1296 lqtL_passudata(L, new QPolygonF(ret), "QPolygonF*");
1297 return 1;
1299 int LuaBinder< QGraphicsView >::__LuaWrapCall__mapToScene__OverloadedVersion__3 (lua_State *L) {
1300 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1301 if (__lua__obj==0) {
1302 lua_pushstring(L, "trying to reference deleted pointer");
1303 lua_error(L);
1304 return 0;
1306 const QPolygon& arg1 = **static_cast<QPolygon**>(lqtL_checkudata(L, 2, "QPolygon*"));
1307 QPolygonF ret = __lua__obj->QGraphicsView::mapToScene(arg1);
1308 lqtL_passudata(L, new QPolygonF(ret), "QPolygonF*");
1309 return 1;
1311 int LuaBinder< QGraphicsView >::__LuaWrapCall__mapToScene__OverloadedVersion__4 (lua_State *L) {
1312 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1313 if (__lua__obj==0) {
1314 lua_pushstring(L, "trying to reference deleted pointer");
1315 lua_error(L);
1316 return 0;
1318 const QPainterPath& arg1 = **static_cast<QPainterPath**>(lqtL_checkudata(L, 2, "QPainterPath*"));
1319 QPainterPath ret = __lua__obj->QGraphicsView::mapToScene(arg1);
1320 lqtL_passudata(L, new QPainterPath(ret), "QPainterPath*");
1321 return 1;
1323 int LuaBinder< QGraphicsView >::__LuaWrapCall__mapToScene__OverloadedVersion__5 (lua_State *L) {
1324 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1325 if (__lua__obj==0) {
1326 lua_pushstring(L, "trying to reference deleted pointer");
1327 lua_error(L);
1328 return 0;
1330 int arg1 = lua_tointeger(L, 2);
1331 int arg2 = lua_tointeger(L, 3);
1332 QPointF ret = __lua__obj->QGraphicsView::mapToScene(arg1, arg2);
1333 lqtL_passudata(L, new QPointF(ret), "QPointF*");
1334 return 1;
1336 int LuaBinder< QGraphicsView >::__LuaWrapCall__mapToScene__OverloadedVersion__6 (lua_State *L) {
1337 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1338 if (__lua__obj==0) {
1339 lua_pushstring(L, "trying to reference deleted pointer");
1340 lua_error(L);
1341 return 0;
1343 int arg1 = lua_tointeger(L, 2);
1344 int arg2 = lua_tointeger(L, 3);
1345 int arg3 = lua_tointeger(L, 4);
1346 int arg4 = lua_tointeger(L, 5);
1347 QPolygonF ret = __lua__obj->QGraphicsView::mapToScene(arg1, arg2, arg3, arg4);
1348 lqtL_passudata(L, new QPolygonF(ret), "QPolygonF*");
1349 return 1;
1351 int LuaBinder< QGraphicsView >::__LuaWrapCall__mapToScene (lua_State *L) {
1352 int score[7];
1353 const int premium = 11+lua_gettop(L);
1354 score[1] = 0;
1355 score[1] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
1356 if (lqtL_testudata(L, 2, "QPoint*")) {
1357 score[1] += premium;
1358 } else if (false) {
1359 score[1] += premium-1; // table: 0x11939e0;
1360 } else {
1361 score[1] -= premium*premium;
1363 score[2] = 0;
1364 score[2] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
1365 if (lqtL_testudata(L, 2, "QRect*")) {
1366 score[2] += premium;
1367 } else if (false) {
1368 score[2] += premium-1; // table: 0x11944c0;
1369 } else {
1370 score[2] -= premium*premium;
1372 score[3] = 0;
1373 score[3] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
1374 if (lqtL_testudata(L, 2, "QPolygon*")) {
1375 score[3] += premium;
1376 } else if (false) {
1377 score[3] += premium-1; // table: 0x1194f60;
1378 } else {
1379 score[3] -= premium*premium;
1381 score[4] = 0;
1382 score[4] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
1383 if (lqtL_testudata(L, 2, "QPainterPath*")) {
1384 score[4] += premium;
1385 } else if (false) {
1386 score[4] += premium-1; // table: 0x11959e0;
1387 } else {
1388 score[4] -= premium*premium;
1390 score[5] = 0;
1391 score[5] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
1392 if (lua_isnumber(L, 2)) {
1393 score[5] += premium;
1394 } else if (false) {
1395 score[5] += premium-1; // table: 0x1198e90;
1396 } else {
1397 score[5] -= premium*premium;
1399 if (lua_isnumber(L, 3)) {
1400 score[5] += premium;
1401 } else if (false) {
1402 score[5] += premium-1; // table: 0x11993c0;
1403 } else {
1404 score[5] -= premium*premium;
1406 score[6] = 0;
1407 score[6] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
1408 if (lua_isnumber(L, 2)) {
1409 score[6] += premium;
1410 } else if (false) {
1411 score[6] += premium-1; // table: 0x1199cd0;
1412 } else {
1413 score[6] -= premium*premium;
1415 if (lua_isnumber(L, 3)) {
1416 score[6] += premium;
1417 } else if (false) {
1418 score[6] += premium-1; // table: 0x119a200;
1419 } else {
1420 score[6] -= premium*premium;
1422 if (lua_isnumber(L, 4)) {
1423 score[6] += premium;
1424 } else if (false) {
1425 score[6] += premium-1; // table: 0x119a5b0;
1426 } else {
1427 score[6] -= premium*premium;
1429 if (lua_isnumber(L, 5)) {
1430 score[6] += premium;
1431 } else if (false) {
1432 score[6] += premium-1; // table: 0x119a550;
1433 } else {
1434 score[6] -= premium*premium;
1436 int best = 1;
1437 for (int i=1;i<=6;i++) {
1438 if (score[best] < score[i]) { best = i; }
1440 switch (best) {
1441 case 1: return __LuaWrapCall__mapToScene__OverloadedVersion__1(L); break;
1442 case 2: return __LuaWrapCall__mapToScene__OverloadedVersion__2(L); break;
1443 case 3: return __LuaWrapCall__mapToScene__OverloadedVersion__3(L); break;
1444 case 4: return __LuaWrapCall__mapToScene__OverloadedVersion__4(L); break;
1445 case 5: return __LuaWrapCall__mapToScene__OverloadedVersion__5(L); break;
1446 case 6: return __LuaWrapCall__mapToScene__OverloadedVersion__6(L); break;
1448 lua_pushstring(L, "no overload of function __LuaWrapCall__mapToScene matching arguments");
1449 lua_error(L);
1450 return 0;
1452 int LuaBinder< QGraphicsView >::__LuaWrapCall__foregroundBrush (lua_State *L) {
1453 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1454 if (__lua__obj==0) {
1455 lua_pushstring(L, "trying to reference deleted pointer");
1456 lua_error(L);
1457 return 0;
1459 QBrush ret = __lua__obj->QGraphicsView::foregroundBrush();
1460 lqtL_passudata(L, new QBrush(ret), "QBrush*");
1461 return 1;
1463 int LuaBinder< QGraphicsView >::__LuaWrapCall__resetTransform (lua_State *L) {
1464 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1465 if (__lua__obj==0) {
1466 lua_pushstring(L, "trying to reference deleted pointer");
1467 lua_error(L);
1468 return 0;
1470 __lua__obj->QGraphicsView::resetTransform();
1471 return 0;
1473 int LuaBinder< QGraphicsView >::__LuaWrapCall__scene (lua_State *L) {
1474 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1475 if (__lua__obj==0) {
1476 lua_pushstring(L, "trying to reference deleted pointer");
1477 lua_error(L);
1478 return 0;
1480 QGraphicsScene * ret = __lua__obj->QGraphicsView::scene();
1481 lqtL_pushudata(L, ret, "QGraphicsScene*");
1482 return 1;
1484 int LuaBinder< QGraphicsView >::__LuaWrapCall__metaObject (lua_State *L) {
1485 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1486 if (__lua__obj==0) {
1487 lua_pushstring(L, "trying to reference deleted pointer");
1488 lua_error(L);
1489 return 0;
1491 const QMetaObject * ret = __lua__obj->QGraphicsView::metaObject();
1492 lqtL_pushudata(L, ret, "QMetaObject*");
1493 return 1;
1495 int LuaBinder< QGraphicsView >::__LuaWrapCall__resetCachedContent (lua_State *L) {
1496 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1497 if (__lua__obj==0) {
1498 lua_pushstring(L, "trying to reference deleted pointer");
1499 lua_error(L);
1500 return 0;
1502 __lua__obj->QGraphicsView::resetCachedContent();
1503 return 0;
1505 int LuaBinder< QGraphicsView >::__LuaWrapCall__setForegroundBrush (lua_State *L) {
1506 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1507 if (__lua__obj==0) {
1508 lua_pushstring(L, "trying to reference deleted pointer");
1509 lua_error(L);
1510 return 0;
1512 const QBrush& arg1 = **static_cast<QBrush**>(lqtL_checkudata(L, 2, "QBrush*"));
1513 __lua__obj->QGraphicsView::setForegroundBrush(arg1);
1514 return 0;
1516 int LuaBinder< QGraphicsView >::__LuaWrapCall__itemAt__OverloadedVersion__1 (lua_State *L) {
1517 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1518 if (__lua__obj==0) {
1519 lua_pushstring(L, "trying to reference deleted pointer");
1520 lua_error(L);
1521 return 0;
1523 const QPoint& arg1 = **static_cast<QPoint**>(lqtL_checkudata(L, 2, "QPoint*"));
1524 QGraphicsItem * ret = __lua__obj->QGraphicsView::itemAt(arg1);
1525 lqtL_pushudata(L, ret, "QGraphicsItem*");
1526 return 1;
1528 int LuaBinder< QGraphicsView >::__LuaWrapCall__itemAt__OverloadedVersion__2 (lua_State *L) {
1529 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1530 if (__lua__obj==0) {
1531 lua_pushstring(L, "trying to reference deleted pointer");
1532 lua_error(L);
1533 return 0;
1535 int arg1 = lua_tointeger(L, 2);
1536 int arg2 = lua_tointeger(L, 3);
1537 QGraphicsItem * ret = __lua__obj->QGraphicsView::itemAt(arg1, arg2);
1538 lqtL_pushudata(L, ret, "QGraphicsItem*");
1539 return 1;
1541 int LuaBinder< QGraphicsView >::__LuaWrapCall__itemAt (lua_State *L) {
1542 int score[3];
1543 const int premium = 11+lua_gettop(L);
1544 score[1] = 0;
1545 score[1] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
1546 if (lqtL_testudata(L, 2, "QPoint*")) {
1547 score[1] += premium;
1548 } else if (false) {
1549 score[1] += premium-1; // table: 0x1192110;
1550 } else {
1551 score[1] -= premium*premium;
1553 score[2] = 0;
1554 score[2] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
1555 if (lua_isnumber(L, 2)) {
1556 score[2] += premium;
1557 } else if (false) {
1558 score[2] += premium-1; // table: 0x1192b40;
1559 } else {
1560 score[2] -= premium*premium;
1562 if (lua_isnumber(L, 3)) {
1563 score[2] += premium;
1564 } else if (false) {
1565 score[2] += premium-1; // table: 0x1193050;
1566 } else {
1567 score[2] -= premium*premium;
1569 int best = 1;
1570 for (int i=1;i<=2;i++) {
1571 if (score[best] < score[i]) { best = i; }
1573 switch (best) {
1574 case 1: return __LuaWrapCall__itemAt__OverloadedVersion__1(L); break;
1575 case 2: return __LuaWrapCall__itemAt__OverloadedVersion__2(L); break;
1577 lua_pushstring(L, "no overload of function __LuaWrapCall__itemAt matching arguments");
1578 lua_error(L);
1579 return 0;
1581 int LuaBinder< QGraphicsView >::__LuaWrapCall__alignment (lua_State *L) {
1582 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1583 if (__lua__obj==0) {
1584 lua_pushstring(L, "trying to reference deleted pointer");
1585 lua_error(L);
1586 return 0;
1588 QFlags<Qt::AlignmentFlag> ret = __lua__obj->QGraphicsView::alignment();
1589 lqtL_passudata(L, new QFlags<Qt::AlignmentFlag>(ret), "QFlags<Qt::AlignmentFlag>*");
1590 return 1;
1592 int LuaBinder< QGraphicsView >::__LuaWrapCall__setDragMode (lua_State *L) {
1593 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1594 if (__lua__obj==0) {
1595 lua_pushstring(L, "trying to reference deleted pointer");
1596 lua_error(L);
1597 return 0;
1599 QGraphicsView::DragMode arg1 = static_cast<QGraphicsView::DragMode>(lqtL_toenum(L, 2, "QGraphicsView::DragMode"));
1600 __lua__obj->QGraphicsView::setDragMode(arg1);
1601 return 0;
1603 int LuaBinder< QGraphicsView >::__LuaWrapCall__viewportUpdateMode (lua_State *L) {
1604 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1605 if (__lua__obj==0) {
1606 lua_pushstring(L, "trying to reference deleted pointer");
1607 lua_error(L);
1608 return 0;
1610 QGraphicsView::ViewportUpdateMode ret = __lua__obj->QGraphicsView::viewportUpdateMode();
1611 lqtL_pushenum(L, ret, "QGraphicsView::ViewportUpdateMode");
1612 return 1;
1614 int LuaBinder< QGraphicsView >::__LuaWrapCall__setBackgroundBrush (lua_State *L) {
1615 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1616 if (__lua__obj==0) {
1617 lua_pushstring(L, "trying to reference deleted pointer");
1618 lua_error(L);
1619 return 0;
1621 const QBrush& arg1 = **static_cast<QBrush**>(lqtL_checkudata(L, 2, "QBrush*"));
1622 __lua__obj->QGraphicsView::setBackgroundBrush(arg1);
1623 return 0;
1625 int LuaBinder< QGraphicsView >::__LuaWrapCall__mapFromScene__OverloadedVersion__1 (lua_State *L) {
1626 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1627 if (__lua__obj==0) {
1628 lua_pushstring(L, "trying to reference deleted pointer");
1629 lua_error(L);
1630 return 0;
1632 const QPointF& arg1 = **static_cast<QPointF**>(lqtL_checkudata(L, 2, "QPointF*"));
1633 QPoint ret = __lua__obj->QGraphicsView::mapFromScene(arg1);
1634 lqtL_passudata(L, new QPoint(ret), "QPoint*");
1635 return 1;
1637 int LuaBinder< QGraphicsView >::__LuaWrapCall__mapFromScene__OverloadedVersion__2 (lua_State *L) {
1638 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1639 if (__lua__obj==0) {
1640 lua_pushstring(L, "trying to reference deleted pointer");
1641 lua_error(L);
1642 return 0;
1644 const QRectF& arg1 = **static_cast<QRectF**>(lqtL_checkudata(L, 2, "QRectF*"));
1645 QPolygon ret = __lua__obj->QGraphicsView::mapFromScene(arg1);
1646 lqtL_passudata(L, new QPolygon(ret), "QPolygon*");
1647 return 1;
1649 int LuaBinder< QGraphicsView >::__LuaWrapCall__mapFromScene__OverloadedVersion__3 (lua_State *L) {
1650 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1651 if (__lua__obj==0) {
1652 lua_pushstring(L, "trying to reference deleted pointer");
1653 lua_error(L);
1654 return 0;
1656 const QPolygonF& arg1 = **static_cast<QPolygonF**>(lqtL_checkudata(L, 2, "QPolygonF*"));
1657 QPolygon ret = __lua__obj->QGraphicsView::mapFromScene(arg1);
1658 lqtL_passudata(L, new QPolygon(ret), "QPolygon*");
1659 return 1;
1661 int LuaBinder< QGraphicsView >::__LuaWrapCall__mapFromScene__OverloadedVersion__4 (lua_State *L) {
1662 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1663 if (__lua__obj==0) {
1664 lua_pushstring(L, "trying to reference deleted pointer");
1665 lua_error(L);
1666 return 0;
1668 const QPainterPath& arg1 = **static_cast<QPainterPath**>(lqtL_checkudata(L, 2, "QPainterPath*"));
1669 QPainterPath ret = __lua__obj->QGraphicsView::mapFromScene(arg1);
1670 lqtL_passudata(L, new QPainterPath(ret), "QPainterPath*");
1671 return 1;
1673 int LuaBinder< QGraphicsView >::__LuaWrapCall__mapFromScene__OverloadedVersion__5 (lua_State *L) {
1674 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1675 if (__lua__obj==0) {
1676 lua_pushstring(L, "trying to reference deleted pointer");
1677 lua_error(L);
1678 return 0;
1680 double arg1 = lua_tonumber(L, 2);
1681 double arg2 = lua_tonumber(L, 3);
1682 QPoint ret = __lua__obj->QGraphicsView::mapFromScene(arg1, arg2);
1683 lqtL_passudata(L, new QPoint(ret), "QPoint*");
1684 return 1;
1686 int LuaBinder< QGraphicsView >::__LuaWrapCall__mapFromScene__OverloadedVersion__6 (lua_State *L) {
1687 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1688 if (__lua__obj==0) {
1689 lua_pushstring(L, "trying to reference deleted pointer");
1690 lua_error(L);
1691 return 0;
1693 double arg1 = lua_tonumber(L, 2);
1694 double arg2 = lua_tonumber(L, 3);
1695 double arg3 = lua_tonumber(L, 4);
1696 double arg4 = lua_tonumber(L, 5);
1697 QPolygon ret = __lua__obj->QGraphicsView::mapFromScene(arg1, arg2, arg3, arg4);
1698 lqtL_passudata(L, new QPolygon(ret), "QPolygon*");
1699 return 1;
1701 int LuaBinder< QGraphicsView >::__LuaWrapCall__mapFromScene (lua_State *L) {
1702 int score[7];
1703 const int premium = 11+lua_gettop(L);
1704 score[1] = 0;
1705 score[1] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
1706 if (lqtL_testudata(L, 2, "QPointF*")) {
1707 score[1] += premium;
1708 } else if (false) {
1709 score[1] += premium-1; // table: 0x11964d0;
1710 } else {
1711 score[1] -= premium*premium;
1713 score[2] = 0;
1714 score[2] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
1715 if (lqtL_testudata(L, 2, "QRectF*")) {
1716 score[2] += premium;
1717 } else if (false) {
1718 score[2] += premium-1; // table: 0x1196f20;
1719 } else {
1720 score[2] -= premium*premium;
1722 score[3] = 0;
1723 score[3] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
1724 if (lqtL_testudata(L, 2, "QPolygonF*")) {
1725 score[3] += premium;
1726 } else if (false) {
1727 score[3] += premium-1; // table: 0x11979d0;
1728 } else {
1729 score[3] -= premium*premium;
1731 score[4] = 0;
1732 score[4] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
1733 if (lqtL_testudata(L, 2, "QPainterPath*")) {
1734 score[4] += premium;
1735 } else if (false) {
1736 score[4] += premium-1; // table: 0x1198450;
1737 } else {
1738 score[4] -= premium*premium;
1740 score[5] = 0;
1741 score[5] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
1742 if (lua_isnumber(L, 2)) {
1743 score[5] += premium;
1744 } else if (false) {
1745 score[5] += premium-1; // table: 0x119b2b0;
1746 } else {
1747 score[5] -= premium*premium;
1749 if (lua_isnumber(L, 3)) {
1750 score[5] += premium;
1751 } else if (false) {
1752 score[5] += premium-1; // table: 0x119afb0;
1753 } else {
1754 score[5] -= premium*premium;
1756 score[6] = 0;
1757 score[6] += lqtL_testudata(L, 1, "QGraphicsView*")?premium:-premium*premium;
1758 if (lua_isnumber(L, 2)) {
1759 score[6] += premium;
1760 } else if (false) {
1761 score[6] += premium-1; // table: 0x119c110;
1762 } else {
1763 score[6] -= premium*premium;
1765 if (lua_isnumber(L, 3)) {
1766 score[6] += premium;
1767 } else if (false) {
1768 score[6] += premium-1; // table: 0x119bb90;
1769 } else {
1770 score[6] -= premium*premium;
1772 if (lua_isnumber(L, 4)) {
1773 score[6] += premium;
1774 } else if (false) {
1775 score[6] += premium-1; // table: 0x119c9e0;
1776 } else {
1777 score[6] -= premium*premium;
1779 if (lua_isnumber(L, 5)) {
1780 score[6] += premium;
1781 } else if (false) {
1782 score[6] += premium-1; // table: 0x119c980;
1783 } else {
1784 score[6] -= premium*premium;
1786 int best = 1;
1787 for (int i=1;i<=6;i++) {
1788 if (score[best] < score[i]) { best = i; }
1790 switch (best) {
1791 case 1: return __LuaWrapCall__mapFromScene__OverloadedVersion__1(L); break;
1792 case 2: return __LuaWrapCall__mapFromScene__OverloadedVersion__2(L); break;
1793 case 3: return __LuaWrapCall__mapFromScene__OverloadedVersion__3(L); break;
1794 case 4: return __LuaWrapCall__mapFromScene__OverloadedVersion__4(L); break;
1795 case 5: return __LuaWrapCall__mapFromScene__OverloadedVersion__5(L); break;
1796 case 6: return __LuaWrapCall__mapFromScene__OverloadedVersion__6(L); break;
1798 lua_pushstring(L, "no overload of function __LuaWrapCall__mapFromScene matching arguments");
1799 lua_error(L);
1800 return 0;
1802 int LuaBinder< QGraphicsView >::__LuaWrapCall__setAlignment (lua_State *L) {
1803 QGraphicsView *& __lua__obj = *static_cast<QGraphicsView**>(lqtL_checkudata(L, 1, "QGraphicsView*"));
1804 if (__lua__obj==0) {
1805 lua_pushstring(L, "trying to reference deleted pointer");
1806 lua_error(L);
1807 return 0;
1809 QFlags<Qt::AlignmentFlag> arg1 = **static_cast<QFlags<Qt::AlignmentFlag>**>(lqtL_checkudata(L, 2, "QFlags<Qt::AlignmentFlag>*"));
1810 __lua__obj->QGraphicsView::setAlignment(arg1);
1811 return 0;
1813 void LuaBinder< QGraphicsView >::styleChange (QStyle& arg1) {
1814 bool absorbed = false;
1815 int oldtop = lua_gettop(L);
1816 lqtL_pushudata(L, this, "QGraphicsView*");
1817 if (lua_getmetatable(L, -1)) {
1818 lua_getfield(L, -1, "styleChange");
1819 lua_remove(L, -2);
1820 } else {
1821 lua_pushnil(L);
1823 lua_insert(L, -2);
1824 lqtL_pushudata(L, &(arg1), "QStyle*");
1825 if (lua_isfunction(L, -1-2)) {
1826 lua_pcall(L, 1+1, 2, 0);
1827 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1828 lua_pop(L, 1);
1830 if (!absorbed) {
1831 lua_settop(L, oldtop);
1832 this->QWidget::styleChange(arg1);
1834 lua_settop(L, oldtop);
1836 void LuaBinder< QGraphicsView >::mouseReleaseEvent (QMouseEvent * arg1) {
1837 bool absorbed = false;
1838 int oldtop = lua_gettop(L);
1839 lqtL_pushudata(L, this, "QGraphicsView*");
1840 if (lua_getmetatable(L, -1)) {
1841 lua_getfield(L, -1, "mouseReleaseEvent");
1842 lua_remove(L, -2);
1843 } else {
1844 lua_pushnil(L);
1846 lua_insert(L, -2);
1847 lqtL_pushudata(L, arg1, "QMouseEvent*");
1848 if (lua_isfunction(L, -1-2)) {
1849 lua_pcall(L, 1+1, 2, 0);
1850 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1851 lua_pop(L, 1);
1853 if (!absorbed) {
1854 lua_settop(L, oldtop);
1855 this->QGraphicsView::mouseReleaseEvent(arg1);
1857 lua_settop(L, oldtop);
1859 void LuaBinder< QGraphicsView >::keyPressEvent (QKeyEvent * arg1) {
1860 bool absorbed = false;
1861 int oldtop = lua_gettop(L);
1862 lqtL_pushudata(L, this, "QGraphicsView*");
1863 if (lua_getmetatable(L, -1)) {
1864 lua_getfield(L, -1, "keyPressEvent");
1865 lua_remove(L, -2);
1866 } else {
1867 lua_pushnil(L);
1869 lua_insert(L, -2);
1870 lqtL_pushudata(L, arg1, "QKeyEvent*");
1871 if (lua_isfunction(L, -1-2)) {
1872 lua_pcall(L, 1+1, 2, 0);
1873 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1874 lua_pop(L, 1);
1876 if (!absorbed) {
1877 lua_settop(L, oldtop);
1878 this->QGraphicsView::keyPressEvent(arg1);
1880 lua_settop(L, oldtop);
1882 void LuaBinder< QGraphicsView >::contextMenuEvent (QContextMenuEvent * arg1) {
1883 bool absorbed = false;
1884 int oldtop = lua_gettop(L);
1885 lqtL_pushudata(L, this, "QGraphicsView*");
1886 if (lua_getmetatable(L, -1)) {
1887 lua_getfield(L, -1, "contextMenuEvent");
1888 lua_remove(L, -2);
1889 } else {
1890 lua_pushnil(L);
1892 lua_insert(L, -2);
1893 lqtL_pushudata(L, arg1, "QContextMenuEvent*");
1894 if (lua_isfunction(L, -1-2)) {
1895 lua_pcall(L, 1+1, 2, 0);
1896 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1897 lua_pop(L, 1);
1899 if (!absorbed) {
1900 lua_settop(L, oldtop);
1901 this->QGraphicsView::contextMenuEvent(arg1);
1903 lua_settop(L, oldtop);
1905 int LuaBinder< QGraphicsView >::devType () const {
1906 bool absorbed = false;
1907 int oldtop = lua_gettop(L);
1908 lqtL_pushudata(L, this, "QGraphicsView*");
1909 if (lua_getmetatable(L, -1)) {
1910 lua_getfield(L, -1, "devType");
1911 lua_remove(L, -2);
1912 } else {
1913 lua_pushnil(L);
1915 lua_insert(L, -2);
1916 if (lua_isfunction(L, -0-2)) {
1917 lua_pcall(L, 0+1, 2, 0);
1918 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1919 lua_pop(L, 1);
1921 if (!absorbed) {
1922 lua_settop(L, oldtop);
1923 return this->QWidget::devType();
1925 int ret = lua_tointeger(L, -1);
1926 lua_settop(L, oldtop);
1927 return ret;
1929 void LuaBinder< QGraphicsView >::drawBackground (QPainter * arg1, const QRectF& arg2) {
1930 bool absorbed = false;
1931 int oldtop = lua_gettop(L);
1932 lqtL_pushudata(L, this, "QGraphicsView*");
1933 if (lua_getmetatable(L, -1)) {
1934 lua_getfield(L, -1, "drawBackground");
1935 lua_remove(L, -2);
1936 } else {
1937 lua_pushnil(L);
1939 lua_insert(L, -2);
1940 lqtL_pushudata(L, arg1, "QPainter*");
1941 lqtL_pushudata(L, &(arg2), "QRectF*");
1942 if (lua_isfunction(L, -2-2)) {
1943 lua_pcall(L, 2+1, 2, 0);
1944 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1945 lua_pop(L, 1);
1947 if (!absorbed) {
1948 lua_settop(L, oldtop);
1949 this->QGraphicsView::drawBackground(arg1, arg2);
1951 lua_settop(L, oldtop);
1953 void LuaBinder< QGraphicsView >::setVisible (bool arg1) {
1954 bool absorbed = false;
1955 int oldtop = lua_gettop(L);
1956 lqtL_pushudata(L, this, "QGraphicsView*");
1957 if (lua_getmetatable(L, -1)) {
1958 lua_getfield(L, -1, "setVisible");
1959 lua_remove(L, -2);
1960 } else {
1961 lua_pushnil(L);
1963 lua_insert(L, -2);
1964 lua_pushboolean(L, arg1);
1965 if (lua_isfunction(L, -1-2)) {
1966 lua_pcall(L, 1+1, 2, 0);
1967 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1968 lua_pop(L, 1);
1970 if (!absorbed) {
1971 lua_settop(L, oldtop);
1972 this->QWidget::setVisible(arg1);
1974 lua_settop(L, oldtop);
1976 void LuaBinder< QGraphicsView >::keyReleaseEvent (QKeyEvent * arg1) {
1977 bool absorbed = false;
1978 int oldtop = lua_gettop(L);
1979 lqtL_pushudata(L, this, "QGraphicsView*");
1980 if (lua_getmetatable(L, -1)) {
1981 lua_getfield(L, -1, "keyReleaseEvent");
1982 lua_remove(L, -2);
1983 } else {
1984 lua_pushnil(L);
1986 lua_insert(L, -2);
1987 lqtL_pushudata(L, arg1, "QKeyEvent*");
1988 if (lua_isfunction(L, -1-2)) {
1989 lua_pcall(L, 1+1, 2, 0);
1990 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1991 lua_pop(L, 1);
1993 if (!absorbed) {
1994 lua_settop(L, oldtop);
1995 this->QGraphicsView::keyReleaseEvent(arg1);
1997 lua_settop(L, oldtop);
1999 void LuaBinder< QGraphicsView >::scrollContentsBy (int arg1, int arg2) {
2000 bool absorbed = false;
2001 int oldtop = lua_gettop(L);
2002 lqtL_pushudata(L, this, "QGraphicsView*");
2003 if (lua_getmetatable(L, -1)) {
2004 lua_getfield(L, -1, "scrollContentsBy");
2005 lua_remove(L, -2);
2006 } else {
2007 lua_pushnil(L);
2009 lua_insert(L, -2);
2010 lua_pushinteger(L, arg1);
2011 lua_pushinteger(L, arg2);
2012 if (lua_isfunction(L, -2-2)) {
2013 lua_pcall(L, 2+1, 2, 0);
2014 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2015 lua_pop(L, 1);
2017 if (!absorbed) {
2018 lua_settop(L, oldtop);
2019 this->QGraphicsView::scrollContentsBy(arg1, arg2);
2021 lua_settop(L, oldtop);
2023 void LuaBinder< QGraphicsView >::dragLeaveEvent (QDragLeaveEvent * arg1) {
2024 bool absorbed = false;
2025 int oldtop = lua_gettop(L);
2026 lqtL_pushudata(L, this, "QGraphicsView*");
2027 if (lua_getmetatable(L, -1)) {
2028 lua_getfield(L, -1, "dragLeaveEvent");
2029 lua_remove(L, -2);
2030 } else {
2031 lua_pushnil(L);
2033 lua_insert(L, -2);
2034 lqtL_pushudata(L, arg1, "QDragLeaveEvent*");
2035 if (lua_isfunction(L, -1-2)) {
2036 lua_pcall(L, 1+1, 2, 0);
2037 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2038 lua_pop(L, 1);
2040 if (!absorbed) {
2041 lua_settop(L, oldtop);
2042 this->QGraphicsView::dragLeaveEvent(arg1);
2044 lua_settop(L, oldtop);
2046 void LuaBinder< QGraphicsView >::mousePressEvent (QMouseEvent * arg1) {
2047 bool absorbed = false;
2048 int oldtop = lua_gettop(L);
2049 lqtL_pushudata(L, this, "QGraphicsView*");
2050 if (lua_getmetatable(L, -1)) {
2051 lua_getfield(L, -1, "mousePressEvent");
2052 lua_remove(L, -2);
2053 } else {
2054 lua_pushnil(L);
2056 lua_insert(L, -2);
2057 lqtL_pushudata(L, arg1, "QMouseEvent*");
2058 if (lua_isfunction(L, -1-2)) {
2059 lua_pcall(L, 1+1, 2, 0);
2060 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2061 lua_pop(L, 1);
2063 if (!absorbed) {
2064 lua_settop(L, oldtop);
2065 this->QGraphicsView::mousePressEvent(arg1);
2067 lua_settop(L, oldtop);
2069 QSize LuaBinder< QGraphicsView >::sizeHint () const {
2070 bool absorbed = false;
2071 int oldtop = lua_gettop(L);
2072 lqtL_pushudata(L, this, "QGraphicsView*");
2073 if (lua_getmetatable(L, -1)) {
2074 lua_getfield(L, -1, "sizeHint");
2075 lua_remove(L, -2);
2076 } else {
2077 lua_pushnil(L);
2079 lua_insert(L, -2);
2080 if (lua_isfunction(L, -0-2)) {
2081 lua_pcall(L, 0+1, 2, 0);
2082 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2083 lua_pop(L, 1);
2085 if (!absorbed) {
2086 lua_settop(L, oldtop);
2087 return this->QGraphicsView::sizeHint();
2089 QSize ret = **static_cast<QSize**>(lqtL_checkudata(L, -1, "QSize*"));
2090 lua_settop(L, oldtop);
2091 return ret;
2093 void LuaBinder< QGraphicsView >::customEvent (QEvent * arg1) {
2094 bool absorbed = false;
2095 int oldtop = lua_gettop(L);
2096 lqtL_pushudata(L, this, "QGraphicsView*");
2097 if (lua_getmetatable(L, -1)) {
2098 lua_getfield(L, -1, "customEvent");
2099 lua_remove(L, -2);
2100 } else {
2101 lua_pushnil(L);
2103 lua_insert(L, -2);
2104 lqtL_pushudata(L, arg1, "QEvent*");
2105 if (lua_isfunction(L, -1-2)) {
2106 lua_pcall(L, 1+1, 2, 0);
2107 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2108 lua_pop(L, 1);
2110 if (!absorbed) {
2111 lua_settop(L, oldtop);
2112 this->QObject::customEvent(arg1);
2114 lua_settop(L, oldtop);
2116 void LuaBinder< QGraphicsView >::closeEvent (QCloseEvent * arg1) {
2117 bool absorbed = false;
2118 int oldtop = lua_gettop(L);
2119 lqtL_pushudata(L, this, "QGraphicsView*");
2120 if (lua_getmetatable(L, -1)) {
2121 lua_getfield(L, -1, "closeEvent");
2122 lua_remove(L, -2);
2123 } else {
2124 lua_pushnil(L);
2126 lua_insert(L, -2);
2127 lqtL_pushudata(L, arg1, "QCloseEvent*");
2128 if (lua_isfunction(L, -1-2)) {
2129 lua_pcall(L, 1+1, 2, 0);
2130 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2131 lua_pop(L, 1);
2133 if (!absorbed) {
2134 lua_settop(L, oldtop);
2135 this->QWidget::closeEvent(arg1);
2137 lua_settop(L, oldtop);
2139 void LuaBinder< QGraphicsView >::wheelEvent (QWheelEvent * arg1) {
2140 bool absorbed = false;
2141 int oldtop = lua_gettop(L);
2142 lqtL_pushudata(L, this, "QGraphicsView*");
2143 if (lua_getmetatable(L, -1)) {
2144 lua_getfield(L, -1, "wheelEvent");
2145 lua_remove(L, -2);
2146 } else {
2147 lua_pushnil(L);
2149 lua_insert(L, -2);
2150 lqtL_pushudata(L, arg1, "QWheelEvent*");
2151 if (lua_isfunction(L, -1-2)) {
2152 lua_pcall(L, 1+1, 2, 0);
2153 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2154 lua_pop(L, 1);
2156 if (!absorbed) {
2157 lua_settop(L, oldtop);
2158 this->QGraphicsView::wheelEvent(arg1);
2160 lua_settop(L, oldtop);
2162 QPaintEngine * LuaBinder< QGraphicsView >::paintEngine () const {
2163 bool absorbed = false;
2164 int oldtop = lua_gettop(L);
2165 lqtL_pushudata(L, this, "QGraphicsView*");
2166 if (lua_getmetatable(L, -1)) {
2167 lua_getfield(L, -1, "paintEngine");
2168 lua_remove(L, -2);
2169 } else {
2170 lua_pushnil(L);
2172 lua_insert(L, -2);
2173 if (lua_isfunction(L, -0-2)) {
2174 lua_pcall(L, 0+1, 2, 0);
2175 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2176 lua_pop(L, 1);
2178 if (!absorbed) {
2179 lua_settop(L, oldtop);
2180 return this->QWidget::paintEngine();
2182 QPaintEngine * ret = *static_cast<QPaintEngine**>(lqtL_checkudata(L, -1, "QPaintEngine*"));
2183 lua_settop(L, oldtop);
2184 return ret;
2186 void LuaBinder< QGraphicsView >::tabletEvent (QTabletEvent * arg1) {
2187 bool absorbed = false;
2188 int oldtop = lua_gettop(L);
2189 lqtL_pushudata(L, this, "QGraphicsView*");
2190 if (lua_getmetatable(L, -1)) {
2191 lua_getfield(L, -1, "tabletEvent");
2192 lua_remove(L, -2);
2193 } else {
2194 lua_pushnil(L);
2196 lua_insert(L, -2);
2197 lqtL_pushudata(L, arg1, "QTabletEvent*");
2198 if (lua_isfunction(L, -1-2)) {
2199 lua_pcall(L, 1+1, 2, 0);
2200 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2201 lua_pop(L, 1);
2203 if (!absorbed) {
2204 lua_settop(L, oldtop);
2205 this->QWidget::tabletEvent(arg1);
2207 lua_settop(L, oldtop);
2209 void LuaBinder< QGraphicsView >::focusInEvent (QFocusEvent * arg1) {
2210 bool absorbed = false;
2211 int oldtop = lua_gettop(L);
2212 lqtL_pushudata(L, this, "QGraphicsView*");
2213 if (lua_getmetatable(L, -1)) {
2214 lua_getfield(L, -1, "focusInEvent");
2215 lua_remove(L, -2);
2216 } else {
2217 lua_pushnil(L);
2219 lua_insert(L, -2);
2220 lqtL_pushudata(L, arg1, "QFocusEvent*");
2221 if (lua_isfunction(L, -1-2)) {
2222 lua_pcall(L, 1+1, 2, 0);
2223 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2224 lua_pop(L, 1);
2226 if (!absorbed) {
2227 lua_settop(L, oldtop);
2228 this->QGraphicsView::focusInEvent(arg1);
2230 lua_settop(L, oldtop);
2232 void LuaBinder< QGraphicsView >::dragMoveEvent (QDragMoveEvent * arg1) {
2233 bool absorbed = false;
2234 int oldtop = lua_gettop(L);
2235 lqtL_pushudata(L, this, "QGraphicsView*");
2236 if (lua_getmetatable(L, -1)) {
2237 lua_getfield(L, -1, "dragMoveEvent");
2238 lua_remove(L, -2);
2239 } else {
2240 lua_pushnil(L);
2242 lua_insert(L, -2);
2243 lqtL_pushudata(L, arg1, "QDragMoveEvent*");
2244 if (lua_isfunction(L, -1-2)) {
2245 lua_pcall(L, 1+1, 2, 0);
2246 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2247 lua_pop(L, 1);
2249 if (!absorbed) {
2250 lua_settop(L, oldtop);
2251 this->QGraphicsView::dragMoveEvent(arg1);
2253 lua_settop(L, oldtop);
2255 void LuaBinder< QGraphicsView >::moveEvent (QMoveEvent * arg1) {
2256 bool absorbed = false;
2257 int oldtop = lua_gettop(L);
2258 lqtL_pushudata(L, this, "QGraphicsView*");
2259 if (lua_getmetatable(L, -1)) {
2260 lua_getfield(L, -1, "moveEvent");
2261 lua_remove(L, -2);
2262 } else {
2263 lua_pushnil(L);
2265 lua_insert(L, -2);
2266 lqtL_pushudata(L, arg1, "QMoveEvent*");
2267 if (lua_isfunction(L, -1-2)) {
2268 lua_pcall(L, 1+1, 2, 0);
2269 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2270 lua_pop(L, 1);
2272 if (!absorbed) {
2273 lua_settop(L, oldtop);
2274 this->QWidget::moveEvent(arg1);
2276 lua_settop(L, oldtop);
2278 void LuaBinder< QGraphicsView >::dropEvent (QDropEvent * arg1) {
2279 bool absorbed = false;
2280 int oldtop = lua_gettop(L);
2281 lqtL_pushudata(L, this, "QGraphicsView*");
2282 if (lua_getmetatable(L, -1)) {
2283 lua_getfield(L, -1, "dropEvent");
2284 lua_remove(L, -2);
2285 } else {
2286 lua_pushnil(L);
2288 lua_insert(L, -2);
2289 lqtL_pushudata(L, arg1, "QDropEvent*");
2290 if (lua_isfunction(L, -1-2)) {
2291 lua_pcall(L, 1+1, 2, 0);
2292 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2293 lua_pop(L, 1);
2295 if (!absorbed) {
2296 lua_settop(L, oldtop);
2297 this->QGraphicsView::dropEvent(arg1);
2299 lua_settop(L, oldtop);
2301 void LuaBinder< QGraphicsView >::fontChange (const QFont& arg1) {
2302 bool absorbed = false;
2303 int oldtop = lua_gettop(L);
2304 lqtL_pushudata(L, this, "QGraphicsView*");
2305 if (lua_getmetatable(L, -1)) {
2306 lua_getfield(L, -1, "fontChange");
2307 lua_remove(L, -2);
2308 } else {
2309 lua_pushnil(L);
2311 lua_insert(L, -2);
2312 lqtL_pushudata(L, &(arg1), "QFont*");
2313 if (lua_isfunction(L, -1-2)) {
2314 lua_pcall(L, 1+1, 2, 0);
2315 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2316 lua_pop(L, 1);
2318 if (!absorbed) {
2319 lua_settop(L, oldtop);
2320 this->QWidget::fontChange(arg1);
2322 lua_settop(L, oldtop);
2324 void LuaBinder< QGraphicsView >::timerEvent (QTimerEvent * arg1) {
2325 bool absorbed = false;
2326 int oldtop = lua_gettop(L);
2327 lqtL_pushudata(L, this, "QGraphicsView*");
2328 if (lua_getmetatable(L, -1)) {
2329 lua_getfield(L, -1, "timerEvent");
2330 lua_remove(L, -2);
2331 } else {
2332 lua_pushnil(L);
2334 lua_insert(L, -2);
2335 lqtL_pushudata(L, arg1, "QTimerEvent*");
2336 if (lua_isfunction(L, -1-2)) {
2337 lua_pcall(L, 1+1, 2, 0);
2338 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2339 lua_pop(L, 1);
2341 if (!absorbed) {
2342 lua_settop(L, oldtop);
2343 this->QObject::timerEvent(arg1);
2345 lua_settop(L, oldtop);
2347 void LuaBinder< QGraphicsView >::showEvent (QShowEvent * arg1) {
2348 bool absorbed = false;
2349 int oldtop = lua_gettop(L);
2350 lqtL_pushudata(L, this, "QGraphicsView*");
2351 if (lua_getmetatable(L, -1)) {
2352 lua_getfield(L, -1, "showEvent");
2353 lua_remove(L, -2);
2354 } else {
2355 lua_pushnil(L);
2357 lua_insert(L, -2);
2358 lqtL_pushudata(L, arg1, "QShowEvent*");
2359 if (lua_isfunction(L, -1-2)) {
2360 lua_pcall(L, 1+1, 2, 0);
2361 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2362 lua_pop(L, 1);
2364 if (!absorbed) {
2365 lua_settop(L, oldtop);
2366 this->QGraphicsView::showEvent(arg1);
2368 lua_settop(L, oldtop);
2370 void LuaBinder< QGraphicsView >::connectNotify (const char * arg1) {
2371 bool absorbed = false;
2372 int oldtop = lua_gettop(L);
2373 lqtL_pushudata(L, this, "QGraphicsView*");
2374 if (lua_getmetatable(L, -1)) {
2375 lua_getfield(L, -1, "connectNotify");
2376 lua_remove(L, -2);
2377 } else {
2378 lua_pushnil(L);
2380 lua_insert(L, -2);
2381 lua_pushstring(L, arg1);
2382 if (lua_isfunction(L, -1-2)) {
2383 lua_pcall(L, 1+1, 2, 0);
2384 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2385 lua_pop(L, 1);
2387 if (!absorbed) {
2388 lua_settop(L, oldtop);
2389 this->QObject::connectNotify(arg1);
2391 lua_settop(L, oldtop);
2393 void LuaBinder< QGraphicsView >::paintEvent (QPaintEvent * arg1) {
2394 bool absorbed = false;
2395 int oldtop = lua_gettop(L);
2396 lqtL_pushudata(L, this, "QGraphicsView*");
2397 if (lua_getmetatable(L, -1)) {
2398 lua_getfield(L, -1, "paintEvent");
2399 lua_remove(L, -2);
2400 } else {
2401 lua_pushnil(L);
2403 lua_insert(L, -2);
2404 lqtL_pushudata(L, arg1, "QPaintEvent*");
2405 if (lua_isfunction(L, -1-2)) {
2406 lua_pcall(L, 1+1, 2, 0);
2407 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2408 lua_pop(L, 1);
2410 if (!absorbed) {
2411 lua_settop(L, oldtop);
2412 this->QGraphicsView::paintEvent(arg1);
2414 lua_settop(L, oldtop);
2416 void LuaBinder< QGraphicsView >::childEvent (QChildEvent * arg1) {
2417 bool absorbed = false;
2418 int oldtop = lua_gettop(L);
2419 lqtL_pushudata(L, this, "QGraphicsView*");
2420 if (lua_getmetatable(L, -1)) {
2421 lua_getfield(L, -1, "childEvent");
2422 lua_remove(L, -2);
2423 } else {
2424 lua_pushnil(L);
2426 lua_insert(L, -2);
2427 lqtL_pushudata(L, arg1, "QChildEvent*");
2428 if (lua_isfunction(L, -1-2)) {
2429 lua_pcall(L, 1+1, 2, 0);
2430 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2431 lua_pop(L, 1);
2433 if (!absorbed) {
2434 lua_settop(L, oldtop);
2435 this->QObject::childEvent(arg1);
2437 lua_settop(L, oldtop);
2439 void LuaBinder< QGraphicsView >::windowActivationChange (bool arg1) {
2440 bool absorbed = false;
2441 int oldtop = lua_gettop(L);
2442 lqtL_pushudata(L, this, "QGraphicsView*");
2443 if (lua_getmetatable(L, -1)) {
2444 lua_getfield(L, -1, "windowActivationChange");
2445 lua_remove(L, -2);
2446 } else {
2447 lua_pushnil(L);
2449 lua_insert(L, -2);
2450 lua_pushboolean(L, arg1);
2451 if (lua_isfunction(L, -1-2)) {
2452 lua_pcall(L, 1+1, 2, 0);
2453 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2454 lua_pop(L, 1);
2456 if (!absorbed) {
2457 lua_settop(L, oldtop);
2458 this->QWidget::windowActivationChange(arg1);
2460 lua_settop(L, oldtop);
2462 void LuaBinder< QGraphicsView >::enabledChange (bool arg1) {
2463 bool absorbed = false;
2464 int oldtop = lua_gettop(L);
2465 lqtL_pushudata(L, this, "QGraphicsView*");
2466 if (lua_getmetatable(L, -1)) {
2467 lua_getfield(L, -1, "enabledChange");
2468 lua_remove(L, -2);
2469 } else {
2470 lua_pushnil(L);
2472 lua_insert(L, -2);
2473 lua_pushboolean(L, arg1);
2474 if (lua_isfunction(L, -1-2)) {
2475 lua_pcall(L, 1+1, 2, 0);
2476 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2477 lua_pop(L, 1);
2479 if (!absorbed) {
2480 lua_settop(L, oldtop);
2481 this->QWidget::enabledChange(arg1);
2483 lua_settop(L, oldtop);
2485 int LuaBinder< QGraphicsView >::metric (QPaintDevice::PaintDeviceMetric arg1) const {
2486 bool absorbed = false;
2487 int oldtop = lua_gettop(L);
2488 lqtL_pushudata(L, this, "QGraphicsView*");
2489 if (lua_getmetatable(L, -1)) {
2490 lua_getfield(L, -1, "metric");
2491 lua_remove(L, -2);
2492 } else {
2493 lua_pushnil(L);
2495 lua_insert(L, -2);
2496 lqtL_pushenum(L, arg1, "QPaintDevice::PaintDeviceMetric");
2497 if (lua_isfunction(L, -1-2)) {
2498 lua_pcall(L, 1+1, 2, 0);
2499 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2500 lua_pop(L, 1);
2502 if (!absorbed) {
2503 lua_settop(L, oldtop);
2504 return this->QWidget::metric(arg1);
2506 int ret = lua_tointeger(L, -1);
2507 lua_settop(L, oldtop);
2508 return ret;
2510 int LuaBinder< QGraphicsView >::heightForWidth (int arg1) const {
2511 bool absorbed = false;
2512 int oldtop = lua_gettop(L);
2513 lqtL_pushudata(L, this, "QGraphicsView*");
2514 if (lua_getmetatable(L, -1)) {
2515 lua_getfield(L, -1, "heightForWidth");
2516 lua_remove(L, -2);
2517 } else {
2518 lua_pushnil(L);
2520 lua_insert(L, -2);
2521 lua_pushinteger(L, arg1);
2522 if (lua_isfunction(L, -1-2)) {
2523 lua_pcall(L, 1+1, 2, 0);
2524 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2525 lua_pop(L, 1);
2527 if (!absorbed) {
2528 lua_settop(L, oldtop);
2529 return this->QWidget::heightForWidth(arg1);
2531 int ret = lua_tointeger(L, -1);
2532 lua_settop(L, oldtop);
2533 return ret;
2535 void LuaBinder< QGraphicsView >::mouseDoubleClickEvent (QMouseEvent * arg1) {
2536 bool absorbed = false;
2537 int oldtop = lua_gettop(L);
2538 lqtL_pushudata(L, this, "QGraphicsView*");
2539 if (lua_getmetatable(L, -1)) {
2540 lua_getfield(L, -1, "mouseDoubleClickEvent");
2541 lua_remove(L, -2);
2542 } else {
2543 lua_pushnil(L);
2545 lua_insert(L, -2);
2546 lqtL_pushudata(L, arg1, "QMouseEvent*");
2547 if (lua_isfunction(L, -1-2)) {
2548 lua_pcall(L, 1+1, 2, 0);
2549 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2550 lua_pop(L, 1);
2552 if (!absorbed) {
2553 lua_settop(L, oldtop);
2554 this->QGraphicsView::mouseDoubleClickEvent(arg1);
2556 lua_settop(L, oldtop);
2558 void LuaBinder< QGraphicsView >::actionEvent (QActionEvent * arg1) {
2559 bool absorbed = false;
2560 int oldtop = lua_gettop(L);
2561 lqtL_pushudata(L, this, "QGraphicsView*");
2562 if (lua_getmetatable(L, -1)) {
2563 lua_getfield(L, -1, "actionEvent");
2564 lua_remove(L, -2);
2565 } else {
2566 lua_pushnil(L);
2568 lua_insert(L, -2);
2569 lqtL_pushudata(L, arg1, "QActionEvent*");
2570 if (lua_isfunction(L, -1-2)) {
2571 lua_pcall(L, 1+1, 2, 0);
2572 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2573 lua_pop(L, 1);
2575 if (!absorbed) {
2576 lua_settop(L, oldtop);
2577 this->QWidget::actionEvent(arg1);
2579 lua_settop(L, oldtop);
2581 void LuaBinder< QGraphicsView >::disconnectNotify (const char * arg1) {
2582 bool absorbed = false;
2583 int oldtop = lua_gettop(L);
2584 lqtL_pushudata(L, this, "QGraphicsView*");
2585 if (lua_getmetatable(L, -1)) {
2586 lua_getfield(L, -1, "disconnectNotify");
2587 lua_remove(L, -2);
2588 } else {
2589 lua_pushnil(L);
2591 lua_insert(L, -2);
2592 lua_pushstring(L, arg1);
2593 if (lua_isfunction(L, -1-2)) {
2594 lua_pcall(L, 1+1, 2, 0);
2595 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2596 lua_pop(L, 1);
2598 if (!absorbed) {
2599 lua_settop(L, oldtop);
2600 this->QObject::disconnectNotify(arg1);
2602 lua_settop(L, oldtop);
2604 void LuaBinder< QGraphicsView >::mouseMoveEvent (QMouseEvent * arg1) {
2605 bool absorbed = false;
2606 int oldtop = lua_gettop(L);
2607 lqtL_pushudata(L, this, "QGraphicsView*");
2608 if (lua_getmetatable(L, -1)) {
2609 lua_getfield(L, -1, "mouseMoveEvent");
2610 lua_remove(L, -2);
2611 } else {
2612 lua_pushnil(L);
2614 lua_insert(L, -2);
2615 lqtL_pushudata(L, arg1, "QMouseEvent*");
2616 if (lua_isfunction(L, -1-2)) {
2617 lua_pcall(L, 1+1, 2, 0);
2618 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2619 lua_pop(L, 1);
2621 if (!absorbed) {
2622 lua_settop(L, oldtop);
2623 this->QGraphicsView::mouseMoveEvent(arg1);
2625 lua_settop(L, oldtop);
2627 void LuaBinder< QGraphicsView >::changeEvent (QEvent * arg1) {
2628 bool absorbed = false;
2629 int oldtop = lua_gettop(L);
2630 lqtL_pushudata(L, this, "QGraphicsView*");
2631 if (lua_getmetatable(L, -1)) {
2632 lua_getfield(L, -1, "changeEvent");
2633 lua_remove(L, -2);
2634 } else {
2635 lua_pushnil(L);
2637 lua_insert(L, -2);
2638 lqtL_pushudata(L, arg1, "QEvent*");
2639 if (lua_isfunction(L, -1-2)) {
2640 lua_pcall(L, 1+1, 2, 0);
2641 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2642 lua_pop(L, 1);
2644 if (!absorbed) {
2645 lua_settop(L, oldtop);
2646 this->QFrame::changeEvent(arg1);
2648 lua_settop(L, oldtop);
2650 void LuaBinder< QGraphicsView >::drawForeground (QPainter * arg1, const QRectF& arg2) {
2651 bool absorbed = false;
2652 int oldtop = lua_gettop(L);
2653 lqtL_pushudata(L, this, "QGraphicsView*");
2654 if (lua_getmetatable(L, -1)) {
2655 lua_getfield(L, -1, "drawForeground");
2656 lua_remove(L, -2);
2657 } else {
2658 lua_pushnil(L);
2660 lua_insert(L, -2);
2661 lqtL_pushudata(L, arg1, "QPainter*");
2662 lqtL_pushudata(L, &(arg2), "QRectF*");
2663 if (lua_isfunction(L, -2-2)) {
2664 lua_pcall(L, 2+1, 2, 0);
2665 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2666 lua_pop(L, 1);
2668 if (!absorbed) {
2669 lua_settop(L, oldtop);
2670 this->QGraphicsView::drawForeground(arg1, arg2);
2672 lua_settop(L, oldtop);
2674 void LuaBinder< QGraphicsView >::focusOutEvent (QFocusEvent * arg1) {
2675 bool absorbed = false;
2676 int oldtop = lua_gettop(L);
2677 lqtL_pushudata(L, this, "QGraphicsView*");
2678 if (lua_getmetatable(L, -1)) {
2679 lua_getfield(L, -1, "focusOutEvent");
2680 lua_remove(L, -2);
2681 } else {
2682 lua_pushnil(L);
2684 lua_insert(L, -2);
2685 lqtL_pushudata(L, arg1, "QFocusEvent*");
2686 if (lua_isfunction(L, -1-2)) {
2687 lua_pcall(L, 1+1, 2, 0);
2688 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2689 lua_pop(L, 1);
2691 if (!absorbed) {
2692 lua_settop(L, oldtop);
2693 this->QGraphicsView::focusOutEvent(arg1);
2695 lua_settop(L, oldtop);
2697 void LuaBinder< QGraphicsView >::drawItems (QPainter * arg1, int arg2, QGraphicsItem * * arg3, const QStyleOptionGraphicsItem * arg4) {
2698 bool absorbed = false;
2699 int oldtop = lua_gettop(L);
2700 lqtL_pushudata(L, this, "QGraphicsView*");
2701 if (lua_getmetatable(L, -1)) {
2702 lua_getfield(L, -1, "drawItems");
2703 lua_remove(L, -2);
2704 } else {
2705 lua_pushnil(L);
2707 lua_insert(L, -2);
2708 lqtL_pushudata(L, arg1, "QPainter*");
2709 lua_pushinteger(L, arg2);
2710 lqtL_pushudata(L, arg3, "QGraphicsItem **");
2711 lqtL_pushudata(L, arg4, "QStyleOptionGraphicsItem*");
2712 if (lua_isfunction(L, -4-2)) {
2713 lua_pcall(L, 4+1, 2, 0);
2714 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2715 lua_pop(L, 1);
2717 if (!absorbed) {
2718 lua_settop(L, oldtop);
2719 this->QGraphicsView::drawItems(arg1, arg2, arg3, arg4);
2721 lua_settop(L, oldtop);
2723 QSize LuaBinder< QGraphicsView >::minimumSizeHint () const {
2724 bool absorbed = false;
2725 int oldtop = lua_gettop(L);
2726 lqtL_pushudata(L, this, "QGraphicsView*");
2727 if (lua_getmetatable(L, -1)) {
2728 lua_getfield(L, -1, "minimumSizeHint");
2729 lua_remove(L, -2);
2730 } else {
2731 lua_pushnil(L);
2733 lua_insert(L, -2);
2734 if (lua_isfunction(L, -0-2)) {
2735 lua_pcall(L, 0+1, 2, 0);
2736 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2737 lua_pop(L, 1);
2739 if (!absorbed) {
2740 lua_settop(L, oldtop);
2741 return this->QAbstractScrollArea::minimumSizeHint();
2743 QSize ret = **static_cast<QSize**>(lqtL_checkudata(L, -1, "QSize*"));
2744 lua_settop(L, oldtop);
2745 return ret;
2747 bool LuaBinder< QGraphicsView >::eventFilter (QObject * arg1, QEvent * arg2) {
2748 bool absorbed = false;
2749 int oldtop = lua_gettop(L);
2750 lqtL_pushudata(L, this, "QGraphicsView*");
2751 if (lua_getmetatable(L, -1)) {
2752 lua_getfield(L, -1, "eventFilter");
2753 lua_remove(L, -2);
2754 } else {
2755 lua_pushnil(L);
2757 lua_insert(L, -2);
2758 lqtL_pushudata(L, arg1, "QObject*");
2759 lqtL_pushudata(L, arg2, "QEvent*");
2760 if (lua_isfunction(L, -2-2)) {
2761 lua_pcall(L, 2+1, 2, 0);
2762 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2763 lua_pop(L, 1);
2765 if (!absorbed) {
2766 lua_settop(L, oldtop);
2767 return this->QObject::eventFilter(arg1, arg2);
2769 bool ret = (bool)lua_toboolean(L, -1);
2770 lua_settop(L, oldtop);
2771 return ret;
2773 void LuaBinder< QGraphicsView >::inputMethodEvent (QInputMethodEvent * arg1) {
2774 bool absorbed = false;
2775 int oldtop = lua_gettop(L);
2776 lqtL_pushudata(L, this, "QGraphicsView*");
2777 if (lua_getmetatable(L, -1)) {
2778 lua_getfield(L, -1, "inputMethodEvent");
2779 lua_remove(L, -2);
2780 } else {
2781 lua_pushnil(L);
2783 lua_insert(L, -2);
2784 lqtL_pushudata(L, arg1, "QInputMethodEvent*");
2785 if (lua_isfunction(L, -1-2)) {
2786 lua_pcall(L, 1+1, 2, 0);
2787 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2788 lua_pop(L, 1);
2790 if (!absorbed) {
2791 lua_settop(L, oldtop);
2792 this->QGraphicsView::inputMethodEvent(arg1);
2794 lua_settop(L, oldtop);
2796 bool LuaBinder< QGraphicsView >::viewportEvent (QEvent * arg1) {
2797 bool absorbed = false;
2798 int oldtop = lua_gettop(L);
2799 lqtL_pushudata(L, this, "QGraphicsView*");
2800 if (lua_getmetatable(L, -1)) {
2801 lua_getfield(L, -1, "viewportEvent");
2802 lua_remove(L, -2);
2803 } else {
2804 lua_pushnil(L);
2806 lua_insert(L, -2);
2807 lqtL_pushudata(L, arg1, "QEvent*");
2808 if (lua_isfunction(L, -1-2)) {
2809 lua_pcall(L, 1+1, 2, 0);
2810 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2811 lua_pop(L, 1);
2813 if (!absorbed) {
2814 lua_settop(L, oldtop);
2815 return this->QGraphicsView::viewportEvent(arg1);
2817 bool ret = (bool)lua_toboolean(L, -1);
2818 lua_settop(L, oldtop);
2819 return ret;
2821 void LuaBinder< QGraphicsView >::resizeEvent (QResizeEvent * arg1) {
2822 bool absorbed = false;
2823 int oldtop = lua_gettop(L);
2824 lqtL_pushudata(L, this, "QGraphicsView*");
2825 if (lua_getmetatable(L, -1)) {
2826 lua_getfield(L, -1, "resizeEvent");
2827 lua_remove(L, -2);
2828 } else {
2829 lua_pushnil(L);
2831 lua_insert(L, -2);
2832 lqtL_pushudata(L, arg1, "QResizeEvent*");
2833 if (lua_isfunction(L, -1-2)) {
2834 lua_pcall(L, 1+1, 2, 0);
2835 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2836 lua_pop(L, 1);
2838 if (!absorbed) {
2839 lua_settop(L, oldtop);
2840 this->QGraphicsView::resizeEvent(arg1);
2842 lua_settop(L, oldtop);
2844 void LuaBinder< QGraphicsView >::paletteChange (const QPalette& arg1) {
2845 bool absorbed = false;
2846 int oldtop = lua_gettop(L);
2847 lqtL_pushudata(L, this, "QGraphicsView*");
2848 if (lua_getmetatable(L, -1)) {
2849 lua_getfield(L, -1, "paletteChange");
2850 lua_remove(L, -2);
2851 } else {
2852 lua_pushnil(L);
2854 lua_insert(L, -2);
2855 lqtL_pushudata(L, &(arg1), "QPalette*");
2856 if (lua_isfunction(L, -1-2)) {
2857 lua_pcall(L, 1+1, 2, 0);
2858 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2859 lua_pop(L, 1);
2861 if (!absorbed) {
2862 lua_settop(L, oldtop);
2863 this->QWidget::paletteChange(arg1);
2865 lua_settop(L, oldtop);
2867 void LuaBinder< QGraphicsView >::languageChange () {
2868 bool absorbed = false;
2869 int oldtop = lua_gettop(L);
2870 lqtL_pushudata(L, this, "QGraphicsView*");
2871 if (lua_getmetatable(L, -1)) {
2872 lua_getfield(L, -1, "languageChange");
2873 lua_remove(L, -2);
2874 } else {
2875 lua_pushnil(L);
2877 lua_insert(L, -2);
2878 if (lua_isfunction(L, -0-2)) {
2879 lua_pcall(L, 0+1, 2, 0);
2880 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2881 lua_pop(L, 1);
2883 if (!absorbed) {
2884 lua_settop(L, oldtop);
2885 this->QWidget::languageChange();
2887 lua_settop(L, oldtop);
2889 bool LuaBinder< QGraphicsView >::event (QEvent * arg1) {
2890 bool absorbed = false;
2891 int oldtop = lua_gettop(L);
2892 lqtL_pushudata(L, this, "QGraphicsView*");
2893 if (lua_getmetatable(L, -1)) {
2894 lua_getfield(L, -1, "event");
2895 lua_remove(L, -2);
2896 } else {
2897 lua_pushnil(L);
2899 lua_insert(L, -2);
2900 lqtL_pushudata(L, arg1, "QEvent*");
2901 if (lua_isfunction(L, -1-2)) {
2902 lua_pcall(L, 1+1, 2, 0);
2903 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2904 lua_pop(L, 1);
2906 if (!absorbed) {
2907 lua_settop(L, oldtop);
2908 return this->QGraphicsView::event(arg1);
2910 bool ret = (bool)lua_toboolean(L, -1);
2911 lua_settop(L, oldtop);
2912 return ret;
2914 void LuaBinder< QGraphicsView >::hideEvent (QHideEvent * arg1) {
2915 bool absorbed = false;
2916 int oldtop = lua_gettop(L);
2917 lqtL_pushudata(L, this, "QGraphicsView*");
2918 if (lua_getmetatable(L, -1)) {
2919 lua_getfield(L, -1, "hideEvent");
2920 lua_remove(L, -2);
2921 } else {
2922 lua_pushnil(L);
2924 lua_insert(L, -2);
2925 lqtL_pushudata(L, arg1, "QHideEvent*");
2926 if (lua_isfunction(L, -1-2)) {
2927 lua_pcall(L, 1+1, 2, 0);
2928 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2929 lua_pop(L, 1);
2931 if (!absorbed) {
2932 lua_settop(L, oldtop);
2933 this->QWidget::hideEvent(arg1);
2935 lua_settop(L, oldtop);
2937 bool LuaBinder< QGraphicsView >::focusNextPrevChild (bool arg1) {
2938 bool absorbed = false;
2939 int oldtop = lua_gettop(L);
2940 lqtL_pushudata(L, this, "QGraphicsView*");
2941 if (lua_getmetatable(L, -1)) {
2942 lua_getfield(L, -1, "focusNextPrevChild");
2943 lua_remove(L, -2);
2944 } else {
2945 lua_pushnil(L);
2947 lua_insert(L, -2);
2948 lua_pushboolean(L, arg1);
2949 if (lua_isfunction(L, -1-2)) {
2950 lua_pcall(L, 1+1, 2, 0);
2951 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2952 lua_pop(L, 1);
2954 if (!absorbed) {
2955 lua_settop(L, oldtop);
2956 return this->QWidget::focusNextPrevChild(arg1);
2958 bool ret = (bool)lua_toboolean(L, -1);
2959 lua_settop(L, oldtop);
2960 return ret;
2962 const QMetaObject * LuaBinder< QGraphicsView >::metaObject () const {
2963 bool absorbed = false;
2964 int oldtop = lua_gettop(L);
2965 lqtL_pushudata(L, this, "QGraphicsView*");
2966 if (lua_getmetatable(L, -1)) {
2967 lua_getfield(L, -1, "metaObject");
2968 lua_remove(L, -2);
2969 } else {
2970 lua_pushnil(L);
2972 lua_insert(L, -2);
2973 if (lua_isfunction(L, -0-2)) {
2974 lua_pcall(L, 0+1, 2, 0);
2975 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
2976 lua_pop(L, 1);
2978 if (!absorbed) {
2979 lua_settop(L, oldtop);
2980 return this->QGraphicsView::metaObject();
2982 const QMetaObject * ret = *static_cast<QMetaObject**>(lqtL_checkudata(L, -1, "QMetaObject*"));
2983 lua_settop(L, oldtop);
2984 return ret;
2986 QVariant LuaBinder< QGraphicsView >::inputMethodQuery (Qt::InputMethodQuery arg1) const {
2987 bool absorbed = false;
2988 int oldtop = lua_gettop(L);
2989 lqtL_pushudata(L, this, "QGraphicsView*");
2990 if (lua_getmetatable(L, -1)) {
2991 lua_getfield(L, -1, "inputMethodQuery");
2992 lua_remove(L, -2);
2993 } else {
2994 lua_pushnil(L);
2996 lua_insert(L, -2);
2997 lqtL_pushenum(L, arg1, "Qt::InputMethodQuery");
2998 if (lua_isfunction(L, -1-2)) {
2999 lua_pcall(L, 1+1, 2, 0);
3000 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
3001 lua_pop(L, 1);
3003 if (!absorbed) {
3004 lua_settop(L, oldtop);
3005 return this->QGraphicsView::inputMethodQuery(arg1);
3007 QVariant ret = **static_cast<QVariant**>(lqtL_checkudata(L, -1, "QVariant*"));
3008 lua_settop(L, oldtop);
3009 return ret;
3011 void LuaBinder< QGraphicsView >::leaveEvent (QEvent * arg1) {
3012 bool absorbed = false;
3013 int oldtop = lua_gettop(L);
3014 lqtL_pushudata(L, this, "QGraphicsView*");
3015 if (lua_getmetatable(L, -1)) {
3016 lua_getfield(L, -1, "leaveEvent");
3017 lua_remove(L, -2);
3018 } else {
3019 lua_pushnil(L);
3021 lua_insert(L, -2);
3022 lqtL_pushudata(L, arg1, "QEvent*");
3023 if (lua_isfunction(L, -1-2)) {
3024 lua_pcall(L, 1+1, 2, 0);
3025 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
3026 lua_pop(L, 1);
3028 if (!absorbed) {
3029 lua_settop(L, oldtop);
3030 this->QWidget::leaveEvent(arg1);
3032 lua_settop(L, oldtop);
3034 void LuaBinder< QGraphicsView >::dragEnterEvent (QDragEnterEvent * arg1) {
3035 bool absorbed = false;
3036 int oldtop = lua_gettop(L);
3037 lqtL_pushudata(L, this, "QGraphicsView*");
3038 if (lua_getmetatable(L, -1)) {
3039 lua_getfield(L, -1, "dragEnterEvent");
3040 lua_remove(L, -2);
3041 } else {
3042 lua_pushnil(L);
3044 lua_insert(L, -2);
3045 lqtL_pushudata(L, arg1, "QDragEnterEvent*");
3046 if (lua_isfunction(L, -1-2)) {
3047 lua_pcall(L, 1+1, 2, 0);
3048 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
3049 lua_pop(L, 1);
3051 if (!absorbed) {
3052 lua_settop(L, oldtop);
3053 this->QGraphicsView::dragEnterEvent(arg1);
3055 lua_settop(L, oldtop);
3057 void LuaBinder< QGraphicsView >::enterEvent (QEvent * arg1) {
3058 bool absorbed = false;
3059 int oldtop = lua_gettop(L);
3060 lqtL_pushudata(L, this, "QGraphicsView*");
3061 if (lua_getmetatable(L, -1)) {
3062 lua_getfield(L, -1, "enterEvent");
3063 lua_remove(L, -2);
3064 } else {
3065 lua_pushnil(L);
3067 lua_insert(L, -2);
3068 lqtL_pushudata(L, arg1, "QEvent*");
3069 if (lua_isfunction(L, -1-2)) {
3070 lua_pcall(L, 1+1, 2, 0);
3071 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
3072 lua_pop(L, 1);
3074 if (!absorbed) {
3075 lua_settop(L, oldtop);
3076 this->QWidget::enterEvent(arg1);
3078 lua_settop(L, oldtop);
3080 LuaBinder< QGraphicsView >:: ~LuaBinder< QGraphicsView > () {
3081 int oldtop = lua_gettop(L);
3082 lqtL_pushudata(L, this, "QGraphicsView*");
3083 lua_getfield(L, -1, "~QGraphicsView");
3085 if (lua_isfunction(L, -1)) {
3086 lua_insert(L, -2);
3087 lua_pcall(L, 1, 1, 0);
3088 } else {
3090 lua_settop(L, oldtop);
3092 int LuaBinder< QGraphicsView >::lqt_pushenum_ViewportAnchor (lua_State *L) {
3093 int enum_table = 0;
3094 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
3095 if (!lua_istable(L, -1)) {
3096 lua_pop(L, 1);
3097 lua_newtable(L);
3098 lua_pushvalue(L, -1);
3099 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
3101 lua_newtable(L);
3102 enum_table = lua_gettop(L);
3103 lua_pushstring(L, "NoAnchor");
3104 lua_rawseti(L, enum_table, 0);
3105 lua_pushinteger(L, 0);
3106 lua_setfield(L, enum_table, "NoAnchor");
3107 lua_pushstring(L, "AnchorViewCenter");
3108 lua_rawseti(L, enum_table, 1);
3109 lua_pushinteger(L, 1);
3110 lua_setfield(L, enum_table, "AnchorViewCenter");
3111 lua_pushstring(L, "AnchorUnderMouse");
3112 lua_rawseti(L, enum_table, 2);
3113 lua_pushinteger(L, 2);
3114 lua_setfield(L, enum_table, "AnchorUnderMouse");
3115 lua_pushcfunction(L, LuaBinder< QGraphicsView >::lqt_pushenum_ViewportAnchor_QFLAGS_CREATOR);
3116 lua_setfield(L, enum_table, "QFlags");
3117 lua_pushvalue(L, -1);
3118 lua_setfield(L, -3, "QGraphicsView::ViewportAnchor");
3119 lua_remove(L, -2);
3120 return 1;
3122 int LuaBinder< QGraphicsView >::lqt_pushenum_ViewportAnchor_QFLAGS_CREATOR (lua_State *L) {
3123 int argn = lua_gettop(L);
3124 int i = 0;
3125 void *p = lua_newuserdata(L, sizeof(QFlags<QGraphicsView::ViewportAnchor>*) + sizeof(QFlags<QGraphicsView::ViewportAnchor>));
3126 QFlags<QGraphicsView::ViewportAnchor> *fl = static_cast<QFlags<QGraphicsView::ViewportAnchor>*>( static_cast<void*>(&static_cast<QFlags<QGraphicsView::ViewportAnchor>**>(p)[1]) );
3127 *(void**)p = fl;
3128 for (i=1;i<=argn;i++) {
3129 *fl |= static_cast<QGraphicsView::ViewportAnchor>(lqtL_toenum(L, i, "QGraphicsView::ViewportAnchor"));
3131 if (luaL_newmetatable(L, "QFlags<QGraphicsView::ViewportAnchor>*")) {
3132 lua_pushstring(L, "QFlags<QGraphicsView::ViewportAnchor>*");
3133 lua_setfield(L, -2, "__qtype");
3135 lua_setmetatable(L, -2);
3136 return 1;
3138 int LuaBinder< QGraphicsView >::lqt_pushenum_CacheModeFlag (lua_State *L) {
3139 int enum_table = 0;
3140 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
3141 if (!lua_istable(L, -1)) {
3142 lua_pop(L, 1);
3143 lua_newtable(L);
3144 lua_pushvalue(L, -1);
3145 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
3147 lua_newtable(L);
3148 enum_table = lua_gettop(L);
3149 lua_pushstring(L, "CacheNone");
3150 lua_rawseti(L, enum_table, 0);
3151 lua_pushinteger(L, 0);
3152 lua_setfield(L, enum_table, "CacheNone");
3153 lua_pushstring(L, "CacheBackground");
3154 lua_rawseti(L, enum_table, 1);
3155 lua_pushinteger(L, 1);
3156 lua_setfield(L, enum_table, "CacheBackground");
3157 lua_pushcfunction(L, LuaBinder< QGraphicsView >::lqt_pushenum_CacheModeFlag_QFLAGS_CREATOR);
3158 lua_setfield(L, enum_table, "QFlags");
3159 lua_pushvalue(L, -1);
3160 lua_setfield(L, -3, "QGraphicsView::CacheModeFlag");
3161 lua_remove(L, -2);
3162 return 1;
3164 int LuaBinder< QGraphicsView >::lqt_pushenum_CacheModeFlag_QFLAGS_CREATOR (lua_State *L) {
3165 int argn = lua_gettop(L);
3166 int i = 0;
3167 void *p = lua_newuserdata(L, sizeof(QFlags<QGraphicsView::CacheModeFlag>*) + sizeof(QFlags<QGraphicsView::CacheModeFlag>));
3168 QFlags<QGraphicsView::CacheModeFlag> *fl = static_cast<QFlags<QGraphicsView::CacheModeFlag>*>( static_cast<void*>(&static_cast<QFlags<QGraphicsView::CacheModeFlag>**>(p)[1]) );
3169 *(void**)p = fl;
3170 for (i=1;i<=argn;i++) {
3171 *fl |= static_cast<QGraphicsView::CacheModeFlag>(lqtL_toenum(L, i, "QGraphicsView::CacheModeFlag"));
3173 if (luaL_newmetatable(L, "QFlags<QGraphicsView::CacheModeFlag>*")) {
3174 lua_pushstring(L, "QFlags<QGraphicsView::CacheModeFlag>*");
3175 lua_setfield(L, -2, "__qtype");
3177 lua_setmetatable(L, -2);
3178 return 1;
3180 int LuaBinder< QGraphicsView >::lqt_pushenum_DragMode (lua_State *L) {
3181 int enum_table = 0;
3182 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
3183 if (!lua_istable(L, -1)) {
3184 lua_pop(L, 1);
3185 lua_newtable(L);
3186 lua_pushvalue(L, -1);
3187 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
3189 lua_newtable(L);
3190 enum_table = lua_gettop(L);
3191 lua_pushstring(L, "NoDrag");
3192 lua_rawseti(L, enum_table, 0);
3193 lua_pushinteger(L, 0);
3194 lua_setfield(L, enum_table, "NoDrag");
3195 lua_pushstring(L, "ScrollHandDrag");
3196 lua_rawseti(L, enum_table, 1);
3197 lua_pushinteger(L, 1);
3198 lua_setfield(L, enum_table, "ScrollHandDrag");
3199 lua_pushstring(L, "RubberBandDrag");
3200 lua_rawseti(L, enum_table, 2);
3201 lua_pushinteger(L, 2);
3202 lua_setfield(L, enum_table, "RubberBandDrag");
3203 lua_pushcfunction(L, LuaBinder< QGraphicsView >::lqt_pushenum_DragMode_QFLAGS_CREATOR);
3204 lua_setfield(L, enum_table, "QFlags");
3205 lua_pushvalue(L, -1);
3206 lua_setfield(L, -3, "QGraphicsView::DragMode");
3207 lua_remove(L, -2);
3208 return 1;
3210 int LuaBinder< QGraphicsView >::lqt_pushenum_DragMode_QFLAGS_CREATOR (lua_State *L) {
3211 int argn = lua_gettop(L);
3212 int i = 0;
3213 void *p = lua_newuserdata(L, sizeof(QFlags<QGraphicsView::DragMode>*) + sizeof(QFlags<QGraphicsView::DragMode>));
3214 QFlags<QGraphicsView::DragMode> *fl = static_cast<QFlags<QGraphicsView::DragMode>*>( static_cast<void*>(&static_cast<QFlags<QGraphicsView::DragMode>**>(p)[1]) );
3215 *(void**)p = fl;
3216 for (i=1;i<=argn;i++) {
3217 *fl |= static_cast<QGraphicsView::DragMode>(lqtL_toenum(L, i, "QGraphicsView::DragMode"));
3219 if (luaL_newmetatable(L, "QFlags<QGraphicsView::DragMode>*")) {
3220 lua_pushstring(L, "QFlags<QGraphicsView::DragMode>*");
3221 lua_setfield(L, -2, "__qtype");
3223 lua_setmetatable(L, -2);
3224 return 1;
3226 int LuaBinder< QGraphicsView >::lqt_pushenum_ViewportUpdateMode (lua_State *L) {
3227 int enum_table = 0;
3228 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
3229 if (!lua_istable(L, -1)) {
3230 lua_pop(L, 1);
3231 lua_newtable(L);
3232 lua_pushvalue(L, -1);
3233 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
3235 lua_newtable(L);
3236 enum_table = lua_gettop(L);
3237 lua_pushstring(L, "FullViewportUpdate");
3238 lua_rawseti(L, enum_table, 0);
3239 lua_pushinteger(L, 0);
3240 lua_setfield(L, enum_table, "FullViewportUpdate");
3241 lua_pushstring(L, "MinimalViewportUpdate");
3242 lua_rawseti(L, enum_table, 1);
3243 lua_pushinteger(L, 1);
3244 lua_setfield(L, enum_table, "MinimalViewportUpdate");
3245 lua_pushstring(L, "SmartViewportUpdate");
3246 lua_rawseti(L, enum_table, 2);
3247 lua_pushinteger(L, 2);
3248 lua_setfield(L, enum_table, "SmartViewportUpdate");
3249 lua_pushstring(L, "NoViewportUpdate");
3250 lua_rawseti(L, enum_table, 3);
3251 lua_pushinteger(L, 3);
3252 lua_setfield(L, enum_table, "NoViewportUpdate");
3253 lua_pushcfunction(L, LuaBinder< QGraphicsView >::lqt_pushenum_ViewportUpdateMode_QFLAGS_CREATOR);
3254 lua_setfield(L, enum_table, "QFlags");
3255 lua_pushvalue(L, -1);
3256 lua_setfield(L, -3, "QGraphicsView::ViewportUpdateMode");
3257 lua_remove(L, -2);
3258 return 1;
3260 int LuaBinder< QGraphicsView >::lqt_pushenum_ViewportUpdateMode_QFLAGS_CREATOR (lua_State *L) {
3261 int argn = lua_gettop(L);
3262 int i = 0;
3263 void *p = lua_newuserdata(L, sizeof(QFlags<QGraphicsView::ViewportUpdateMode>*) + sizeof(QFlags<QGraphicsView::ViewportUpdateMode>));
3264 QFlags<QGraphicsView::ViewportUpdateMode> *fl = static_cast<QFlags<QGraphicsView::ViewportUpdateMode>*>( static_cast<void*>(&static_cast<QFlags<QGraphicsView::ViewportUpdateMode>**>(p)[1]) );
3265 *(void**)p = fl;
3266 for (i=1;i<=argn;i++) {
3267 *fl |= static_cast<QGraphicsView::ViewportUpdateMode>(lqtL_toenum(L, i, "QGraphicsView::ViewportUpdateMode"));
3269 if (luaL_newmetatable(L, "QFlags<QGraphicsView::ViewportUpdateMode>*")) {
3270 lua_pushstring(L, "QFlags<QGraphicsView::ViewportUpdateMode>*");
3271 lua_setfield(L, -2, "__qtype");
3273 lua_setmetatable(L, -2);
3274 return 1;
3276 int LuaBinder< QGraphicsView >::lqt_pushenum_OptimizationFlag (lua_State *L) {
3277 int enum_table = 0;
3278 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
3279 if (!lua_istable(L, -1)) {
3280 lua_pop(L, 1);
3281 lua_newtable(L);
3282 lua_pushvalue(L, -1);
3283 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
3285 lua_newtable(L);
3286 enum_table = lua_gettop(L);
3287 lua_pushstring(L, "DontClipPainter");
3288 lua_rawseti(L, enum_table, 1);
3289 lua_pushinteger(L, 1);
3290 lua_setfield(L, enum_table, "DontClipPainter");
3291 lua_pushstring(L, "DontSavePainterState");
3292 lua_rawseti(L, enum_table, 2);
3293 lua_pushinteger(L, 2);
3294 lua_setfield(L, enum_table, "DontSavePainterState");
3295 lua_pushstring(L, "DontAdjustForAntialiasing");
3296 lua_rawseti(L, enum_table, 4);
3297 lua_pushinteger(L, 4);
3298 lua_setfield(L, enum_table, "DontAdjustForAntialiasing");
3299 lua_pushcfunction(L, LuaBinder< QGraphicsView >::lqt_pushenum_OptimizationFlag_QFLAGS_CREATOR);
3300 lua_setfield(L, enum_table, "QFlags");
3301 lua_pushvalue(L, -1);
3302 lua_setfield(L, -3, "QGraphicsView::OptimizationFlag");
3303 lua_remove(L, -2);
3304 return 1;
3306 int LuaBinder< QGraphicsView >::lqt_pushenum_OptimizationFlag_QFLAGS_CREATOR (lua_State *L) {
3307 int argn = lua_gettop(L);
3308 int i = 0;
3309 void *p = lua_newuserdata(L, sizeof(QFlags<QGraphicsView::OptimizationFlag>*) + sizeof(QFlags<QGraphicsView::OptimizationFlag>));
3310 QFlags<QGraphicsView::OptimizationFlag> *fl = static_cast<QFlags<QGraphicsView::OptimizationFlag>*>( static_cast<void*>(&static_cast<QFlags<QGraphicsView::OptimizationFlag>**>(p)[1]) );
3311 *(void**)p = fl;
3312 for (i=1;i<=argn;i++) {
3313 *fl |= static_cast<QGraphicsView::OptimizationFlag>(lqtL_toenum(L, i, "QGraphicsView::OptimizationFlag"));
3315 if (luaL_newmetatable(L, "QFlags<QGraphicsView::OptimizationFlag>*")) {
3316 lua_pushstring(L, "QFlags<QGraphicsView::OptimizationFlag>*");
3317 lua_setfield(L, -2, "__qtype");
3319 lua_setmetatable(L, -2);
3320 return 1;
3322 int luaopen_QGraphicsView (lua_State *L) {
3323 if (luaL_newmetatable(L, "QGraphicsView*")) {
3324 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__render);
3325 lua_setfield(L, -2, "render");
3326 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__setOptimizationFlag);
3327 lua_setfield(L, -2, "setOptimizationFlag");
3328 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__sizeHint);
3329 lua_setfield(L, -2, "sizeHint");
3330 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__setMatrix);
3331 lua_setfield(L, -2, "setMatrix");
3332 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__setInteractive);
3333 lua_setfield(L, -2, "setInteractive");
3334 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__sceneRect);
3335 lua_setfield(L, -2, "sceneRect");
3336 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__viewportTransform);
3337 lua_setfield(L, -2, "viewportTransform");
3338 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__setOptimizationFlags);
3339 lua_setfield(L, -2, "setOptimizationFlags");
3340 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__setTransformationAnchor);
3341 lua_setfield(L, -2, "setTransformationAnchor");
3342 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__trUtf8);
3343 lua_setfield(L, -2, "trUtf8");
3344 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__optimizationFlags);
3345 lua_setfield(L, -2, "optimizationFlags");
3346 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__rubberBandSelectionMode);
3347 lua_setfield(L, -2, "rubberBandSelectionMode");
3348 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__tr);
3349 lua_setfield(L, -2, "tr");
3350 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__renderHints);
3351 lua_setfield(L, -2, "renderHints");
3352 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__setCacheMode);
3353 lua_setfield(L, -2, "setCacheMode");
3354 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__delete);
3355 lua_setfield(L, -2, "delete");
3356 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__new);
3357 lua_setfield(L, -2, "new");
3358 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__setRenderHints);
3359 lua_setfield(L, -2, "setRenderHints");
3360 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__updateScene);
3361 lua_setfield(L, -2, "updateScene");
3362 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__setRenderHint);
3363 lua_setfield(L, -2, "setRenderHint");
3364 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__items);
3365 lua_setfield(L, -2, "items");
3366 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__invalidateScene);
3367 lua_setfield(L, -2, "invalidateScene");
3368 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__matrix);
3369 lua_setfield(L, -2, "matrix");
3370 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__transformationAnchor);
3371 lua_setfield(L, -2, "transformationAnchor");
3372 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__centerOn);
3373 lua_setfield(L, -2, "centerOn");
3374 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__rotate);
3375 lua_setfield(L, -2, "rotate");
3376 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__setScene);
3377 lua_setfield(L, -2, "setScene");
3378 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__transform);
3379 lua_setfield(L, -2, "transform");
3380 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__resetMatrix);
3381 lua_setfield(L, -2, "resetMatrix");
3382 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__setRubberBandSelectionMode);
3383 lua_setfield(L, -2, "setRubberBandSelectionMode");
3384 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__setTransform);
3385 lua_setfield(L, -2, "setTransform");
3386 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__setSceneRect);
3387 lua_setfield(L, -2, "setSceneRect");
3388 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__scale);
3389 lua_setfield(L, -2, "scale");
3390 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__resizeAnchor);
3391 lua_setfield(L, -2, "resizeAnchor");
3392 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__dragMode);
3393 lua_setfield(L, -2, "dragMode");
3394 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__shear);
3395 lua_setfield(L, -2, "shear");
3396 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__fitInView);
3397 lua_setfield(L, -2, "fitInView");
3398 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__isInteractive);
3399 lua_setfield(L, -2, "isInteractive");
3400 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__setResizeAnchor);
3401 lua_setfield(L, -2, "setResizeAnchor");
3402 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__translate);
3403 lua_setfield(L, -2, "translate");
3404 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__ensureVisible);
3405 lua_setfield(L, -2, "ensureVisible");
3406 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__updateSceneRect);
3407 lua_setfield(L, -2, "updateSceneRect");
3408 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__backgroundBrush);
3409 lua_setfield(L, -2, "backgroundBrush");
3410 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__cacheMode);
3411 lua_setfield(L, -2, "cacheMode");
3412 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__inputMethodQuery);
3413 lua_setfield(L, -2, "inputMethodQuery");
3414 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__setViewportUpdateMode);
3415 lua_setfield(L, -2, "setViewportUpdateMode");
3416 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__mapToScene);
3417 lua_setfield(L, -2, "mapToScene");
3418 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__foregroundBrush);
3419 lua_setfield(L, -2, "foregroundBrush");
3420 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__resetTransform);
3421 lua_setfield(L, -2, "resetTransform");
3422 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__scene);
3423 lua_setfield(L, -2, "scene");
3424 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__metaObject);
3425 lua_setfield(L, -2, "metaObject");
3426 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__resetCachedContent);
3427 lua_setfield(L, -2, "resetCachedContent");
3428 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__setForegroundBrush);
3429 lua_setfield(L, -2, "setForegroundBrush");
3430 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__itemAt);
3431 lua_setfield(L, -2, "itemAt");
3432 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__alignment);
3433 lua_setfield(L, -2, "alignment");
3434 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__setDragMode);
3435 lua_setfield(L, -2, "setDragMode");
3436 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__viewportUpdateMode);
3437 lua_setfield(L, -2, "viewportUpdateMode");
3438 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__setBackgroundBrush);
3439 lua_setfield(L, -2, "setBackgroundBrush");
3440 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__mapFromScene);
3441 lua_setfield(L, -2, "mapFromScene");
3442 lua_pushcfunction(L, LuaBinder< QGraphicsView >::__LuaWrapCall__setAlignment);
3443 lua_setfield(L, -2, "setAlignment");
3444 LuaBinder< QGraphicsView >::lqt_pushenum_ViewportAnchor(L);
3445 lua_setfield(L, -2, "ViewportAnchor");
3446 LuaBinder< QGraphicsView >::lqt_pushenum_CacheModeFlag(L);
3447 lua_setfield(L, -2, "CacheModeFlag");
3448 LuaBinder< QGraphicsView >::lqt_pushenum_DragMode(L);
3449 lua_setfield(L, -2, "DragMode");
3450 LuaBinder< QGraphicsView >::lqt_pushenum_ViewportUpdateMode(L);
3451 lua_setfield(L, -2, "ViewportUpdateMode");
3452 LuaBinder< QGraphicsView >::lqt_pushenum_OptimizationFlag(L);
3453 lua_setfield(L, -2, "OptimizationFlag");
3454 lua_newtable(L);
3455 lua_pushboolean(L, 1);
3456 lua_setfield(L, -2, "QAbstractScrollArea*");
3457 lua_pushboolean(L, 0);
3458 lua_setfield(L, -2, "QObject*");
3459 lua_pushboolean(L, 0);
3460 lua_setfield(L, -2, "QPaintDevice*");
3461 lua_pushboolean(L, 0);
3462 lua_setfield(L, -2, "QWidget*");
3463 lua_pushboolean(L, 0);
3464 lua_setfield(L, -2, "QFrame*");
3465 lua_setfield(L, -2, "__base");
3466 lua_pushcfunction(L, lqtL_newindex);
3467 lua_setfield(L, -2, "__newindex");
3468 lua_pushcfunction(L, lqtL_index);
3469 lua_setfield(L, -2, "__index");
3470 lua_pushcfunction(L, lqtL_gc);
3471 lua_setfield(L, -2, "__gc");
3472 lua_pushstring(L, "QGraphicsView");
3473 lua_setfield(L, -2, "__qtype");
3474 lua_setglobal(L, "QGraphicsView");
3475 } else {
3476 lua_pop(L, 1);
3478 return 0;