ruby-qt6-rice 2.1.0 → 6.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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -1
  3. data/Rakefile +12 -1
  4. data/ext/qt6/rice/extconf.rb +5 -0
  5. data/ext/qt6/rice/rice-rb.cpp +10 -0
  6. data/ext/qt6/rice/rice-rb.hpp +3 -0
  7. data/include/bando/common.hpp +2 -1
  8. data/include/bando/qobject/qdbusabstractadaptor.hpp +1 -1
  9. data/include/bando/qobject/qdbusabstractinterface.hpp +1 -1
  10. data/include/bando/qobject/qitemdelegate.hpp +1 -1
  11. data/include/bando/qobject/qlayout.hpp +1 -1
  12. data/include/bando/qobject/qwebenginepage.hpp +1 -1
  13. data/include/bando/qobject.hpp +1 -1
  14. data/include/bando/qwidget/qspinbox.hpp +1 -1
  15. data/include/bando/qwidget.hpp +1 -1
  16. data/include/rice/core/rice.hpp +1711 -1314
  17. data/include/rice/core/stl.hpp +562 -82
  18. data/include/rice/cxx/asserts.hpp +31 -0
  19. data/include/rice/cxx/concepts.hpp +31 -0
  20. data/include/rice/qt6/preludes/libqt6core.hpp +192 -0
  21. data/include/rice/qt6/preludes/libqt6gui.hpp +176 -0
  22. data/include/rice/qt6/preludes/libqt6multimedia.hpp +33 -0
  23. data/include/rice/qt6/preludes/libqt6qml.hpp +33 -0
  24. data/include/rice/qt6/preludes/libqt6quick.hpp +30 -0
  25. data/include/rice/qt6/preludes/libqt6webenginecore.hpp +30 -0
  26. data/include/rice/qt6/preludes/libqt6widgets.hpp +35 -0
  27. data/include/rice/qt6/preludes/qlass.hpp +63 -0
  28. data/include/rice/qt6/preludes/registries.hpp +52 -0
  29. data/include/rice/qt6/preludes.hpp +28 -0
  30. data/include/rice/qt6/qdbusreply.hpp +3 -3
  31. data/include/rice/qt6/qenum.hpp +1 -1
  32. data/include/rice/qt6/qflags.hpp +1 -1
  33. data/include/rice/qt6/qlist.hpp +17 -20
  34. data/include/rice/qt6/qmap.hpp +14 -11
  35. data/include/rice/qt6.hpp +3 -0
  36. data/lib/mkmf-rubyqt6.rb +24 -7
  37. data/lib/qt6/rice/version.rb +1 -1
  38. data/lib/qt6/rice.rb +1 -0
  39. metadata +18 -2
@@ -0,0 +1,31 @@
1
+ // This file is part of [RubyQt6](https://github.com/souk4711/ruby-qt6).
2
+ //
3
+ // It is licensed under the LGPLv3, included below.
4
+ //
5
+ // As a special exception to the GNU Lesser General Public License version 3
6
+ // ("LGPL3"), the copyright holders of this Library give you permission to
7
+ // convey to a third party a Combined Work that links statically or dynamically
8
+ // to this Library without providing any Minimal Corresponding Source or
9
+ // Minimal Application Code as set out in 4d or providing the installation
10
+ // information set out in section 4e, provided that you comply with the other
11
+ // provisions of LGPL3 and provided that you meet, for the Application the
12
+ // terms and conditions of the license(s) which apply to the Application.
13
+ //
14
+ // Except as stated in this special exception, the provisions of LGPL3 will
15
+ // continue to comply in full to this Library. If you modify this Library, you
16
+ // may apply this exception to your version of this Library, but you are not
17
+ // obliged to do so. If you do not wish to do so, delete this exception
18
+ // statement from your version. This exception does not (and cannot) modify any
19
+ // license terms which apply to the Application, with which you must still
20
+ // comply.
21
+
22
+ #ifndef RICE_CXX_ASSERTS_HPP
23
+ #define RICE_CXX_ASSERTS_HPP
24
+
25
+ // include stdlib stuffs
26
+ #include <cassert>
27
+
28
+ // use (void) to silence unused warnings
29
+ #define assertm(exp, msg) assert((void(msg), exp))
30
+
31
+ #endif
@@ -0,0 +1,31 @@
1
+ // This file is part of [RubyQt6](https://github.com/souk4711/ruby-qt6).
2
+ //
3
+ // It is licensed under the LGPLv3, included below.
4
+ //
5
+ // As a special exception to the GNU Lesser General Public License version 3
6
+ // ("LGPL3"), the copyright holders of this Library give you permission to
7
+ // convey to a third party a Combined Work that links statically or dynamically
8
+ // to this Library without providing any Minimal Corresponding Source or
9
+ // Minimal Application Code as set out in 4d or providing the installation
10
+ // information set out in section 4e, provided that you comply with the other
11
+ // provisions of LGPL3 and provided that you meet, for the Application the
12
+ // terms and conditions of the license(s) which apply to the Application.
13
+ //
14
+ // Except as stated in this special exception, the provisions of LGPL3 will
15
+ // continue to comply in full to this Library. If you modify this Library, you
16
+ // may apply this exception to your version of this Library, but you are not
17
+ // obliged to do so. If you do not wish to do so, delete this exception
18
+ // statement from your version. This exception does not (and cannot) modify any
19
+ // license terms which apply to the Application, with which you must still
20
+ // comply.
21
+
22
+ #ifndef RICE_CXX_CONCEPTS_HPP
23
+ #define RICE_CXX_CONCEPTS_HPP
24
+
25
+ template<typename T, typename = void>
26
+ struct has_equal_operator : std::false_type {};
27
+
28
+ template<typename T>
29
+ struct has_equal_operator<T, std::void_t<decltype(std::declval<T>() == std::declval<T>())>> : std::true_type {};
30
+
31
+ #endif
@@ -0,0 +1,192 @@
1
+ // This file is part of [RubyQt6](https://github.com/souk4711/ruby-qt6).
2
+ //
3
+ // It is licensed under the LGPLv3, included below.
4
+ //
5
+ // As a special exception to the GNU Lesser General Public License version 3
6
+ // ("LGPL3"), the copyright holders of this Library give you permission to
7
+ // convey to a third party a Combined Work that links statically or dynamically
8
+ // to this Library without providing any Minimal Corresponding Source or
9
+ // Minimal Application Code as set out in 4d or providing the installation
10
+ // information set out in section 4e, provided that you comply with the other
11
+ // provisions of LGPL3 and provided that you meet, for the Application the
12
+ // terms and conditions of the license(s) which apply to the Application.
13
+ //
14
+ // Except as stated in this special exception, the provisions of LGPL3 will
15
+ // continue to comply in full to this Library. If you modify this Library, you
16
+ // may apply this exception to your version of this Library, but you are not
17
+ // obliged to do so. If you do not wish to do so, delete this exception
18
+ // statement from your version. This exception does not (and cannot) modify any
19
+ // license terms which apply to the Application, with which you must still
20
+ // comply.
21
+
22
+ #ifndef RICE_QT6_PRELUDES_LIBQT6CORE_HPP
23
+ #define RICE_QT6_PRELUDES_LIBQT6CORE_HPP
24
+
25
+ #include <QMetaObject>
26
+ #include <QAnyStringView>
27
+ #include <QByteArray>
28
+ #include <QChar>
29
+ #include <QString>
30
+ #include <QEvent>
31
+ #include <QDateTime>
32
+ #include <QDate>
33
+ #include <QTime>
34
+ #include <QDir>
35
+ #include <QFileInfo>
36
+ #include <QLine>
37
+ #include <QLineF>
38
+ #include <QLocale>
39
+ #include <QMargins>
40
+ #include <QMarginsF>
41
+ #include <QMimeType>
42
+ #include <QModelIndex>
43
+ #include <QPoint>
44
+ #include <QPointF>
45
+ #include <QRect>
46
+ #include <QRectF>
47
+ #include <QRegularExpression>
48
+ #include <QSize>
49
+ #include <QSizeF>
50
+ #include <QUrl>
51
+ #include <QVariant>
52
+ #include <QObject>
53
+ #include <QAbstractItemModel>
54
+ #include <QCoreApplication>
55
+ #include <QItemSelectionModel>
56
+ #include <QIODevice>
57
+ #include <QFileDevice>
58
+ #include <QList>
59
+ #include <bando/common.hpp>
60
+
61
+ void declare_qlass_under_libqt6core(Module rb_mQt6)
62
+ {
63
+ Module rb_mQt6QtCore = define_module_under(rb_mQt6, "QtCore");
64
+ declare_qlass_under<QMetaObject>(rb_mQt6QtCore, "QMetaObject");
65
+ declare_qlass_under<QAnyStringView>(rb_mQt6QtCore, "QAnyStringView");
66
+ declare_qlass_under<QByteArray>(rb_mQt6QtCore, "QByteArray");
67
+ declare_qlass_under<QChar>(rb_mQt6QtCore, "QChar");
68
+ declare_qlass_under<QString>(rb_mQt6QtCore, "QString");
69
+ declare_qlass_under<QEvent>(rb_mQt6QtCore, "QEvent");
70
+ declare_qlass_under<QChildEvent>(rb_mQt6QtCore, "QChildEvent");
71
+ declare_qlass_under<QDynamicPropertyChangeEvent>(rb_mQt6QtCore, "QDynamicPropertyChangeEvent");
72
+ declare_qlass_under<QTimerEvent>(rb_mQt6QtCore, "QTimerEvent");
73
+ declare_qlass_under<QDateTime>(rb_mQt6QtCore, "QDateTime");
74
+ declare_qlass_under<QDate>(rb_mQt6QtCore, "QDate");
75
+ declare_qlass_under<QTime>(rb_mQt6QtCore, "QTime");
76
+ declare_qlass_under<QDir>(rb_mQt6QtCore, "QDir");
77
+ declare_qlass_under<QFileInfo>(rb_mQt6QtCore, "QFileInfo");
78
+ declare_qlass_under<QLine>(rb_mQt6QtCore, "QLine");
79
+ declare_qlass_under<QLineF>(rb_mQt6QtCore, "QLineF");
80
+ declare_qlass_under<QLocale>(rb_mQt6QtCore, "QLocale");
81
+ declare_qlass_under<QMargins>(rb_mQt6QtCore, "QMargins");
82
+ declare_qlass_under<QMarginsF>(rb_mQt6QtCore, "QMarginsF");
83
+ declare_qlass_under<QMimeType>(rb_mQt6QtCore, "QMimeType");
84
+ declare_qlass_under<QModelIndex>(rb_mQt6QtCore, "QModelIndex");
85
+ declare_qlass_under<QPoint>(rb_mQt6QtCore, "QPoint");
86
+ declare_qlass_under<QPointF>(rb_mQt6QtCore, "QPointF");
87
+ declare_qlass_under<QRect>(rb_mQt6QtCore, "QRect");
88
+ declare_qlass_under<QRectF>(rb_mQt6QtCore, "QRectF");
89
+ declare_qlass_under<QRegularExpression>(rb_mQt6QtCore, "QRegularExpression");
90
+ declare_qlass_under<QSize>(rb_mQt6QtCore, "QSize");
91
+ declare_qlass_under<QSizeF>(rb_mQt6QtCore, "QSizeF");
92
+ declare_qlass_under<QUrl>(rb_mQt6QtCore, "QUrl");
93
+ declare_qlass_under<QVariant>(rb_mQt6QtCore, "QVariant");
94
+ declare_qlass_under<QObject>(rb_mQt6QtCore, "QObject");
95
+ declare_qlass_under<QAbstractItemModel>(rb_mQt6QtCore, "QAbstractItemModel");
96
+ declare_qlass_under<QCoreApplication>(rb_mQt6QtCore, "QCoreApplication");
97
+ declare_qlass_under<QItemSelectionModel>(rb_mQt6QtCore, "QItemSelectionModel");
98
+ declare_qlass_under<QIODevice>(rb_mQt6QtCore, "QIODevice");
99
+
100
+ Module rb_mQt = define_module_under(rb_mQt6QtCore, "Qt");
101
+ declare_qlass_under<Qt::AlignmentFlag>(rb_mQt, "AlignmentFlag");
102
+ declare_qlass_under<Qt::ApplicationState>(rb_mQt, "ApplicationState");
103
+ declare_qlass_under<Qt::ArrowType>(rb_mQt, "ArrowType");
104
+ declare_qlass_under<Qt::AspectRatioMode>(rb_mQt, "AspectRatioMode");
105
+ declare_qlass_under<Qt::Axis>(rb_mQt, "Axis");
106
+ declare_qlass_under<Qt::BGMode>(rb_mQt, "BGMode");
107
+ declare_qlass_under<Qt::BrushStyle>(rb_mQt, "BrushStyle");
108
+ declare_qlass_under<Qt::CheckState>(rb_mQt, "CheckState");
109
+ declare_qlass_under<Qt::ClipOperation>(rb_mQt, "ClipOperation");
110
+ declare_qlass_under<Qt::ColorScheme>(rb_mQt, "ColorScheme");
111
+ declare_qlass_under<Qt::ContextMenuPolicy>(rb_mQt, "ContextMenuPolicy");
112
+ declare_qlass_under<Qt::ContextMenuTrigger>(rb_mQt, "ContextMenuTrigger");
113
+ declare_qlass_under<Qt::Corner>(rb_mQt, "Corner");
114
+ declare_qlass_under<Qt::CursorMoveStyle>(rb_mQt, "CursorMoveStyle");
115
+ declare_qlass_under<Qt::CursorShape>(rb_mQt, "CursorShape");
116
+ declare_qlass_under<Qt::DayOfWeek>(rb_mQt, "DayOfWeek");
117
+ declare_qlass_under<Qt::DockWidgetArea>(rb_mQt, "DockWidgetArea");
118
+ declare_qlass_under<Qt::DropAction>(rb_mQt, "DropAction");
119
+ declare_qlass_under<Qt::FillRule>(rb_mQt, "FillRule");
120
+ declare_qlass_under<Qt::FocusPolicy>(rb_mQt, "FocusPolicy");
121
+ declare_qlass_under<Qt::FocusReason>(rb_mQt, "FocusReason");
122
+ declare_qlass_under<Qt::GestureType>(rb_mQt, "GestureType");
123
+ declare_qlass_under<Qt::GlobalColor>(rb_mQt, "GlobalColor");
124
+ declare_qlass_under<Qt::HighDpiScaleFactorRoundingPolicy>(rb_mQt, "HighDpiScaleFactorRoundingPolicy");
125
+ declare_qlass_under<Qt::InputMethodQuery>(rb_mQt, "InputMethodQuery");
126
+ declare_qlass_under<Qt::ItemSelectionMode>(rb_mQt, "ItemSelectionMode");
127
+ declare_qlass_under<Qt::ItemSelectionOperation>(rb_mQt, "ItemSelectionOperation");
128
+ declare_qlass_under<Qt::LayoutDirection>(rb_mQt, "LayoutDirection");
129
+ declare_qlass_under<Qt::MaskMode>(rb_mQt, "MaskMode");
130
+ declare_qlass_under<Qt::MouseButton>(rb_mQt, "MouseButton");
131
+ declare_qlass_under<Qt::NativeGestureType>(rb_mQt, "NativeGestureType");
132
+ declare_qlass_under<Qt::Orientation>(rb_mQt, "Orientation");
133
+ declare_qlass_under<Qt::PenCapStyle>(rb_mQt, "PenCapStyle");
134
+ declare_qlass_under<Qt::PenJoinStyle>(rb_mQt, "PenJoinStyle");
135
+ declare_qlass_under<Qt::PenStyle>(rb_mQt, "PenStyle");
136
+ declare_qlass_under<Qt::ScreenOrientation>(rb_mQt, "ScreenOrientation");
137
+ declare_qlass_under<Qt::ScrollBarPolicy>(rb_mQt, "ScrollBarPolicy");
138
+ declare_qlass_under<Qt::ScrollPhase>(rb_mQt, "ScrollPhase");
139
+ declare_qlass_under<Qt::ShortcutContext>(rb_mQt, "ShortcutContext");
140
+ declare_qlass_under<Qt::SizeMode>(rb_mQt, "SizeMode");
141
+ declare_qlass_under<Qt::SortOrder>(rb_mQt, "SortOrder");
142
+ declare_qlass_under<Qt::TabFocusBehavior>(rb_mQt, "TabFocusBehavior");
143
+ declare_qlass_under<Qt::TextElideMode>(rb_mQt, "TextElideMode");
144
+ declare_qlass_under<Qt::TextFormat>(rb_mQt, "TextFormat");
145
+ declare_qlass_under<Qt::ToolBarArea>(rb_mQt, "ToolBarArea");
146
+ declare_qlass_under<Qt::ToolButtonStyle>(rb_mQt, "ToolButtonStyle");
147
+ declare_qlass_under<Qt::TransformationMode>(rb_mQt, "TransformationMode");
148
+ declare_qlass_under<Qt::UIEffect>(rb_mQt, "UIEffect");
149
+ declare_qlass_under<Qt::WidgetAttribute>(rb_mQt, "WidgetAttribute");
150
+ declare_qlass_under<Qt::WindowModality>(rb_mQt, "WindowModality");
151
+ declare_qlass_under<Qt::WindowState>(rb_mQt, "WindowState");
152
+ declare_qlass_under<Qt::WindowType>(rb_mQt, "WindowType");
153
+ declare_qlass_under<QFlags<Qt::AlignmentFlag>>(rb_mQt, "Alignment");
154
+ declare_qlass_under<QFlags<Qt::DockWidgetArea>>(rb_mQt, "DockWidgetAreas");
155
+ declare_qlass_under<QFlags<Qt::DropAction>>(rb_mQt, "DropActions");
156
+ declare_qlass_under<QFlags<Qt::Edge>>(rb_mQt, "Edges");
157
+ declare_qlass_under<QFlags<Qt::FindChildOption>>(rb_mQt, "FindChildOptions");
158
+ declare_qlass_under<QFlags<Qt::GestureFlag>>(rb_mQt, "GestureFlags");
159
+ declare_qlass_under<QFlags<Qt::ImageConversionFlag>>(rb_mQt, "ImageConversionFlags");
160
+ declare_qlass_under<QFlags<Qt::InputMethodQuery>>(rb_mQt, "InputMethodQueries");
161
+ declare_qlass_under<QFlags<Qt::ItemFlag>>(rb_mQt, "ItemFlags");
162
+ declare_qlass_under<QFlags<Qt::InputMethodHint>>(rb_mQt, "InputMethodHints");
163
+ declare_qlass_under<QFlags<Qt::KeyboardModifier>>(rb_mQt, "KeyboardModifiers");
164
+ declare_qlass_under<QFlags<Qt::MatchFlag>>(rb_mQt, "MatchFlags");
165
+ declare_qlass_under<QFlags<Qt::MouseButton>>(rb_mQt, "MouseButtons");
166
+ declare_qlass_under<QFlags<Qt::MouseEventFlag>>(rb_mQt, "MouseEventFlags");
167
+ declare_qlass_under<QFlags<Qt::Orientation>>(rb_mQt, "Orientations");
168
+ declare_qlass_under<QFlags<Qt::TextInteractionFlag>>(rb_mQt, "TextInteractionFlags");
169
+ declare_qlass_under<QFlags<Qt::ToolBarArea>>(rb_mQt, "ToolBarAreas");
170
+ declare_qlass_under<QFlags<Qt::WindowState>>(rb_mQt, "WindowStates");
171
+ declare_qlass_under<QFlags<Qt::WindowType>>(rb_mQt, "WindowFlags");
172
+
173
+ Class rb_cQDir = rb_mQt6QtCore.const_get("QDir").value();
174
+ Class rb_cQFileDevice = rb_mQt6QtCore.const_get("QFileDevice").value();
175
+ declare_qlass_under<QFlags<QDir::Filter>>(rb_cQDir, "Filters");
176
+ declare_qlass_under<QFlags<QFileDevice::Permission>>(rb_cQFileDevice, "Permissions");
177
+
178
+ Module rb_mQt6T = define_module_under(rb_mQt6, "T");
179
+ declare_qlass_under<QList<QByteArray>>(rb_mQt6T, "QList≺QByteArray≻");
180
+ declare_qlass_under<QList<QFileInfo>>(rb_mQt6T, "QList≺QFileInfo≻");
181
+ declare_qlass_under<QList<QModelIndex>>(rb_mQt6T, "QList≺QModelIndex≻");
182
+ declare_qlass_under<QList<QString>>(rb_mQt6T, "QList≺QString≻");
183
+ declare_qlass_under<QList<QUrl>>(rb_mQt6T, "QList≺QUrl≻");
184
+ declare_qlass_under<QList<QVariant>>(rb_mQt6T, "QList≺QVariant≻");
185
+ declare_qlass_under<QList<QObject*>>(rb_mQt6T, "QList≺QObject∗≻");
186
+ declare_qlass_under<QMap<QString, QVariant>>(rb_mQt6T, "QMap≺QString‚ QVariant≻");
187
+
188
+ Module rb_mQt6Bando = define_module_under(rb_mQt6, "Bando");
189
+ declare_qlass_under<bando_FunctionName>(rb_mQt6Bando, "FunctionName");
190
+ }
191
+
192
+ #endif
@@ -0,0 +1,176 @@
1
+ // This file is part of [RubyQt6](https://github.com/souk4711/ruby-qt6).
2
+ //
3
+ // It is licensed under the LGPLv3, included below.
4
+ //
5
+ // As a special exception to the GNU Lesser General Public License version 3
6
+ // ("LGPL3"), the copyright holders of this Library give you permission to
7
+ // convey to a third party a Combined Work that links statically or dynamically
8
+ // to this Library without providing any Minimal Corresponding Source or
9
+ // Minimal Application Code as set out in 4d or providing the installation
10
+ // information set out in section 4e, provided that you comply with the other
11
+ // provisions of LGPL3 and provided that you meet, for the Application the
12
+ // terms and conditions of the license(s) which apply to the Application.
13
+ //
14
+ // Except as stated in this special exception, the provisions of LGPL3 will
15
+ // continue to comply in full to this Library. If you modify this Library, you
16
+ // may apply this exception to your version of this Library, but you are not
17
+ // obliged to do so. If you do not wish to do so, delete this exception
18
+ // statement from your version. This exception does not (and cannot) modify any
19
+ // license terms which apply to the Application, with which you must still
20
+ // comply.
21
+
22
+ #ifndef RICE_QT6_PRELUDES_LIBQT6GUI_HPP
23
+ #define RICE_QT6_PRELUDES_LIBQT6GUI_HPP
24
+
25
+ #include <QBrush>
26
+ #include <QColor>
27
+ #include <QCursor>
28
+ #include <QActionEvent>
29
+ #include <QApplicationStateChangeEvent>
30
+ #include <QChildWindowEvent>
31
+ #include <QCloseEvent>
32
+ #include <QDragLeaveEvent>
33
+ #include <QDropEvent>
34
+ #include <QDragMoveEvent>
35
+ #include <QDragEnterEvent>
36
+ #include <QExposeEvent>
37
+ #include <QFileOpenEvent>
38
+ #include <QFocusEvent>
39
+ #include <QHelpEvent>
40
+ #include <QHideEvent>
41
+ #include <QIconDragEvent>
42
+ #include <QInputEvent>
43
+ #include <QInputMethodEvent>
44
+ #include <QInputMethodQueryEvent>
45
+ #include <QMoveEvent>
46
+ #include <QPaintEvent>
47
+ #include <QPlatformSurfaceEvent>
48
+ #include <QResizeEvent>
49
+ #include <QScreenOrientationChangeEvent>
50
+ #include <QScrollEvent>
51
+ #include <QScrollPrepareEvent>
52
+ #include <QShortcutEvent>
53
+ #include <QShowEvent>
54
+ #include <QStatusTipEvent>
55
+ #include <QToolBarChangeEvent>
56
+ #include <QWhatsThisClickedEvent>
57
+ #include <QWindowStateChangeEvent>
58
+ #include <QContextMenuEvent>
59
+ #include <QKeyEvent>
60
+ #include <QPointerEvent>
61
+ #include <QSinglePointEvent>
62
+ #include <QEnterEvent>
63
+ #include <QHoverEvent>
64
+ #include <QMouseEvent>
65
+ #include <QNativeGestureEvent>
66
+ #include <QTabletEvent>
67
+ #include <QWheelEvent>
68
+ #include <QTouchEvent>
69
+ #include <QFont>
70
+ #include <QFontInfo>
71
+ #include <QFontMetrics>
72
+ #include <QIcon>
73
+ #include <QKeySequence>
74
+ #include <QPaintDevice>
75
+ #include <QPagedPaintDevice>
76
+ #include <QPicture>
77
+ #include <QPixmap>
78
+ #include <QPainter>
79
+ #include <QPainterPath>
80
+ #include <QPalette>
81
+ #include <QPen>
82
+ #include <QRegion>
83
+ #include <QTextCursor>
84
+ #include <QAbstractFileIconProvider>
85
+ #include <QAction>
86
+ #include <QGuiApplication>
87
+ #include <QMovie>
88
+ #include <QScreen>
89
+ #include <QTextDocument>
90
+ #include <QValidator>
91
+ #include <QWindow>
92
+
93
+ void declare_qlass_under_libqt6gui(Module rb_mQt6)
94
+ {
95
+ Module rb_mQt6QtGui = define_module_under(rb_mQt6, "QtGui");
96
+ declare_qlass_under<QBrush>(rb_mQt6QtGui, "QBrush");
97
+ declare_qlass_under<QColor>(rb_mQt6QtGui, "QColor");
98
+ declare_qlass_under<QCursor>(rb_mQt6QtGui, "QCursor");
99
+ declare_qlass_under<QActionEvent>(rb_mQt6QtGui, "QActionEvent");
100
+ declare_qlass_under<QApplicationStateChangeEvent>(rb_mQt6QtGui, "QApplicationStateChangeEvent");
101
+ declare_qlass_under<QChildWindowEvent>(rb_mQt6QtGui, "QChildWindowEvent");
102
+ declare_qlass_under<QCloseEvent>(rb_mQt6QtGui, "QCloseEvent");
103
+ declare_qlass_under<QDragLeaveEvent>(rb_mQt6QtGui, "QDragLeaveEvent");
104
+ declare_qlass_under<QDropEvent>(rb_mQt6QtGui, "QDropEvent");
105
+ declare_qlass_under<QDragMoveEvent>(rb_mQt6QtGui, "QDragMoveEvent");
106
+ declare_qlass_under<QDragEnterEvent>(rb_mQt6QtGui, "QDragEnterEvent");
107
+ declare_qlass_under<QExposeEvent>(rb_mQt6QtGui, "QExposeEvent");
108
+ declare_qlass_under<QFileOpenEvent>(rb_mQt6QtGui, "QFileOpenEvent");
109
+ declare_qlass_under<QFocusEvent>(rb_mQt6QtGui, "QFocusEvent");
110
+ declare_qlass_under<QHelpEvent>(rb_mQt6QtGui, "QHelpEvent");
111
+ declare_qlass_under<QHideEvent>(rb_mQt6QtGui, "QHideEvent");
112
+ declare_qlass_under<QIconDragEvent>(rb_mQt6QtGui, "QIconDragEvent");
113
+ declare_qlass_under<QInputEvent>(rb_mQt6QtGui, "QInputEvent");
114
+ declare_qlass_under<QInputMethodEvent>(rb_mQt6QtGui, "QInputMethodEvent");
115
+ declare_qlass_under<QInputMethodQueryEvent>(rb_mQt6QtGui, "QInputMethodQueryEvent");
116
+ declare_qlass_under<QMoveEvent>(rb_mQt6QtGui, "QMoveEvent");
117
+ declare_qlass_under<QPaintEvent>(rb_mQt6QtGui, "QPaintEvent");
118
+ declare_qlass_under<QPlatformSurfaceEvent>(rb_mQt6QtGui, "QPlatformSurfaceEvent");
119
+ declare_qlass_under<QResizeEvent>(rb_mQt6QtGui, "QResizeEvent");
120
+ declare_qlass_under<QScreenOrientationChangeEvent>(rb_mQt6QtGui, "QScreenOrientationChangeEvent");
121
+ declare_qlass_under<QScrollEvent>(rb_mQt6QtGui, "QScrollEvent");
122
+ declare_qlass_under<QScrollPrepareEvent>(rb_mQt6QtGui, "QScrollPrepareEvent");
123
+ declare_qlass_under<QShortcutEvent>(rb_mQt6QtGui, "QShortcutEvent");
124
+ declare_qlass_under<QShowEvent>(rb_mQt6QtGui, "QShowEvent");
125
+ declare_qlass_under<QStatusTipEvent>(rb_mQt6QtGui, "QStatusTipEvent");
126
+ declare_qlass_under<QToolBarChangeEvent>(rb_mQt6QtGui, "QToolBarChangeEvent");
127
+ declare_qlass_under<QWhatsThisClickedEvent>(rb_mQt6QtGui, "QWhatsThisClickedEvent");
128
+ declare_qlass_under<QWindowStateChangeEvent>(rb_mQt6QtGui, "QWindowStateChangeEvent");
129
+ declare_qlass_under<QContextMenuEvent>(rb_mQt6QtGui, "QContextMenuEvent");
130
+ declare_qlass_under<QKeyEvent>(rb_mQt6QtGui, "QKeyEvent");
131
+ declare_qlass_under<QPointerEvent>(rb_mQt6QtGui, "QPointerEvent");
132
+ declare_qlass_under<QSinglePointEvent>(rb_mQt6QtGui, "QSinglePointEvent");
133
+ declare_qlass_under<QEnterEvent>(rb_mQt6QtGui, "QEnterEvent");
134
+ declare_qlass_under<QHoverEvent>(rb_mQt6QtGui, "QHoverEvent");
135
+ declare_qlass_under<QMouseEvent>(rb_mQt6QtGui, "QMouseEvent");
136
+ declare_qlass_under<QNativeGestureEvent>(rb_mQt6QtGui, "QNativeGestureEvent");
137
+ declare_qlass_under<QTabletEvent>(rb_mQt6QtGui, "QTabletEvent");
138
+ declare_qlass_under<QWheelEvent>(rb_mQt6QtGui, "QWheelEvent");
139
+ declare_qlass_under<QTouchEvent>(rb_mQt6QtGui, "QTouchEvent");
140
+ declare_qlass_under<QFont>(rb_mQt6QtGui, "QFont");
141
+ declare_qlass_under<QFontInfo>(rb_mQt6QtGui, "QFontInfo");
142
+ declare_qlass_under<QFontMetrics>(rb_mQt6QtGui, "QFontMetrics");
143
+ declare_qlass_under<QIcon>(rb_mQt6QtGui, "QIcon");
144
+ declare_qlass_under<QKeySequence>(rb_mQt6QtGui, "QKeySequence");
145
+ declare_qlass_under<QPaintDevice>(rb_mQt6QtGui, "QPaintDevice");
146
+ declare_qlass_under<QPagedPaintDevice>(rb_mQt6QtGui, "QPagedPaintDevice");
147
+ declare_qlass_under<QPicture>(rb_mQt6QtGui, "QPicture");
148
+ declare_qlass_under<QPixmap>(rb_mQt6QtGui, "QPixmap");
149
+ declare_qlass_under<QPainter>(rb_mQt6QtGui, "QPainter");
150
+ declare_qlass_under<QPainterPath>(rb_mQt6QtGui, "QPainterPath");
151
+ declare_qlass_under<QPalette>(rb_mQt6QtGui, "QPalette");
152
+ declare_qlass_under<QPen>(rb_mQt6QtGui, "QPen");
153
+ declare_qlass_under<QRegion>(rb_mQt6QtGui, "QRegion");
154
+ declare_qlass_under<QTextCursor>(rb_mQt6QtGui, "QTextCursor");
155
+ declare_qlass_under<QAbstractFileIconProvider>(rb_mQt6QtGui, "QAbstractFileIconProvider");
156
+ declare_qlass_under<QAction>(rb_mQt6QtGui, "QAction");
157
+ declare_qlass_under<QGuiApplication>(rb_mQt6QtGui, "QGuiApplication");
158
+ declare_qlass_under<QMovie>(rb_mQt6QtGui, "QMovie");
159
+ declare_qlass_under<QScreen>(rb_mQt6QtGui, "QScreen");
160
+ declare_qlass_under<QTextDocument>(rb_mQt6QtGui, "QTextDocument");
161
+ declare_qlass_under<QValidator>(rb_mQt6QtGui, "QValidator");
162
+ declare_qlass_under<QWindow>(rb_mQt6QtGui, "QWindow");
163
+ declare_qlass_under<QPolygon>(rb_mQt6QtGui, "QPolygon");
164
+ declare_qlass_under<QPolygonF>(rb_mQt6QtGui, "QPolygonF");
165
+
166
+ Class rb_cQIcon = rb_mQt6QtGui.const_get("QIcon").value();
167
+ Class rb_cQPalette = rb_mQt6QtGui.const_get("QPalette").value();
168
+ declare_qlass_under<QIcon::Mode>(rb_cQIcon, "Mode");
169
+ declare_qlass_under<QPalette::ColorRole>(rb_cQPalette, "ColorRole");
170
+
171
+ Module rb_mQt6T = define_module_under(rb_mQt6, "T");
172
+ declare_qlass_under<QList<QPoint>>(rb_mQt6T, "QList≺QPoint≻");
173
+ declare_qlass_under<QList<QPointF>>(rb_mQt6T, "QList≺QPointF≻");
174
+ }
175
+
176
+ #endif
@@ -0,0 +1,33 @@
1
+ // This file is part of [RubyQt6](https://github.com/souk4711/ruby-qt6).
2
+ //
3
+ // It is licensed under the LGPLv3, included below.
4
+ //
5
+ // As a special exception to the GNU Lesser General Public License version 3
6
+ // ("LGPL3"), the copyright holders of this Library give you permission to
7
+ // convey to a third party a Combined Work that links statically or dynamically
8
+ // to this Library without providing any Minimal Corresponding Source or
9
+ // Minimal Application Code as set out in 4d or providing the installation
10
+ // information set out in section 4e, provided that you comply with the other
11
+ // provisions of LGPL3 and provided that you meet, for the Application the
12
+ // terms and conditions of the license(s) which apply to the Application.
13
+ //
14
+ // Except as stated in this special exception, the provisions of LGPL3 will
15
+ // continue to comply in full to this Library. If you modify this Library, you
16
+ // may apply this exception to your version of this Library, but you are not
17
+ // obliged to do so. If you do not wish to do so, delete this exception
18
+ // statement from your version. This exception does not (and cannot) modify any
19
+ // license terms which apply to the Application, with which you must still
20
+ // comply.
21
+
22
+ #ifndef RICE_QT6_PRELUDES_LIBQT6MULTIMEDIA_HPP
23
+ #define RICE_QT6_PRELUDES_LIBQT6MULTIMEDIA_HPP
24
+
25
+ #include <QVideoSink>
26
+
27
+ void declare_qlass_under_libqt6multimedia(Module rb_mQt6)
28
+ {
29
+ Module rb_mQt6QtMultimedia = define_module_under(rb_mQt6, "QtMultimedia");
30
+ declare_qlass_under<QVideoSink>(rb_mQt6QtMultimedia, "QVideoSink");
31
+ }
32
+
33
+ #endif
@@ -0,0 +1,33 @@
1
+ // This file is part of [RubyQt6](https://github.com/souk4711/ruby-qt6).
2
+ //
3
+ // It is licensed under the LGPLv3, included below.
4
+ //
5
+ // As a special exception to the GNU Lesser General Public License version 3
6
+ // ("LGPL3"), the copyright holders of this Library give you permission to
7
+ // convey to a third party a Combined Work that links statically or dynamically
8
+ // to this Library without providing any Minimal Corresponding Source or
9
+ // Minimal Application Code as set out in 4d or providing the installation
10
+ // information set out in section 4e, provided that you comply with the other
11
+ // provisions of LGPL3 and provided that you meet, for the Application the
12
+ // terms and conditions of the license(s) which apply to the Application.
13
+ //
14
+ // Except as stated in this special exception, the provisions of LGPL3 will
15
+ // continue to comply in full to this Library. If you modify this Library, you
16
+ // may apply this exception to your version of this Library, but you are not
17
+ // obliged to do so. If you do not wish to do so, delete this exception
18
+ // statement from your version. This exception does not (and cannot) modify any
19
+ // license terms which apply to the Application, with which you must still
20
+ // comply.
21
+
22
+ #ifndef RICE_QT6_PRELUDES_LIBQT6QML_HPP
23
+ #define RICE_QT6_PRELUDES_LIBQT6QML_HPP
24
+
25
+ #include <QQmlEngine>
26
+
27
+ void declare_qlass_under_libqt6qml(Module rb_mQt6)
28
+ {
29
+ Module rb_mQt6QtQml = define_module_under(rb_mQt6, "QtQml");
30
+ declare_qlass_under<QQmlEngine>(rb_mQt6QtQml, "QQmlEngine");
31
+ }
32
+
33
+ #endif
@@ -0,0 +1,30 @@
1
+ // This file is part of [RubyQt6](https://github.com/souk4711/ruby-qt6).
2
+ //
3
+ // It is licensed under the LGPLv3, included below.
4
+ //
5
+ // As a special exception to the GNU Lesser General Public License version 3
6
+ // ("LGPL3"), the copyright holders of this Library give you permission to
7
+ // convey to a third party a Combined Work that links statically or dynamically
8
+ // to this Library without providing any Minimal Corresponding Source or
9
+ // Minimal Application Code as set out in 4d or providing the installation
10
+ // information set out in section 4e, provided that you comply with the other
11
+ // provisions of LGPL3 and provided that you meet, for the Application the
12
+ // terms and conditions of the license(s) which apply to the Application.
13
+ //
14
+ // Except as stated in this special exception, the provisions of LGPL3 will
15
+ // continue to comply in full to this Library. If you modify this Library, you
16
+ // may apply this exception to your version of this Library, but you are not
17
+ // obliged to do so. If you do not wish to do so, delete this exception
18
+ // statement from your version. This exception does not (and cannot) modify any
19
+ // license terms which apply to the Application, with which you must still
20
+ // comply.
21
+
22
+ #ifndef RICE_QT6_PRELUDES_LIBQT6QUICK_HPP
23
+ #define RICE_QT6_PRELUDES_LIBQT6QUICK_HPP
24
+
25
+ void declare_qlass_under_libqt6quick(Module rb_mQt6)
26
+ {
27
+ Module rb_mQt6QtQuick = define_module_under(rb_mQt6, "QtQuick");
28
+ }
29
+
30
+ #endif
@@ -0,0 +1,30 @@
1
+ // This file is part of [RubyQt6](https://github.com/souk4711/ruby-qt6).
2
+ //
3
+ // It is licensed under the LGPLv3, included below.
4
+ //
5
+ // As a special exception to the GNU Lesser General Public License version 3
6
+ // ("LGPL3"), the copyright holders of this Library give you permission to
7
+ // convey to a third party a Combined Work that links statically or dynamically
8
+ // to this Library without providing any Minimal Corresponding Source or
9
+ // Minimal Application Code as set out in 4d or providing the installation
10
+ // information set out in section 4e, provided that you comply with the other
11
+ // provisions of LGPL3 and provided that you meet, for the Application the
12
+ // terms and conditions of the license(s) which apply to the Application.
13
+ //
14
+ // Except as stated in this special exception, the provisions of LGPL3 will
15
+ // continue to comply in full to this Library. If you modify this Library, you
16
+ // may apply this exception to your version of this Library, but you are not
17
+ // obliged to do so. If you do not wish to do so, delete this exception
18
+ // statement from your version. This exception does not (and cannot) modify any
19
+ // license terms which apply to the Application, with which you must still
20
+ // comply.
21
+
22
+ #ifndef RICE_QT6_PRELUDES_LIBQT6WEBENGINECORE_HPP
23
+ #define RICE_QT6_PRELUDES_LIBQT6WEBENGINECORE_HPP
24
+
25
+ void declare_qlass_under_libqt6webenginecore(Module rb_mQt6)
26
+ {
27
+ Module rb_mQt6QtWebEngineCore = define_module_under(rb_mQt6, "QtWebEngineCore");
28
+ }
29
+
30
+ #endif
@@ -0,0 +1,35 @@
1
+ // This file is part of [RubyQt6](https://github.com/souk4711/ruby-qt6).
2
+ //
3
+ // It is licensed under the LGPLv3, included below.
4
+ //
5
+ // As a special exception to the GNU Lesser General Public License version 3
6
+ // ("LGPL3"), the copyright holders of this Library give you permission to
7
+ // convey to a third party a Combined Work that links statically or dynamically
8
+ // to this Library without providing any Minimal Corresponding Source or
9
+ // Minimal Application Code as set out in 4d or providing the installation
10
+ // information set out in section 4e, provided that you comply with the other
11
+ // provisions of LGPL3 and provided that you meet, for the Application the
12
+ // terms and conditions of the license(s) which apply to the Application.
13
+ //
14
+ // Except as stated in this special exception, the provisions of LGPL3 will
15
+ // continue to comply in full to this Library. If you modify this Library, you
16
+ // may apply this exception to your version of this Library, but you are not
17
+ // obliged to do so. If you do not wish to do so, delete this exception
18
+ // statement from your version. This exception does not (and cannot) modify any
19
+ // license terms which apply to the Application, with which you must still
20
+ // comply.
21
+
22
+ #ifndef RICE_QT6_PRELUDES_LIBQT6WIDGETS_HPP
23
+ #define RICE_QT6_PRELUDES_LIBQT6WIDGETS_HPP
24
+
25
+ #include <QWidget>
26
+ #include <QDialog>
27
+
28
+ void declare_qlass_under_libqt6widgets(Module rb_mQt6)
29
+ {
30
+ Module rb_mQt6QtWidgets = define_module_under(rb_mQt6, "QtWidgets");
31
+ declare_qlass_under<QWidget>(rb_mQt6QtWidgets, "QWidget");
32
+ declare_qlass_under<QDialog>(rb_mQt6QtWidgets, "QDialog");
33
+ }
34
+
35
+ #endif