ruby-qt6-qtgui 1.0.1 → 2.0.1

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 (127) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +4 -0
  3. data/ext/qt6/qtgui/extconf.rb +3 -13
  4. data/ext/qt6/qtgui/qaction-rb.cpp +16 -13
  5. data/ext/qt6/qtgui/qaction-rb.hpp +4 -3
  6. data/ext/qt6/qtgui/qactiongroup-rb.cpp +6 -6
  7. data/ext/qt6/qtgui/qactiongroup-rb.hpp +4 -3
  8. data/ext/qt6/qtgui/qbrush-rb.cpp +6 -4
  9. data/ext/qt6/qtgui/qbrush-rb.hpp +4 -3
  10. data/ext/qt6/qtgui/qclipboard-rb.cpp +8 -8
  11. data/ext/qt6/qtgui/qclipboard-rb.hpp +4 -3
  12. data/ext/qt6/qtgui/qcolor-rb.cpp +8 -3
  13. data/ext/qt6/qtgui/qcolor-rb.hpp +4 -3
  14. data/ext/qt6/qtgui/qcursor-rb.cpp +3 -3
  15. data/ext/qt6/qtgui/qcursor-rb.hpp +4 -3
  16. data/ext/qt6/qtgui/qdesktopservices-rb.cpp +17 -0
  17. data/ext/qt6/qtgui/qdesktopservices-rb.hpp +5 -0
  18. data/ext/qt6/qtgui/qevent-rb.cpp +45 -45
  19. data/ext/qt6/qtgui/qevent-rb.hpp +4 -3
  20. data/ext/qt6/qtgui/qfilesystemmodel-rb.cpp +7 -7
  21. data/ext/qt6/qtgui/qfilesystemmodel-rb.hpp +4 -3
  22. data/ext/qt6/qtgui/qfont-rb.cpp +6 -4
  23. data/ext/qt6/qtgui/qfont-rb.hpp +4 -3
  24. data/ext/qt6/qtgui/qfontdatabase-rb.cpp +3 -3
  25. data/ext/qt6/qtgui/qfontdatabase-rb.hpp +4 -3
  26. data/ext/qt6/qtgui/qfontinfo-rb.cpp +3 -3
  27. data/ext/qt6/qtgui/qfontinfo-rb.hpp +4 -3
  28. data/ext/qt6/qtgui/qfontmetrics-rb.cpp +4 -4
  29. data/ext/qt6/qtgui/qfontmetrics-rb.hpp +4 -3
  30. data/ext/qt6/qtgui/qgradient-rb.cpp +86 -0
  31. data/ext/qt6/qtgui/qgradient-rb.hpp +5 -0
  32. data/ext/qt6/qtgui/qguiapplication-rb.cpp +16 -18
  33. data/ext/qt6/qtgui/qguiapplication-rb.hpp +4 -3
  34. data/ext/qt6/qtgui/qicon-rb.cpp +3 -3
  35. data/ext/qt6/qtgui/qicon-rb.hpp +4 -3
  36. data/ext/qt6/qtgui/qimage-rb.cpp +3 -3
  37. data/ext/qt6/qtgui/qimage-rb.hpp +4 -3
  38. data/ext/qt6/qtgui/qimagewriter-rb.cpp +3 -3
  39. data/ext/qt6/qtgui/qimagewriter-rb.hpp +4 -3
  40. data/ext/qt6/qtgui/qkeysequence-rb.cpp +3 -4
  41. data/ext/qt6/qtgui/qkeysequence-rb.hpp +4 -3
  42. data/ext/qt6/qtgui/qmovie-rb.cpp +10 -10
  43. data/ext/qt6/qtgui/qmovie-rb.hpp +4 -3
  44. data/ext/qt6/qtgui/qpagedpaintdevice-rb.cpp +3 -3
  45. data/ext/qt6/qtgui/qpagedpaintdevice-rb.hpp +4 -3
  46. data/ext/qt6/qtgui/qpaintdevice-rb.cpp +3 -3
  47. data/ext/qt6/qtgui/qpaintdevice-rb.hpp +4 -3
  48. data/ext/qt6/qtgui/qpainter-rb.cpp +3 -3
  49. data/ext/qt6/qtgui/qpainter-rb.hpp +4 -3
  50. data/ext/qt6/qtgui/qpainterpath-rb.cpp +4 -4
  51. data/ext/qt6/qtgui/qpainterpath-rb.hpp +4 -3
  52. data/ext/qt6/qtgui/qpainterpathstroker-rb.cpp +3 -3
  53. data/ext/qt6/qtgui/qpainterpathstroker-rb.hpp +4 -3
  54. data/ext/qt6/qtgui/qpalette-rb.cpp +5 -3
  55. data/ext/qt6/qtgui/qpalette-rb.hpp +4 -3
  56. data/ext/qt6/qtgui/qpen-rb.cpp +5 -3
  57. data/ext/qt6/qtgui/qpen-rb.hpp +4 -3
  58. data/ext/qt6/qtgui/qpicture-rb.cpp +3 -3
  59. data/ext/qt6/qtgui/qpicture-rb.hpp +4 -3
  60. data/ext/qt6/qtgui/qpixmap-rb.cpp +7 -6
  61. data/ext/qt6/qtgui/qpixmap-rb.hpp +4 -3
  62. data/ext/qt6/qtgui/qpolygon-rb.cpp +4 -4
  63. data/ext/qt6/qtgui/qpolygon-rb.hpp +4 -3
  64. data/ext/qt6/qtgui/qregion-rb.cpp +3 -3
  65. data/ext/qt6/qtgui/qregion-rb.hpp +4 -3
  66. data/ext/qt6/qtgui/qscreen-rb.cpp +13 -13
  67. data/ext/qt6/qtgui/qscreen-rb.hpp +4 -3
  68. data/ext/qt6/qtgui/qshortcut-rb.cpp +6 -6
  69. data/ext/qt6/qtgui/qshortcut-rb.hpp +4 -3
  70. data/ext/qt6/qtgui/qstandarditemmodel-rb.cpp +7 -7
  71. data/ext/qt6/qtgui/qstandarditemmodel-rb.hpp +4 -3
  72. data/ext/qt6/qtgui/qstylehints-rb.cpp +73 -0
  73. data/ext/qt6/qtgui/qstylehints-rb.hpp +5 -0
  74. data/ext/qt6/qtgui/qtextcursor-rb.cpp +3 -3
  75. data/ext/qt6/qtgui/qtextcursor-rb.hpp +4 -3
  76. data/ext/qt6/qtgui/qtextdocument-rb.cpp +13 -14
  77. data/ext/qt6/qtgui/qtextdocument-rb.hpp +4 -3
  78. data/ext/qt6/qtgui/qtextformat-rb.cpp +30 -11
  79. data/ext/qt6/qtgui/qtextformat-rb.hpp +4 -3
  80. data/ext/qt6/qtgui/qtextlayout-rb.cpp +88 -0
  81. data/ext/qt6/qtgui/qtextlayout-rb.hpp +5 -0
  82. data/ext/qt6/qtgui/qtextlist-rb.cpp +3 -3
  83. data/ext/qt6/qtgui/qtextlist-rb.hpp +4 -3
  84. data/ext/qt6/qtgui/qtextobject-rb.cpp +47 -5
  85. data/ext/qt6/qtgui/qtextobject-rb.hpp +4 -3
  86. data/ext/qt6/qtgui/qtextoption-rb.cpp +3 -3
  87. data/ext/qt6/qtgui/qtextoption-rb.hpp +4 -3
  88. data/ext/qt6/qtgui/qtexttable-rb.cpp +4 -4
  89. data/ext/qt6/qtgui/qtexttable-rb.hpp +4 -3
  90. data/ext/qt6/qtgui/qtgui-rb.cpp +14 -4
  91. data/ext/qt6/qtgui/qtgui-rb.hpp +1 -1
  92. data/ext/qt6/qtgui/qtguiversion-rb.cpp +2 -2
  93. data/ext/qt6/qtgui/qtguiversion-rb.hpp +4 -3
  94. data/ext/qt6/qtgui/qtransform-rb.cpp +3 -3
  95. data/ext/qt6/qtgui/qtransform-rb.hpp +4 -3
  96. data/ext/qt6/qtgui/qvalidator-rb.cpp +18 -18
  97. data/ext/qt6/qtgui/qvalidator-rb.hpp +4 -3
  98. data/ext/qt6/qtgui/qwindow-rb.cpp +23 -28
  99. data/ext/qt6/qtgui/qwindow-rb.hpp +4 -3
  100. data/ext/qt6/qtgui/t-qtgui-rb.cpp +10 -2
  101. data/ext/qt6/qtgui/t-qtgui-rb.hpp +4 -3
  102. data/lib/qt6/qtgui/qaction.rb +28 -0
  103. data/lib/qt6/qtgui/qactiongroup.rb +1 -1
  104. data/lib/qt6/qtgui/qbrush.rb +9 -0
  105. data/lib/qt6/qtgui/qcolor.rb +14 -0
  106. data/lib/qt6/qtgui/qconicalgradient.rb +27 -0
  107. data/lib/qt6/qtgui/qdesktopservices.rb +9 -0
  108. data/lib/qt6/qtgui/qfont.rb +11 -0
  109. data/lib/qt6/qtgui/qgradient.rb +27 -0
  110. data/lib/qt6/qtgui/qguiapplication.rb +2 -3
  111. data/lib/qt6/qtgui/qicon.rb +1 -1
  112. data/lib/qt6/qtgui/qkeysequence.rb +0 -2
  113. data/lib/qt6/qtgui/qlineargradient.rb +28 -0
  114. data/lib/qt6/qtgui/qpainter.rb +2 -2
  115. data/lib/qt6/qtgui/qpalette.rb +6 -0
  116. data/lib/qt6/qtgui/qpen.rb +6 -0
  117. data/lib/qt6/qtgui/qpixmap.rb +6 -0
  118. data/lib/qt6/qtgui/qradialgradient.rb +53 -0
  119. data/lib/qt6/qtgui/qstandarditem.rb +11 -0
  120. data/lib/qt6/qtgui/qstylehints.rb +25 -0
  121. data/lib/qt6/qtgui/qtextblock.rb +22 -0
  122. data/lib/qt6/qtgui/qtextlayout.rb +46 -0
  123. data/lib/qt6/qtgui/qtextlength.rb +25 -0
  124. data/lib/qt6/qtgui/qtexttableformat.rb +11 -0
  125. data/lib/qt6/qtgui/version.rb +1 -1
  126. data/lib/qt6/qtgui.rb +9 -0
  127. metadata +23 -6
@@ -1,4 +1,5 @@
1
- #include <rice/rice.hpp>
2
- #include <rice/stl.hpp>
1
+ #include <rice/qt6.hpp>
3
2
 
4
- void Init_qtextoption(Rice::Module rb_mQt6QtGui);
3
+ RICE4RUBYQT6_USE_NAMESPACE
4
+
5
+ void Init_qtextoption(Module rb_mQt6QtGui);
@@ -1,12 +1,12 @@
1
1
  #include "qtexttable-rb.hpp"
2
2
  #include <qtexttable.h>
3
3
 
4
- using namespace Rice;
4
+ RICE4RUBYQT6_USE_NAMESPACE
5
5
 
6
- Rice::Class rb_cQTextTable;
7
- Rice::Class rb_cQTextTableCell;
6
+ Class rb_cQTextTable;
7
+ Class rb_cQTextTableCell;
8
8
 
9
- void Init_qtexttable(Rice::Module rb_mQt6QtGui)
9
+ void Init_qtexttable(Module rb_mQt6QtGui)
10
10
  {
11
11
  rb_cQTextTable =
12
12
  // RubyQt6::QtGui::QTextTable
@@ -1,4 +1,5 @@
1
- #include <rice/rice.hpp>
2
- #include <rice/stl.hpp>
1
+ #include <rice/qt6.hpp>
3
2
 
4
- void Init_qtexttable(Rice::Module rb_mQt6QtGui);
3
+ RICE4RUBYQT6_USE_NAMESPACE
4
+
5
+ void Init_qtexttable(Module rb_mQt6QtGui);
@@ -4,11 +4,13 @@
4
4
  #include "qbrush-rb.hpp"
5
5
  #include "qcolor-rb.hpp"
6
6
  #include "qcursor-rb.hpp"
7
+ #include "qdesktopservices-rb.hpp"
7
8
  #include "qevent-rb.hpp"
8
9
  #include "qfont-rb.hpp"
9
10
  #include "qfontdatabase-rb.hpp"
10
11
  #include "qfontinfo-rb.hpp"
11
12
  #include "qfontmetrics-rb.hpp"
13
+ #include "qgradient-rb.hpp"
12
14
  #include "qicon-rb.hpp"
13
15
  #include "qkeysequence-rb.hpp"
14
16
  #include "qpaintdevice-rb.hpp"
@@ -25,6 +27,7 @@
25
27
  #include "qregion-rb.hpp"
26
28
  #include "qtextcursor-rb.hpp"
27
29
  #include "qtextformat-rb.hpp"
30
+ #include "qtextlayout-rb.hpp"
28
31
  #include "qtextoption-rb.hpp"
29
32
  #include "qtransform-rb.hpp"
30
33
 
@@ -37,6 +40,7 @@
37
40
  #include "qmovie-rb.hpp"
38
41
  #include "qscreen-rb.hpp"
39
42
  #include "qshortcut-rb.hpp"
43
+ #include "qstylehints-rb.hpp"
40
44
  #include "qtextdocument-rb.hpp"
41
45
  #include "qtextobject-rb.hpp"
42
46
  #include "qtextlist-rb.hpp"
@@ -47,22 +51,26 @@
47
51
  #include "t-qtgui-rb.hpp"
48
52
  #include "qpolygon-rb.hpp"
49
53
 
54
+ RICE4RUBYQT6_USE_NAMESPACE
55
+
50
56
  extern "C" void Init_qtgui()
51
57
  {
52
- return Rice::detail::cpp_protect([] {
53
- Rice::Module rb_mQt6 = Rice::define_module("RubyQt6");
54
- Rice::Module rb_mQt6QtGui = define_module_under(rb_mQt6, "QtGui");
58
+ return detail::cpp_protect([] {
59
+ Module rb_mQt6 = define_module("RubyQt6");
60
+ Module rb_mQt6QtGui = define_module_under(rb_mQt6, "QtGui");
55
61
 
56
62
  Init_qtguiversion(rb_mQt6QtGui);
57
63
 
58
64
  Init_qbrush(rb_mQt6QtGui);
59
65
  Init_qcolor(rb_mQt6QtGui);
60
66
  Init_qcursor(rb_mQt6QtGui);
67
+ Init_qdesktopservices(rb_mQt6QtGui);
61
68
  Init_qevent(rb_mQt6QtGui);
62
69
  Init_qfont(rb_mQt6QtGui);
63
70
  Init_qfontdatabase(rb_mQt6QtGui);
64
71
  Init_qfontinfo(rb_mQt6QtGui);
65
72
  Init_qfontmetrics(rb_mQt6QtGui);
73
+ Init_qgradient(rb_mQt6QtGui);
66
74
  Init_qicon(rb_mQt6QtGui);
67
75
  Init_qkeysequence(rb_mQt6QtGui);
68
76
  Init_qpaintdevice(rb_mQt6QtGui);
@@ -79,6 +87,7 @@ extern "C" void Init_qtgui()
79
87
  Init_qregion(rb_mQt6QtGui);
80
88
  Init_qtextcursor(rb_mQt6QtGui);
81
89
  Init_qtextformat(rb_mQt6QtGui);
90
+ Init_qtextlayout(rb_mQt6QtGui);
82
91
  Init_qtextoption(rb_mQt6QtGui);
83
92
  Init_qtransform(rb_mQt6QtGui);
84
93
 
@@ -91,6 +100,7 @@ extern "C" void Init_qtgui()
91
100
  Init_qmovie(rb_mQt6QtGui);
92
101
  Init_qscreen(rb_mQt6QtGui);
93
102
  Init_qshortcut(rb_mQt6QtGui);
103
+ Init_qstylehints(rb_mQt6QtGui);
94
104
  Init_qtextdocument(rb_mQt6QtGui);
95
105
  Init_qtextobject(rb_mQt6QtGui);
96
106
  Init_qtextlist(rb_mQt6QtGui);
@@ -98,7 +108,7 @@ extern "C" void Init_qtgui()
98
108
  Init_qvalidator(rb_mQt6QtGui);
99
109
  Init_qwindow(rb_mQt6QtGui);
100
110
 
101
- Rice::Module rb_mQt6T = define_module_under(rb_mQt6, "T");
111
+ Module rb_mQt6T = define_module_under(rb_mQt6, "T");
102
112
  Init_t_qtgui(rb_mQt6T);
103
113
  Init_qpolygon(rb_mQt6QtGui);
104
114
  });
@@ -1,3 +1,3 @@
1
- #include <rice/rice.hpp>
1
+ #include <rice/qt6.hpp>
2
2
 
3
3
  extern "C" void Init_qtgui();
@@ -1,9 +1,9 @@
1
1
  #include "qtguiversion-rb.hpp"
2
2
  #include <qtguiversion.h>
3
3
 
4
- using namespace Rice;
4
+ RICE4RUBYQT6_USE_NAMESPACE
5
5
 
6
- void Init_qtguiversion(Rice::Module rb_mQt6QtGui)
6
+ void Init_qtguiversion(Module rb_mQt6QtGui)
7
7
  {
8
8
  rb_mQt6QtGui.define_constant("QTGUI_VERSION", QTGUI_VERSION_STR);
9
9
  }
@@ -1,4 +1,5 @@
1
- #include <rice/rice.hpp>
2
- #include <rice/stl.hpp>
1
+ #include <rice/qt6.hpp>
3
2
 
4
- void Init_qtguiversion(Rice::Module rb_mQt6QtGui);
3
+ RICE4RUBYQT6_USE_NAMESPACE
4
+
5
+ void Init_qtguiversion(Module rb_mQt6QtGui);
@@ -2,11 +2,11 @@
2
2
  #include <qtransform.h>
3
3
  #include <rice/qt6/qenum.hpp>
4
4
 
5
- using namespace Rice;
5
+ RICE4RUBYQT6_USE_NAMESPACE
6
6
 
7
- Rice::Class rb_cQTransform;
7
+ Class rb_cQTransform;
8
8
 
9
- void Init_qtransform(Rice::Module rb_mQt6QtGui)
9
+ void Init_qtransform(Module rb_mQt6QtGui)
10
10
  {
11
11
  rb_cQTransform =
12
12
  // RubyQt6::QtGui::QTransform
@@ -1,4 +1,5 @@
1
- #include <rice/rice.hpp>
2
- #include <rice/stl.hpp>
1
+ #include <rice/qt6.hpp>
3
2
 
4
- void Init_qtransform(Rice::Module rb_mQt6QtGui);
3
+ RICE4RUBYQT6_USE_NAMESPACE
4
+
5
+ void Init_qtransform(Module rb_mQt6QtGui);
@@ -2,14 +2,14 @@
2
2
  #include <qvalidator.h>
3
3
  #include <rice/qt6/qenum.hpp>
4
4
 
5
- using namespace Rice;
5
+ RICE4RUBYQT6_USE_NAMESPACE
6
6
 
7
- Rice::Class rb_cQValidator;
8
- Rice::Class rb_cQDoubleValidator;
9
- Rice::Class rb_cQIntValidator;
10
- Rice::Class rb_cQRegularExpressionValidator;
7
+ Class rb_cQValidator;
8
+ Class rb_cQDoubleValidator;
9
+ Class rb_cQIntValidator;
10
+ Class rb_cQRegularExpressionValidator;
11
11
 
12
- void Init_qvalidator(Rice::Module rb_mQt6QtGui)
12
+ void Init_qvalidator(Module rb_mQt6QtGui)
13
13
  {
14
14
  rb_cQValidator =
15
15
  // RubyQt6::QtGui::QValidator
@@ -20,9 +20,9 @@ void Init_qvalidator(Rice::Module rb_mQt6QtGui)
20
20
  .define_method("fixup", &QValidator::fixup, Arg("input"))
21
21
  .define_method("locale", &QValidator::locale)
22
22
  .define_method("set_locale", &QValidator::setLocale, Arg("locale"))
23
- .define_method("validate", &QValidator::validate, Arg("input"), Arg("pos"))
23
+ .define_method("validate", &QValidator::validate, Arg("input"), Arg("pos"));
24
24
  // Signals
25
- .define_method("changed", &QValidator::changed);
25
+ // .define_method("changed", &QValidator::changed);
26
26
 
27
27
  Data_Type<QValidator::State> rb_cQValidatorState =
28
28
  // RubyQt6::QtGui::QValidator::State
@@ -50,12 +50,12 @@ void Init_qvalidator(Rice::Module rb_mQt6QtGui)
50
50
  .define_method<void (QDoubleValidator::*)(double, double, int)>("set_range", &QDoubleValidator::setRange, Arg("bottom"), Arg("top"), Arg("decimals"))
51
51
  .define_method("set_top", &QDoubleValidator::setTop, Arg("top"))
52
52
  .define_method("top", &QDoubleValidator::top)
53
- .define_method("validate", &QDoubleValidator::validate, Arg("input"), Arg("pos"))
53
+ .define_method("validate", &QDoubleValidator::validate, Arg("input"), Arg("pos"));
54
54
  // Signals
55
- .define_method("bottom_changed", &QDoubleValidator::bottomChanged, Arg("bottom"))
56
- .define_method("decimals_changed", &QDoubleValidator::decimalsChanged, Arg("decimals"))
57
- .define_method("notation_changed", &QDoubleValidator::notationChanged, Arg("notation"))
58
- .define_method("top_changed", &QDoubleValidator::topChanged, Arg("top"));
55
+ // .define_method("bottom_changed", &QDoubleValidator::bottomChanged, Arg("bottom"))
56
+ // .define_method("decimals_changed", &QDoubleValidator::decimalsChanged, Arg("decimals"))
57
+ // .define_method("notation_changed", &QDoubleValidator::notationChanged, Arg("notation"))
58
+ // .define_method("top_changed", &QDoubleValidator::topChanged, Arg("top"));
59
59
 
60
60
  Data_Type<QDoubleValidator::Notation> rb_cQDoubleValidatorNotation =
61
61
  // RubyQt6::QtGui::QDoubleValidator::Notation
@@ -77,10 +77,10 @@ void Init_qvalidator(Rice::Module rb_mQt6QtGui)
77
77
  .define_method("set_range", &QIntValidator::setRange, Arg("bottom"), Arg("top"))
78
78
  .define_method("set_top", &QIntValidator::setTop, Arg("top"))
79
79
  .define_method("top", &QIntValidator::top)
80
- .define_method("validate", &QIntValidator::validate, Arg("input"), Arg("pos"))
80
+ .define_method("validate", &QIntValidator::validate, Arg("input"), Arg("pos"));
81
81
  // Signals
82
- .define_method("bottom_changed", &QIntValidator::bottomChanged, Arg("bottom"))
83
- .define_method("top_changed", &QIntValidator::topChanged, Arg("top"));
82
+ // .define_method("bottom_changed", &QIntValidator::bottomChanged, Arg("bottom"))
83
+ // .define_method("top_changed", &QIntValidator::topChanged, Arg("top"));
84
84
 
85
85
  rb_cQRegularExpressionValidator =
86
86
  // RubyQt6::QtGui::QRegularExpressionValidator
@@ -92,7 +92,7 @@ void Init_qvalidator(Rice::Module rb_mQt6QtGui)
92
92
  // Public Functions
93
93
  .define_method("regular_expression", &QRegularExpressionValidator::regularExpression)
94
94
  // Public Slots
95
- .define_method("set_regular_expression", &QRegularExpressionValidator::setRegularExpression, Arg("re"))
95
+ .define_method("set_regular_expression", &QRegularExpressionValidator::setRegularExpression, Arg("re"));
96
96
  // Signals
97
- .define_method("regular_expression_changed", &QRegularExpressionValidator::regularExpressionChanged, Arg("re"));
97
+ // .define_method("regular_expression_changed", &QRegularExpressionValidator::regularExpressionChanged, Arg("re"));
98
98
  }
@@ -1,4 +1,5 @@
1
- #include <rice/rice.hpp>
2
- #include <rice/stl.hpp>
1
+ #include <rice/qt6.hpp>
3
2
 
4
- void Init_qvalidator(Rice::Module rb_mQt6QtGui);
3
+ RICE4RUBYQT6_USE_NAMESPACE
4
+
5
+ void Init_qvalidator(Module rb_mQt6QtGui);
@@ -4,13 +4,12 @@
4
4
 
5
5
  #include <QAccessible>
6
6
  #include <QScreen>
7
- #include <QVulkanInstance>
8
7
 
9
- using namespace Rice;
8
+ RICE4RUBYQT6_USE_NAMESPACE
10
9
 
11
- Rice::Class rb_cQWindow;
10
+ Class rb_cQWindow;
12
11
 
13
- void Init_qwindow(Rice::Module rb_mQt6QtGui)
12
+ void Init_qwindow(Module rb_mQt6QtGui)
14
13
  {
15
14
  rb_cQWindow =
16
15
  // RubyQt6::QtGui::QWindow
@@ -22,7 +21,6 @@ void Init_qwindow(Rice::Module rb_mQt6QtGui)
22
21
  // Inherits QSurface
23
22
  .define_method("supports_open_gl", &QWindow::supportsOpenGL)
24
23
  .define_method("surface_class", &QWindow::surfaceClass)
25
- // .define_method("surface_handle", &QWindow::surfaceHandle)
26
24
  // Public Functions
27
25
  .define_method("accessible_root", &QWindow::accessibleRoot)
28
26
  .define_method("base_size", &QWindow::baseSize)
@@ -39,7 +37,6 @@ void Init_qwindow(Rice::Module rb_mQt6QtGui)
39
37
  .define_method("frame_margins", &QWindow::frameMargins)
40
38
  .define_method("frame_position", &QWindow::framePosition)
41
39
  .define_method("geometry", &QWindow::geometry)
42
- // .define_method("handle", &QWindow::handle)
43
40
  .define_method("height", &QWindow::height)
44
41
  .define_method("icon", &QWindow::icon)
45
42
  .define_method("active?", &QWindow::isActive)
@@ -92,7 +89,6 @@ void Init_qwindow(Rice::Module rb_mQt6QtGui)
92
89
  .define_method("set_surface_type", &QWindow::setSurfaceType, Arg("surface_type"))
93
90
  .define_method("set_transient_parent", &QWindow::setTransientParent, Arg("parent"))
94
91
  .define_method("set_visibility", &QWindow::setVisibility, Arg("v"))
95
- .define_method("set_vulkan_instance", &QWindow::setVulkanInstance, Arg("instance"))
96
92
  .define_method("set_window_state", &QWindow::setWindowState, Arg("state"))
97
93
  .define_method("set_window_states", &QWindow::setWindowStates, Arg("states"))
98
94
  .define_method("size", &QWindow::size)
@@ -103,7 +99,6 @@ void Init_qwindow(Rice::Module rb_mQt6QtGui)
103
99
  .define_method("type", &QWindow::type)
104
100
  .define_method("unset_cursor", &QWindow::unsetCursor)
105
101
  .define_method("visibility", &QWindow::visibility)
106
- .define_method("vulkan_instance", &QWindow::vulkanInstance)
107
102
  .define_method("width", &QWindow::width)
108
103
  .define_method("win_id", &QWindow::winId)
109
104
  .define_method("window_state", &QWindow::windowState)
@@ -138,26 +133,26 @@ void Init_qwindow(Rice::Module rb_mQt6QtGui)
138
133
  .define_method("start_system_move", &QWindow::startSystemMove)
139
134
  .define_method("start_system_resize", &QWindow::startSystemResize, Arg("edges"))
140
135
  // Signals
141
- .define_method("active_changed", &QWindow::activeChanged)
142
- .define_method("content_orientation_changed", &QWindow::contentOrientationChanged, Arg("orientation"))
143
- .define_method("focus_object_changed", &QWindow::focusObjectChanged, Arg("object"))
144
- .define_method("height_changed", &QWindow::heightChanged, Arg("arg"))
145
- .define_method("maximum_height_changed", &QWindow::maximumHeightChanged, Arg("arg"))
146
- .define_method("maximum_width_changed", &QWindow::maximumWidthChanged, Arg("arg"))
147
- .define_method("minimum_height_changed", &QWindow::minimumHeightChanged, Arg("arg"))
148
- .define_method("minimum_width_changed", &QWindow::minimumWidthChanged, Arg("arg"))
149
- .define_method("modality_changed", &QWindow::modalityChanged, Arg("modality"))
150
- .define_method("opacity_changed", &QWindow::opacityChanged, Arg("opacity"))
151
- .define_method("safe_area_margins_changed", &QWindow::safeAreaMarginsChanged, Arg("arg"))
152
- .define_method("screen_changed", &QWindow::screenChanged, Arg("screen"))
153
- .define_method("transient_parent_changed", &QWindow::transientParentChanged, Arg("transient_parent"))
154
- .define_method("visibility_changed", &QWindow::visibilityChanged, Arg("visibility"))
155
- .define_method("visible_changed", &QWindow::visibleChanged, Arg("arg"))
156
- .define_method("width_changed", &QWindow::widthChanged, Arg("arg"))
157
- .define_method("window_state_changed", &QWindow::windowStateChanged, Arg("window_state"))
158
- .define_method("window_title_changed", &QWindow::windowTitleChanged, Arg("title"))
159
- .define_method("x_changed", &QWindow::xChanged, Arg("arg"))
160
- .define_method("y_changed", &QWindow::yChanged, Arg("arg"))
136
+ // .define_method("active_changed", &QWindow::activeChanged)
137
+ // .define_method("content_orientation_changed", &QWindow::contentOrientationChanged, Arg("orientation"))
138
+ // .define_method("focus_object_changed", &QWindow::focusObjectChanged, Arg("object"))
139
+ // .define_method("height_changed", &QWindow::heightChanged, Arg("arg"))
140
+ // .define_method("maximum_height_changed", &QWindow::maximumHeightChanged, Arg("arg"))
141
+ // .define_method("maximum_width_changed", &QWindow::maximumWidthChanged, Arg("arg"))
142
+ // .define_method("minimum_height_changed", &QWindow::minimumHeightChanged, Arg("arg"))
143
+ // .define_method("minimum_width_changed", &QWindow::minimumWidthChanged, Arg("arg"))
144
+ // .define_method("modality_changed", &QWindow::modalityChanged, Arg("modality"))
145
+ // .define_method("opacity_changed", &QWindow::opacityChanged, Arg("opacity"))
146
+ // .define_method("safe_area_margins_changed", &QWindow::safeAreaMarginsChanged, Arg("arg"))
147
+ // .define_method("screen_changed", &QWindow::screenChanged, Arg("screen"))
148
+ // .define_method("transient_parent_changed", &QWindow::transientParentChanged, Arg("transient_parent"))
149
+ // .define_method("visibility_changed", &QWindow::visibilityChanged, Arg("visibility"))
150
+ // .define_method("visible_changed", &QWindow::visibleChanged, Arg("arg"))
151
+ // .define_method("width_changed", &QWindow::widthChanged, Arg("arg"))
152
+ // .define_method("window_state_changed", &QWindow::windowStateChanged, Arg("window_state"))
153
+ // .define_method("window_title_changed", &QWindow::windowTitleChanged, Arg("title"))
154
+ // .define_method("x_changed", &QWindow::xChanged, Arg("arg"))
155
+ // .define_method("y_changed", &QWindow::yChanged, Arg("arg"))
161
156
  // Static Public Members
162
157
  .define_singleton_function("from_win_id", &QWindow::fromWinId, Arg("id"));
163
158
 
@@ -1,4 +1,5 @@
1
- #include <rice/rice.hpp>
2
- #include <rice/stl.hpp>
1
+ #include <rice/qt6.hpp>
3
2
 
4
- void Init_qwindow(Rice::Module rb_mQt6QtGui);
3
+ RICE4RUBYQT6_USE_NAMESPACE
4
+
5
+ void Init_qwindow(Module rb_mQt6QtGui);
@@ -3,11 +3,13 @@
3
3
 
4
4
  #include <QPoint>
5
5
  #include <QPointF>
6
+ #include <QTextLayout>
7
+ #include <QTextLength>
6
8
  #include <QScreen>
7
9
 
8
- using namespace Rice;
10
+ RICE4RUBYQT6_USE_NAMESPACE
9
11
 
10
- void Init_t_qtgui(Rice::Module rb_mQt6T)
12
+ void Init_t_qtgui(Module rb_mQt6T)
11
13
  {
12
14
  // QList<QPoint> -> QPolygon
13
15
  define_qlist_under<QPoint>(rb_mQt6T);
@@ -15,6 +17,12 @@ void Init_t_qtgui(Rice::Module rb_mQt6T)
15
17
  // QList<QPointF> -> QPolygonF
16
18
  define_qlist_under<QPointF>(rb_mQt6T);
17
19
 
20
+ // QList<QTextLayout::FormatRange>
21
+ define_qlist_under<QTextLayout::FormatRange>(rb_mQt6T);
22
+
23
+ // QList<QTextLength>
24
+ define_qlist_under<QTextLength>(rb_mQt6T);
25
+
18
26
  // QList<QScreen *>
19
27
  define_qlist_under<QScreen *>(rb_mQt6T);
20
28
  }
@@ -1,4 +1,5 @@
1
- #include <rice/rice.hpp>
2
- #include <rice/stl.hpp>
1
+ #include <rice/qt6.hpp>
3
2
 
4
- void Init_t_qtgui(Rice::Module rb_mQt6T);
3
+ RICE4RUBYQT6_USE_NAMESPACE
4
+
5
+ void Init_t_qtgui(Module rb_mQt6T);
@@ -18,6 +18,14 @@ module RubyQt6
18
18
  rubyqt6_declare_enum_under QAction, QAction::Priority
19
19
  rubyqt6_declare_enum_under QAction, QAction::ActionEvent
20
20
 
21
+ # @!parse
22
+ QtCore::QVariant.register(
23
+ _qvariant_register_metatype,
24
+ method(:_qvariant_from_value),
25
+ method(:_qvariant_to_value),
26
+ from: self
27
+ )
28
+
21
29
  # @!parse
22
30
  q_object do
23
31
  signal "changed()"
@@ -64,6 +72,26 @@ module RubyQt6
64
72
  end
65
73
  _take_ownership_from_ruby(self)
66
74
  end
75
+
76
+ # @!visibility private
77
+ def menu
78
+ QtWidgets::QMenu._ioc_qaction_menu(self)
79
+ end
80
+
81
+ # @!visibility private
82
+ def set_menu(menu)
83
+ QtWidgets::QMenu._ioc_qaction_set_menu(self, menu)
84
+ end
85
+
86
+ # @!visibility private
87
+ def set_text(text)
88
+ _set_text(T.to_qstr(text))
89
+ end
90
+
91
+ # @!visibility private
92
+ def set_shortcut(shortcut)
93
+ _set_shortcut(T.to_qkeysequence(shortcut))
94
+ end
67
95
  end
68
96
  end
69
97
  end
@@ -5,7 +5,7 @@ module RubyQt6
5
5
  # @see https://doc.qt.io/qt-6/qactiongroup.html
6
6
  class QActionGroup < RubyQt6::QtCore::QObject
7
7
  # @!parse class ExclusionPolicy; end
8
- rubyqt6_declare_enum_under QActionGroup, QActionGroup::ExclusionPolicy
8
+ rubyqt6_declare_enum_under QActionGroup, QActionGroup::ExclusionPolicy, alias: false
9
9
 
10
10
  # @!parse
11
11
  q_object do
@@ -36,6 +36,9 @@ module RubyQt6
36
36
  # @param color [QColor]
37
37
  # @param pixmap [QPixmap]
38
38
  #
39
+ # @overload initialize(gradient)
40
+ # @param gradient [QGradient]
41
+ #
39
42
  # @overload initialize(image)
40
43
  # @param image [QImage]
41
44
  #
@@ -44,6 +47,12 @@ module RubyQt6
44
47
  def initialize(*args)
45
48
  _initialize(*args)
46
49
  end
50
+
51
+ # @!visibility private
52
+ def ==(other)
53
+ return false unless other.is_a?(self.class)
54
+ self.class._operator_equal(self, other)
55
+ end
47
56
  end
48
57
  end
49
58
  end
@@ -9,6 +9,14 @@ module RubyQt6
9
9
  rubyqt6_declare_enum_under QColor, QColor::NameFormat
10
10
  rubyqt6_declare_enum_under QColor, QColor::Spec
11
11
 
12
+ # @!parse
13
+ QtCore::QVariant.register(
14
+ _qvariant_register_metatype,
15
+ method(:_qvariant_from_value),
16
+ method(:_qvariant_to_value),
17
+ from: self
18
+ )
19
+
12
20
  # @!visibility private
13
21
  alias_method :_initialize, :initialize
14
22
 
@@ -39,6 +47,12 @@ module RubyQt6
39
47
  _initialize(*args)
40
48
  end
41
49
 
50
+ # @!visibility private
51
+ def ==(other)
52
+ return false unless other.is_a?(self.class)
53
+ self.class._operator_equal(self, other)
54
+ end
55
+
42
56
  # @!visibility private
43
57
  def inspect
44
58
  rgb = name(QtGui::QColor::NameFormat::HexRgb).to_s
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RubyQt6
4
+ module QtGui
5
+ # @see https://doc.qt.io/qt-6/qconicalgradient.html
6
+ class QConicalGradient < RubyQt6::QtGui::QGradient
7
+ # @!visibility private
8
+ alias_method :_initialize, :initialize
9
+
10
+ # @return [QConicalGradient]
11
+ #
12
+ # @overload initialize
13
+ #
14
+ # @overload initialize(center_x, center_y, start_angle)
15
+ # @param center_x [Float]
16
+ # @param center_y [Float]
17
+ # @param start_angle [Float]
18
+ #
19
+ # @overload initialize(center, start_angle)
20
+ # @param center [QPointF]
21
+ # @param start_angle [Float]
22
+ def initialize(*args)
23
+ _initialize(*args)
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RubyQt6
4
+ module QtGui
5
+ # @see https://doc.qt.io/qt-6/qdesktopservices.html
6
+ class QDesktopServices
7
+ end
8
+ end
9
+ end
@@ -56,6 +56,17 @@ module RubyQt6
56
56
  _initialize(*args)
57
57
  end
58
58
 
59
+ # @!visibility private
60
+ def set_family(family)
61
+ _set_family(T.to_qstr(family))
62
+ end
63
+
64
+ # @!visibility private
65
+ def ==(other)
66
+ return false unless other.is_a?(self.class)
67
+ self.class._operator_equal(self, other)
68
+ end
69
+
59
70
  # @!visibility private
60
71
  def to_s
61
72
  to_string.to_s
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RubyQt6
4
+ module QtGui
5
+ # @see https://doc.qt.io/qt-6/qgradient.html
6
+ class QGradient
7
+ # @!visibility private
8
+ alias_method :_initialize, :initialize
9
+
10
+ # @return [QGradient]
11
+ #
12
+ # @overload initialize
13
+ #
14
+ # @overload initialize(preset)
15
+ # @param preset [QGradient::Preset]
16
+ def initialize(*args)
17
+ _initialize(*args)
18
+ end
19
+
20
+ # @!visibility private
21
+ def ==(other)
22
+ return false unless other.is_a?(self.class)
23
+ self.class._operator_equal(self, other)
24
+ end
25
+ end
26
+ end
27
+ end
@@ -24,10 +24,9 @@ module RubyQt6
24
24
  # @!visibility private
25
25
  alias_method :_initialize, :initialize
26
26
 
27
- # @param argv [Array<String>]
28
27
  # @return [QGuiApplication]
29
- def initialize(argv)
30
- argv = ::Rice::Buffer≺char∗≻.new(argv.map(&:bytes))
28
+ def initialize
29
+ argv = _initialize_qApp_argv
31
30
  _initialize(argv.size, argv.data)
32
31
  _initialize_qApp
33
32
  end
@@ -9,7 +9,7 @@ module RubyQt6
9
9
  # @!parse class ThemeIcon; end
10
10
  rubyqt6_declare_enum_under QIcon, QIcon::Mode
11
11
  rubyqt6_declare_enum_under QIcon, QIcon::State
12
- rubyqt6_declare_enum_under QIcon, QIcon::ThemeIcon
12
+ rubyqt6_declare_enum_under QIcon, QIcon::ThemeIcon, alias: false
13
13
 
14
14
  # @!visibility private
15
15
  alias_method :_initialize, :initialize
@@ -16,8 +16,6 @@ module RubyQt6
16
16
 
17
17
  # @return [QKeySequence]
18
18
  #
19
- # @overload initialize
20
- #
21
19
  # @overload initialize(key)
22
20
  # @param key [Integer]
23
21
  #
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RubyQt6
4
+ module QtGui
5
+ # @see https://doc.qt.io/qt-6/qlineargradient.html
6
+ class QLinearGradient < RubyQt6::QtGui::QGradient
7
+ # @!visibility private
8
+ alias_method :_initialize, :initialize
9
+
10
+ # @return [QLinearGradient]
11
+ #
12
+ # @overload initialize
13
+ #
14
+ # @overload initialize(start_x, start_y, final_stop_x, final_stop_y)
15
+ # @param start_x [Float]
16
+ # @param start_y [Float]
17
+ # @param final_stop_x [Float]
18
+ # @param final_stop_y [Float]
19
+ #
20
+ # @overload initialize(start, final_stop)
21
+ # @param start [QPointF]
22
+ # @param final_stop [QPointF]
23
+ def initialize(*args)
24
+ _initialize(*args)
25
+ end
26
+ end
27
+ end
28
+ end