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.
- checksums.yaml +4 -4
- data/Rakefile +4 -0
- data/ext/qt6/qtgui/extconf.rb +3 -13
- data/ext/qt6/qtgui/qaction-rb.cpp +16 -13
- data/ext/qt6/qtgui/qaction-rb.hpp +4 -3
- data/ext/qt6/qtgui/qactiongroup-rb.cpp +6 -6
- data/ext/qt6/qtgui/qactiongroup-rb.hpp +4 -3
- data/ext/qt6/qtgui/qbrush-rb.cpp +6 -4
- data/ext/qt6/qtgui/qbrush-rb.hpp +4 -3
- data/ext/qt6/qtgui/qclipboard-rb.cpp +8 -8
- data/ext/qt6/qtgui/qclipboard-rb.hpp +4 -3
- data/ext/qt6/qtgui/qcolor-rb.cpp +8 -3
- data/ext/qt6/qtgui/qcolor-rb.hpp +4 -3
- data/ext/qt6/qtgui/qcursor-rb.cpp +3 -3
- data/ext/qt6/qtgui/qcursor-rb.hpp +4 -3
- data/ext/qt6/qtgui/qdesktopservices-rb.cpp +17 -0
- data/ext/qt6/qtgui/qdesktopservices-rb.hpp +5 -0
- data/ext/qt6/qtgui/qevent-rb.cpp +45 -45
- data/ext/qt6/qtgui/qevent-rb.hpp +4 -3
- data/ext/qt6/qtgui/qfilesystemmodel-rb.cpp +7 -7
- data/ext/qt6/qtgui/qfilesystemmodel-rb.hpp +4 -3
- data/ext/qt6/qtgui/qfont-rb.cpp +6 -4
- data/ext/qt6/qtgui/qfont-rb.hpp +4 -3
- data/ext/qt6/qtgui/qfontdatabase-rb.cpp +3 -3
- data/ext/qt6/qtgui/qfontdatabase-rb.hpp +4 -3
- data/ext/qt6/qtgui/qfontinfo-rb.cpp +3 -3
- data/ext/qt6/qtgui/qfontinfo-rb.hpp +4 -3
- data/ext/qt6/qtgui/qfontmetrics-rb.cpp +4 -4
- data/ext/qt6/qtgui/qfontmetrics-rb.hpp +4 -3
- data/ext/qt6/qtgui/qgradient-rb.cpp +86 -0
- data/ext/qt6/qtgui/qgradient-rb.hpp +5 -0
- data/ext/qt6/qtgui/qguiapplication-rb.cpp +16 -18
- data/ext/qt6/qtgui/qguiapplication-rb.hpp +4 -3
- data/ext/qt6/qtgui/qicon-rb.cpp +3 -3
- data/ext/qt6/qtgui/qicon-rb.hpp +4 -3
- data/ext/qt6/qtgui/qimage-rb.cpp +3 -3
- data/ext/qt6/qtgui/qimage-rb.hpp +4 -3
- data/ext/qt6/qtgui/qimagewriter-rb.cpp +3 -3
- data/ext/qt6/qtgui/qimagewriter-rb.hpp +4 -3
- data/ext/qt6/qtgui/qkeysequence-rb.cpp +3 -4
- data/ext/qt6/qtgui/qkeysequence-rb.hpp +4 -3
- data/ext/qt6/qtgui/qmovie-rb.cpp +10 -10
- data/ext/qt6/qtgui/qmovie-rb.hpp +4 -3
- data/ext/qt6/qtgui/qpagedpaintdevice-rb.cpp +3 -3
- data/ext/qt6/qtgui/qpagedpaintdevice-rb.hpp +4 -3
- data/ext/qt6/qtgui/qpaintdevice-rb.cpp +3 -3
- data/ext/qt6/qtgui/qpaintdevice-rb.hpp +4 -3
- data/ext/qt6/qtgui/qpainter-rb.cpp +3 -3
- data/ext/qt6/qtgui/qpainter-rb.hpp +4 -3
- data/ext/qt6/qtgui/qpainterpath-rb.cpp +4 -4
- data/ext/qt6/qtgui/qpainterpath-rb.hpp +4 -3
- data/ext/qt6/qtgui/qpainterpathstroker-rb.cpp +3 -3
- data/ext/qt6/qtgui/qpainterpathstroker-rb.hpp +4 -3
- data/ext/qt6/qtgui/qpalette-rb.cpp +5 -3
- data/ext/qt6/qtgui/qpalette-rb.hpp +4 -3
- data/ext/qt6/qtgui/qpen-rb.cpp +5 -3
- data/ext/qt6/qtgui/qpen-rb.hpp +4 -3
- data/ext/qt6/qtgui/qpicture-rb.cpp +3 -3
- data/ext/qt6/qtgui/qpicture-rb.hpp +4 -3
- data/ext/qt6/qtgui/qpixmap-rb.cpp +7 -6
- data/ext/qt6/qtgui/qpixmap-rb.hpp +4 -3
- data/ext/qt6/qtgui/qpolygon-rb.cpp +4 -4
- data/ext/qt6/qtgui/qpolygon-rb.hpp +4 -3
- data/ext/qt6/qtgui/qregion-rb.cpp +3 -3
- data/ext/qt6/qtgui/qregion-rb.hpp +4 -3
- data/ext/qt6/qtgui/qscreen-rb.cpp +13 -13
- data/ext/qt6/qtgui/qscreen-rb.hpp +4 -3
- data/ext/qt6/qtgui/qshortcut-rb.cpp +6 -6
- data/ext/qt6/qtgui/qshortcut-rb.hpp +4 -3
- data/ext/qt6/qtgui/qstandarditemmodel-rb.cpp +7 -7
- data/ext/qt6/qtgui/qstandarditemmodel-rb.hpp +4 -3
- data/ext/qt6/qtgui/qstylehints-rb.cpp +73 -0
- data/ext/qt6/qtgui/qstylehints-rb.hpp +5 -0
- data/ext/qt6/qtgui/qtextcursor-rb.cpp +3 -3
- data/ext/qt6/qtgui/qtextcursor-rb.hpp +4 -3
- data/ext/qt6/qtgui/qtextdocument-rb.cpp +13 -14
- data/ext/qt6/qtgui/qtextdocument-rb.hpp +4 -3
- data/ext/qt6/qtgui/qtextformat-rb.cpp +30 -11
- data/ext/qt6/qtgui/qtextformat-rb.hpp +4 -3
- data/ext/qt6/qtgui/qtextlayout-rb.cpp +88 -0
- data/ext/qt6/qtgui/qtextlayout-rb.hpp +5 -0
- data/ext/qt6/qtgui/qtextlist-rb.cpp +3 -3
- data/ext/qt6/qtgui/qtextlist-rb.hpp +4 -3
- data/ext/qt6/qtgui/qtextobject-rb.cpp +47 -5
- data/ext/qt6/qtgui/qtextobject-rb.hpp +4 -3
- data/ext/qt6/qtgui/qtextoption-rb.cpp +3 -3
- data/ext/qt6/qtgui/qtextoption-rb.hpp +4 -3
- data/ext/qt6/qtgui/qtexttable-rb.cpp +4 -4
- data/ext/qt6/qtgui/qtexttable-rb.hpp +4 -3
- data/ext/qt6/qtgui/qtgui-rb.cpp +14 -4
- data/ext/qt6/qtgui/qtgui-rb.hpp +1 -1
- data/ext/qt6/qtgui/qtguiversion-rb.cpp +2 -2
- data/ext/qt6/qtgui/qtguiversion-rb.hpp +4 -3
- data/ext/qt6/qtgui/qtransform-rb.cpp +3 -3
- data/ext/qt6/qtgui/qtransform-rb.hpp +4 -3
- data/ext/qt6/qtgui/qvalidator-rb.cpp +18 -18
- data/ext/qt6/qtgui/qvalidator-rb.hpp +4 -3
- data/ext/qt6/qtgui/qwindow-rb.cpp +23 -28
- data/ext/qt6/qtgui/qwindow-rb.hpp +4 -3
- data/ext/qt6/qtgui/t-qtgui-rb.cpp +10 -2
- data/ext/qt6/qtgui/t-qtgui-rb.hpp +4 -3
- data/lib/qt6/qtgui/qaction.rb +28 -0
- data/lib/qt6/qtgui/qactiongroup.rb +1 -1
- data/lib/qt6/qtgui/qbrush.rb +9 -0
- data/lib/qt6/qtgui/qcolor.rb +14 -0
- data/lib/qt6/qtgui/qconicalgradient.rb +27 -0
- data/lib/qt6/qtgui/qdesktopservices.rb +9 -0
- data/lib/qt6/qtgui/qfont.rb +11 -0
- data/lib/qt6/qtgui/qgradient.rb +27 -0
- data/lib/qt6/qtgui/qguiapplication.rb +2 -3
- data/lib/qt6/qtgui/qicon.rb +1 -1
- data/lib/qt6/qtgui/qkeysequence.rb +0 -2
- data/lib/qt6/qtgui/qlineargradient.rb +28 -0
- data/lib/qt6/qtgui/qpainter.rb +2 -2
- data/lib/qt6/qtgui/qpalette.rb +6 -0
- data/lib/qt6/qtgui/qpen.rb +6 -0
- data/lib/qt6/qtgui/qpixmap.rb +6 -0
- data/lib/qt6/qtgui/qradialgradient.rb +53 -0
- data/lib/qt6/qtgui/qstandarditem.rb +11 -0
- data/lib/qt6/qtgui/qstylehints.rb +25 -0
- data/lib/qt6/qtgui/qtextblock.rb +22 -0
- data/lib/qt6/qtgui/qtextlayout.rb +46 -0
- data/lib/qt6/qtgui/qtextlength.rb +25 -0
- data/lib/qt6/qtgui/qtexttableformat.rb +11 -0
- data/lib/qt6/qtgui/version.rb +1 -1
- data/lib/qt6/qtgui.rb +9 -0
- metadata +23 -6
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
#include "qgradient-rb.hpp"
|
|
2
|
+
#include <qbrush.h>
|
|
3
|
+
|
|
4
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
5
|
+
|
|
6
|
+
Class rb_cQGradient;
|
|
7
|
+
Class rb_cQConicalGradient;
|
|
8
|
+
Class rb_cQLinearGradient;
|
|
9
|
+
Class rb_cQRadialGradient;
|
|
10
|
+
|
|
11
|
+
void Init_qgradient(Module rb_mQt6QtGui)
|
|
12
|
+
{
|
|
13
|
+
rb_cQGradient =
|
|
14
|
+
// RubyQt6::QtGui::QGradient
|
|
15
|
+
define_class_under<QGradient>(rb_mQt6QtGui, "QGradient")
|
|
16
|
+
// RubyQt6-Defined Functions
|
|
17
|
+
.define_singleton_function("_operator_equal", [](QGradient *lhs, QGradient *rhs) -> bool { return *lhs == *rhs; }, Arg("lhs"), Arg("rhs"))
|
|
18
|
+
// Constructor
|
|
19
|
+
.define_constructor(Constructor<QGradient>())
|
|
20
|
+
.define_constructor(Constructor<QGradient, QGradient::Preset>(), Arg("preset"))
|
|
21
|
+
// Public Functions
|
|
22
|
+
.define_method("coordinate_mode", &QGradient::coordinateMode)
|
|
23
|
+
.define_method("interpolation_mode", &QGradient::interpolationMode)
|
|
24
|
+
.define_method("set_color_at", &QGradient::setColorAt, Arg("pos"), Arg("color"))
|
|
25
|
+
.define_method("set_coordinate_mode", &QGradient::setCoordinateMode, Arg("mode"))
|
|
26
|
+
.define_method("set_interpolation_mode", &QGradient::setInterpolationMode, Arg("mode"))
|
|
27
|
+
.define_method("set_spread", &QGradient::setSpread, Arg("spread"))
|
|
28
|
+
.define_method("set_stops", &QGradient::setStops, Arg("stops"))
|
|
29
|
+
.define_method("spread", &QGradient::spread)
|
|
30
|
+
.define_method("stops", &QGradient::stops)
|
|
31
|
+
.define_method("type", &QGradient::type);
|
|
32
|
+
|
|
33
|
+
rb_cQConicalGradient =
|
|
34
|
+
// RubyQt6::QtGui::QConicalGradient
|
|
35
|
+
define_class_under<QConicalGradient, QGradient>(rb_mQt6QtGui, "QConicalGradient")
|
|
36
|
+
// Constructor
|
|
37
|
+
.define_constructor(Constructor<QConicalGradient>())
|
|
38
|
+
.define_constructor(Constructor<QConicalGradient, qreal, qreal, qreal>(), Arg("center_x"), Arg("center_y"), Arg("start_angle"))
|
|
39
|
+
.define_constructor(Constructor<QConicalGradient, const QPointF &, qreal>(), Arg("center"), Arg("start_angle"))
|
|
40
|
+
// Public Functions
|
|
41
|
+
.define_method("angle", &QConicalGradient::angle)
|
|
42
|
+
.define_method("center", &QConicalGradient::center)
|
|
43
|
+
.define_method("set_angle", &QConicalGradient::setAngle, Arg("angle"))
|
|
44
|
+
.define_method<void (QConicalGradient::*)(qreal, qreal)>("set_center", &QConicalGradient::setCenter, Arg("x"), Arg("y"))
|
|
45
|
+
.define_method<void (QConicalGradient::*)(const QPointF &)>("set_center", &QConicalGradient::setCenter, Arg("center"));
|
|
46
|
+
|
|
47
|
+
rb_cQLinearGradient =
|
|
48
|
+
// RubyQt6::QtGui::QLinearGradient
|
|
49
|
+
define_class_under<QLinearGradient, QGradient>(rb_mQt6QtGui, "QLinearGradient")
|
|
50
|
+
// Constructor
|
|
51
|
+
.define_constructor(Constructor<QLinearGradient>())
|
|
52
|
+
.define_constructor(Constructor<QLinearGradient, qreal, qreal, qreal, qreal>(), Arg("start_x"), Arg("start_y"), Arg("final_stop_x"), Arg("final_stop_y"))
|
|
53
|
+
.define_constructor(Constructor<QLinearGradient, const QPointF &, const QPointF &>(), Arg("start"), Arg("final_stop"))
|
|
54
|
+
// Public Functions
|
|
55
|
+
.define_method("final_stop", &QLinearGradient::finalStop)
|
|
56
|
+
.define_method<void (QLinearGradient::*)(qreal, qreal)>("set_final_stop", &QLinearGradient::setFinalStop, Arg("x"), Arg("y"))
|
|
57
|
+
.define_method<void (QLinearGradient::*)(const QPointF &)>("set_final_stop", &QLinearGradient::setFinalStop, Arg("stop"))
|
|
58
|
+
.define_method<void (QLinearGradient::*)(qreal, qreal)>("set_start", &QLinearGradient::setStart, Arg("x"), Arg("y"))
|
|
59
|
+
.define_method<void (QLinearGradient::*)(const QPointF &)>("set_start", &QLinearGradient::setStart, Arg("start"))
|
|
60
|
+
.define_method("start", &QLinearGradient::start);
|
|
61
|
+
|
|
62
|
+
rb_cQRadialGradient =
|
|
63
|
+
// RubyQt6::QtGui::QRadialGradient
|
|
64
|
+
define_class_under<QRadialGradient, QGradient>(rb_mQt6QtGui, "QRadialGradient")
|
|
65
|
+
// Constructor
|
|
66
|
+
.define_constructor(Constructor<QRadialGradient>())
|
|
67
|
+
.define_constructor(Constructor<QRadialGradient, qreal, qreal, qreal, qreal, qreal, qreal>(), Arg("cx"), Arg("cy"), Arg("center_radius"), Arg("fx"), Arg("fy"), Arg("focal_radius"))
|
|
68
|
+
.define_constructor(Constructor<QRadialGradient, qreal, qreal, qreal, qreal, qreal>(), Arg("cx"), Arg("cy"), Arg("radius"), Arg("fx"), Arg("fy"))
|
|
69
|
+
.define_constructor(Constructor<QRadialGradient, qreal, qreal, qreal>(), Arg("cx"), Arg("cy"), Arg("radius"))
|
|
70
|
+
.define_constructor(Constructor<QRadialGradient, const QPointF &, qreal, const QPointF &, qreal>(), Arg("center"), Arg("center_radius"), Arg("focal_point"), Arg("focal_radius"))
|
|
71
|
+
.define_constructor(Constructor<QRadialGradient, const QPointF &, qreal, const QPointF &>(), Arg("center"), Arg("radius"), Arg("focal_point"))
|
|
72
|
+
.define_constructor(Constructor<QRadialGradient, const QPointF &, qreal>(), Arg("center"), Arg("radius"))
|
|
73
|
+
// Public Functions
|
|
74
|
+
.define_method("center", &QRadialGradient::center)
|
|
75
|
+
.define_method("center_radius", &QRadialGradient::centerRadius)
|
|
76
|
+
.define_method("focal_point", &QRadialGradient::focalPoint)
|
|
77
|
+
.define_method("focal_radius", &QRadialGradient::focalRadius)
|
|
78
|
+
.define_method("radius", &QRadialGradient::radius)
|
|
79
|
+
.define_method<void (QRadialGradient::*)(qreal, qreal)>("set_center", &QRadialGradient::setCenter, Arg("x"), Arg("y"))
|
|
80
|
+
.define_method<void (QRadialGradient::*)(const QPointF &)>("set_center", &QRadialGradient::setCenter, Arg("center"))
|
|
81
|
+
.define_method("set_center_radius", &QRadialGradient::setCenterRadius, Arg("radius"))
|
|
82
|
+
.define_method<void (QRadialGradient::*)(qreal, qreal)>("set_focal_point", &QRadialGradient::setFocalPoint, Arg("x"), Arg("y"))
|
|
83
|
+
.define_method<void (QRadialGradient::*)(const QPointF &)>("set_focal_point", &QRadialGradient::setFocalPoint, Arg("focal_point"))
|
|
84
|
+
.define_method("set_focal_radius", &QRadialGradient::setFocalRadius, Arg("radius"))
|
|
85
|
+
.define_method("set_radius", &QRadialGradient::setRadius, Arg("radius"));
|
|
86
|
+
}
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
#include <QStyleHints>
|
|
12
12
|
#include <QWindow>
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Class rb_cQGuiApplication;
|
|
17
17
|
|
|
18
|
-
void Init_qguiapplication(
|
|
18
|
+
void Init_qguiapplication(Module rb_mQt6QtGui)
|
|
19
19
|
{
|
|
20
20
|
rb_cQGuiApplication =
|
|
21
21
|
// RubyQt6::QtGui::QGuiApplication
|
|
@@ -23,7 +23,7 @@ void Init_qguiapplication(Rice::Module rb_mQt6QtGui)
|
|
|
23
23
|
// RubyQt6-Defined Functions
|
|
24
24
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QGuiApplication::staticMetaObject; })
|
|
25
25
|
// Constructor
|
|
26
|
-
.define_constructor(Constructor<QGuiApplication, int &, char **>(), Arg("argc"),
|
|
26
|
+
.define_constructor(Constructor<QGuiApplication, int &, char **>(), Arg("argc"), ArgBuffer("argv"))
|
|
27
27
|
// Public Functions
|
|
28
28
|
.define_method("device_pixel_ratio", &QGuiApplication::devicePixelRatio)
|
|
29
29
|
.define_method("notify", &QGuiApplication::notify, Arg("receiver"), Arg("event"))
|
|
@@ -34,18 +34,18 @@ void Init_qguiapplication(Rice::Module rb_mQt6QtGui)
|
|
|
34
34
|
// Public Slots
|
|
35
35
|
.define_method("set_badge_number", &QGuiApplication::setBadgeNumber, Arg("number"))
|
|
36
36
|
// Signals
|
|
37
|
-
.define_method("application_display_name_changed", &QGuiApplication::applicationDisplayNameChanged)
|
|
38
|
-
.define_method("application_state_changed", &QGuiApplication::applicationStateChanged, Arg("state"))
|
|
39
|
-
.define_method("commit_data_request", &QGuiApplication::commitDataRequest, Arg("session_manager"))
|
|
40
|
-
.define_method("focus_object_changed", &QGuiApplication::focusObjectChanged, Arg("focus_object"))
|
|
41
|
-
.define_method("focus_window_changed", &QGuiApplication::focusWindowChanged, Arg("focus_window"))
|
|
42
|
-
.define_method("font_database_changed", &QGuiApplication::fontDatabaseChanged)
|
|
43
|
-
.define_method("last_window_closed", &QGuiApplication::lastWindowClosed)
|
|
44
|
-
.define_method("layout_direction_changed", &QGuiApplication::layoutDirectionChanged, Arg("direction"))
|
|
45
|
-
.define_method("primary_screen_changed", &QGuiApplication::primaryScreenChanged, Arg("screen"))
|
|
46
|
-
.define_method("save_state_request", &QGuiApplication::saveStateRequest, Arg("session_manager"))
|
|
47
|
-
.define_method("screen_added", &QGuiApplication::screenAdded, Arg("screen"))
|
|
48
|
-
.define_method("screen_removed", &QGuiApplication::screenRemoved, Arg("screen"))
|
|
37
|
+
// .define_method("application_display_name_changed", &QGuiApplication::applicationDisplayNameChanged)
|
|
38
|
+
// .define_method("application_state_changed", &QGuiApplication::applicationStateChanged, Arg("state"))
|
|
39
|
+
// .define_method("commit_data_request", &QGuiApplication::commitDataRequest, Arg("session_manager"))
|
|
40
|
+
// .define_method("focus_object_changed", &QGuiApplication::focusObjectChanged, Arg("focus_object"))
|
|
41
|
+
// .define_method("focus_window_changed", &QGuiApplication::focusWindowChanged, Arg("focus_window"))
|
|
42
|
+
// .define_method("font_database_changed", &QGuiApplication::fontDatabaseChanged)
|
|
43
|
+
// .define_method("last_window_closed", &QGuiApplication::lastWindowClosed)
|
|
44
|
+
// .define_method("layout_direction_changed", &QGuiApplication::layoutDirectionChanged, Arg("direction"))
|
|
45
|
+
// .define_method("primary_screen_changed", &QGuiApplication::primaryScreenChanged, Arg("screen"))
|
|
46
|
+
// .define_method("save_state_request", &QGuiApplication::saveStateRequest, Arg("session_manager"))
|
|
47
|
+
// .define_method("screen_added", &QGuiApplication::screenAdded, Arg("screen"))
|
|
48
|
+
// .define_method("screen_removed", &QGuiApplication::screenRemoved, Arg("screen"))
|
|
49
49
|
// Static Public Members
|
|
50
50
|
.define_singleton_function("all_windows", &QGuiApplication::allWindows)
|
|
51
51
|
.define_singleton_function("application_display_name", &QGuiApplication::applicationDisplayName)
|
|
@@ -67,9 +67,7 @@ void Init_qguiapplication(Rice::Module rb_mQt6QtGui)
|
|
|
67
67
|
.define_singleton_function("modal_window", &QGuiApplication::modalWindow)
|
|
68
68
|
.define_singleton_function("mouse_buttons", &QGuiApplication::mouseButtons)
|
|
69
69
|
.define_singleton_function("override_cursor", &QGuiApplication::overrideCursor)
|
|
70
|
-
.define_singleton_function("platform_function", &QGuiApplication::platformFunction, Arg("function"))
|
|
71
70
|
.define_singleton_function("platform_name", &QGuiApplication::platformName)
|
|
72
|
-
// .define_singleton_function("platform_native_interface", &QGuiApplication::platformNativeInterface)
|
|
73
71
|
.define_singleton_function("primary_screen", &QGuiApplication::primaryScreen)
|
|
74
72
|
.define_singleton_function("query_keyboard_modifiers", &QGuiApplication::queryKeyboardModifiers)
|
|
75
73
|
.define_singleton_function("quit_on_last_window_closed", &QGuiApplication::quitOnLastWindowClosed)
|
data/ext/qt6/qtgui/qicon-rb.cpp
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
#include <QPainter>
|
|
6
6
|
#include <QWindow>
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Class rb_cQIcon;
|
|
11
11
|
|
|
12
|
-
void Init_qicon(
|
|
12
|
+
void Init_qicon(Module rb_mQt6QtGui)
|
|
13
13
|
{
|
|
14
14
|
rb_cQIcon =
|
|
15
15
|
// RubyQt6::QtGui::QIcon
|
data/ext/qt6/qtgui/qicon-rb.hpp
CHANGED
data/ext/qt6/qtgui/qimage-rb.cpp
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
#include <QIODevice>
|
|
8
8
|
#include <QPaintEngine>
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Class rb_cQImage;
|
|
13
13
|
|
|
14
|
-
void Init_qimage(
|
|
14
|
+
void Init_qimage(Module rb_mQt6QtGui)
|
|
15
15
|
{
|
|
16
16
|
rb_cQImage =
|
|
17
17
|
// RubyQt6::QtGui::QImage
|
data/ext/qt6/qtgui/qimage-rb.hpp
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
#include <qimagewriter.h>
|
|
3
3
|
#include <rice/qt6/qenum.hpp>
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Class rb_cQImageWriter;
|
|
8
8
|
|
|
9
|
-
void Init_qimagewriter(
|
|
9
|
+
void Init_qimagewriter(Module rb_mQt6QtGui)
|
|
10
10
|
{
|
|
11
11
|
rb_cQImageWriter =
|
|
12
12
|
// RubyQt6::QtGui::QImageWriter
|
|
@@ -4,17 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
#include <QList>
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Class rb_cQKeySequence;
|
|
10
10
|
|
|
11
|
-
void Init_qkeysequence(
|
|
11
|
+
void Init_qkeysequence(Module rb_mQt6QtGui)
|
|
12
12
|
{
|
|
13
13
|
rb_cQKeySequence =
|
|
14
14
|
// RubyQt6::QtGui::QKeySequence
|
|
15
15
|
define_class_under<QKeySequence>(rb_mQt6QtGui, "QKeySequence")
|
|
16
16
|
// Constructor
|
|
17
|
-
.define_constructor(Constructor<QKeySequence>())
|
|
18
17
|
.define_constructor(Constructor<QKeySequence, int>(), Arg("key"))
|
|
19
18
|
.define_constructor(Constructor<QKeySequence, QKeySequence::StandardKey>(), Arg("key"))
|
|
20
19
|
.define_constructor(Constructor<QKeySequence, const QString &>(), Arg("key"))
|
data/ext/qt6/qtgui/qmovie-rb.cpp
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
#include <QBindable>
|
|
6
6
|
#include <QPixmap>
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Class rb_cQMovie;
|
|
11
11
|
|
|
12
|
-
void Init_qmovie(
|
|
12
|
+
void Init_qmovie(Module rb_mQt6QtGui)
|
|
13
13
|
{
|
|
14
14
|
rb_cQMovie =
|
|
15
15
|
// RubyQt6::QtGui::QMovie
|
|
@@ -53,13 +53,13 @@ void Init_qmovie(Rice::Module rb_mQt6QtGui)
|
|
|
53
53
|
.define_method("start", &QMovie::start)
|
|
54
54
|
.define_method("stop", &QMovie::stop)
|
|
55
55
|
// Signals
|
|
56
|
-
.define_method("error", &QMovie::error, Arg("error"))
|
|
57
|
-
.define_method("finished", &QMovie::finished)
|
|
58
|
-
.define_method("frame_changed", &QMovie::frameChanged, Arg("frame_number"))
|
|
59
|
-
.define_method("resized", &QMovie::resized, Arg("size"))
|
|
60
|
-
.define_method("started", &QMovie::started)
|
|
61
|
-
.define_method("state_changed", &QMovie::stateChanged, Arg("state"))
|
|
62
|
-
.define_method("updated", &QMovie::updated, Arg("rect"))
|
|
56
|
+
// .define_method("error", &QMovie::error, Arg("error"))
|
|
57
|
+
// .define_method("finished", &QMovie::finished)
|
|
58
|
+
// .define_method("frame_changed", &QMovie::frameChanged, Arg("frame_number"))
|
|
59
|
+
// .define_method("resized", &QMovie::resized, Arg("size"))
|
|
60
|
+
// .define_method("started", &QMovie::started)
|
|
61
|
+
// .define_method("state_changed", &QMovie::stateChanged, Arg("state"))
|
|
62
|
+
// .define_method("updated", &QMovie::updated, Arg("rect"))
|
|
63
63
|
// Static Public Members
|
|
64
64
|
.define_singleton_function("supported_formats", &QMovie::supportedFormats);
|
|
65
65
|
|
data/ext/qt6/qtgui/qmovie-rb.hpp
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
#include <qpagedpaintdevice.h>
|
|
3
3
|
#include <rice/qt6/qenum.hpp>
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Class rb_cQPagedPaintDevice;
|
|
8
8
|
|
|
9
|
-
void Init_qpagedpaintdevice(
|
|
9
|
+
void Init_qpagedpaintdevice(Module rb_mQt6QtGui)
|
|
10
10
|
{
|
|
11
11
|
rb_cQPagedPaintDevice =
|
|
12
12
|
// RubyQt6::QtGui::QPagedPaintDevice
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
#include <QPaintEngine>
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Class rb_cQPaintDevice;
|
|
9
9
|
|
|
10
|
-
void Init_qpaintdevice(
|
|
10
|
+
void Init_qpaintdevice(Module rb_mQt6QtGui)
|
|
11
11
|
{
|
|
12
12
|
rb_cQPaintDevice =
|
|
13
13
|
// RubyQt6::QtGui::QPaintDevice
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
#include <QStaticText>
|
|
10
10
|
#include <QTextItem>
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Class rb_cQPainter;
|
|
15
15
|
|
|
16
|
-
void Init_qpainter(
|
|
16
|
+
void Init_qpainter(Module rb_mQt6QtGui)
|
|
17
17
|
{
|
|
18
18
|
rb_cQPainter =
|
|
19
19
|
// RubyQt6::QtGui::QPainter
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
#include <QFont>
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
Class rb_cQPainterPath;
|
|
10
|
+
Class rb_cQPainterPathElement;
|
|
11
11
|
|
|
12
|
-
void Init_qpainterpath(
|
|
12
|
+
void Init_qpainterpath(Module rb_mQt6QtGui)
|
|
13
13
|
{
|
|
14
14
|
rb_cQPainterPath =
|
|
15
15
|
// RubyQt6::QtGui::QPainterPath
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
#include <QPen>
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Class rb_cQPainterPathStroker;
|
|
9
9
|
|
|
10
|
-
void Init_qpainterpathstroker(
|
|
10
|
+
void Init_qpainterpathstroker(Module rb_mQt6QtGui)
|
|
11
11
|
{
|
|
12
12
|
rb_cQPainterPathStroker =
|
|
13
13
|
// RubyQt6::QtGui::QPainterPathStroker
|
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
#include <qpalette.h>
|
|
3
3
|
#include <rice/qt6/qenum.hpp>
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Class rb_cQPalette;
|
|
8
8
|
|
|
9
|
-
void Init_qpalette(
|
|
9
|
+
void Init_qpalette(Module rb_mQt6QtGui)
|
|
10
10
|
{
|
|
11
11
|
rb_cQPalette =
|
|
12
12
|
// RubyQt6::QtGui::QPalette
|
|
13
13
|
define_class_under<QPalette>(rb_mQt6QtGui, "QPalette")
|
|
14
|
+
// RubyQt6-Defined Functions
|
|
15
|
+
.define_singleton_function("_operator_equal", [](QPalette *lhs, QPalette *rhs) -> bool { return *lhs == *rhs; }, Arg("lhs"), Arg("rhs"))
|
|
14
16
|
// Constructor
|
|
15
17
|
.define_constructor(Constructor<QPalette>())
|
|
16
18
|
.define_constructor(Constructor<QPalette, const QColor &>(), Arg("button"))
|
data/ext/qt6/qtgui/qpen-rb.cpp
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
#include "qpen-rb.hpp"
|
|
2
2
|
#include <qpen.h>
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Class rb_cQPen;
|
|
7
7
|
|
|
8
|
-
void Init_qpen(
|
|
8
|
+
void Init_qpen(Module rb_mQt6QtGui)
|
|
9
9
|
{
|
|
10
10
|
rb_cQPen =
|
|
11
11
|
// RubyQt6::QtGui::QPen
|
|
12
12
|
define_class_under<QPen>(rb_mQt6QtGui, "QPen")
|
|
13
|
+
// RubyQt6-Defined Functions
|
|
14
|
+
.define_singleton_function("_operator_equal", [](QPen *lhs, QPen *rhs) -> bool { return *lhs == *rhs; }, Arg("lhs"), Arg("rhs"))
|
|
13
15
|
// Constructor
|
|
14
16
|
.define_constructor(Constructor<QPen>())
|
|
15
17
|
.define_constructor(Constructor<QPen, Qt::PenStyle>(), Arg("style"))
|
data/ext/qt6/qtgui/qpen-rb.hpp
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
#include <QPaintEngine>
|
|
5
5
|
#include <QPainter>
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Class rb_cQPicture;
|
|
10
10
|
|
|
11
|
-
void Init_qpicture(
|
|
11
|
+
void Init_qpicture(Module rb_mQt6QtGui)
|
|
12
12
|
{
|
|
13
13
|
rb_cQPicture =
|
|
14
14
|
// RubyQt6::QtGui::QPicture
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
#include <QIODevice>
|
|
7
7
|
#include <QPaintEngine>
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Class rb_cQPixmap;
|
|
12
12
|
|
|
13
|
-
void Init_qpixmap(
|
|
13
|
+
void Init_qpixmap(Module rb_mQt6QtGui)
|
|
14
14
|
{
|
|
15
15
|
rb_cQPixmap =
|
|
16
16
|
// RubyQt6::QtGui::QPixmap
|
|
@@ -20,6 +20,7 @@ void Init_qpixmap(Rice::Module rb_mQt6QtGui)
|
|
|
20
20
|
.define_constructor(Constructor<QPixmap, int, int>(), Arg("w"), Arg("h"))
|
|
21
21
|
.define_constructor(Constructor<QPixmap, const QSize &>(), Arg("size"))
|
|
22
22
|
.define_constructor(Constructor<QPixmap, const QString &>(), Arg("file_name"))
|
|
23
|
+
.define_constructor(Constructor<QPixmap, const QPixmap &>(), Arg("other"))
|
|
23
24
|
// Public Functions
|
|
24
25
|
.define_method("cache_key", &QPixmap::cacheKey)
|
|
25
26
|
.define_method("convert_from_image", &QPixmap::convertFromImage, Arg("img"), Arg("flags") = static_cast<Qt::ImageConversionFlags>(Qt::AutoColor))
|
|
@@ -39,9 +40,9 @@ void Init_qpixmap(Rice::Module rb_mQt6QtGui)
|
|
|
39
40
|
.define_method("detached?", &QPixmap::isDetached)
|
|
40
41
|
.define_method("null?", &QPixmap::isNull)
|
|
41
42
|
.define_method("qbitmap?", &QPixmap::isQBitmap)
|
|
42
|
-
.define_method("
|
|
43
|
-
.define_method<bool (QPixmap::*)(const QByteArray &, const char *, Qt::ImageConversionFlags)>("load_from_data", &QPixmap::loadFromData, Arg("data"), Arg("format") = static_cast<const char *>(nullptr), Arg("flags") = static_cast<Qt::ImageConversionFlags>(Qt::AutoColor))
|
|
44
|
-
.define_method<bool (QPixmap::*)(const uchar *, ::uint, const char *, Qt::ImageConversionFlags)>("load_from_data", &QPixmap::loadFromData, Arg("buf"), Arg("len"), Arg("format") = static_cast<const char *>(nullptr), Arg("flags") = static_cast<Qt::ImageConversionFlags>(Qt::AutoColor))
|
|
43
|
+
.define_method("_load", &QPixmap::load, Arg("file_name"), Arg("format") = static_cast<const char *>(nullptr), Arg("flags") = static_cast<Qt::ImageConversionFlags>(Qt::AutoColor))
|
|
44
|
+
// .define_method<bool (QPixmap::*)(const QByteArray &, const char *, Qt::ImageConversionFlags)>("load_from_data", &QPixmap::loadFromData, Arg("data"), Arg("format") = static_cast<const char *>(nullptr), Arg("flags") = static_cast<Qt::ImageConversionFlags>(Qt::AutoColor))
|
|
45
|
+
// .define_method<bool (QPixmap::*)(const uchar *, ::uint, const char *, Qt::ImageConversionFlags)>("load_from_data", &QPixmap::loadFromData, Arg("buf"), Arg("len"), Arg("format") = static_cast<const char *>(nullptr), Arg("flags") = static_cast<Qt::ImageConversionFlags>(Qt::AutoColor))
|
|
45
46
|
.define_method("mask", &QPixmap::mask)
|
|
46
47
|
.define_method("rect", &QPixmap::rect)
|
|
47
48
|
.define_method<bool (QPixmap::*)(QIODevice *, const char *, int) const>("save", &QPixmap::save, Arg("device"), Arg("format") = static_cast<const char *>(nullptr), Arg("quality") = static_cast<int>(-1))
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#include "qpolygon-rb.hpp"
|
|
2
2
|
#include <qpolygon.h>
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
Class rb_cQPolygon;
|
|
7
|
+
Class rb_cQPolygonF;
|
|
8
8
|
|
|
9
|
-
void Init_qpolygon(
|
|
9
|
+
void Init_qpolygon(Module rb_mQt6QtGui)
|
|
10
10
|
{
|
|
11
11
|
rb_cQPolygon =
|
|
12
12
|
// RubyQt6::QtGui::QPolygon
|