added "install" instruction
[Leditor.git] / src / lqt_bind_QColor.cpp
blob2512c89a6f7249389d195b4f930cb4ec04df2f9d
1 #include "lqt_bind_QColor.hpp"
3 int LuaBinder< QColor >::__LuaWrapCall__cyan (lua_State *L) {
4 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
5 if (__lua__obj==0) {
6 lua_pushstring(L, "trying to reference deleted pointer");
7 lua_error(L);
8 return 0;
10 int ret = __lua__obj->QColor::cyan();
11 lua_pushinteger(L, ret);
12 return 1;
14 int LuaBinder< QColor >::__LuaWrapCall__fromCmyk (lua_State *L) {
15 int arg1 = lua_tointeger(L, 1);
16 int arg2 = lua_tointeger(L, 2);
17 int arg3 = lua_tointeger(L, 3);
18 int arg4 = lua_tointeger(L, 4);
19 int arg5 = lua_isnumber(L, 5)?lua_tointeger(L, 5):static_cast< int >(255);
20 QColor ret = QColor::fromCmyk(arg1, arg2, arg3, arg4, arg5);
21 lqtL_passudata(L, new QColor(ret), "QColor*");
22 return 1;
24 int LuaBinder< QColor >::__LuaWrapCall__cyanF (lua_State *L) {
25 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
26 if (__lua__obj==0) {
27 lua_pushstring(L, "trying to reference deleted pointer");
28 lua_error(L);
29 return 0;
31 double ret = __lua__obj->QColor::cyanF();
32 lua_pushnumber(L, ret);
33 return 1;
35 int LuaBinder< QColor >::__LuaWrapCall__redF (lua_State *L) {
36 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
37 if (__lua__obj==0) {
38 lua_pushstring(L, "trying to reference deleted pointer");
39 lua_error(L);
40 return 0;
42 double ret = __lua__obj->QColor::redF();
43 lua_pushnumber(L, ret);
44 return 1;
46 int LuaBinder< QColor >::__LuaWrapCall__setCmyk (lua_State *L) {
47 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
48 if (__lua__obj==0) {
49 lua_pushstring(L, "trying to reference deleted pointer");
50 lua_error(L);
51 return 0;
53 int arg1 = lua_tointeger(L, 2);
54 int arg2 = lua_tointeger(L, 3);
55 int arg3 = lua_tointeger(L, 4);
56 int arg4 = lua_tointeger(L, 5);
57 int arg5 = lua_isnumber(L, 6)?lua_tointeger(L, 6):static_cast< int >(255);
58 __lua__obj->QColor::setCmyk(arg1, arg2, arg3, arg4, arg5);
59 return 0;
61 int LuaBinder< QColor >::__LuaWrapCall__isValid (lua_State *L) {
62 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
63 if (__lua__obj==0) {
64 lua_pushstring(L, "trying to reference deleted pointer");
65 lua_error(L);
66 return 0;
68 bool ret = __lua__obj->QColor::isValid();
69 lua_pushboolean(L, ret);
70 return 1;
72 int LuaBinder< QColor >::__LuaWrapCall__black (lua_State *L) {
73 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
74 if (__lua__obj==0) {
75 lua_pushstring(L, "trying to reference deleted pointer");
76 lua_error(L);
77 return 0;
79 int ret = __lua__obj->QColor::black();
80 lua_pushinteger(L, ret);
81 return 1;
83 int LuaBinder< QColor >::__LuaWrapCall__getCmyk (lua_State *L) {
84 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
85 if (__lua__obj==0) {
86 lua_pushstring(L, "trying to reference deleted pointer");
87 lua_error(L);
88 return 0;
90 int * arg1 = static_cast<int *>(lua_touserdata(L, 2));
91 int * arg2 = static_cast<int *>(lua_touserdata(L, 3));
92 int * arg3 = static_cast<int *>(lua_touserdata(L, 4));
93 int * arg4 = static_cast<int *>(lua_touserdata(L, 5));
94 int * arg5 = lua_isnumber(L, 6)?static_cast<int *>(lua_touserdata(L, 6)):static_cast< int * >(0);
95 __lua__obj->QColor::getCmyk(arg1, arg2, arg3, arg4, arg5);
96 return 0;
98 int LuaBinder< QColor >::__LuaWrapCall__yellow (lua_State *L) {
99 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
100 if (__lua__obj==0) {
101 lua_pushstring(L, "trying to reference deleted pointer");
102 lua_error(L);
103 return 0;
105 int ret = __lua__obj->QColor::yellow();
106 lua_pushinteger(L, ret);
107 return 1;
109 int LuaBinder< QColor >::__LuaWrapCall__setGreen (lua_State *L) {
110 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
111 if (__lua__obj==0) {
112 lua_pushstring(L, "trying to reference deleted pointer");
113 lua_error(L);
114 return 0;
116 int arg1 = lua_tointeger(L, 2);
117 __lua__obj->QColor::setGreen(arg1);
118 return 0;
120 int LuaBinder< QColor >::__LuaWrapCall__setAlpha (lua_State *L) {
121 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
122 if (__lua__obj==0) {
123 lua_pushstring(L, "trying to reference deleted pointer");
124 lua_error(L);
125 return 0;
127 int arg1 = lua_tointeger(L, 2);
128 __lua__obj->QColor::setAlpha(arg1);
129 return 0;
131 int LuaBinder< QColor >::__LuaWrapCall__convertTo (lua_State *L) {
132 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
133 if (__lua__obj==0) {
134 lua_pushstring(L, "trying to reference deleted pointer");
135 lua_error(L);
136 return 0;
138 QColor::Spec arg1 = static_cast<QColor::Spec>(lqtL_toenum(L, 2, "QColor::Spec"));
139 QColor ret = __lua__obj->QColor::convertTo(arg1);
140 lqtL_passudata(L, new QColor(ret), "QColor*");
141 return 1;
143 int LuaBinder< QColor >::__LuaWrapCall__setHsv (lua_State *L) {
144 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
145 if (__lua__obj==0) {
146 lua_pushstring(L, "trying to reference deleted pointer");
147 lua_error(L);
148 return 0;
150 int arg1 = lua_tointeger(L, 2);
151 int arg2 = lua_tointeger(L, 3);
152 int arg3 = lua_tointeger(L, 4);
153 int arg4 = lua_isnumber(L, 5)?lua_tointeger(L, 5):static_cast< int >(255);
154 __lua__obj->QColor::setHsv(arg1, arg2, arg3, arg4);
155 return 0;
157 int LuaBinder< QColor >::__LuaWrapCall__toCmyk (lua_State *L) {
158 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
159 if (__lua__obj==0) {
160 lua_pushstring(L, "trying to reference deleted pointer");
161 lua_error(L);
162 return 0;
164 QColor ret = __lua__obj->QColor::toCmyk();
165 lqtL_passudata(L, new QColor(ret), "QColor*");
166 return 1;
168 int LuaBinder< QColor >::__LuaWrapCall__hueF (lua_State *L) {
169 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
170 if (__lua__obj==0) {
171 lua_pushstring(L, "trying to reference deleted pointer");
172 lua_error(L);
173 return 0;
175 double ret = __lua__obj->QColor::hueF();
176 lua_pushnumber(L, ret);
177 return 1;
179 int LuaBinder< QColor >::__LuaWrapCall__fromCmykF (lua_State *L) {
180 double arg1 = lua_tonumber(L, 1);
181 double arg2 = lua_tonumber(L, 2);
182 double arg3 = lua_tonumber(L, 3);
183 double arg4 = lua_tonumber(L, 4);
184 double arg5 = lua_isnumber(L, 5)?lua_tonumber(L, 5):static_cast< double >(1.0e+0);
185 QColor ret = QColor::fromCmykF(arg1, arg2, arg3, arg4, arg5);
186 lqtL_passudata(L, new QColor(ret), "QColor*");
187 return 1;
189 int LuaBinder< QColor >::__LuaWrapCall__darker (lua_State *L) {
190 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
191 if (__lua__obj==0) {
192 lua_pushstring(L, "trying to reference deleted pointer");
193 lua_error(L);
194 return 0;
196 int arg1 = lua_isnumber(L, 2)?lua_tointeger(L, 2):static_cast< int >(200);
197 QColor ret = __lua__obj->QColor::darker(arg1);
198 lqtL_passudata(L, new QColor(ret), "QColor*");
199 return 1;
201 int LuaBinder< QColor >::__LuaWrapCall__setRgba (lua_State *L) {
202 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
203 if (__lua__obj==0) {
204 lua_pushstring(L, "trying to reference deleted pointer");
205 lua_error(L);
206 return 0;
208 unsigned int arg1 = lua_tointeger(L, 2);
209 __lua__obj->QColor::setRgba(arg1);
210 return 0;
212 int LuaBinder< QColor >::__LuaWrapCall__rgb (lua_State *L) {
213 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
214 if (__lua__obj==0) {
215 lua_pushstring(L, "trying to reference deleted pointer");
216 lua_error(L);
217 return 0;
219 unsigned int ret = __lua__obj->QColor::rgb();
220 lua_pushinteger(L, ret);
221 return 1;
223 int LuaBinder< QColor >::__LuaWrapCall__setGreenF (lua_State *L) {
224 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
225 if (__lua__obj==0) {
226 lua_pushstring(L, "trying to reference deleted pointer");
227 lua_error(L);
228 return 0;
230 double arg1 = lua_tonumber(L, 2);
231 __lua__obj->QColor::setGreenF(arg1);
232 return 0;
234 int LuaBinder< QColor >::__LuaWrapCall__green (lua_State *L) {
235 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
236 if (__lua__obj==0) {
237 lua_pushstring(L, "trying to reference deleted pointer");
238 lua_error(L);
239 return 0;
241 int ret = __lua__obj->QColor::green();
242 lua_pushinteger(L, ret);
243 return 1;
245 int LuaBinder< QColor >::__LuaWrapCall__valueF (lua_State *L) {
246 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
247 if (__lua__obj==0) {
248 lua_pushstring(L, "trying to reference deleted pointer");
249 lua_error(L);
250 return 0;
252 double ret = __lua__obj->QColor::valueF();
253 lua_pushnumber(L, ret);
254 return 1;
256 int LuaBinder< QColor >::__LuaWrapCall__setNamedColor (lua_State *L) {
257 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
258 if (__lua__obj==0) {
259 lua_pushstring(L, "trying to reference deleted pointer");
260 lua_error(L);
261 return 0;
263 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
264 __lua__obj->QColor::setNamedColor(arg1);
265 return 0;
267 int LuaBinder< QColor >::__LuaWrapCall__fromHsvF (lua_State *L) {
268 double arg1 = lua_tonumber(L, 1);
269 double arg2 = lua_tonumber(L, 2);
270 double arg3 = lua_tonumber(L, 3);
271 double arg4 = lua_isnumber(L, 4)?lua_tonumber(L, 4):static_cast< double >(1.0e+0);
272 QColor ret = QColor::fromHsvF(arg1, arg2, arg3, arg4);
273 lqtL_passudata(L, new QColor(ret), "QColor*");
274 return 1;
276 int LuaBinder< QColor >::__LuaWrapCall__fromRgbF (lua_State *L) {
277 double arg1 = lua_tonumber(L, 1);
278 double arg2 = lua_tonumber(L, 2);
279 double arg3 = lua_tonumber(L, 3);
280 double arg4 = lua_isnumber(L, 4)?lua_tonumber(L, 4):static_cast< double >(1.0e+0);
281 QColor ret = QColor::fromRgbF(arg1, arg2, arg3, arg4);
282 lqtL_passudata(L, new QColor(ret), "QColor*");
283 return 1;
285 int LuaBinder< QColor >::__LuaWrapCall__setRed (lua_State *L) {
286 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
287 if (__lua__obj==0) {
288 lua_pushstring(L, "trying to reference deleted pointer");
289 lua_error(L);
290 return 0;
292 int arg1 = lua_tointeger(L, 2);
293 __lua__obj->QColor::setRed(arg1);
294 return 0;
296 int LuaBinder< QColor >::__LuaWrapCall__value (lua_State *L) {
297 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
298 if (__lua__obj==0) {
299 lua_pushstring(L, "trying to reference deleted pointer");
300 lua_error(L);
301 return 0;
303 int ret = __lua__obj->QColor::value();
304 lua_pushinteger(L, ret);
305 return 1;
307 int LuaBinder< QColor >::__LuaWrapCall__lighter (lua_State *L) {
308 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
309 if (__lua__obj==0) {
310 lua_pushstring(L, "trying to reference deleted pointer");
311 lua_error(L);
312 return 0;
314 int arg1 = lua_isnumber(L, 2)?lua_tointeger(L, 2):static_cast< int >(150);
315 QColor ret = __lua__obj->QColor::lighter(arg1);
316 lqtL_passudata(L, new QColor(ret), "QColor*");
317 return 1;
319 int LuaBinder< QColor >::__LuaWrapCall__rgba (lua_State *L) {
320 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
321 if (__lua__obj==0) {
322 lua_pushstring(L, "trying to reference deleted pointer");
323 lua_error(L);
324 return 0;
326 unsigned int ret = __lua__obj->QColor::rgba();
327 lua_pushinteger(L, ret);
328 return 1;
330 int LuaBinder< QColor >::__LuaWrapCall__magentaF (lua_State *L) {
331 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
332 if (__lua__obj==0) {
333 lua_pushstring(L, "trying to reference deleted pointer");
334 lua_error(L);
335 return 0;
337 double ret = __lua__obj->QColor::magentaF();
338 lua_pushnumber(L, ret);
339 return 1;
341 int LuaBinder< QColor >::__LuaWrapCall__getCmykF (lua_State *L) {
342 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
343 if (__lua__obj==0) {
344 lua_pushstring(L, "trying to reference deleted pointer");
345 lua_error(L);
346 return 0;
348 double * arg1 = static_cast<double *>(lua_touserdata(L, 2));
349 double * arg2 = static_cast<double *>(lua_touserdata(L, 3));
350 double * arg3 = static_cast<double *>(lua_touserdata(L, 4));
351 double * arg4 = static_cast<double *>(lua_touserdata(L, 5));
352 double * arg5 = lua_isnumber(L, 6)?static_cast<double *>(lua_touserdata(L, 6)):static_cast< double * >(0);
353 __lua__obj->QColor::getCmykF(arg1, arg2, arg3, arg4, arg5);
354 return 0;
356 int LuaBinder< QColor >::__LuaWrapCall__setBlueF (lua_State *L) {
357 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
358 if (__lua__obj==0) {
359 lua_pushstring(L, "trying to reference deleted pointer");
360 lua_error(L);
361 return 0;
363 double arg1 = lua_tonumber(L, 2);
364 __lua__obj->QColor::setBlueF(arg1);
365 return 0;
367 int LuaBinder< QColor >::__LuaWrapCall__colorNames (lua_State *L) {
368 QStringList ret = QColor::colorNames();
369 lqtL_passudata(L, new QStringList(ret), "QStringList*");
370 return 1;
372 int LuaBinder< QColor >::__LuaWrapCall__getRgb (lua_State *L) {
373 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
374 if (__lua__obj==0) {
375 lua_pushstring(L, "trying to reference deleted pointer");
376 lua_error(L);
377 return 0;
379 int * arg1 = static_cast<int *>(lua_touserdata(L, 2));
380 int * arg2 = static_cast<int *>(lua_touserdata(L, 3));
381 int * arg3 = static_cast<int *>(lua_touserdata(L, 4));
382 int * arg4 = lua_isnumber(L, 5)?static_cast<int *>(lua_touserdata(L, 5)):static_cast< int * >(0);
383 __lua__obj->QColor::getRgb(arg1, arg2, arg3, arg4);
384 return 0;
386 int LuaBinder< QColor >::__LuaWrapCall__name (lua_State *L) {
387 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
388 if (__lua__obj==0) {
389 lua_pushstring(L, "trying to reference deleted pointer");
390 lua_error(L);
391 return 0;
393 QString ret = __lua__obj->QColor::name();
394 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
395 return 1;
397 int LuaBinder< QColor >::__LuaWrapCall__setRgb__OverloadedVersion__1 (lua_State *L) {
398 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
399 if (__lua__obj==0) {
400 lua_pushstring(L, "trying to reference deleted pointer");
401 lua_error(L);
402 return 0;
404 int arg1 = lua_tointeger(L, 2);
405 int arg2 = lua_tointeger(L, 3);
406 int arg3 = lua_tointeger(L, 4);
407 int arg4 = lua_isnumber(L, 5)?lua_tointeger(L, 5):static_cast< int >(255);
408 __lua__obj->QColor::setRgb(arg1, arg2, arg3, arg4);
409 return 0;
411 int LuaBinder< QColor >::__LuaWrapCall__setRgb__OverloadedVersion__2 (lua_State *L) {
412 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
413 if (__lua__obj==0) {
414 lua_pushstring(L, "trying to reference deleted pointer");
415 lua_error(L);
416 return 0;
418 unsigned int arg1 = lua_tointeger(L, 2);
419 __lua__obj->QColor::setRgb(arg1);
420 return 0;
422 int LuaBinder< QColor >::__LuaWrapCall__setRgb (lua_State *L) {
423 int score[3];
424 const int premium = 11+lua_gettop(L);
425 score[1] = 0;
426 score[1] += lqtL_testudata(L, 1, "QColor*")?premium:-premium*premium;
427 if (lua_isnumber(L, 2)) {
428 score[1] += premium;
429 } else if (false) {
430 score[1] += premium-1; // table: 0x1f49c40;
431 } else {
432 score[1] -= premium*premium;
434 if (lua_isnumber(L, 3)) {
435 score[1] += premium;
436 } else if (false) {
437 score[1] += premium-1; // table: 0x1f4a160;
438 } else {
439 score[1] -= premium*premium;
441 if (lua_isnumber(L, 4)) {
442 score[1] += premium;
443 } else if (false) {
444 score[1] += premium-1; // table: 0x1f4a510;
445 } else {
446 score[1] -= premium*premium;
448 if (lua_isnumber(L, 5)) {
449 score[1] += premium;
450 } else if (true) {
451 score[1] += premium-1; // table: 0x1f4a940;
452 } else {
453 score[1] -= premium*premium;
455 score[2] = 0;
456 score[2] += lqtL_testudata(L, 1, "QColor*")?premium:-premium*premium;
457 if (lua_isnumber(L, 2)) {
458 score[2] += premium;
459 } else if (false) {
460 score[2] += premium-1; // table: 0x1f4f600;
461 } else {
462 score[2] -= premium*premium;
464 int best = 1;
465 for (int i=1;i<=2;i++) {
466 if (score[best] < score[i]) { best = i; }
468 switch (best) {
469 case 1: return __LuaWrapCall__setRgb__OverloadedVersion__1(L); break;
470 case 2: return __LuaWrapCall__setRgb__OverloadedVersion__2(L); break;
472 lua_pushstring(L, "no overload of function __LuaWrapCall__setRgb matching arguments");
473 lua_error(L);
474 return 0;
476 int LuaBinder< QColor >::__LuaWrapCall__setAlphaF (lua_State *L) {
477 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
478 if (__lua__obj==0) {
479 lua_pushstring(L, "trying to reference deleted pointer");
480 lua_error(L);
481 return 0;
483 double arg1 = lua_tonumber(L, 2);
484 __lua__obj->QColor::setAlphaF(arg1);
485 return 0;
487 int LuaBinder< QColor >::__LuaWrapCall__setCmykF (lua_State *L) {
488 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
489 if (__lua__obj==0) {
490 lua_pushstring(L, "trying to reference deleted pointer");
491 lua_error(L);
492 return 0;
494 double arg1 = lua_tonumber(L, 2);
495 double arg2 = lua_tonumber(L, 3);
496 double arg3 = lua_tonumber(L, 4);
497 double arg4 = lua_tonumber(L, 5);
498 double arg5 = lua_isnumber(L, 6)?lua_tonumber(L, 6):static_cast< double >(1.0e+0);
499 __lua__obj->QColor::setCmykF(arg1, arg2, arg3, arg4, arg5);
500 return 0;
502 int LuaBinder< QColor >::__LuaWrapCall__setBlue (lua_State *L) {
503 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
504 if (__lua__obj==0) {
505 lua_pushstring(L, "trying to reference deleted pointer");
506 lua_error(L);
507 return 0;
509 int arg1 = lua_tointeger(L, 2);
510 __lua__obj->QColor::setBlue(arg1);
511 return 0;
513 int LuaBinder< QColor >::__LuaWrapCall__greenF (lua_State *L) {
514 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
515 if (__lua__obj==0) {
516 lua_pushstring(L, "trying to reference deleted pointer");
517 lua_error(L);
518 return 0;
520 double ret = __lua__obj->QColor::greenF();
521 lua_pushnumber(L, ret);
522 return 1;
524 int LuaBinder< QColor >::__LuaWrapCall__toHsv (lua_State *L) {
525 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
526 if (__lua__obj==0) {
527 lua_pushstring(L, "trying to reference deleted pointer");
528 lua_error(L);
529 return 0;
531 QColor ret = __lua__obj->QColor::toHsv();
532 lqtL_passudata(L, new QColor(ret), "QColor*");
533 return 1;
535 int LuaBinder< QColor >::__LuaWrapCall__alphaF (lua_State *L) {
536 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
537 if (__lua__obj==0) {
538 lua_pushstring(L, "trying to reference deleted pointer");
539 lua_error(L);
540 return 0;
542 double ret = __lua__obj->QColor::alphaF();
543 lua_pushnumber(L, ret);
544 return 1;
546 int LuaBinder< QColor >::__LuaWrapCall__toRgb (lua_State *L) {
547 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
548 if (__lua__obj==0) {
549 lua_pushstring(L, "trying to reference deleted pointer");
550 lua_error(L);
551 return 0;
553 QColor ret = __lua__obj->QColor::toRgb();
554 lqtL_passudata(L, new QColor(ret), "QColor*");
555 return 1;
557 int LuaBinder< QColor >::__LuaWrapCall__new__OverloadedVersion__1 (lua_State *L) {
558 QColor * ret = new LuaBinder< QColor >(L);
559 lqtL_passudata(L, ret, "QColor*");
560 return 1;
562 int LuaBinder< QColor >::__LuaWrapCall__new__OverloadedVersion__2 (lua_State *L) {
563 Qt::GlobalColor arg1 = static_cast<Qt::GlobalColor>(lqtL_toenum(L, 1, "Qt::GlobalColor"));
564 QColor * ret = new LuaBinder< QColor >(L, arg1);
565 lqtL_passudata(L, ret, "QColor*");
566 return 1;
568 int LuaBinder< QColor >::__LuaWrapCall__new__OverloadedVersion__3 (lua_State *L) {
569 int arg1 = lua_tointeger(L, 1);
570 int arg2 = lua_tointeger(L, 2);
571 int arg3 = lua_tointeger(L, 3);
572 int arg4 = lua_isnumber(L, 4)?lua_tointeger(L, 4):static_cast< int >(255);
573 QColor * ret = new LuaBinder< QColor >(L, arg1, arg2, arg3, arg4);
574 lqtL_passudata(L, ret, "QColor*");
575 return 1;
577 int LuaBinder< QColor >::__LuaWrapCall__new__OverloadedVersion__4 (lua_State *L) {
578 unsigned int arg1 = lua_tointeger(L, 1);
579 QColor * ret = new LuaBinder< QColor >(L, arg1);
580 lqtL_passudata(L, ret, "QColor*");
581 return 1;
583 int LuaBinder< QColor >::__LuaWrapCall__new__OverloadedVersion__5 (lua_State *L) {
584 const QString& arg1 = QString::fromAscii(lua_tostring(L, 1), lua_objlen(L, 1));
585 QColor * ret = new LuaBinder< QColor >(L, arg1);
586 lqtL_passudata(L, ret, "QColor*");
587 return 1;
589 int LuaBinder< QColor >::__LuaWrapCall__new__OverloadedVersion__6 (lua_State *L) {
590 const char * arg1 = lua_tostring(L, 1);
591 QColor * ret = new LuaBinder< QColor >(L, arg1);
592 lqtL_passudata(L, ret, "QColor*");
593 return 1;
595 int LuaBinder< QColor >::__LuaWrapCall__new__OverloadedVersion__7 (lua_State *L) {
596 const QColor& arg1 = **static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
597 QColor * ret = new LuaBinder< QColor >(L, arg1);
598 lqtL_passudata(L, ret, "QColor*");
599 return 1;
601 int LuaBinder< QColor >::__LuaWrapCall__new__OverloadedVersion__8 (lua_State *L) {
602 QColor::Spec arg1 = static_cast<QColor::Spec>(lqtL_toenum(L, 1, "QColor::Spec"));
603 QColor * ret = new LuaBinder< QColor >(L, arg1);
604 lqtL_passudata(L, ret, "QColor*");
605 return 1;
607 int LuaBinder< QColor >::__LuaWrapCall__new (lua_State *L) {
608 int score[9];
609 const int premium = 11+lua_gettop(L);
610 score[1] = 0;
611 score[2] = 0;
612 if (lqtL_isenum(L, 1, "Qt::GlobalColor")) {
613 score[2] += premium;
614 } else if (false) {
615 score[2] += premium-1; // table: 0x1f38060;
616 } else {
617 score[2] -= premium*premium;
619 score[3] = 0;
620 if (lua_isnumber(L, 1)) {
621 score[3] += premium;
622 } else if (false) {
623 score[3] += premium-1; // table: 0x1f38ab0;
624 } else {
625 score[3] -= premium*premium;
627 if (lua_isnumber(L, 2)) {
628 score[3] += premium;
629 } else if (false) {
630 score[3] += premium-1; // table: 0x1f38fc0;
631 } else {
632 score[3] -= premium*premium;
634 if (lua_isnumber(L, 3)) {
635 score[3] += premium;
636 } else if (false) {
637 score[3] += premium-1; // table: 0x1f39370;
638 } else {
639 score[3] -= premium*premium;
641 if (lua_isnumber(L, 4)) {
642 score[3] += premium;
643 } else if (true) {
644 score[3] += premium-1; // table: 0x1f397a0;
645 } else {
646 score[3] -= premium*premium;
648 score[4] = 0;
649 if (lua_isnumber(L, 1)) {
650 score[4] += premium;
651 } else if (false) {
652 score[4] += premium-1; // table: 0x1f3a050;
653 } else {
654 score[4] -= premium*premium;
656 score[5] = 0;
657 if ((lua_type(L, 1)==LUA_TSTRING)) {
658 score[5] += premium;
659 } else if (false) {
660 score[5] += premium-1; // table: 0x1f3aac0;
661 } else {
662 score[5] -= premium*premium;
664 score[6] = 0;
665 if ((lua_type(L, 1)==LUA_TSTRING)) {
666 score[6] += premium;
667 } else if (false) {
668 score[6] += premium-1; // table: 0x1f3b4e0;
669 } else {
670 score[6] -= premium*premium;
672 score[7] = 0;
673 if (lqtL_testudata(L, 1, "QColor*")) {
674 score[7] += premium;
675 } else if (false) {
676 score[7] += premium-1; // table: 0x1f3bf20;
677 } else {
678 score[7] -= premium*premium;
680 score[8] = 0;
681 if (lqtL_isenum(L, 1, "QColor::Spec")) {
682 score[8] += premium;
683 } else if (false) {
684 score[8] += premium-1; // table: 0x1f3c970;
685 } else {
686 score[8] -= premium*premium;
688 int best = 1;
689 for (int i=1;i<=8;i++) {
690 if (score[best] < score[i]) { best = i; }
692 switch (best) {
693 case 1: return __LuaWrapCall__new__OverloadedVersion__1(L); break;
694 case 2: return __LuaWrapCall__new__OverloadedVersion__2(L); break;
695 case 3: return __LuaWrapCall__new__OverloadedVersion__3(L); break;
696 case 4: return __LuaWrapCall__new__OverloadedVersion__4(L); break;
697 case 5: return __LuaWrapCall__new__OverloadedVersion__5(L); break;
698 case 6: return __LuaWrapCall__new__OverloadedVersion__6(L); break;
699 case 7: return __LuaWrapCall__new__OverloadedVersion__7(L); break;
700 case 8: return __LuaWrapCall__new__OverloadedVersion__8(L); break;
702 lua_pushstring(L, "no overload of function __LuaWrapCall__new matching arguments");
703 lua_error(L);
704 return 0;
706 int LuaBinder< QColor >::__LuaWrapCall__saturation (lua_State *L) {
707 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
708 if (__lua__obj==0) {
709 lua_pushstring(L, "trying to reference deleted pointer");
710 lua_error(L);
711 return 0;
713 int ret = __lua__obj->QColor::saturation();
714 lua_pushinteger(L, ret);
715 return 1;
717 int LuaBinder< QColor >::__LuaWrapCall__alpha (lua_State *L) {
718 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
719 if (__lua__obj==0) {
720 lua_pushstring(L, "trying to reference deleted pointer");
721 lua_error(L);
722 return 0;
724 int ret = __lua__obj->QColor::alpha();
725 lua_pushinteger(L, ret);
726 return 1;
728 int LuaBinder< QColor >::__LuaWrapCall__getHsv (lua_State *L) {
729 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
730 if (__lua__obj==0) {
731 lua_pushstring(L, "trying to reference deleted pointer");
732 lua_error(L);
733 return 0;
735 int * arg1 = static_cast<int *>(lua_touserdata(L, 2));
736 int * arg2 = static_cast<int *>(lua_touserdata(L, 3));
737 int * arg3 = static_cast<int *>(lua_touserdata(L, 4));
738 int * arg4 = lua_isnumber(L, 5)?static_cast<int *>(lua_touserdata(L, 5)):static_cast< int * >(0);
739 __lua__obj->QColor::getHsv(arg1, arg2, arg3, arg4);
740 return 0;
742 int LuaBinder< QColor >::__LuaWrapCall__setRgbF (lua_State *L) {
743 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
744 if (__lua__obj==0) {
745 lua_pushstring(L, "trying to reference deleted pointer");
746 lua_error(L);
747 return 0;
749 double arg1 = lua_tonumber(L, 2);
750 double arg2 = lua_tonumber(L, 3);
751 double arg3 = lua_tonumber(L, 4);
752 double arg4 = lua_isnumber(L, 5)?lua_tonumber(L, 5):static_cast< double >(1.0e+0);
753 __lua__obj->QColor::setRgbF(arg1, arg2, arg3, arg4);
754 return 0;
756 int LuaBinder< QColor >::__LuaWrapCall__magenta (lua_State *L) {
757 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
758 if (__lua__obj==0) {
759 lua_pushstring(L, "trying to reference deleted pointer");
760 lua_error(L);
761 return 0;
763 int ret = __lua__obj->QColor::magenta();
764 lua_pushinteger(L, ret);
765 return 1;
767 int LuaBinder< QColor >::__LuaWrapCall__light (lua_State *L) {
768 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
769 if (__lua__obj==0) {
770 lua_pushstring(L, "trying to reference deleted pointer");
771 lua_error(L);
772 return 0;
774 int arg1 = lua_isnumber(L, 2)?lua_tointeger(L, 2):static_cast< int >(150);
775 QColor ret = __lua__obj->QColor::light(arg1);
776 lqtL_passudata(L, new QColor(ret), "QColor*");
777 return 1;
779 int LuaBinder< QColor >::__LuaWrapCall__hue (lua_State *L) {
780 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
781 if (__lua__obj==0) {
782 lua_pushstring(L, "trying to reference deleted pointer");
783 lua_error(L);
784 return 0;
786 int ret = __lua__obj->QColor::hue();
787 lua_pushinteger(L, ret);
788 return 1;
790 int LuaBinder< QColor >::__LuaWrapCall__setHsvF (lua_State *L) {
791 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
792 if (__lua__obj==0) {
793 lua_pushstring(L, "trying to reference deleted pointer");
794 lua_error(L);
795 return 0;
797 double arg1 = lua_tonumber(L, 2);
798 double arg2 = lua_tonumber(L, 3);
799 double arg3 = lua_tonumber(L, 4);
800 double arg4 = lua_isnumber(L, 5)?lua_tonumber(L, 5):static_cast< double >(1.0e+0);
801 __lua__obj->QColor::setHsvF(arg1, arg2, arg3, arg4);
802 return 0;
804 int LuaBinder< QColor >::__LuaWrapCall__blue (lua_State *L) {
805 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
806 if (__lua__obj==0) {
807 lua_pushstring(L, "trying to reference deleted pointer");
808 lua_error(L);
809 return 0;
811 int ret = __lua__obj->QColor::blue();
812 lua_pushinteger(L, ret);
813 return 1;
815 int LuaBinder< QColor >::__LuaWrapCall__yellowF (lua_State *L) {
816 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
817 if (__lua__obj==0) {
818 lua_pushstring(L, "trying to reference deleted pointer");
819 lua_error(L);
820 return 0;
822 double ret = __lua__obj->QColor::yellowF();
823 lua_pushnumber(L, ret);
824 return 1;
826 int LuaBinder< QColor >::__LuaWrapCall__setRedF (lua_State *L) {
827 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
828 if (__lua__obj==0) {
829 lua_pushstring(L, "trying to reference deleted pointer");
830 lua_error(L);
831 return 0;
833 double arg1 = lua_tonumber(L, 2);
834 __lua__obj->QColor::setRedF(arg1);
835 return 0;
837 int LuaBinder< QColor >::__LuaWrapCall__spec (lua_State *L) {
838 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
839 if (__lua__obj==0) {
840 lua_pushstring(L, "trying to reference deleted pointer");
841 lua_error(L);
842 return 0;
844 QColor::Spec ret = __lua__obj->QColor::spec();
845 lqtL_pushenum(L, ret, "QColor::Spec");
846 return 1;
848 int LuaBinder< QColor >::__LuaWrapCall__saturationF (lua_State *L) {
849 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
850 if (__lua__obj==0) {
851 lua_pushstring(L, "trying to reference deleted pointer");
852 lua_error(L);
853 return 0;
855 double ret = __lua__obj->QColor::saturationF();
856 lua_pushnumber(L, ret);
857 return 1;
859 int LuaBinder< QColor >::__LuaWrapCall__dark (lua_State *L) {
860 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
861 if (__lua__obj==0) {
862 lua_pushstring(L, "trying to reference deleted pointer");
863 lua_error(L);
864 return 0;
866 int arg1 = lua_isnumber(L, 2)?lua_tointeger(L, 2):static_cast< int >(200);
867 QColor ret = __lua__obj->QColor::dark(arg1);
868 lqtL_passudata(L, new QColor(ret), "QColor*");
869 return 1;
871 int LuaBinder< QColor >::__LuaWrapCall__blackF (lua_State *L) {
872 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
873 if (__lua__obj==0) {
874 lua_pushstring(L, "trying to reference deleted pointer");
875 lua_error(L);
876 return 0;
878 double ret = __lua__obj->QColor::blackF();
879 lua_pushnumber(L, ret);
880 return 1;
882 int LuaBinder< QColor >::__LuaWrapCall__blueF (lua_State *L) {
883 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
884 if (__lua__obj==0) {
885 lua_pushstring(L, "trying to reference deleted pointer");
886 lua_error(L);
887 return 0;
889 double ret = __lua__obj->QColor::blueF();
890 lua_pushnumber(L, ret);
891 return 1;
893 int LuaBinder< QColor >::__LuaWrapCall__red (lua_State *L) {
894 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
895 if (__lua__obj==0) {
896 lua_pushstring(L, "trying to reference deleted pointer");
897 lua_error(L);
898 return 0;
900 int ret = __lua__obj->QColor::red();
901 lua_pushinteger(L, ret);
902 return 1;
904 int LuaBinder< QColor >::__LuaWrapCall__fromRgb__OverloadedVersion__1 (lua_State *L) {
905 unsigned int arg1 = lua_tointeger(L, 1);
906 QColor ret = QColor::fromRgb(arg1);
907 lqtL_passudata(L, new QColor(ret), "QColor*");
908 return 1;
910 int LuaBinder< QColor >::__LuaWrapCall__fromRgb__OverloadedVersion__2 (lua_State *L) {
911 int arg1 = lua_tointeger(L, 1);
912 int arg2 = lua_tointeger(L, 2);
913 int arg3 = lua_tointeger(L, 3);
914 int arg4 = lua_isnumber(L, 4)?lua_tointeger(L, 4):static_cast< int >(255);
915 QColor ret = QColor::fromRgb(arg1, arg2, arg3, arg4);
916 lqtL_passudata(L, new QColor(ret), "QColor*");
917 return 1;
919 int LuaBinder< QColor >::__LuaWrapCall__fromRgb (lua_State *L) {
920 int score[3];
921 const int premium = 11+lua_gettop(L);
922 score[1] = 0;
923 if (lua_isnumber(L, 1)) {
924 score[1] += premium;
925 } else if (false) {
926 score[1] += premium-1; // table: 0x1f642e0;
927 } else {
928 score[1] -= premium*premium;
930 score[2] = 0;
931 if (lua_isnumber(L, 1)) {
932 score[2] += premium;
933 } else if (false) {
934 score[2] += premium-1; // table: 0x1f65760;
935 } else {
936 score[2] -= premium*premium;
938 if (lua_isnumber(L, 2)) {
939 score[2] += premium;
940 } else if (false) {
941 score[2] += premium-1; // table: 0x1f65c70;
942 } else {
943 score[2] -= premium*premium;
945 if (lua_isnumber(L, 3)) {
946 score[2] += premium;
947 } else if (false) {
948 score[2] += premium-1; // table: 0x1f66020;
949 } else {
950 score[2] -= premium*premium;
952 if (lua_isnumber(L, 4)) {
953 score[2] += premium;
954 } else if (true) {
955 score[2] += premium-1; // table: 0x1f66450;
956 } else {
957 score[2] -= premium*premium;
959 int best = 1;
960 for (int i=1;i<=2;i++) {
961 if (score[best] < score[i]) { best = i; }
963 switch (best) {
964 case 1: return __LuaWrapCall__fromRgb__OverloadedVersion__1(L); break;
965 case 2: return __LuaWrapCall__fromRgb__OverloadedVersion__2(L); break;
967 lua_pushstring(L, "no overload of function __LuaWrapCall__fromRgb matching arguments");
968 lua_error(L);
969 return 0;
971 int LuaBinder< QColor >::__LuaWrapCall__fromRgba (lua_State *L) {
972 unsigned int arg1 = lua_tointeger(L, 1);
973 QColor ret = QColor::fromRgba(arg1);
974 lqtL_passudata(L, new QColor(ret), "QColor*");
975 return 1;
977 int LuaBinder< QColor >::__LuaWrapCall__fromHsv (lua_State *L) {
978 int arg1 = lua_tointeger(L, 1);
979 int arg2 = lua_tointeger(L, 2);
980 int arg3 = lua_tointeger(L, 3);
981 int arg4 = lua_isnumber(L, 4)?lua_tointeger(L, 4):static_cast< int >(255);
982 QColor ret = QColor::fromHsv(arg1, arg2, arg3, arg4);
983 lqtL_passudata(L, new QColor(ret), "QColor*");
984 return 1;
986 int LuaBinder< QColor >::__LuaWrapCall__getRgbF (lua_State *L) {
987 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
988 if (__lua__obj==0) {
989 lua_pushstring(L, "trying to reference deleted pointer");
990 lua_error(L);
991 return 0;
993 double * arg1 = static_cast<double *>(lua_touserdata(L, 2));
994 double * arg2 = static_cast<double *>(lua_touserdata(L, 3));
995 double * arg3 = static_cast<double *>(lua_touserdata(L, 4));
996 double * arg4 = lua_isnumber(L, 5)?static_cast<double *>(lua_touserdata(L, 5)):static_cast< double * >(0);
997 __lua__obj->QColor::getRgbF(arg1, arg2, arg3, arg4);
998 return 0;
1000 int LuaBinder< QColor >::__LuaWrapCall__getHsvF (lua_State *L) {
1001 QColor *& __lua__obj = *static_cast<QColor**>(lqtL_checkudata(L, 1, "QColor*"));
1002 if (__lua__obj==0) {
1003 lua_pushstring(L, "trying to reference deleted pointer");
1004 lua_error(L);
1005 return 0;
1007 double * arg1 = static_cast<double *>(lua_touserdata(L, 2));
1008 double * arg2 = static_cast<double *>(lua_touserdata(L, 3));
1009 double * arg3 = static_cast<double *>(lua_touserdata(L, 4));
1010 double * arg4 = lua_isnumber(L, 5)?static_cast<double *>(lua_touserdata(L, 5)):static_cast< double * >(0);
1011 __lua__obj->QColor::getHsvF(arg1, arg2, arg3, arg4);
1012 return 0;
1014 int LuaBinder< QColor >::lqt_pushenum_Spec (lua_State *L) {
1015 int enum_table = 0;
1016 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1017 if (!lua_istable(L, -1)) {
1018 lua_pop(L, 1);
1019 lua_newtable(L);
1020 lua_pushvalue(L, -1);
1021 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1023 lua_newtable(L);
1024 enum_table = lua_gettop(L);
1025 lua_pushstring(L, "Invalid");
1026 lua_rawseti(L, enum_table, 0);
1027 lua_pushinteger(L, 0);
1028 lua_setfield(L, enum_table, "Invalid");
1029 lua_pushstring(L, "Rgb");
1030 lua_rawseti(L, enum_table, 1);
1031 lua_pushinteger(L, 1);
1032 lua_setfield(L, enum_table, "Rgb");
1033 lua_pushstring(L, "Hsv");
1034 lua_rawseti(L, enum_table, 2);
1035 lua_pushinteger(L, 2);
1036 lua_setfield(L, enum_table, "Hsv");
1037 lua_pushstring(L, "Cmyk");
1038 lua_rawseti(L, enum_table, 3);
1039 lua_pushinteger(L, 3);
1040 lua_setfield(L, enum_table, "Cmyk");
1041 lua_pushcfunction(L, LuaBinder< QColor >::lqt_pushenum_Spec_QFLAGS_CREATOR);
1042 lua_setfield(L, enum_table, "QFlags");
1043 lua_pushvalue(L, -1);
1044 lua_setfield(L, -3, "QColor::Spec");
1045 lua_remove(L, -2);
1046 return 1;
1048 int LuaBinder< QColor >::lqt_pushenum_Spec_QFLAGS_CREATOR (lua_State *L) {
1049 int argn = lua_gettop(L);
1050 int i = 0;
1051 void *p = lua_newuserdata(L, sizeof(QFlags<QColor::Spec>*) + sizeof(QFlags<QColor::Spec>));
1052 QFlags<QColor::Spec> *fl = static_cast<QFlags<QColor::Spec>*>( static_cast<void*>(&static_cast<QFlags<QColor::Spec>**>(p)[1]) );
1053 *(void**)p = fl;
1054 for (i=1;i<=argn;i++) {
1055 *fl |= static_cast<QColor::Spec>(lqtL_toenum(L, i, "QColor::Spec"));
1057 if (luaL_newmetatable(L, "QFlags<QColor::Spec>*")) {
1058 lua_pushstring(L, "QFlags<QColor::Spec>*");
1059 lua_setfield(L, -2, "__qtype");
1061 lua_setmetatable(L, -2);
1062 return 1;
1064 int luaopen_QColor (lua_State *L) {
1065 if (luaL_newmetatable(L, "QColor*")) {
1066 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__cyan);
1067 lua_setfield(L, -2, "cyan");
1068 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__fromCmyk);
1069 lua_setfield(L, -2, "fromCmyk");
1070 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__cyanF);
1071 lua_setfield(L, -2, "cyanF");
1072 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__redF);
1073 lua_setfield(L, -2, "redF");
1074 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__setCmyk);
1075 lua_setfield(L, -2, "setCmyk");
1076 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__isValid);
1077 lua_setfield(L, -2, "isValid");
1078 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__black);
1079 lua_setfield(L, -2, "black");
1080 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__getCmyk);
1081 lua_setfield(L, -2, "getCmyk");
1082 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__yellow);
1083 lua_setfield(L, -2, "yellow");
1084 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__setGreen);
1085 lua_setfield(L, -2, "setGreen");
1086 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__setAlpha);
1087 lua_setfield(L, -2, "setAlpha");
1088 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__convertTo);
1089 lua_setfield(L, -2, "convertTo");
1090 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__setHsv);
1091 lua_setfield(L, -2, "setHsv");
1092 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__toCmyk);
1093 lua_setfield(L, -2, "toCmyk");
1094 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__hueF);
1095 lua_setfield(L, -2, "hueF");
1096 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__fromCmykF);
1097 lua_setfield(L, -2, "fromCmykF");
1098 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__darker);
1099 lua_setfield(L, -2, "darker");
1100 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__setRgba);
1101 lua_setfield(L, -2, "setRgba");
1102 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__rgb);
1103 lua_setfield(L, -2, "rgb");
1104 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__setGreenF);
1105 lua_setfield(L, -2, "setGreenF");
1106 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__green);
1107 lua_setfield(L, -2, "green");
1108 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__valueF);
1109 lua_setfield(L, -2, "valueF");
1110 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__setNamedColor);
1111 lua_setfield(L, -2, "setNamedColor");
1112 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__fromHsvF);
1113 lua_setfield(L, -2, "fromHsvF");
1114 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__fromRgbF);
1115 lua_setfield(L, -2, "fromRgbF");
1116 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__setRed);
1117 lua_setfield(L, -2, "setRed");
1118 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__value);
1119 lua_setfield(L, -2, "value");
1120 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__lighter);
1121 lua_setfield(L, -2, "lighter");
1122 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__rgba);
1123 lua_setfield(L, -2, "rgba");
1124 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__magentaF);
1125 lua_setfield(L, -2, "magentaF");
1126 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__getCmykF);
1127 lua_setfield(L, -2, "getCmykF");
1128 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__setBlueF);
1129 lua_setfield(L, -2, "setBlueF");
1130 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__colorNames);
1131 lua_setfield(L, -2, "colorNames");
1132 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__getRgb);
1133 lua_setfield(L, -2, "getRgb");
1134 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__name);
1135 lua_setfield(L, -2, "name");
1136 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__setRgb);
1137 lua_setfield(L, -2, "setRgb");
1138 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__setAlphaF);
1139 lua_setfield(L, -2, "setAlphaF");
1140 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__setCmykF);
1141 lua_setfield(L, -2, "setCmykF");
1142 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__setBlue);
1143 lua_setfield(L, -2, "setBlue");
1144 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__greenF);
1145 lua_setfield(L, -2, "greenF");
1146 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__toHsv);
1147 lua_setfield(L, -2, "toHsv");
1148 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__alphaF);
1149 lua_setfield(L, -2, "alphaF");
1150 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__toRgb);
1151 lua_setfield(L, -2, "toRgb");
1152 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__new);
1153 lua_setfield(L, -2, "new");
1154 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__saturation);
1155 lua_setfield(L, -2, "saturation");
1156 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__alpha);
1157 lua_setfield(L, -2, "alpha");
1158 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__getHsv);
1159 lua_setfield(L, -2, "getHsv");
1160 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__setRgbF);
1161 lua_setfield(L, -2, "setRgbF");
1162 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__magenta);
1163 lua_setfield(L, -2, "magenta");
1164 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__light);
1165 lua_setfield(L, -2, "light");
1166 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__hue);
1167 lua_setfield(L, -2, "hue");
1168 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__setHsvF);
1169 lua_setfield(L, -2, "setHsvF");
1170 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__blue);
1171 lua_setfield(L, -2, "blue");
1172 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__yellowF);
1173 lua_setfield(L, -2, "yellowF");
1174 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__setRedF);
1175 lua_setfield(L, -2, "setRedF");
1176 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__spec);
1177 lua_setfield(L, -2, "spec");
1178 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__saturationF);
1179 lua_setfield(L, -2, "saturationF");
1180 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__dark);
1181 lua_setfield(L, -2, "dark");
1182 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__blackF);
1183 lua_setfield(L, -2, "blackF");
1184 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__blueF);
1185 lua_setfield(L, -2, "blueF");
1186 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__red);
1187 lua_setfield(L, -2, "red");
1188 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__fromRgb);
1189 lua_setfield(L, -2, "fromRgb");
1190 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__fromRgba);
1191 lua_setfield(L, -2, "fromRgba");
1192 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__fromHsv);
1193 lua_setfield(L, -2, "fromHsv");
1194 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__getRgbF);
1195 lua_setfield(L, -2, "getRgbF");
1196 lua_pushcfunction(L, LuaBinder< QColor >::__LuaWrapCall__getHsvF);
1197 lua_setfield(L, -2, "getHsvF");
1198 LuaBinder< QColor >::lqt_pushenum_Spec(L);
1199 lua_setfield(L, -2, "Spec");
1200 lua_newtable(L);
1201 lua_setfield(L, -2, "__base");
1202 lua_pushcfunction(L, lqtL_newindex);
1203 lua_setfield(L, -2, "__newindex");
1204 lua_pushcfunction(L, lqtL_index);
1205 lua_setfield(L, -2, "__index");
1206 lua_pushcfunction(L, lqtL_gc);
1207 lua_setfield(L, -2, "__gc");
1208 lua_pushstring(L, "QColor");
1209 lua_setfield(L, -2, "__qtype");
1210 lua_setglobal(L, "QColor");
1211 } else {
1212 lua_pop(L, 1);
1214 return 0;