ruby-qt6-qtgui 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +2 -0
  3. data/.rubocop.yml +10 -0
  4. data/LICENSE +185 -0
  5. data/README.md +3 -0
  6. data/Rakefile +19 -0
  7. data/ext/qt6/qtgui/extconf.rb +16 -0
  8. data/ext/qt6/qtgui/qaction-rb.cpp +108 -0
  9. data/ext/qt6/qtgui/qaction-rb.hpp +4 -0
  10. data/ext/qt6/qtgui/qactiongroup-rb.cpp +45 -0
  11. data/ext/qt6/qtgui/qactiongroup-rb.hpp +4 -0
  12. data/ext/qt6/qtgui/qbrush-rb.cpp +39 -0
  13. data/ext/qt6/qtgui/qbrush-rb.hpp +4 -0
  14. data/ext/qt6/qtgui/qclipboard-rb.cpp +49 -0
  15. data/ext/qt6/qtgui/qclipboard-rb.hpp +4 -0
  16. data/ext/qt6/qtgui/qcolor-rb.cpp +122 -0
  17. data/ext/qt6/qtgui/qcolor-rb.hpp +4 -0
  18. data/ext/qt6/qtgui/qcursor-rb.cpp +32 -0
  19. data/ext/qt6/qtgui/qcursor-rb.hpp +4 -0
  20. data/ext/qt6/qtgui/qevent-rb.cpp +399 -0
  21. data/ext/qt6/qtgui/qevent-rb.hpp +4 -0
  22. data/ext/qt6/qtgui/qfilesystemmodel-rb.cpp +96 -0
  23. data/ext/qt6/qtgui/qfilesystemmodel-rb.hpp +4 -0
  24. data/ext/qt6/qtgui/qfont-rb.cpp +193 -0
  25. data/ext/qt6/qtgui/qfont-rb.hpp +4 -0
  26. data/ext/qt6/qtgui/qfontdatabase-rb.cpp +101 -0
  27. data/ext/qt6/qtgui/qfontdatabase-rb.hpp +4 -0
  28. data/ext/qt6/qtgui/qfontinfo-rb.cpp +34 -0
  29. data/ext/qt6/qtgui/qfontinfo-rb.hpp +4 -0
  30. data/ext/qt6/qtgui/qfontmetrics-rb.cpp +90 -0
  31. data/ext/qt6/qtgui/qfontmetrics-rb.hpp +4 -0
  32. data/ext/qt6/qtgui/qguiapplication-rb.cpp +94 -0
  33. data/ext/qt6/qtgui/qguiapplication-rb.hpp +4 -0
  34. data/ext/qt6/qtgui/qicon-rb.cpp +223 -0
  35. data/ext/qt6/qtgui/qicon-rb.hpp +4 -0
  36. data/ext/qt6/qtgui/qimage-rb.cpp +181 -0
  37. data/ext/qt6/qtgui/qimage-rb.hpp +4 -0
  38. data/ext/qt6/qtgui/qimagewriter-rb.cpp +56 -0
  39. data/ext/qt6/qtgui/qimagewriter-rb.hpp +4 -0
  40. data/ext/qt6/qtgui/qkeysequence-rb.cpp +121 -0
  41. data/ext/qt6/qtgui/qkeysequence-rb.hpp +4 -0
  42. data/ext/qt6/qtgui/qmovie-rb.cpp +78 -0
  43. data/ext/qt6/qtgui/qmovie-rb.hpp +4 -0
  44. data/ext/qt6/qtgui/qpagedpaintdevice-rb.cpp +31 -0
  45. data/ext/qt6/qtgui/qpagedpaintdevice-rb.hpp +4 -0
  46. data/ext/qt6/qtgui/qpaintdevice-rb.cpp +33 -0
  47. data/ext/qt6/qtgui/qpaintdevice-rb.hpp +4 -0
  48. data/ext/qt6/qtgui/qpainter-rb.cpp +285 -0
  49. data/ext/qt6/qtgui/qpainter-rb.hpp +4 -0
  50. data/ext/qt6/qtgui/qpainterpath-rb.cpp +100 -0
  51. data/ext/qt6/qtgui/qpainterpath-rb.hpp +4 -0
  52. data/ext/qt6/qtgui/qpainterpathstroker-rb.cpp +35 -0
  53. data/ext/qt6/qtgui/qpainterpathstroker-rb.hpp +4 -0
  54. data/ext/qt6/qtgui/qpalette-rb.cpp +96 -0
  55. data/ext/qt6/qtgui/qpalette-rb.hpp +4 -0
  56. data/ext/qt6/qtgui/qpen-rb.cpp +46 -0
  57. data/ext/qt6/qtgui/qpen-rb.hpp +4 -0
  58. data/ext/qt6/qtgui/qpicture-rb.cpp +33 -0
  59. data/ext/qt6/qtgui/qpicture-rb.hpp +4 -0
  60. data/ext/qt6/qtgui/qpixmap-rb.cpp +66 -0
  61. data/ext/qt6/qtgui/qpixmap-rb.hpp +4 -0
  62. data/ext/qt6/qtgui/qpolygon-rb.cpp +54 -0
  63. data/ext/qt6/qtgui/qpolygon-rb.hpp +4 -0
  64. data/ext/qt6/qtgui/qregion-rb.cpp +54 -0
  65. data/ext/qt6/qtgui/qregion-rb.hpp +4 -0
  66. data/ext/qt6/qtgui/qscreen-rb.cpp +61 -0
  67. data/ext/qt6/qtgui/qscreen-rb.hpp +4 -0
  68. data/ext/qt6/qtgui/qshortcut-rb.cpp +34 -0
  69. data/ext/qt6/qtgui/qshortcut-rb.hpp +4 -0
  70. data/ext/qt6/qtgui/qstandarditemmodel-rb.cpp +187 -0
  71. data/ext/qt6/qtgui/qstandarditemmodel-rb.hpp +4 -0
  72. data/ext/qt6/qtgui/qtextcursor-rb.cpp +138 -0
  73. data/ext/qt6/qtgui/qtextcursor-rb.hpp +4 -0
  74. data/ext/qt6/qtgui/qtextdocument-rb.cpp +178 -0
  75. data/ext/qt6/qtgui/qtextdocument-rb.hpp +4 -0
  76. data/ext/qt6/qtgui/qtextformat-rb.cpp +551 -0
  77. data/ext/qt6/qtgui/qtextformat-rb.hpp +4 -0
  78. data/ext/qt6/qtgui/qtextlist-rb.cpp +25 -0
  79. data/ext/qt6/qtgui/qtextlist-rb.hpp +4 -0
  80. data/ext/qt6/qtgui/qtextobject-rb.cpp +44 -0
  81. data/ext/qt6/qtgui/qtextobject-rb.hpp +4 -0
  82. data/ext/qt6/qtgui/qtextoption-rb.cpp +69 -0
  83. data/ext/qt6/qtgui/qtextoption-rb.hpp +4 -0
  84. data/ext/qt6/qtgui/qtexttable-rb.cpp +53 -0
  85. data/ext/qt6/qtgui/qtexttable-rb.hpp +4 -0
  86. data/ext/qt6/qtgui/qtgui-rb.cpp +105 -0
  87. data/ext/qt6/qtgui/qtgui-rb.hpp +3 -0
  88. data/ext/qt6/qtgui/qtguiversion-rb.cpp +9 -0
  89. data/ext/qt6/qtgui/qtguiversion-rb.hpp +4 -0
  90. data/ext/qt6/qtgui/qtransform-rb.cpp +79 -0
  91. data/ext/qt6/qtgui/qtransform-rb.hpp +4 -0
  92. data/ext/qt6/qtgui/qvalidator-rb.cpp +98 -0
  93. data/ext/qt6/qtgui/qvalidator-rb.hpp +4 -0
  94. data/ext/qt6/qtgui/qwindow-rb.cpp +179 -0
  95. data/ext/qt6/qtgui/qwindow-rb.hpp +4 -0
  96. data/ext/qt6/qtgui/t-qtgui-rb.cpp +20 -0
  97. data/ext/qt6/qtgui/t-qtgui-rb.hpp +4 -0
  98. data/lib/qt6/qtgui/qaction.rb +69 -0
  99. data/lib/qt6/qtgui/qactiongroup.rb +32 -0
  100. data/lib/qt6/qtgui/qbrush.rb +49 -0
  101. data/lib/qt6/qtgui/qclipboard.rb +19 -0
  102. data/lib/qt6/qtgui/qcolor.rb +49 -0
  103. data/lib/qt6/qtgui/qcursor.rb +21 -0
  104. data/lib/qt6/qtgui/qdoublevalidator.rb +57 -0
  105. data/lib/qt6/qtgui/qfilesystemmodel.rb +32 -0
  106. data/lib/qt6/qtgui/qfont.rb +70 -0
  107. data/lib/qt6/qtgui/qfontdatabase.rb +13 -0
  108. data/lib/qt6/qtgui/qfontinfo.rb +17 -0
  109. data/lib/qt6/qtgui/qfontmetrics.rb +19 -0
  110. data/lib/qt6/qtgui/qfontmetricsf.rb +22 -0
  111. data/lib/qt6/qtgui/qguiapplication.rb +36 -0
  112. data/lib/qt6/qtgui/qicon.rb +32 -0
  113. data/lib/qt6/qtgui/qimage.rb +31 -0
  114. data/lib/qt6/qtgui/qimagewriter.rb +30 -0
  115. data/lib/qt6/qtgui/qintvalidator.rb +50 -0
  116. data/lib/qt6/qtgui/qkeysequence.rb +45 -0
  117. data/lib/qt6/qtgui/qmovie.rb +39 -0
  118. data/lib/qt6/qtgui/qpagedpaintdevice.rb +11 -0
  119. data/lib/qt6/qtgui/qpaintdevice.rb +9 -0
  120. data/lib/qt6/qtgui/qpainter.rb +45 -0
  121. data/lib/qt6/qtgui/qpainterpath.rb +24 -0
  122. data/lib/qt6/qtgui/qpainterpathstroker.rb +21 -0
  123. data/lib/qt6/qtgui/qpalette.rb +30 -0
  124. data/lib/qt6/qtgui/qpen.rb +46 -0
  125. data/lib/qt6/qtgui/qpicture.rb +18 -0
  126. data/lib/qt6/qtgui/qpixmap.rb +29 -0
  127. data/lib/qt6/qtgui/qpolygon.rb +18 -0
  128. data/lib/qt6/qtgui/qpolygonf.rb +21 -0
  129. data/lib/qt6/qtgui/qregion.rb +41 -0
  130. data/lib/qt6/qtgui/qregularexpressionvalidator.rb +48 -0
  131. data/lib/qt6/qtgui/qscreen.rb +21 -0
  132. data/lib/qt6/qtgui/qshortcut.rb +25 -0
  133. data/lib/qt6/qtgui/qstandarditem.rb +43 -0
  134. data/lib/qt6/qtgui/qstandarditemmodel.rb +23 -0
  135. data/lib/qt6/qtgui/qtextblockformat.rb +21 -0
  136. data/lib/qt6/qtgui/qtextblockgroup.rb +12 -0
  137. data/lib/qt6/qtgui/qtextcharformat.rb +23 -0
  138. data/lib/qt6/qtgui/qtextcursor.rb +58 -0
  139. data/lib/qt6/qtgui/qtextdocument.rb +58 -0
  140. data/lib/qt6/qtgui/qtextformat.rb +32 -0
  141. data/lib/qt6/qtgui/qtextframe.rb +12 -0
  142. data/lib/qt6/qtgui/qtextframeformat.rb +21 -0
  143. data/lib/qt6/qtgui/qtextimageformat.rb +16 -0
  144. data/lib/qt6/qtgui/qtextlist.rb +12 -0
  145. data/lib/qt6/qtgui/qtextlistformat.rb +19 -0
  146. data/lib/qt6/qtgui/qtextobject.rb +12 -0
  147. data/lib/qt6/qtgui/qtextoption.rb +17 -0
  148. data/lib/qt6/qtgui/qtexttable.rb +12 -0
  149. data/lib/qt6/qtgui/qtexttablecell.rb +9 -0
  150. data/lib/qt6/qtgui/qtexttablecellformat.rb +16 -0
  151. data/lib/qt6/qtgui/qtexttableformat.rb +16 -0
  152. data/lib/qt6/qtgui/qtguiversion.rb +6 -0
  153. data/lib/qt6/qtgui/qtransform.rb +45 -0
  154. data/lib/qt6/qtgui/qvalidator.rb +16 -0
  155. data/lib/qt6/qtgui/qwindow.rb +79 -0
  156. data/lib/qt6/qtgui/version.rb +7 -0
  157. data/lib/qt6/qtgui.rb +66 -0
  158. metadata +227 -0
@@ -0,0 +1,551 @@
1
+ #include "qtextformat-rb.hpp"
2
+ #include <qtextformat.h>
3
+ #include <rice/qt6/qenum.hpp>
4
+ #include <rice/qt6/qflags.hpp>
5
+
6
+ using namespace Rice;
7
+
8
+ Rice::Class rb_cQTextFormat;
9
+ Rice::Class rb_cQTextBlockFormat;
10
+ Rice::Class rb_cQTextCharFormat;
11
+ Rice::Class rb_cQTextImageFormat;
12
+ Rice::Class rb_cQTextTableCellFormat;
13
+ Rice::Class rb_cQTextFrameFormat;
14
+ Rice::Class rb_cQTextTableFormat;
15
+ Rice::Class rb_cQTextListFormat;
16
+
17
+ void Init_qtextformat(Rice::Module rb_mQt6QtGui)
18
+ {
19
+ rb_cQTextFormat =
20
+ // RubyQt6::QtGui::QTextFormat
21
+ define_class_under<QTextFormat>(rb_mQt6QtGui, "QTextFormat")
22
+ // Constructor
23
+ .define_constructor(Constructor<QTextFormat>())
24
+ .define_constructor(Constructor<QTextFormat, int>(), Arg("type"))
25
+ // Public Functions
26
+ .define_method("background", &QTextFormat::background)
27
+ .define_method("bool_property", &QTextFormat::boolProperty, Arg("property_id"))
28
+ .define_method("brush_property", &QTextFormat::brushProperty, Arg("property_id"))
29
+ .define_method("clear_background", &QTextFormat::clearBackground)
30
+ .define_method("clear_foreground", &QTextFormat::clearForeground)
31
+ .define_method("clear_property", &QTextFormat::clearProperty, Arg("property_id"))
32
+ .define_method("color_property", &QTextFormat::colorProperty, Arg("property_id"))
33
+ .define_method("double_property", &QTextFormat::doubleProperty, Arg("property_id"))
34
+ .define_method("foreground", &QTextFormat::foreground)
35
+ .define_method("has_property", &QTextFormat::hasProperty, Arg("property_id"))
36
+ .define_method("int_property", &QTextFormat::intProperty, Arg("property_id"))
37
+ .define_method("block_format?", &QTextFormat::isBlockFormat)
38
+ .define_method("char_format?", &QTextFormat::isCharFormat)
39
+ .define_method("empty?", &QTextFormat::isEmpty)
40
+ .define_method("frame_format?", &QTextFormat::isFrameFormat)
41
+ .define_method("image_format?", &QTextFormat::isImageFormat)
42
+ .define_method("list_format?", &QTextFormat::isListFormat)
43
+ .define_method("table_cell_format?", &QTextFormat::isTableCellFormat)
44
+ .define_method("table_format?", &QTextFormat::isTableFormat)
45
+ .define_method("valid?", &QTextFormat::isValid)
46
+ .define_method("layout_direction", &QTextFormat::layoutDirection)
47
+ .define_method("length_property", &QTextFormat::lengthProperty, Arg("property_id"))
48
+ .define_method("length_vector_property", &QTextFormat::lengthVectorProperty, Arg("property_id"))
49
+ .define_method("merge", &QTextFormat::merge, Arg("other"))
50
+ .define_method("object_index", &QTextFormat::objectIndex)
51
+ .define_method("object_type", &QTextFormat::objectType)
52
+ .define_method("pen_property", &QTextFormat::penProperty, Arg("property_id"))
53
+ .define_method("properties", &QTextFormat::properties)
54
+ .define_method("property", &QTextFormat::property, Arg("property_id"))
55
+ .define_method("property_count", &QTextFormat::propertyCount)
56
+ .define_method("set_background", &QTextFormat::setBackground, Arg("brush"))
57
+ .define_method("set_foreground", &QTextFormat::setForeground, Arg("brush"))
58
+ .define_method("set_layout_direction", &QTextFormat::setLayoutDirection, Arg("direction"))
59
+ .define_method("set_object_index", &QTextFormat::setObjectIndex, Arg("object"))
60
+ .define_method("set_object_type", &QTextFormat::setObjectType, Arg("type"))
61
+ .define_method<void (QTextFormat::*)(int, const QList<QTextLength> &)>("set_property", &QTextFormat::setProperty, Arg("property_id"), Arg("lengths"))
62
+ .define_method<void (QTextFormat::*)(int, const QVariant &)>("set_property", &QTextFormat::setProperty, Arg("property_id"), Arg("value"))
63
+ .define_method("string_property", &QTextFormat::stringProperty, Arg("property_id"))
64
+ .define_method("to_block_format", &QTextFormat::toBlockFormat)
65
+ .define_method("to_char_format", &QTextFormat::toCharFormat)
66
+ .define_method("to_frame_format", &QTextFormat::toFrameFormat)
67
+ .define_method("to_image_format", &QTextFormat::toImageFormat)
68
+ .define_method("to_list_format", &QTextFormat::toListFormat)
69
+ .define_method("to_table_cell_format", &QTextFormat::toTableCellFormat)
70
+ .define_method("to_table_format", &QTextFormat::toTableFormat)
71
+ .define_method("type", &QTextFormat::type);
72
+
73
+ Data_Type<QTextFormat::FormatType> rb_cQTextFormatFormatType =
74
+ // RubyQt6::QtGui::QTextFormat::FormatType
75
+ define_qenum_under<QTextFormat::FormatType>(rb_cQTextFormat, "FormatType");
76
+ define_qenum_value_under(rb_cQTextFormatFormatType, "InvalidFormat", QTextFormat::FormatType::InvalidFormat);
77
+ define_qenum_value_under(rb_cQTextFormatFormatType, "BlockFormat", QTextFormat::FormatType::BlockFormat);
78
+ define_qenum_value_under(rb_cQTextFormatFormatType, "CharFormat", QTextFormat::FormatType::CharFormat);
79
+ define_qenum_value_under(rb_cQTextFormatFormatType, "ListFormat", QTextFormat::FormatType::ListFormat);
80
+ define_qenum_value_under(rb_cQTextFormatFormatType, "FrameFormat", QTextFormat::FormatType::FrameFormat);
81
+ define_qenum_value_under(rb_cQTextFormatFormatType, "UserFormat", QTextFormat::FormatType::UserFormat);
82
+
83
+ Data_Type<QTextFormat::Property> rb_cQTextFormatProperty =
84
+ // RubyQt6::QtGui::QTextFormat::Property
85
+ define_qenum_under<QTextFormat::Property>(rb_cQTextFormat, "Property");
86
+ define_qenum_value_under(rb_cQTextFormatProperty, "ObjectIndex", QTextFormat::Property::ObjectIndex);
87
+ define_qenum_value_under(rb_cQTextFormatProperty, "CssFloat", QTextFormat::Property::CssFloat);
88
+ define_qenum_value_under(rb_cQTextFormatProperty, "LayoutDirection", QTextFormat::Property::LayoutDirection);
89
+ define_qenum_value_under(rb_cQTextFormatProperty, "OutlinePen", QTextFormat::Property::OutlinePen);
90
+ define_qenum_value_under(rb_cQTextFormatProperty, "BackgroundBrush", QTextFormat::Property::BackgroundBrush);
91
+ define_qenum_value_under(rb_cQTextFormatProperty, "ForegroundBrush", QTextFormat::Property::ForegroundBrush);
92
+ define_qenum_value_under(rb_cQTextFormatProperty, "BackgroundImageUrl", QTextFormat::Property::BackgroundImageUrl);
93
+ define_qenum_value_under(rb_cQTextFormatProperty, "BlockAlignment", QTextFormat::Property::BlockAlignment);
94
+ define_qenum_value_under(rb_cQTextFormatProperty, "BlockTopMargin", QTextFormat::Property::BlockTopMargin);
95
+ define_qenum_value_under(rb_cQTextFormatProperty, "BlockBottomMargin", QTextFormat::Property::BlockBottomMargin);
96
+ define_qenum_value_under(rb_cQTextFormatProperty, "BlockLeftMargin", QTextFormat::Property::BlockLeftMargin);
97
+ define_qenum_value_under(rb_cQTextFormatProperty, "BlockRightMargin", QTextFormat::Property::BlockRightMargin);
98
+ define_qenum_value_under(rb_cQTextFormatProperty, "TextIndent", QTextFormat::Property::TextIndent);
99
+ define_qenum_value_under(rb_cQTextFormatProperty, "TabPositions", QTextFormat::Property::TabPositions);
100
+ define_qenum_value_under(rb_cQTextFormatProperty, "BlockIndent", QTextFormat::Property::BlockIndent);
101
+ define_qenum_value_under(rb_cQTextFormatProperty, "LineHeight", QTextFormat::Property::LineHeight);
102
+ define_qenum_value_under(rb_cQTextFormatProperty, "LineHeightType", QTextFormat::Property::LineHeightType);
103
+ define_qenum_value_under(rb_cQTextFormatProperty, "BlockNonBreakableLines", QTextFormat::Property::BlockNonBreakableLines);
104
+ define_qenum_value_under(rb_cQTextFormatProperty, "BlockTrailingHorizontalRulerWidth", QTextFormat::Property::BlockTrailingHorizontalRulerWidth);
105
+ define_qenum_value_under(rb_cQTextFormatProperty, "HeadingLevel", QTextFormat::Property::HeadingLevel);
106
+ define_qenum_value_under(rb_cQTextFormatProperty, "BlockQuoteLevel", QTextFormat::Property::BlockQuoteLevel);
107
+ define_qenum_value_under(rb_cQTextFormatProperty, "BlockCodeLanguage", QTextFormat::Property::BlockCodeLanguage);
108
+ define_qenum_value_under(rb_cQTextFormatProperty, "BlockCodeFence", QTextFormat::Property::BlockCodeFence);
109
+ define_qenum_value_under(rb_cQTextFormatProperty, "BlockMarker", QTextFormat::Property::BlockMarker);
110
+ define_qenum_value_under(rb_cQTextFormatProperty, "FirstFontProperty", QTextFormat::Property::FirstFontProperty);
111
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontCapitalization", QTextFormat::Property::FontCapitalization);
112
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontLetterSpacing", QTextFormat::Property::FontLetterSpacing);
113
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontWordSpacing", QTextFormat::Property::FontWordSpacing);
114
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontStyleHint", QTextFormat::Property::FontStyleHint);
115
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontStyleStrategy", QTextFormat::Property::FontStyleStrategy);
116
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontKerning", QTextFormat::Property::FontKerning);
117
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontHintingPreference", QTextFormat::Property::FontHintingPreference);
118
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontFamilies", QTextFormat::Property::FontFamilies);
119
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontStyleName", QTextFormat::Property::FontStyleName);
120
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontLetterSpacingType", QTextFormat::Property::FontLetterSpacingType);
121
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontStretch", QTextFormat::Property::FontStretch);
122
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontFamily", QTextFormat::Property::FontFamily);
123
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontPointSize", QTextFormat::Property::FontPointSize);
124
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontSizeAdjustment", QTextFormat::Property::FontSizeAdjustment);
125
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontSizeIncrement", QTextFormat::Property::FontSizeIncrement);
126
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontWeight", QTextFormat::Property::FontWeight);
127
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontItalic", QTextFormat::Property::FontItalic);
128
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontUnderline", QTextFormat::Property::FontUnderline);
129
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontOverline", QTextFormat::Property::FontOverline);
130
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontStrikeOut", QTextFormat::Property::FontStrikeOut);
131
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontFixedPitch", QTextFormat::Property::FontFixedPitch);
132
+ define_qenum_value_under(rb_cQTextFormatProperty, "FontPixelSize", QTextFormat::Property::FontPixelSize);
133
+ define_qenum_value_under(rb_cQTextFormatProperty, "LastFontProperty", QTextFormat::Property::LastFontProperty);
134
+ define_qenum_value_under(rb_cQTextFormatProperty, "TextUnderlineColor", QTextFormat::Property::TextUnderlineColor);
135
+ define_qenum_value_under(rb_cQTextFormatProperty, "TextVerticalAlignment", QTextFormat::Property::TextVerticalAlignment);
136
+ define_qenum_value_under(rb_cQTextFormatProperty, "TextOutline", QTextFormat::Property::TextOutline);
137
+ define_qenum_value_under(rb_cQTextFormatProperty, "TextUnderlineStyle", QTextFormat::Property::TextUnderlineStyle);
138
+ define_qenum_value_under(rb_cQTextFormatProperty, "TextToolTip", QTextFormat::Property::TextToolTip);
139
+ define_qenum_value_under(rb_cQTextFormatProperty, "TextSuperScriptBaseline", QTextFormat::Property::TextSuperScriptBaseline);
140
+ define_qenum_value_under(rb_cQTextFormatProperty, "TextSubScriptBaseline", QTextFormat::Property::TextSubScriptBaseline);
141
+ define_qenum_value_under(rb_cQTextFormatProperty, "TextBaselineOffset", QTextFormat::Property::TextBaselineOffset);
142
+ define_qenum_value_under(rb_cQTextFormatProperty, "IsAnchor", QTextFormat::Property::IsAnchor);
143
+ define_qenum_value_under(rb_cQTextFormatProperty, "AnchorHref", QTextFormat::Property::AnchorHref);
144
+ define_qenum_value_under(rb_cQTextFormatProperty, "AnchorName", QTextFormat::Property::AnchorName);
145
+ define_qenum_value_under(rb_cQTextFormatProperty, "OldFontLetterSpacingType", QTextFormat::Property::OldFontLetterSpacingType);
146
+ define_qenum_value_under(rb_cQTextFormatProperty, "OldFontStretch", QTextFormat::Property::OldFontStretch);
147
+ define_qenum_value_under(rb_cQTextFormatProperty, "OldTextUnderlineColor", QTextFormat::Property::OldTextUnderlineColor);
148
+ define_qenum_value_under(rb_cQTextFormatProperty, "OldFontFamily", QTextFormat::Property::OldFontFamily);
149
+ define_qenum_value_under(rb_cQTextFormatProperty, "ObjectType", QTextFormat::Property::ObjectType);
150
+ define_qenum_value_under(rb_cQTextFormatProperty, "ListStyle", QTextFormat::Property::ListStyle);
151
+ define_qenum_value_under(rb_cQTextFormatProperty, "ListIndent", QTextFormat::Property::ListIndent);
152
+ define_qenum_value_under(rb_cQTextFormatProperty, "ListNumberPrefix", QTextFormat::Property::ListNumberPrefix);
153
+ define_qenum_value_under(rb_cQTextFormatProperty, "ListNumberSuffix", QTextFormat::Property::ListNumberSuffix);
154
+ define_qenum_value_under(rb_cQTextFormatProperty, "ListStart", QTextFormat::Property::ListStart);
155
+ define_qenum_value_under(rb_cQTextFormatProperty, "FrameBorder", QTextFormat::Property::FrameBorder);
156
+ define_qenum_value_under(rb_cQTextFormatProperty, "FrameMargin", QTextFormat::Property::FrameMargin);
157
+ define_qenum_value_under(rb_cQTextFormatProperty, "FramePadding", QTextFormat::Property::FramePadding);
158
+ define_qenum_value_under(rb_cQTextFormatProperty, "FrameWidth", QTextFormat::Property::FrameWidth);
159
+ define_qenum_value_under(rb_cQTextFormatProperty, "FrameHeight", QTextFormat::Property::FrameHeight);
160
+ define_qenum_value_under(rb_cQTextFormatProperty, "FrameTopMargin", QTextFormat::Property::FrameTopMargin);
161
+ define_qenum_value_under(rb_cQTextFormatProperty, "FrameBottomMargin", QTextFormat::Property::FrameBottomMargin);
162
+ define_qenum_value_under(rb_cQTextFormatProperty, "FrameLeftMargin", QTextFormat::Property::FrameLeftMargin);
163
+ define_qenum_value_under(rb_cQTextFormatProperty, "FrameRightMargin", QTextFormat::Property::FrameRightMargin);
164
+ define_qenum_value_under(rb_cQTextFormatProperty, "FrameBorderBrush", QTextFormat::Property::FrameBorderBrush);
165
+ define_qenum_value_under(rb_cQTextFormatProperty, "FrameBorderStyle", QTextFormat::Property::FrameBorderStyle);
166
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableColumns", QTextFormat::Property::TableColumns);
167
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableColumnWidthConstraints", QTextFormat::Property::TableColumnWidthConstraints);
168
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellSpacing", QTextFormat::Property::TableCellSpacing);
169
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellPadding", QTextFormat::Property::TableCellPadding);
170
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableHeaderRowCount", QTextFormat::Property::TableHeaderRowCount);
171
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableBorderCollapse", QTextFormat::Property::TableBorderCollapse);
172
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellRowSpan", QTextFormat::Property::TableCellRowSpan);
173
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellColumnSpan", QTextFormat::Property::TableCellColumnSpan);
174
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellTopPadding", QTextFormat::Property::TableCellTopPadding);
175
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellBottomPadding", QTextFormat::Property::TableCellBottomPadding);
176
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellLeftPadding", QTextFormat::Property::TableCellLeftPadding);
177
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellRightPadding", QTextFormat::Property::TableCellRightPadding);
178
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellTopBorder", QTextFormat::Property::TableCellTopBorder);
179
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellBottomBorder", QTextFormat::Property::TableCellBottomBorder);
180
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellLeftBorder", QTextFormat::Property::TableCellLeftBorder);
181
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellRightBorder", QTextFormat::Property::TableCellRightBorder);
182
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellTopBorderStyle", QTextFormat::Property::TableCellTopBorderStyle);
183
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellBottomBorderStyle", QTextFormat::Property::TableCellBottomBorderStyle);
184
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellLeftBorderStyle", QTextFormat::Property::TableCellLeftBorderStyle);
185
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellRightBorderStyle", QTextFormat::Property::TableCellRightBorderStyle);
186
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellTopBorderBrush", QTextFormat::Property::TableCellTopBorderBrush);
187
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellBottomBorderBrush", QTextFormat::Property::TableCellBottomBorderBrush);
188
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellLeftBorderBrush", QTextFormat::Property::TableCellLeftBorderBrush);
189
+ define_qenum_value_under(rb_cQTextFormatProperty, "TableCellRightBorderBrush", QTextFormat::Property::TableCellRightBorderBrush);
190
+ define_qenum_value_under(rb_cQTextFormatProperty, "ImageName", QTextFormat::Property::ImageName);
191
+ define_qenum_value_under(rb_cQTextFormatProperty, "ImageTitle", QTextFormat::Property::ImageTitle);
192
+ define_qenum_value_under(rb_cQTextFormatProperty, "ImageAltText", QTextFormat::Property::ImageAltText);
193
+ define_qenum_value_under(rb_cQTextFormatProperty, "ImageWidth", QTextFormat::Property::ImageWidth);
194
+ define_qenum_value_under(rb_cQTextFormatProperty, "ImageHeight", QTextFormat::Property::ImageHeight);
195
+ define_qenum_value_under(rb_cQTextFormatProperty, "ImageQuality", QTextFormat::Property::ImageQuality);
196
+ define_qenum_value_under(rb_cQTextFormatProperty, "ImageMaxWidth", QTextFormat::Property::ImageMaxWidth);
197
+ define_qenum_value_under(rb_cQTextFormatProperty, "FullWidthSelection", QTextFormat::Property::FullWidthSelection);
198
+ define_qenum_value_under(rb_cQTextFormatProperty, "PageBreakPolicy", QTextFormat::Property::PageBreakPolicy);
199
+ define_qenum_value_under(rb_cQTextFormatProperty, "UserProperty", QTextFormat::Property::UserProperty);
200
+
201
+ Data_Type<QTextFormat::ObjectTypes> rb_cQTextFormatObjectTypes =
202
+ // RubyQt6::QtGui::QTextFormat::ObjectTypes
203
+ define_qenum_under<QTextFormat::ObjectTypes>(rb_cQTextFormat, "ObjectTypes");
204
+ define_qenum_value_under(rb_cQTextFormatObjectTypes, "NoObject", QTextFormat::ObjectTypes::NoObject);
205
+ define_qenum_value_under(rb_cQTextFormatObjectTypes, "ImageObject", QTextFormat::ObjectTypes::ImageObject);
206
+ define_qenum_value_under(rb_cQTextFormatObjectTypes, "TableObject", QTextFormat::ObjectTypes::TableObject);
207
+ define_qenum_value_under(rb_cQTextFormatObjectTypes, "TableCellObject", QTextFormat::ObjectTypes::TableCellObject);
208
+ define_qenum_value_under(rb_cQTextFormatObjectTypes, "UserObject", QTextFormat::ObjectTypes::UserObject);
209
+
210
+ Data_Type<QTextFormat::PageBreakFlag> rb_cQTextFormatPageBreakFlag =
211
+ // RubyQt6::QtGui::QTextFormat::PageBreakFlag
212
+ define_qenum_under<QTextFormat::PageBreakFlag>(rb_cQTextFormat, "PageBreakFlag");
213
+ define_qenum_value_under(rb_cQTextFormatPageBreakFlag, "PageBreak_Auto", QTextFormat::PageBreakFlag::PageBreak_Auto);
214
+ define_qenum_value_under(rb_cQTextFormatPageBreakFlag, "PageBreak_AlwaysBefore", QTextFormat::PageBreakFlag::PageBreak_AlwaysBefore);
215
+ define_qenum_value_under(rb_cQTextFormatPageBreakFlag, "PageBreak_AlwaysAfter", QTextFormat::PageBreakFlag::PageBreak_AlwaysAfter);
216
+
217
+ Data_Type<QFlags<QTextFormat::PageBreakFlag>> rb_cQTextFormatPageBreakFlags =
218
+ // RubyQt6::QtGui::QTextFormat::PageBreakFlags
219
+ define_qflags_under<QTextFormat::PageBreakFlag>(rb_cQTextFormat, "PageBreakFlags");
220
+
221
+ rb_cQTextBlockFormat =
222
+ // RubyQt6::QtGui::QTextBlockFormat
223
+ define_class_under<QTextBlockFormat, QTextFormat>(rb_mQt6QtGui, "QTextBlockFormat")
224
+ // RubyQt6-Defined Functions
225
+ .define_method("set_alignment", [](QTextBlockFormat *self, Qt::AlignmentFlag alignment) -> void { return self->setAlignment(alignment); }, Arg("alignment"))
226
+ // Constructor
227
+ .define_constructor(Constructor<QTextBlockFormat>())
228
+ // Public Functions
229
+ .define_method("alignment", &QTextBlockFormat::alignment)
230
+ .define_method("bottom_margin", &QTextBlockFormat::bottomMargin)
231
+ .define_method("heading_level", &QTextBlockFormat::headingLevel)
232
+ .define_method("indent", &QTextBlockFormat::indent)
233
+ .define_method("valid?", &QTextBlockFormat::isValid)
234
+ .define_method("left_margin", &QTextBlockFormat::leftMargin)
235
+ .define_method<qreal (QTextBlockFormat::*)() const>("line_height", &QTextBlockFormat::lineHeight)
236
+ .define_method<qreal (QTextBlockFormat::*)(qreal, qreal) const>("line_height", &QTextBlockFormat::lineHeight, Arg("script_line_height"), Arg("scaling"))
237
+ .define_method("line_height_type", &QTextBlockFormat::lineHeightType)
238
+ .define_method("marker", &QTextBlockFormat::marker)
239
+ .define_method("non_breakable_lines", &QTextBlockFormat::nonBreakableLines)
240
+ .define_method("page_break_policy", &QTextBlockFormat::pageBreakPolicy)
241
+ .define_method("right_margin", &QTextBlockFormat::rightMargin)
242
+ .define_method("set_alignment", &QTextBlockFormat::setAlignment, Arg("alignment"))
243
+ .define_method("set_bottom_margin", &QTextBlockFormat::setBottomMargin, Arg("margin"))
244
+ .define_method("set_heading_level", &QTextBlockFormat::setHeadingLevel, Arg("alevel"))
245
+ .define_method("set_indent", &QTextBlockFormat::setIndent, Arg("indent"))
246
+ .define_method("set_left_margin", &QTextBlockFormat::setLeftMargin, Arg("margin"))
247
+ .define_method("set_line_height", &QTextBlockFormat::setLineHeight, Arg("height"), Arg("height_type"))
248
+ .define_method("set_marker", &QTextBlockFormat::setMarker, Arg("marker"))
249
+ .define_method("set_non_breakable_lines", &QTextBlockFormat::setNonBreakableLines, Arg("b"))
250
+ .define_method("set_page_break_policy", &QTextBlockFormat::setPageBreakPolicy, Arg("flags"))
251
+ .define_method("set_right_margin", &QTextBlockFormat::setRightMargin, Arg("margin"))
252
+ .define_method("set_tab_positions", &QTextBlockFormat::setTabPositions, Arg("tabs"))
253
+ .define_method("set_text_indent", &QTextBlockFormat::setTextIndent, Arg("aindent"))
254
+ .define_method("set_top_margin", &QTextBlockFormat::setTopMargin, Arg("margin"))
255
+ .define_method("tab_positions", &QTextBlockFormat::tabPositions)
256
+ .define_method("text_indent", &QTextBlockFormat::textIndent)
257
+ .define_method("top_margin", &QTextBlockFormat::topMargin);
258
+
259
+ Data_Type<QTextBlockFormat::LineHeightTypes> rb_cQTextBlockFormatLineHeightTypes =
260
+ // RubyQt6::QtGui::QTextBlockFormat::LineHeightTypes
261
+ define_qenum_under<QTextBlockFormat::LineHeightTypes>(rb_cQTextBlockFormat, "LineHeightTypes");
262
+ define_qenum_value_under(rb_cQTextBlockFormatLineHeightTypes, "SingleHeight", QTextBlockFormat::LineHeightTypes::SingleHeight);
263
+ define_qenum_value_under(rb_cQTextBlockFormatLineHeightTypes, "ProportionalHeight", QTextBlockFormat::LineHeightTypes::ProportionalHeight);
264
+ define_qenum_value_under(rb_cQTextBlockFormatLineHeightTypes, "FixedHeight", QTextBlockFormat::LineHeightTypes::FixedHeight);
265
+ define_qenum_value_under(rb_cQTextBlockFormatLineHeightTypes, "MinimumHeight", QTextBlockFormat::LineHeightTypes::MinimumHeight);
266
+ define_qenum_value_under(rb_cQTextBlockFormatLineHeightTypes, "LineDistanceHeight", QTextBlockFormat::LineHeightTypes::LineDistanceHeight);
267
+
268
+ Data_Type<QTextBlockFormat::MarkerType> rb_cQTextBlockFormatMarkerType =
269
+ // RubyQt6::QtGui::QTextBlockFormat::MarkerType
270
+ define_qenum_under<QTextBlockFormat::MarkerType>(rb_cQTextBlockFormat, "MarkerType");
271
+ define_qenum_value_under(rb_cQTextBlockFormatMarkerType, "NoMarker", QTextBlockFormat::MarkerType::NoMarker);
272
+ define_qenum_value_under(rb_cQTextBlockFormatMarkerType, "Unchecked", QTextBlockFormat::MarkerType::Unchecked);
273
+ define_qenum_value_under(rb_cQTextBlockFormatMarkerType, "Checked", QTextBlockFormat::MarkerType::Checked);
274
+
275
+ rb_cQTextCharFormat =
276
+ // RubyQt6::QtGui::QTextCharFormat
277
+ define_class_under<QTextCharFormat, QTextFormat>(rb_mQt6QtGui, "QTextCharFormat")
278
+ // Constructor
279
+ .define_constructor(Constructor<QTextCharFormat>())
280
+ // Public Functions
281
+ .define_method("anchor_href", &QTextCharFormat::anchorHref)
282
+ .define_method("anchor_names", &QTextCharFormat::anchorNames)
283
+ .define_method("baseline_offset", &QTextCharFormat::baselineOffset)
284
+ .define_method("font", &QTextCharFormat::font)
285
+ .define_method("font_capitalization", &QTextCharFormat::fontCapitalization)
286
+ .define_method("font_families", &QTextCharFormat::fontFamilies)
287
+ .define_method("font_fixed_pitch", &QTextCharFormat::fontFixedPitch)
288
+ .define_method("font_hinting_preference", &QTextCharFormat::fontHintingPreference)
289
+ .define_method("font_italic", &QTextCharFormat::fontItalic)
290
+ .define_method("font_kerning", &QTextCharFormat::fontKerning)
291
+ .define_method("font_letter_spacing", &QTextCharFormat::fontLetterSpacing)
292
+ .define_method("font_letter_spacing_type", &QTextCharFormat::fontLetterSpacingType)
293
+ .define_method("font_overline", &QTextCharFormat::fontOverline)
294
+ .define_method("font_point_size", &QTextCharFormat::fontPointSize)
295
+ .define_method("font_stretch", &QTextCharFormat::fontStretch)
296
+ .define_method("font_strike_out", &QTextCharFormat::fontStrikeOut)
297
+ .define_method("font_style_hint", &QTextCharFormat::fontStyleHint)
298
+ .define_method("font_style_name", &QTextCharFormat::fontStyleName)
299
+ .define_method("font_style_strategy", &QTextCharFormat::fontStyleStrategy)
300
+ .define_method("font_underline", &QTextCharFormat::fontUnderline)
301
+ .define_method("font_weight", &QTextCharFormat::fontWeight)
302
+ .define_method("font_word_spacing", &QTextCharFormat::fontWordSpacing)
303
+ .define_method("anchor?", &QTextCharFormat::isAnchor)
304
+ .define_method("valid?", &QTextCharFormat::isValid)
305
+ .define_method("set_anchor", &QTextCharFormat::setAnchor, Arg("anchor"))
306
+ .define_method("set_anchor_href", &QTextCharFormat::setAnchorHref, Arg("value"))
307
+ .define_method("set_anchor_names", &QTextCharFormat::setAnchorNames, Arg("names"))
308
+ .define_method("set_baseline_offset", &QTextCharFormat::setBaselineOffset, Arg("baseline"))
309
+ .define_method("set_font", &QTextCharFormat::setFont, Arg("font"), Arg("behavior") = static_cast<QTextCharFormat::FontPropertiesInheritanceBehavior>(QTextCharFormat::FontPropertiesInheritanceBehavior::FontPropertiesAll))
310
+ .define_method("set_font_capitalization", &QTextCharFormat::setFontCapitalization, Arg("capitalization"))
311
+ .define_method("set_font_families", &QTextCharFormat::setFontFamilies, Arg("families"))
312
+ .define_method("set_font_fixed_pitch", &QTextCharFormat::setFontFixedPitch, Arg("fixed_pitch"))
313
+ .define_method("set_font_hinting_preference", &QTextCharFormat::setFontHintingPreference, Arg("hinting_preference"))
314
+ .define_method("set_font_italic", &QTextCharFormat::setFontItalic, Arg("italic"))
315
+ .define_method("set_font_kerning", &QTextCharFormat::setFontKerning, Arg("enable"))
316
+ .define_method("set_font_letter_spacing", &QTextCharFormat::setFontLetterSpacing, Arg("spacing"))
317
+ .define_method("set_font_letter_spacing_type", &QTextCharFormat::setFontLetterSpacingType, Arg("letter_spacing_type"))
318
+ .define_method("set_font_overline", &QTextCharFormat::setFontOverline, Arg("overline"))
319
+ .define_method("set_font_point_size", &QTextCharFormat::setFontPointSize, Arg("size"))
320
+ .define_method("set_font_stretch", &QTextCharFormat::setFontStretch, Arg("factor"))
321
+ .define_method("set_font_strike_out", &QTextCharFormat::setFontStrikeOut, Arg("strike_out"))
322
+ .define_method("set_font_style_hint", &QTextCharFormat::setFontStyleHint, Arg("hint"), Arg("strategy") = static_cast<QFont::StyleStrategy>(QFont::PreferDefault))
323
+ .define_method("set_font_style_name", &QTextCharFormat::setFontStyleName, Arg("style_name"))
324
+ .define_method("set_font_style_strategy", &QTextCharFormat::setFontStyleStrategy, Arg("strategy"))
325
+ .define_method("set_font_underline", &QTextCharFormat::setFontUnderline, Arg("underline"))
326
+ .define_method("set_font_weight", &QTextCharFormat::setFontWeight, Arg("weight"))
327
+ .define_method("set_font_word_spacing", &QTextCharFormat::setFontWordSpacing, Arg("spacing"))
328
+ .define_method("set_sub_script_baseline", &QTextCharFormat::setSubScriptBaseline, Arg("baseline"))
329
+ .define_method("set_super_script_baseline", &QTextCharFormat::setSuperScriptBaseline, Arg("baseline"))
330
+ .define_method("set_table_cell_column_span", &QTextCharFormat::setTableCellColumnSpan, Arg("table_cell_column_span"))
331
+ .define_method("set_table_cell_row_span", &QTextCharFormat::setTableCellRowSpan, Arg("table_cell_row_span"))
332
+ .define_method("set_text_outline", &QTextCharFormat::setTextOutline, Arg("pen"))
333
+ .define_method("set_tool_tip", &QTextCharFormat::setToolTip, Arg("tip"))
334
+ .define_method("set_underline_color", &QTextCharFormat::setUnderlineColor, Arg("color"))
335
+ .define_method("set_underline_style", &QTextCharFormat::setUnderlineStyle, Arg("style"))
336
+ .define_method("set_vertical_alignment", &QTextCharFormat::setVerticalAlignment, Arg("alignment"))
337
+ .define_method("sub_script_baseline", &QTextCharFormat::subScriptBaseline)
338
+ .define_method("super_script_baseline", &QTextCharFormat::superScriptBaseline)
339
+ .define_method("table_cell_column_span", &QTextCharFormat::tableCellColumnSpan)
340
+ .define_method("table_cell_row_span", &QTextCharFormat::tableCellRowSpan)
341
+ .define_method("text_outline", &QTextCharFormat::textOutline)
342
+ .define_method("tool_tip", &QTextCharFormat::toolTip)
343
+ .define_method("underline_color", &QTextCharFormat::underlineColor)
344
+ .define_method("underline_style", &QTextCharFormat::underlineStyle)
345
+ .define_method("vertical_alignment", &QTextCharFormat::verticalAlignment);
346
+
347
+ Data_Type<QTextCharFormat::VerticalAlignment> rb_cQTextCharFormatVerticalAlignment =
348
+ // RubyQt6::QtGui::QTextCharFormat::VerticalAlignment
349
+ define_qenum_under<QTextCharFormat::VerticalAlignment>(rb_cQTextCharFormat, "VerticalAlignment");
350
+ define_qenum_value_under(rb_cQTextCharFormatVerticalAlignment, "AlignNormal", QTextCharFormat::VerticalAlignment::AlignNormal);
351
+ define_qenum_value_under(rb_cQTextCharFormatVerticalAlignment, "AlignSuperScript", QTextCharFormat::VerticalAlignment::AlignSuperScript);
352
+ define_qenum_value_under(rb_cQTextCharFormatVerticalAlignment, "AlignSubScript", QTextCharFormat::VerticalAlignment::AlignSubScript);
353
+ define_qenum_value_under(rb_cQTextCharFormatVerticalAlignment, "AlignMiddle", QTextCharFormat::VerticalAlignment::AlignMiddle);
354
+ define_qenum_value_under(rb_cQTextCharFormatVerticalAlignment, "AlignTop", QTextCharFormat::VerticalAlignment::AlignTop);
355
+ define_qenum_value_under(rb_cQTextCharFormatVerticalAlignment, "AlignBottom", QTextCharFormat::VerticalAlignment::AlignBottom);
356
+ define_qenum_value_under(rb_cQTextCharFormatVerticalAlignment, "AlignBaseline", QTextCharFormat::VerticalAlignment::AlignBaseline);
357
+
358
+ Data_Type<QTextCharFormat::UnderlineStyle> rb_cQTextCharFormatUnderlineStyle =
359
+ // RubyQt6::QtGui::QTextCharFormat::UnderlineStyle
360
+ define_qenum_under<QTextCharFormat::UnderlineStyle>(rb_cQTextCharFormat, "UnderlineStyle");
361
+ define_qenum_value_under(rb_cQTextCharFormatUnderlineStyle, "NoUnderline", QTextCharFormat::UnderlineStyle::NoUnderline);
362
+ define_qenum_value_under(rb_cQTextCharFormatUnderlineStyle, "SingleUnderline", QTextCharFormat::UnderlineStyle::SingleUnderline);
363
+ define_qenum_value_under(rb_cQTextCharFormatUnderlineStyle, "DashUnderline", QTextCharFormat::UnderlineStyle::DashUnderline);
364
+ define_qenum_value_under(rb_cQTextCharFormatUnderlineStyle, "DotLine", QTextCharFormat::UnderlineStyle::DotLine);
365
+ define_qenum_value_under(rb_cQTextCharFormatUnderlineStyle, "DashDotLine", QTextCharFormat::UnderlineStyle::DashDotLine);
366
+ define_qenum_value_under(rb_cQTextCharFormatUnderlineStyle, "DashDotDotLine", QTextCharFormat::UnderlineStyle::DashDotDotLine);
367
+ define_qenum_value_under(rb_cQTextCharFormatUnderlineStyle, "WaveUnderline", QTextCharFormat::UnderlineStyle::WaveUnderline);
368
+ define_qenum_value_under(rb_cQTextCharFormatUnderlineStyle, "SpellCheckUnderline", QTextCharFormat::UnderlineStyle::SpellCheckUnderline);
369
+
370
+ Data_Type<QTextCharFormat::FontPropertiesInheritanceBehavior> rb_cQTextCharFormatFontPropertiesInheritanceBehavior =
371
+ // RubyQt6::QtGui::QTextCharFormat::FontPropertiesInheritanceBehavior
372
+ define_qenum_under<QTextCharFormat::FontPropertiesInheritanceBehavior>(rb_cQTextCharFormat, "FontPropertiesInheritanceBehavior");
373
+ define_qenum_value_under(rb_cQTextCharFormatFontPropertiesInheritanceBehavior, "FontPropertiesSpecifiedOnly", QTextCharFormat::FontPropertiesInheritanceBehavior::FontPropertiesSpecifiedOnly);
374
+ define_qenum_value_under(rb_cQTextCharFormatFontPropertiesInheritanceBehavior, "FontPropertiesAll", QTextCharFormat::FontPropertiesInheritanceBehavior::FontPropertiesAll);
375
+
376
+ rb_cQTextImageFormat =
377
+ // RubyQt6::QtGui::QTextImageFormat
378
+ define_class_under<QTextImageFormat, QTextCharFormat>(rb_mQt6QtGui, "QTextImageFormat")
379
+ // Constructor
380
+ .define_constructor(Constructor<QTextImageFormat>())
381
+ // Public Functions
382
+ .define_method("height", &QTextImageFormat::height)
383
+ .define_method("valid?", &QTextImageFormat::isValid)
384
+ .define_method("maximum_width", &QTextImageFormat::maximumWidth)
385
+ .define_method("name", &QTextImageFormat::name)
386
+ .define_method("quality", &QTextImageFormat::quality)
387
+ .define_method("set_height", &QTextImageFormat::setHeight, Arg("height"))
388
+ .define_method("set_maximum_width", &QTextImageFormat::setMaximumWidth, Arg("max_width"))
389
+ .define_method("set_name", &QTextImageFormat::setName, Arg("name"))
390
+ .define_method<void (QTextImageFormat::*)(int)>("set_quality", &QTextImageFormat::setQuality, Arg("quality"))
391
+ .define_method("set_width", &QTextImageFormat::setWidth, Arg("width"))
392
+ .define_method("width", &QTextImageFormat::width);
393
+
394
+ rb_cQTextTableCellFormat =
395
+ // RubyQt6::QtGui::QTextTableCellFormat
396
+ define_class_under<QTextTableCellFormat, QTextCharFormat>(rb_mQt6QtGui, "QTextTableCellFormat")
397
+ // Constructor
398
+ .define_constructor(Constructor<QTextTableCellFormat>())
399
+ // Public Functions
400
+ .define_method("bottom_border", &QTextTableCellFormat::bottomBorder)
401
+ .define_method("bottom_border_brush", &QTextTableCellFormat::bottomBorderBrush)
402
+ .define_method("bottom_border_style", &QTextTableCellFormat::bottomBorderStyle)
403
+ .define_method("bottom_padding", &QTextTableCellFormat::bottomPadding)
404
+ .define_method("valid?", &QTextTableCellFormat::isValid)
405
+ .define_method("left_border", &QTextTableCellFormat::leftBorder)
406
+ .define_method("left_border_brush", &QTextTableCellFormat::leftBorderBrush)
407
+ .define_method("left_border_style", &QTextTableCellFormat::leftBorderStyle)
408
+ .define_method("left_padding", &QTextTableCellFormat::leftPadding)
409
+ .define_method("right_border", &QTextTableCellFormat::rightBorder)
410
+ .define_method("right_border_brush", &QTextTableCellFormat::rightBorderBrush)
411
+ .define_method("right_border_style", &QTextTableCellFormat::rightBorderStyle)
412
+ .define_method("right_padding", &QTextTableCellFormat::rightPadding)
413
+ .define_method("set_border", &QTextTableCellFormat::setBorder, Arg("width"))
414
+ .define_method("set_border_brush", &QTextTableCellFormat::setBorderBrush, Arg("brush"))
415
+ .define_method("set_border_style", &QTextTableCellFormat::setBorderStyle, Arg("style"))
416
+ .define_method("set_bottom_border", &QTextTableCellFormat::setBottomBorder, Arg("width"))
417
+ .define_method("set_bottom_border_brush", &QTextTableCellFormat::setBottomBorderBrush, Arg("brush"))
418
+ .define_method("set_bottom_border_style", &QTextTableCellFormat::setBottomBorderStyle, Arg("style"))
419
+ .define_method("set_bottom_padding", &QTextTableCellFormat::setBottomPadding, Arg("padding"))
420
+ .define_method("set_left_border", &QTextTableCellFormat::setLeftBorder, Arg("width"))
421
+ .define_method("set_left_border_brush", &QTextTableCellFormat::setLeftBorderBrush, Arg("brush"))
422
+ .define_method("set_left_border_style", &QTextTableCellFormat::setLeftBorderStyle, Arg("style"))
423
+ .define_method("set_left_padding", &QTextTableCellFormat::setLeftPadding, Arg("padding"))
424
+ .define_method("set_padding", &QTextTableCellFormat::setPadding, Arg("padding"))
425
+ .define_method("set_right_border", &QTextTableCellFormat::setRightBorder, Arg("width"))
426
+ .define_method("set_right_border_brush", &QTextTableCellFormat::setRightBorderBrush, Arg("brush"))
427
+ .define_method("set_right_border_style", &QTextTableCellFormat::setRightBorderStyle, Arg("style"))
428
+ .define_method("set_right_padding", &QTextTableCellFormat::setRightPadding, Arg("padding"))
429
+ .define_method("set_top_border", &QTextTableCellFormat::setTopBorder, Arg("width"))
430
+ .define_method("set_top_border_brush", &QTextTableCellFormat::setTopBorderBrush, Arg("brush"))
431
+ .define_method("set_top_border_style", &QTextTableCellFormat::setTopBorderStyle, Arg("style"))
432
+ .define_method("set_top_padding", &QTextTableCellFormat::setTopPadding, Arg("padding"))
433
+ .define_method("top_border", &QTextTableCellFormat::topBorder)
434
+ .define_method("top_border_brush", &QTextTableCellFormat::topBorderBrush)
435
+ .define_method("top_border_style", &QTextTableCellFormat::topBorderStyle)
436
+ .define_method("top_padding", &QTextTableCellFormat::topPadding);
437
+
438
+ rb_cQTextFrameFormat =
439
+ // RubyQt6::QtGui::QTextFrameFormat
440
+ define_class_under<QTextFrameFormat, QTextFormat>(rb_mQt6QtGui, "QTextFrameFormat")
441
+ // Constructor
442
+ .define_constructor(Constructor<QTextFrameFormat>())
443
+ // Public Functions
444
+ .define_method("border", &QTextFrameFormat::border)
445
+ .define_method("border_brush", &QTextFrameFormat::borderBrush)
446
+ .define_method("border_style", &QTextFrameFormat::borderStyle)
447
+ .define_method("bottom_margin", &QTextFrameFormat::bottomMargin)
448
+ .define_method("height", &QTextFrameFormat::height)
449
+ .define_method("valid?", &QTextFrameFormat::isValid)
450
+ .define_method("left_margin", &QTextFrameFormat::leftMargin)
451
+ .define_method("margin", &QTextFrameFormat::margin)
452
+ .define_method("padding", &QTextFrameFormat::padding)
453
+ .define_method("page_break_policy", &QTextFrameFormat::pageBreakPolicy)
454
+ .define_method("position", &QTextFrameFormat::position)
455
+ .define_method("right_margin", &QTextFrameFormat::rightMargin)
456
+ .define_method("set_border", &QTextFrameFormat::setBorder, Arg("border"))
457
+ .define_method("set_border_brush", &QTextFrameFormat::setBorderBrush, Arg("brush"))
458
+ .define_method("set_border_style", &QTextFrameFormat::setBorderStyle, Arg("style"))
459
+ .define_method("set_bottom_margin", &QTextFrameFormat::setBottomMargin, Arg("margin"))
460
+ .define_method<void (QTextFrameFormat::*)(const QTextLength &)>("set_height", &QTextFrameFormat::setHeight, Arg("height"))
461
+ .define_method<void (QTextFrameFormat::*)(qreal)>("set_height", &QTextFrameFormat::setHeight, Arg("height"))
462
+ .define_method("set_left_margin", &QTextFrameFormat::setLeftMargin, Arg("margin"))
463
+ .define_method("set_margin", &QTextFrameFormat::setMargin, Arg("margin"))
464
+ .define_method("set_padding", &QTextFrameFormat::setPadding, Arg("padding"))
465
+ .define_method("set_page_break_policy", &QTextFrameFormat::setPageBreakPolicy, Arg("flags"))
466
+ .define_method("set_position", &QTextFrameFormat::setPosition, Arg("f"))
467
+ .define_method("set_right_margin", &QTextFrameFormat::setRightMargin, Arg("margin"))
468
+ .define_method("set_top_margin", &QTextFrameFormat::setTopMargin, Arg("margin"))
469
+ .define_method<void (QTextFrameFormat::*)(const QTextLength &)>("set_width", &QTextFrameFormat::setWidth, Arg("length"))
470
+ .define_method<void (QTextFrameFormat::*)(qreal)>("set_width", &QTextFrameFormat::setWidth, Arg("width"))
471
+ .define_method("top_margin", &QTextFrameFormat::topMargin)
472
+ .define_method("width", &QTextFrameFormat::width);
473
+
474
+ Data_Type<QTextFrameFormat::Position> rb_cQTextFrameFormatPosition =
475
+ // RubyQt6::QtGui::QTextFrameFormat::Position
476
+ define_qenum_under<QTextFrameFormat::Position>(rb_cQTextFrameFormat, "Position");
477
+ define_qenum_value_under(rb_cQTextFrameFormatPosition, "InFlow", QTextFrameFormat::Position::InFlow);
478
+ define_qenum_value_under(rb_cQTextFrameFormatPosition, "FloatLeft", QTextFrameFormat::Position::FloatLeft);
479
+ define_qenum_value_under(rb_cQTextFrameFormatPosition, "FloatRight", QTextFrameFormat::Position::FloatRight);
480
+
481
+ Data_Type<QTextFrameFormat::BorderStyle> rb_cQTextFrameFormatBorderStyle =
482
+ // RubyQt6::QtGui::QTextFrameFormat::BorderStyle
483
+ define_qenum_under<QTextFrameFormat::BorderStyle>(rb_cQTextFrameFormat, "BorderStyle");
484
+ define_qenum_value_under(rb_cQTextFrameFormatBorderStyle, "BorderStyle_None", QTextFrameFormat::BorderStyle::BorderStyle_None);
485
+ define_qenum_value_under(rb_cQTextFrameFormatBorderStyle, "BorderStyle_Dotted", QTextFrameFormat::BorderStyle::BorderStyle_Dotted);
486
+ define_qenum_value_under(rb_cQTextFrameFormatBorderStyle, "BorderStyle_Dashed", QTextFrameFormat::BorderStyle::BorderStyle_Dashed);
487
+ define_qenum_value_under(rb_cQTextFrameFormatBorderStyle, "BorderStyle_Solid", QTextFrameFormat::BorderStyle::BorderStyle_Solid);
488
+ define_qenum_value_under(rb_cQTextFrameFormatBorderStyle, "BorderStyle_Double", QTextFrameFormat::BorderStyle::BorderStyle_Double);
489
+ define_qenum_value_under(rb_cQTextFrameFormatBorderStyle, "BorderStyle_DotDash", QTextFrameFormat::BorderStyle::BorderStyle_DotDash);
490
+ define_qenum_value_under(rb_cQTextFrameFormatBorderStyle, "BorderStyle_DotDotDash", QTextFrameFormat::BorderStyle::BorderStyle_DotDotDash);
491
+ define_qenum_value_under(rb_cQTextFrameFormatBorderStyle, "BorderStyle_Groove", QTextFrameFormat::BorderStyle::BorderStyle_Groove);
492
+ define_qenum_value_under(rb_cQTextFrameFormatBorderStyle, "BorderStyle_Ridge", QTextFrameFormat::BorderStyle::BorderStyle_Ridge);
493
+ define_qenum_value_under(rb_cQTextFrameFormatBorderStyle, "BorderStyle_Inset", QTextFrameFormat::BorderStyle::BorderStyle_Inset);
494
+ define_qenum_value_under(rb_cQTextFrameFormatBorderStyle, "BorderStyle_Outset", QTextFrameFormat::BorderStyle::BorderStyle_Outset);
495
+
496
+ rb_cQTextTableFormat =
497
+ // RubyQt6::QtGui::QTextTableFormat
498
+ define_class_under<QTextTableFormat, QTextFrameFormat>(rb_mQt6QtGui, "QTextTableFormat")
499
+ // RubyQt6-Defined Functions
500
+ .define_method("set_alignment", [](QTextTableFormat *self, Qt::AlignmentFlag alignment) -> void { return self->setAlignment(alignment); }, Arg("alignment"))
501
+ // Constructor
502
+ .define_constructor(Constructor<QTextTableFormat>())
503
+ // Public Functions
504
+ .define_method("alignment", &QTextTableFormat::alignment)
505
+ .define_method("border_collapse", &QTextTableFormat::borderCollapse)
506
+ .define_method("cell_padding", &QTextTableFormat::cellPadding)
507
+ .define_method("cell_spacing", &QTextTableFormat::cellSpacing)
508
+ .define_method("clear_column_width_constraints", &QTextTableFormat::clearColumnWidthConstraints)
509
+ .define_method("column_width_constraints", &QTextTableFormat::columnWidthConstraints)
510
+ .define_method("columns", &QTextTableFormat::columns)
511
+ .define_method("header_row_count", &QTextTableFormat::headerRowCount)
512
+ .define_method("valid?", &QTextTableFormat::isValid)
513
+ .define_method("set_alignment", &QTextTableFormat::setAlignment, Arg("alignment"))
514
+ .define_method("set_border_collapse", &QTextTableFormat::setBorderCollapse, Arg("border_collapse"))
515
+ .define_method("set_cell_padding", &QTextTableFormat::setCellPadding, Arg("padding"))
516
+ .define_method("set_cell_spacing", &QTextTableFormat::setCellSpacing, Arg("spacing"))
517
+ .define_method("set_column_width_constraints", &QTextTableFormat::setColumnWidthConstraints, Arg("constraints"))
518
+ .define_method("set_columns", &QTextTableFormat::setColumns, Arg("columns"))
519
+ .define_method("set_header_row_count", &QTextTableFormat::setHeaderRowCount, Arg("count"));
520
+
521
+ rb_cQTextListFormat =
522
+ // RubyQt6::QtGui::QTextListFormat
523
+ define_class_under<QTextListFormat, QTextFormat>(rb_mQt6QtGui, "QTextListFormat")
524
+ // Constructor
525
+ .define_constructor(Constructor<QTextListFormat>())
526
+ // Public Functions
527
+ .define_method("indent", &QTextListFormat::indent)
528
+ .define_method("valid?", &QTextListFormat::isValid)
529
+ .define_method("number_prefix", &QTextListFormat::numberPrefix)
530
+ .define_method("number_suffix", &QTextListFormat::numberSuffix)
531
+ .define_method("set_indent", &QTextListFormat::setIndent, Arg("indent"))
532
+ .define_method("set_number_prefix", &QTextListFormat::setNumberPrefix, Arg("number_prefix"))
533
+ .define_method("set_number_suffix", &QTextListFormat::setNumberSuffix, Arg("number_suffix"))
534
+ .define_method("set_start", &QTextListFormat::setStart, Arg("indent"))
535
+ .define_method("set_style", &QTextListFormat::setStyle, Arg("style"))
536
+ .define_method("start", &QTextListFormat::start)
537
+ .define_method("style", &QTextListFormat::style);
538
+
539
+ Data_Type<QTextListFormat::Style> rb_cQTextListFormatStyle =
540
+ // RubyQt6::QtGui::QTextListFormat::Style
541
+ define_qenum_under<QTextListFormat::Style>(rb_cQTextListFormat, "Style");
542
+ define_qenum_value_under(rb_cQTextListFormatStyle, "ListDisc", QTextListFormat::Style::ListDisc);
543
+ define_qenum_value_under(rb_cQTextListFormatStyle, "ListCircle", QTextListFormat::Style::ListCircle);
544
+ define_qenum_value_under(rb_cQTextListFormatStyle, "ListSquare", QTextListFormat::Style::ListSquare);
545
+ define_qenum_value_under(rb_cQTextListFormatStyle, "ListDecimal", QTextListFormat::Style::ListDecimal);
546
+ define_qenum_value_under(rb_cQTextListFormatStyle, "ListLowerAlpha", QTextListFormat::Style::ListLowerAlpha);
547
+ define_qenum_value_under(rb_cQTextListFormatStyle, "ListUpperAlpha", QTextListFormat::Style::ListUpperAlpha);
548
+ define_qenum_value_under(rb_cQTextListFormatStyle, "ListLowerRoman", QTextListFormat::Style::ListLowerRoman);
549
+ define_qenum_value_under(rb_cQTextListFormatStyle, "ListUpperRoman", QTextListFormat::Style::ListUpperRoman);
550
+ define_qenum_value_under(rb_cQTextListFormatStyle, "ListStyleUndefined", QTextListFormat::Style::ListStyleUndefined);
551
+ }
@@ -0,0 +1,4 @@
1
+ #include <rice/rice.hpp>
2
+ #include <rice/stl.hpp>
3
+
4
+ void Init_qtextformat(Rice::Module rb_mQt6QtGui);
@@ -0,0 +1,25 @@
1
+ #include "qtextlist-rb.hpp"
2
+ #include <qtextlist.h>
3
+
4
+ using namespace Rice;
5
+
6
+ Rice::Class rb_cQTextList;
7
+
8
+ void Init_qtextlist(Rice::Module rb_mQt6QtGui)
9
+ {
10
+ rb_cQTextList =
11
+ // RubyQt6::QtGui::QTextList
12
+ define_class_under<QTextList, QTextBlockGroup>(rb_mQt6QtGui, "QTextList")
13
+ // RubyQt6-Defined Functions
14
+ .define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QTextList::staticMetaObject; })
15
+ // Public Functions
16
+ .define_method("add", &QTextList::add, Arg("block"))
17
+ .define_method("count", &QTextList::count)
18
+ .define_method("format", &QTextList::format)
19
+ .define_method("item", &QTextList::item, Arg("i"))
20
+ .define_method("item_number", &QTextList::itemNumber, Arg("block"))
21
+ .define_method("item_text", &QTextList::itemText, Arg("block"))
22
+ .define_method("remove", &QTextList::remove, Arg("block"))
23
+ .define_method("remove_item", &QTextList::removeItem, Arg("i"))
24
+ .define_method("set_format", &QTextList::setFormat, Arg("format"));
25
+ }
@@ -0,0 +1,4 @@
1
+ #include <rice/rice.hpp>
2
+ #include <rice/stl.hpp>
3
+
4
+ void Init_qtextlist(Rice::Module rb_mQt6QtGui);