1 #include "lqt_bind_QTextCharFormat.hpp"
3 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setFontFamily (lua_State
*L
) {
4 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
6 lua_pushstring(L
, "trying to reference deleted pointer");
10 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
11 __lua__obj
->QTextCharFormat::setFontFamily(arg1
);
14 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setFontItalic (lua_State
*L
) {
15 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
17 lua_pushstring(L
, "trying to reference deleted pointer");
21 bool arg1
= (bool)lua_toboolean(L
, 2);
22 __lua__obj
->QTextCharFormat::setFontItalic(arg1
);
25 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setUnderlineColor (lua_State
*L
) {
26 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
28 lua_pushstring(L
, "trying to reference deleted pointer");
32 const QColor
& arg1
= **static_cast<QColor
**>(lqtL_checkudata(L
, 2, "QColor*"));
33 __lua__obj
->QTextCharFormat::setUnderlineColor(arg1
);
36 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__fontFamily (lua_State
*L
) {
37 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
39 lua_pushstring(L
, "trying to reference deleted pointer");
43 QString ret
= __lua__obj
->QTextCharFormat::fontFamily();
44 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
47 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__fontItalic (lua_State
*L
) {
48 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
50 lua_pushstring(L
, "trying to reference deleted pointer");
54 bool ret
= __lua__obj
->QTextCharFormat::fontItalic();
55 lua_pushboolean(L
, ret
);
58 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__underlineColor (lua_State
*L
) {
59 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
61 lua_pushstring(L
, "trying to reference deleted pointer");
65 QColor ret
= __lua__obj
->QTextCharFormat::underlineColor();
66 lqtL_passudata(L
, new QColor(ret
), "QColor*");
69 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__tableCellRowSpan (lua_State
*L
) {
70 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
72 lua_pushstring(L
, "trying to reference deleted pointer");
76 int ret
= __lua__obj
->QTextCharFormat::tableCellRowSpan();
77 lua_pushinteger(L
, ret
);
80 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__fontWeight (lua_State
*L
) {
81 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
83 lua_pushstring(L
, "trying to reference deleted pointer");
87 int ret
= __lua__obj
->QTextCharFormat::fontWeight();
88 lua_pushinteger(L
, ret
);
91 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__isValid (lua_State
*L
) {
92 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
94 lua_pushstring(L
, "trying to reference deleted pointer");
98 bool ret
= __lua__obj
->QTextCharFormat::isValid();
99 lua_pushboolean(L
, ret
);
102 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__fontOverline (lua_State
*L
) {
103 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
105 lua_pushstring(L
, "trying to reference deleted pointer");
109 bool ret
= __lua__obj
->QTextCharFormat::fontOverline();
110 lua_pushboolean(L
, ret
);
113 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__fontPointSize (lua_State
*L
) {
114 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
116 lua_pushstring(L
, "trying to reference deleted pointer");
120 double ret
= __lua__obj
->QTextCharFormat::fontPointSize();
121 lua_pushnumber(L
, ret
);
124 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setTableCellRowSpan (lua_State
*L
) {
125 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
127 lua_pushstring(L
, "trying to reference deleted pointer");
131 int arg1
= lua_tointeger(L
, 2);
132 __lua__obj
->QTextCharFormat::setTableCellRowSpan(arg1
);
135 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__font (lua_State
*L
) {
136 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
138 lua_pushstring(L
, "trying to reference deleted pointer");
142 QFont ret
= __lua__obj
->QTextCharFormat::font();
143 lqtL_passudata(L
, new QFont(ret
), "QFont*");
146 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setTableCellColumnSpan (lua_State
*L
) {
147 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
149 lua_pushstring(L
, "trying to reference deleted pointer");
153 int arg1
= lua_tointeger(L
, 2);
154 __lua__obj
->QTextCharFormat::setTableCellColumnSpan(arg1
);
157 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setAnchorHref (lua_State
*L
) {
158 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
160 lua_pushstring(L
, "trying to reference deleted pointer");
164 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
165 __lua__obj
->QTextCharFormat::setAnchorHref(arg1
);
168 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__anchorHref (lua_State
*L
) {
169 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
171 lua_pushstring(L
, "trying to reference deleted pointer");
175 QString ret
= __lua__obj
->QTextCharFormat::anchorHref();
176 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
179 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__fontFixedPitch (lua_State
*L
) {
180 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
182 lua_pushstring(L
, "trying to reference deleted pointer");
186 bool ret
= __lua__obj
->QTextCharFormat::fontFixedPitch();
187 lua_pushboolean(L
, ret
);
190 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setFontPointSize (lua_State
*L
) {
191 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
193 lua_pushstring(L
, "trying to reference deleted pointer");
197 double arg1
= lua_tonumber(L
, 2);
198 __lua__obj
->QTextCharFormat::setFontPointSize(arg1
);
201 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__verticalAlignment (lua_State
*L
) {
202 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
204 lua_pushstring(L
, "trying to reference deleted pointer");
208 QTextCharFormat::VerticalAlignment ret
= __lua__obj
->QTextCharFormat::verticalAlignment();
209 lqtL_pushenum(L
, ret
, "QTextCharFormat::VerticalAlignment");
212 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setTextOutline (lua_State
*L
) {
213 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
215 lua_pushstring(L
, "trying to reference deleted pointer");
219 const QPen
& arg1
= **static_cast<QPen
**>(lqtL_checkudata(L
, 2, "QPen*"));
220 __lua__obj
->QTextCharFormat::setTextOutline(arg1
);
223 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__underlineStyle (lua_State
*L
) {
224 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
226 lua_pushstring(L
, "trying to reference deleted pointer");
230 QTextCharFormat::UnderlineStyle ret
= __lua__obj
->QTextCharFormat::underlineStyle();
231 lqtL_pushenum(L
, ret
, "QTextCharFormat::UnderlineStyle");
234 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setFontUnderline (lua_State
*L
) {
235 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
237 lua_pushstring(L
, "trying to reference deleted pointer");
241 bool arg1
= (bool)lua_toboolean(L
, 2);
242 __lua__obj
->QTextCharFormat::setFontUnderline(arg1
);
245 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__isAnchor (lua_State
*L
) {
246 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
248 lua_pushstring(L
, "trying to reference deleted pointer");
252 bool ret
= __lua__obj
->QTextCharFormat::isAnchor();
253 lua_pushboolean(L
, ret
);
256 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__textOutline (lua_State
*L
) {
257 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
259 lua_pushstring(L
, "trying to reference deleted pointer");
263 QPen ret
= __lua__obj
->QTextCharFormat::textOutline();
264 lqtL_passudata(L
, new QPen(ret
), "QPen*");
267 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setFontStrikeOut (lua_State
*L
) {
268 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
270 lua_pushstring(L
, "trying to reference deleted pointer");
274 bool arg1
= (bool)lua_toboolean(L
, 2);
275 __lua__obj
->QTextCharFormat::setFontStrikeOut(arg1
);
278 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setFontWeight (lua_State
*L
) {
279 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
281 lua_pushstring(L
, "trying to reference deleted pointer");
285 int arg1
= lua_tointeger(L
, 2);
286 __lua__obj
->QTextCharFormat::setFontWeight(arg1
);
289 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setFontFixedPitch (lua_State
*L
) {
290 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
292 lua_pushstring(L
, "trying to reference deleted pointer");
296 bool arg1
= (bool)lua_toboolean(L
, 2);
297 __lua__obj
->QTextCharFormat::setFontFixedPitch(arg1
);
300 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__delete (lua_State
*L
) {
301 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
303 lua_pushstring(L
, "trying to reference deleted pointer");
311 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__anchorName (lua_State
*L
) {
312 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
314 lua_pushstring(L
, "trying to reference deleted pointer");
318 QString ret
= __lua__obj
->QTextCharFormat::anchorName();
319 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
322 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setAnchor (lua_State
*L
) {
323 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
325 lua_pushstring(L
, "trying to reference deleted pointer");
329 bool arg1
= (bool)lua_toboolean(L
, 2);
330 __lua__obj
->QTextCharFormat::setAnchor(arg1
);
333 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setUnderlineStyle (lua_State
*L
) {
334 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
336 lua_pushstring(L
, "trying to reference deleted pointer");
340 QTextCharFormat::UnderlineStyle arg1
= static_cast<QTextCharFormat::UnderlineStyle
>(lqtL_toenum(L
, 2, "QTextCharFormat::UnderlineStyle"));
341 __lua__obj
->QTextCharFormat::setUnderlineStyle(arg1
);
344 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setToolTip (lua_State
*L
) {
345 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
347 lua_pushstring(L
, "trying to reference deleted pointer");
351 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
352 __lua__obj
->QTextCharFormat::setToolTip(arg1
);
355 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setAnchorName (lua_State
*L
) {
356 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
358 lua_pushstring(L
, "trying to reference deleted pointer");
362 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
363 __lua__obj
->QTextCharFormat::setAnchorName(arg1
);
366 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setFontOverline (lua_State
*L
) {
367 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
369 lua_pushstring(L
, "trying to reference deleted pointer");
373 bool arg1
= (bool)lua_toboolean(L
, 2);
374 __lua__obj
->QTextCharFormat::setFontOverline(arg1
);
377 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__tableCellColumnSpan (lua_State
*L
) {
378 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
380 lua_pushstring(L
, "trying to reference deleted pointer");
384 int ret
= __lua__obj
->QTextCharFormat::tableCellColumnSpan();
385 lua_pushinteger(L
, ret
);
388 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setVerticalAlignment (lua_State
*L
) {
389 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
391 lua_pushstring(L
, "trying to reference deleted pointer");
395 QTextCharFormat::VerticalAlignment arg1
= static_cast<QTextCharFormat::VerticalAlignment
>(lqtL_toenum(L
, 2, "QTextCharFormat::VerticalAlignment"));
396 __lua__obj
->QTextCharFormat::setVerticalAlignment(arg1
);
399 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__fontStrikeOut (lua_State
*L
) {
400 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
402 lua_pushstring(L
, "trying to reference deleted pointer");
406 bool ret
= __lua__obj
->QTextCharFormat::fontStrikeOut();
407 lua_pushboolean(L
, ret
);
410 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setAnchorNames (lua_State
*L
) {
411 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
413 lua_pushstring(L
, "trying to reference deleted pointer");
417 const QStringList
& arg1
= **static_cast<QStringList
**>(lqtL_checkudata(L
, 2, "QStringList*"));
418 __lua__obj
->QTextCharFormat::setAnchorNames(arg1
);
421 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__toolTip (lua_State
*L
) {
422 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
424 lua_pushstring(L
, "trying to reference deleted pointer");
428 QString ret
= __lua__obj
->QTextCharFormat::toolTip();
429 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
432 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setFont (lua_State
*L
) {
433 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
435 lua_pushstring(L
, "trying to reference deleted pointer");
439 const QFont
& arg1
= **static_cast<QFont
**>(lqtL_checkudata(L
, 2, "QFont*"));
440 __lua__obj
->QTextCharFormat::setFont(arg1
);
443 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__fontUnderline (lua_State
*L
) {
444 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
446 lua_pushstring(L
, "trying to reference deleted pointer");
450 bool ret
= __lua__obj
->QTextCharFormat::fontUnderline();
451 lua_pushboolean(L
, ret
);
454 int LuaBinder
< QTextCharFormat
>::__LuaWrapCall__anchorNames (lua_State
*L
) {
455 QTextCharFormat
*& __lua__obj
= *static_cast<QTextCharFormat
**>(lqtL_checkudata(L
, 1, "QTextCharFormat*"));
457 lua_pushstring(L
, "trying to reference deleted pointer");
461 QStringList ret
= __lua__obj
->QTextCharFormat::anchorNames();
462 lqtL_passudata(L
, new QStringList(ret
), "QStringList*");
465 int LuaBinder
< QTextCharFormat
>::lqt_pushenum_VerticalAlignment (lua_State
*L
) {
467 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
468 if (!lua_istable(L
, -1)) {
471 lua_pushvalue(L
, -1);
472 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
475 enum_table
= lua_gettop(L
);
476 lua_pushstring(L
, "AlignNormal");
477 lua_rawseti(L
, enum_table
, 0);
478 lua_pushinteger(L
, 0);
479 lua_setfield(L
, enum_table
, "AlignNormal");
480 lua_pushstring(L
, "AlignSuperScript");
481 lua_rawseti(L
, enum_table
, 1);
482 lua_pushinteger(L
, 1);
483 lua_setfield(L
, enum_table
, "AlignSuperScript");
484 lua_pushstring(L
, "AlignSubScript");
485 lua_rawseti(L
, enum_table
, 2);
486 lua_pushinteger(L
, 2);
487 lua_setfield(L
, enum_table
, "AlignSubScript");
488 lua_pushstring(L
, "AlignMiddle");
489 lua_rawseti(L
, enum_table
, 3);
490 lua_pushinteger(L
, 3);
491 lua_setfield(L
, enum_table
, "AlignMiddle");
492 lua_pushstring(L
, "AlignTop");
493 lua_rawseti(L
, enum_table
, 4);
494 lua_pushinteger(L
, 4);
495 lua_setfield(L
, enum_table
, "AlignTop");
496 lua_pushstring(L
, "AlignBottom");
497 lua_rawseti(L
, enum_table
, 5);
498 lua_pushinteger(L
, 5);
499 lua_setfield(L
, enum_table
, "AlignBottom");
500 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::lqt_pushenum_VerticalAlignment_QFLAGS_CREATOR
);
501 lua_setfield(L
, enum_table
, "QFlags");
502 lua_pushvalue(L
, -1);
503 lua_setfield(L
, -3, "QTextCharFormat::VerticalAlignment");
507 int LuaBinder
< QTextCharFormat
>::lqt_pushenum_VerticalAlignment_QFLAGS_CREATOR (lua_State
*L
) {
508 int argn
= lua_gettop(L
);
510 void *p
= lua_newuserdata(L
, sizeof(QFlags
<QTextCharFormat::VerticalAlignment
>*) + sizeof(QFlags
<QTextCharFormat::VerticalAlignment
>));
511 QFlags
<QTextCharFormat::VerticalAlignment
> *fl
= static_cast<QFlags
<QTextCharFormat::VerticalAlignment
>*>( static_cast<void*>(&static_cast<QFlags
<QTextCharFormat::VerticalAlignment
>**>(p
)[1]) );
513 for (i
=1;i
<=argn
;i
++) {
514 *fl
|= static_cast<QTextCharFormat::VerticalAlignment
>(lqtL_toenum(L
, i
, "QTextCharFormat::VerticalAlignment"));
516 if (luaL_newmetatable(L
, "QFlags<QTextCharFormat::VerticalAlignment>*")) {
517 lua_pushstring(L
, "QFlags<QTextCharFormat::VerticalAlignment>*");
518 lua_setfield(L
, -2, "__qtype");
520 lua_setmetatable(L
, -2);
523 int LuaBinder
< QTextCharFormat
>::lqt_pushenum_UnderlineStyle (lua_State
*L
) {
525 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
526 if (!lua_istable(L
, -1)) {
529 lua_pushvalue(L
, -1);
530 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
533 enum_table
= lua_gettop(L
);
534 lua_pushstring(L
, "NoUnderline");
535 lua_rawseti(L
, enum_table
, 0);
536 lua_pushinteger(L
, 0);
537 lua_setfield(L
, enum_table
, "NoUnderline");
538 lua_pushstring(L
, "SingleUnderline");
539 lua_rawseti(L
, enum_table
, 1);
540 lua_pushinteger(L
, 1);
541 lua_setfield(L
, enum_table
, "SingleUnderline");
542 lua_pushstring(L
, "DashUnderline");
543 lua_rawseti(L
, enum_table
, 2);
544 lua_pushinteger(L
, 2);
545 lua_setfield(L
, enum_table
, "DashUnderline");
546 lua_pushstring(L
, "DotLine");
547 lua_rawseti(L
, enum_table
, 3);
548 lua_pushinteger(L
, 3);
549 lua_setfield(L
, enum_table
, "DotLine");
550 lua_pushstring(L
, "DashDotLine");
551 lua_rawseti(L
, enum_table
, 4);
552 lua_pushinteger(L
, 4);
553 lua_setfield(L
, enum_table
, "DashDotLine");
554 lua_pushstring(L
, "DashDotDotLine");
555 lua_rawseti(L
, enum_table
, 5);
556 lua_pushinteger(L
, 5);
557 lua_setfield(L
, enum_table
, "DashDotDotLine");
558 lua_pushstring(L
, "WaveUnderline");
559 lua_rawseti(L
, enum_table
, 6);
560 lua_pushinteger(L
, 6);
561 lua_setfield(L
, enum_table
, "WaveUnderline");
562 lua_pushstring(L
, "SpellCheckUnderline");
563 lua_rawseti(L
, enum_table
, 7);
564 lua_pushinteger(L
, 7);
565 lua_setfield(L
, enum_table
, "SpellCheckUnderline");
566 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::lqt_pushenum_UnderlineStyle_QFLAGS_CREATOR
);
567 lua_setfield(L
, enum_table
, "QFlags");
568 lua_pushvalue(L
, -1);
569 lua_setfield(L
, -3, "QTextCharFormat::UnderlineStyle");
573 int LuaBinder
< QTextCharFormat
>::lqt_pushenum_UnderlineStyle_QFLAGS_CREATOR (lua_State
*L
) {
574 int argn
= lua_gettop(L
);
576 void *p
= lua_newuserdata(L
, sizeof(QFlags
<QTextCharFormat::UnderlineStyle
>*) + sizeof(QFlags
<QTextCharFormat::UnderlineStyle
>));
577 QFlags
<QTextCharFormat::UnderlineStyle
> *fl
= static_cast<QFlags
<QTextCharFormat::UnderlineStyle
>*>( static_cast<void*>(&static_cast<QFlags
<QTextCharFormat::UnderlineStyle
>**>(p
)[1]) );
579 for (i
=1;i
<=argn
;i
++) {
580 *fl
|= static_cast<QTextCharFormat::UnderlineStyle
>(lqtL_toenum(L
, i
, "QTextCharFormat::UnderlineStyle"));
582 if (luaL_newmetatable(L
, "QFlags<QTextCharFormat::UnderlineStyle>*")) {
583 lua_pushstring(L
, "QFlags<QTextCharFormat::UnderlineStyle>*");
584 lua_setfield(L
, -2, "__qtype");
586 lua_setmetatable(L
, -2);
589 int luaopen_QTextCharFormat (lua_State
*L
) {
590 if (luaL_newmetatable(L
, "QTextCharFormat*")) {
591 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setFontFamily
);
592 lua_setfield(L
, -2, "setFontFamily");
593 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setFontItalic
);
594 lua_setfield(L
, -2, "setFontItalic");
595 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setUnderlineColor
);
596 lua_setfield(L
, -2, "setUnderlineColor");
597 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__fontFamily
);
598 lua_setfield(L
, -2, "fontFamily");
599 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__fontItalic
);
600 lua_setfield(L
, -2, "fontItalic");
601 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__underlineColor
);
602 lua_setfield(L
, -2, "underlineColor");
603 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__tableCellRowSpan
);
604 lua_setfield(L
, -2, "tableCellRowSpan");
605 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__fontWeight
);
606 lua_setfield(L
, -2, "fontWeight");
607 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__isValid
);
608 lua_setfield(L
, -2, "isValid");
609 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__fontOverline
);
610 lua_setfield(L
, -2, "fontOverline");
611 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__fontPointSize
);
612 lua_setfield(L
, -2, "fontPointSize");
613 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setTableCellRowSpan
);
614 lua_setfield(L
, -2, "setTableCellRowSpan");
615 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__font
);
616 lua_setfield(L
, -2, "font");
617 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setTableCellColumnSpan
);
618 lua_setfield(L
, -2, "setTableCellColumnSpan");
619 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setAnchorHref
);
620 lua_setfield(L
, -2, "setAnchorHref");
621 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__anchorHref
);
622 lua_setfield(L
, -2, "anchorHref");
623 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__fontFixedPitch
);
624 lua_setfield(L
, -2, "fontFixedPitch");
625 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setFontPointSize
);
626 lua_setfield(L
, -2, "setFontPointSize");
627 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__verticalAlignment
);
628 lua_setfield(L
, -2, "verticalAlignment");
629 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setTextOutline
);
630 lua_setfield(L
, -2, "setTextOutline");
631 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__underlineStyle
);
632 lua_setfield(L
, -2, "underlineStyle");
633 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setFontUnderline
);
634 lua_setfield(L
, -2, "setFontUnderline");
635 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__isAnchor
);
636 lua_setfield(L
, -2, "isAnchor");
637 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__textOutline
);
638 lua_setfield(L
, -2, "textOutline");
639 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setFontStrikeOut
);
640 lua_setfield(L
, -2, "setFontStrikeOut");
641 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setFontWeight
);
642 lua_setfield(L
, -2, "setFontWeight");
643 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setFontFixedPitch
);
644 lua_setfield(L
, -2, "setFontFixedPitch");
645 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__delete
);
646 lua_setfield(L
, -2, "delete");
647 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__anchorName
);
648 lua_setfield(L
, -2, "anchorName");
649 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setAnchor
);
650 lua_setfield(L
, -2, "setAnchor");
651 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setUnderlineStyle
);
652 lua_setfield(L
, -2, "setUnderlineStyle");
653 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setToolTip
);
654 lua_setfield(L
, -2, "setToolTip");
655 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setAnchorName
);
656 lua_setfield(L
, -2, "setAnchorName");
657 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setFontOverline
);
658 lua_setfield(L
, -2, "setFontOverline");
659 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__tableCellColumnSpan
);
660 lua_setfield(L
, -2, "tableCellColumnSpan");
661 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setVerticalAlignment
);
662 lua_setfield(L
, -2, "setVerticalAlignment");
663 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__fontStrikeOut
);
664 lua_setfield(L
, -2, "fontStrikeOut");
665 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setAnchorNames
);
666 lua_setfield(L
, -2, "setAnchorNames");
667 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__toolTip
);
668 lua_setfield(L
, -2, "toolTip");
669 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__setFont
);
670 lua_setfield(L
, -2, "setFont");
671 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__fontUnderline
);
672 lua_setfield(L
, -2, "fontUnderline");
673 lua_pushcfunction(L
, LuaBinder
< QTextCharFormat
>::__LuaWrapCall__anchorNames
);
674 lua_setfield(L
, -2, "anchorNames");
675 LuaBinder
< QTextCharFormat
>::lqt_pushenum_VerticalAlignment(L
);
676 lua_setfield(L
, -2, "VerticalAlignment");
677 LuaBinder
< QTextCharFormat
>::lqt_pushenum_UnderlineStyle(L
);
678 lua_setfield(L
, -2, "UnderlineStyle");
680 lua_pushboolean(L
, 1);
681 lua_setfield(L
, -2, "QTextFormat*");
682 lua_setfield(L
, -2, "__base");
683 lua_pushcfunction(L
, lqtL_newindex
);
684 lua_setfield(L
, -2, "__newindex");
685 lua_pushcfunction(L
, lqtL_index
);
686 lua_setfield(L
, -2, "__index");
687 lua_pushcfunction(L
, lqtL_gc
);
688 lua_setfield(L
, -2, "__gc");
689 lua_pushstring(L
, "QTextCharFormat");
690 lua_setfield(L
, -2, "__qtype");
691 lua_setglobal(L
, "QTextCharFormat");