ruby-qt6-qtgui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rspec +2 -0
- data/.rubocop.yml +10 -0
- data/LICENSE +185 -0
- data/README.md +3 -0
- data/Rakefile +19 -0
- data/ext/qt6/qtgui/extconf.rb +16 -0
- data/ext/qt6/qtgui/qaction-rb.cpp +108 -0
- data/ext/qt6/qtgui/qaction-rb.hpp +4 -0
- data/ext/qt6/qtgui/qactiongroup-rb.cpp +45 -0
- data/ext/qt6/qtgui/qactiongroup-rb.hpp +4 -0
- data/ext/qt6/qtgui/qbrush-rb.cpp +39 -0
- data/ext/qt6/qtgui/qbrush-rb.hpp +4 -0
- data/ext/qt6/qtgui/qclipboard-rb.cpp +49 -0
- data/ext/qt6/qtgui/qclipboard-rb.hpp +4 -0
- data/ext/qt6/qtgui/qcolor-rb.cpp +122 -0
- data/ext/qt6/qtgui/qcolor-rb.hpp +4 -0
- data/ext/qt6/qtgui/qcursor-rb.cpp +32 -0
- data/ext/qt6/qtgui/qcursor-rb.hpp +4 -0
- data/ext/qt6/qtgui/qevent-rb.cpp +399 -0
- data/ext/qt6/qtgui/qevent-rb.hpp +4 -0
- data/ext/qt6/qtgui/qfilesystemmodel-rb.cpp +96 -0
- data/ext/qt6/qtgui/qfilesystemmodel-rb.hpp +4 -0
- data/ext/qt6/qtgui/qfont-rb.cpp +193 -0
- data/ext/qt6/qtgui/qfont-rb.hpp +4 -0
- data/ext/qt6/qtgui/qfontdatabase-rb.cpp +101 -0
- data/ext/qt6/qtgui/qfontdatabase-rb.hpp +4 -0
- data/ext/qt6/qtgui/qfontinfo-rb.cpp +34 -0
- data/ext/qt6/qtgui/qfontinfo-rb.hpp +4 -0
- data/ext/qt6/qtgui/qfontmetrics-rb.cpp +90 -0
- data/ext/qt6/qtgui/qfontmetrics-rb.hpp +4 -0
- data/ext/qt6/qtgui/qguiapplication-rb.cpp +94 -0
- data/ext/qt6/qtgui/qguiapplication-rb.hpp +4 -0
- data/ext/qt6/qtgui/qicon-rb.cpp +223 -0
- data/ext/qt6/qtgui/qicon-rb.hpp +4 -0
- data/ext/qt6/qtgui/qimage-rb.cpp +181 -0
- data/ext/qt6/qtgui/qimage-rb.hpp +4 -0
- data/ext/qt6/qtgui/qimagewriter-rb.cpp +56 -0
- data/ext/qt6/qtgui/qimagewriter-rb.hpp +4 -0
- data/ext/qt6/qtgui/qkeysequence-rb.cpp +121 -0
- data/ext/qt6/qtgui/qkeysequence-rb.hpp +4 -0
- data/ext/qt6/qtgui/qmovie-rb.cpp +78 -0
- data/ext/qt6/qtgui/qmovie-rb.hpp +4 -0
- data/ext/qt6/qtgui/qpagedpaintdevice-rb.cpp +31 -0
- data/ext/qt6/qtgui/qpagedpaintdevice-rb.hpp +4 -0
- data/ext/qt6/qtgui/qpaintdevice-rb.cpp +33 -0
- data/ext/qt6/qtgui/qpaintdevice-rb.hpp +4 -0
- data/ext/qt6/qtgui/qpainter-rb.cpp +285 -0
- data/ext/qt6/qtgui/qpainter-rb.hpp +4 -0
- data/ext/qt6/qtgui/qpainterpath-rb.cpp +100 -0
- data/ext/qt6/qtgui/qpainterpath-rb.hpp +4 -0
- data/ext/qt6/qtgui/qpainterpathstroker-rb.cpp +35 -0
- data/ext/qt6/qtgui/qpainterpathstroker-rb.hpp +4 -0
- data/ext/qt6/qtgui/qpalette-rb.cpp +96 -0
- data/ext/qt6/qtgui/qpalette-rb.hpp +4 -0
- data/ext/qt6/qtgui/qpen-rb.cpp +46 -0
- data/ext/qt6/qtgui/qpen-rb.hpp +4 -0
- data/ext/qt6/qtgui/qpicture-rb.cpp +33 -0
- data/ext/qt6/qtgui/qpicture-rb.hpp +4 -0
- data/ext/qt6/qtgui/qpixmap-rb.cpp +66 -0
- data/ext/qt6/qtgui/qpixmap-rb.hpp +4 -0
- data/ext/qt6/qtgui/qpolygon-rb.cpp +54 -0
- data/ext/qt6/qtgui/qpolygon-rb.hpp +4 -0
- data/ext/qt6/qtgui/qregion-rb.cpp +54 -0
- data/ext/qt6/qtgui/qregion-rb.hpp +4 -0
- data/ext/qt6/qtgui/qscreen-rb.cpp +61 -0
- data/ext/qt6/qtgui/qscreen-rb.hpp +4 -0
- data/ext/qt6/qtgui/qshortcut-rb.cpp +34 -0
- data/ext/qt6/qtgui/qshortcut-rb.hpp +4 -0
- data/ext/qt6/qtgui/qstandarditemmodel-rb.cpp +187 -0
- data/ext/qt6/qtgui/qstandarditemmodel-rb.hpp +4 -0
- data/ext/qt6/qtgui/qtextcursor-rb.cpp +138 -0
- data/ext/qt6/qtgui/qtextcursor-rb.hpp +4 -0
- data/ext/qt6/qtgui/qtextdocument-rb.cpp +178 -0
- data/ext/qt6/qtgui/qtextdocument-rb.hpp +4 -0
- data/ext/qt6/qtgui/qtextformat-rb.cpp +551 -0
- data/ext/qt6/qtgui/qtextformat-rb.hpp +4 -0
- data/ext/qt6/qtgui/qtextlist-rb.cpp +25 -0
- data/ext/qt6/qtgui/qtextlist-rb.hpp +4 -0
- data/ext/qt6/qtgui/qtextobject-rb.cpp +44 -0
- data/ext/qt6/qtgui/qtextobject-rb.hpp +4 -0
- data/ext/qt6/qtgui/qtextoption-rb.cpp +69 -0
- data/ext/qt6/qtgui/qtextoption-rb.hpp +4 -0
- data/ext/qt6/qtgui/qtexttable-rb.cpp +53 -0
- data/ext/qt6/qtgui/qtexttable-rb.hpp +4 -0
- data/ext/qt6/qtgui/qtgui-rb.cpp +105 -0
- data/ext/qt6/qtgui/qtgui-rb.hpp +3 -0
- data/ext/qt6/qtgui/qtguiversion-rb.cpp +9 -0
- data/ext/qt6/qtgui/qtguiversion-rb.hpp +4 -0
- data/ext/qt6/qtgui/qtransform-rb.cpp +79 -0
- data/ext/qt6/qtgui/qtransform-rb.hpp +4 -0
- data/ext/qt6/qtgui/qvalidator-rb.cpp +98 -0
- data/ext/qt6/qtgui/qvalidator-rb.hpp +4 -0
- data/ext/qt6/qtgui/qwindow-rb.cpp +179 -0
- data/ext/qt6/qtgui/qwindow-rb.hpp +4 -0
- data/ext/qt6/qtgui/t-qtgui-rb.cpp +20 -0
- data/ext/qt6/qtgui/t-qtgui-rb.hpp +4 -0
- data/lib/qt6/qtgui/qaction.rb +69 -0
- data/lib/qt6/qtgui/qactiongroup.rb +32 -0
- data/lib/qt6/qtgui/qbrush.rb +49 -0
- data/lib/qt6/qtgui/qclipboard.rb +19 -0
- data/lib/qt6/qtgui/qcolor.rb +49 -0
- data/lib/qt6/qtgui/qcursor.rb +21 -0
- data/lib/qt6/qtgui/qdoublevalidator.rb +57 -0
- data/lib/qt6/qtgui/qfilesystemmodel.rb +32 -0
- data/lib/qt6/qtgui/qfont.rb +70 -0
- data/lib/qt6/qtgui/qfontdatabase.rb +13 -0
- data/lib/qt6/qtgui/qfontinfo.rb +17 -0
- data/lib/qt6/qtgui/qfontmetrics.rb +19 -0
- data/lib/qt6/qtgui/qfontmetricsf.rb +22 -0
- data/lib/qt6/qtgui/qguiapplication.rb +36 -0
- data/lib/qt6/qtgui/qicon.rb +32 -0
- data/lib/qt6/qtgui/qimage.rb +31 -0
- data/lib/qt6/qtgui/qimagewriter.rb +30 -0
- data/lib/qt6/qtgui/qintvalidator.rb +50 -0
- data/lib/qt6/qtgui/qkeysequence.rb +45 -0
- data/lib/qt6/qtgui/qmovie.rb +39 -0
- data/lib/qt6/qtgui/qpagedpaintdevice.rb +11 -0
- data/lib/qt6/qtgui/qpaintdevice.rb +9 -0
- data/lib/qt6/qtgui/qpainter.rb +45 -0
- data/lib/qt6/qtgui/qpainterpath.rb +24 -0
- data/lib/qt6/qtgui/qpainterpathstroker.rb +21 -0
- data/lib/qt6/qtgui/qpalette.rb +30 -0
- data/lib/qt6/qtgui/qpen.rb +46 -0
- data/lib/qt6/qtgui/qpicture.rb +18 -0
- data/lib/qt6/qtgui/qpixmap.rb +29 -0
- data/lib/qt6/qtgui/qpolygon.rb +18 -0
- data/lib/qt6/qtgui/qpolygonf.rb +21 -0
- data/lib/qt6/qtgui/qregion.rb +41 -0
- data/lib/qt6/qtgui/qregularexpressionvalidator.rb +48 -0
- data/lib/qt6/qtgui/qscreen.rb +21 -0
- data/lib/qt6/qtgui/qshortcut.rb +25 -0
- data/lib/qt6/qtgui/qstandarditem.rb +43 -0
- data/lib/qt6/qtgui/qstandarditemmodel.rb +23 -0
- data/lib/qt6/qtgui/qtextblockformat.rb +21 -0
- data/lib/qt6/qtgui/qtextblockgroup.rb +12 -0
- data/lib/qt6/qtgui/qtextcharformat.rb +23 -0
- data/lib/qt6/qtgui/qtextcursor.rb +58 -0
- data/lib/qt6/qtgui/qtextdocument.rb +58 -0
- data/lib/qt6/qtgui/qtextformat.rb +32 -0
- data/lib/qt6/qtgui/qtextframe.rb +12 -0
- data/lib/qt6/qtgui/qtextframeformat.rb +21 -0
- data/lib/qt6/qtgui/qtextimageformat.rb +16 -0
- data/lib/qt6/qtgui/qtextlist.rb +12 -0
- data/lib/qt6/qtgui/qtextlistformat.rb +19 -0
- data/lib/qt6/qtgui/qtextobject.rb +12 -0
- data/lib/qt6/qtgui/qtextoption.rb +17 -0
- data/lib/qt6/qtgui/qtexttable.rb +12 -0
- data/lib/qt6/qtgui/qtexttablecell.rb +9 -0
- data/lib/qt6/qtgui/qtexttablecellformat.rb +16 -0
- data/lib/qt6/qtgui/qtexttableformat.rb +16 -0
- data/lib/qt6/qtgui/qtguiversion.rb +6 -0
- data/lib/qt6/qtgui/qtransform.rb +45 -0
- data/lib/qt6/qtgui/qvalidator.rb +16 -0
- data/lib/qt6/qtgui/qwindow.rb +79 -0
- data/lib/qt6/qtgui/version.rb +7 -0
- data/lib/qt6/qtgui.rb +66 -0
- metadata +227 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
#include "qguiapplication-rb.hpp"
|
|
2
|
+
#include <qguiapplication.h>
|
|
3
|
+
|
|
4
|
+
#include <QClipboard>
|
|
5
|
+
#include <QCursor>
|
|
6
|
+
#include <QFont>
|
|
7
|
+
#include <QIcon>
|
|
8
|
+
#include <QPalette>
|
|
9
|
+
#include <QScreen>
|
|
10
|
+
#include <QSessionManager>
|
|
11
|
+
#include <QStyleHints>
|
|
12
|
+
#include <QWindow>
|
|
13
|
+
|
|
14
|
+
using namespace Rice;
|
|
15
|
+
|
|
16
|
+
Rice::Class rb_cQGuiApplication;
|
|
17
|
+
|
|
18
|
+
void Init_qguiapplication(Rice::Module rb_mQt6QtGui)
|
|
19
|
+
{
|
|
20
|
+
rb_cQGuiApplication =
|
|
21
|
+
// RubyQt6::QtGui::QGuiApplication
|
|
22
|
+
define_class_under<QGuiApplication, QCoreApplication>(rb_mQt6QtGui, "QGuiApplication")
|
|
23
|
+
// RubyQt6-Defined Functions
|
|
24
|
+
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QGuiApplication::staticMetaObject; })
|
|
25
|
+
// Constructor
|
|
26
|
+
.define_constructor(Constructor<QGuiApplication, int &, char **>(), Arg("argc"), Arg("argv").setBuffer())
|
|
27
|
+
// Public Functions
|
|
28
|
+
.define_method("device_pixel_ratio", &QGuiApplication::devicePixelRatio)
|
|
29
|
+
.define_method("notify", &QGuiApplication::notify, Arg("receiver"), Arg("event"))
|
|
30
|
+
.define_method("saving_session?", &QGuiApplication::isSavingSession)
|
|
31
|
+
.define_method("session_restored?", &QGuiApplication::isSessionRestored)
|
|
32
|
+
.define_method("session_id", &QGuiApplication::sessionId)
|
|
33
|
+
.define_method("session_key", &QGuiApplication::sessionKey)
|
|
34
|
+
// Public Slots
|
|
35
|
+
.define_method("set_badge_number", &QGuiApplication::setBadgeNumber, Arg("number"))
|
|
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"))
|
|
49
|
+
// Static Public Members
|
|
50
|
+
.define_singleton_function("all_windows", &QGuiApplication::allWindows)
|
|
51
|
+
.define_singleton_function("application_display_name", &QGuiApplication::applicationDisplayName)
|
|
52
|
+
.define_singleton_function("application_state", &QGuiApplication::applicationState)
|
|
53
|
+
.define_singleton_function("change_override_cursor", &QGuiApplication::changeOverrideCursor, Arg("cursor"))
|
|
54
|
+
.define_singleton_function("clipboard", &QGuiApplication::clipboard)
|
|
55
|
+
.define_singleton_function("desktop_file_name", &QGuiApplication::desktopFileName)
|
|
56
|
+
.define_singleton_function("desktop_settings_aware", &QGuiApplication::desktopSettingsAware)
|
|
57
|
+
.define_singleton_function("exec", &QGuiApplication::exec)
|
|
58
|
+
.define_singleton_function("focus_object", &QGuiApplication::focusObject)
|
|
59
|
+
.define_singleton_function("focus_window", &QGuiApplication::focusWindow)
|
|
60
|
+
.define_singleton_function("font", &QGuiApplication::font)
|
|
61
|
+
.define_singleton_function("high_dpi_scale_factor_rounding_policy", &QGuiApplication::highDpiScaleFactorRoundingPolicy)
|
|
62
|
+
.define_singleton_function("input_method", &QGuiApplication::inputMethod)
|
|
63
|
+
.define_singleton_function("left_to_right?", &QGuiApplication::isLeftToRight)
|
|
64
|
+
.define_singleton_function("right_to_left?", &QGuiApplication::isRightToLeft)
|
|
65
|
+
.define_singleton_function("keyboard_modifiers", &QGuiApplication::keyboardModifiers)
|
|
66
|
+
.define_singleton_function("layout_direction", &QGuiApplication::layoutDirection)
|
|
67
|
+
.define_singleton_function("modal_window", &QGuiApplication::modalWindow)
|
|
68
|
+
.define_singleton_function("mouse_buttons", &QGuiApplication::mouseButtons)
|
|
69
|
+
.define_singleton_function("override_cursor", &QGuiApplication::overrideCursor)
|
|
70
|
+
.define_singleton_function("platform_function", &QGuiApplication::platformFunction, Arg("function"))
|
|
71
|
+
.define_singleton_function("platform_name", &QGuiApplication::platformName)
|
|
72
|
+
// .define_singleton_function("platform_native_interface", &QGuiApplication::platformNativeInterface)
|
|
73
|
+
.define_singleton_function("primary_screen", &QGuiApplication::primaryScreen)
|
|
74
|
+
.define_singleton_function("query_keyboard_modifiers", &QGuiApplication::queryKeyboardModifiers)
|
|
75
|
+
.define_singleton_function("quit_on_last_window_closed", &QGuiApplication::quitOnLastWindowClosed)
|
|
76
|
+
.define_singleton_function("restore_override_cursor", &QGuiApplication::restoreOverrideCursor)
|
|
77
|
+
.define_singleton_function("screen_at", &QGuiApplication::screenAt, Arg("point"))
|
|
78
|
+
.define_singleton_function("screens", &QGuiApplication::screens)
|
|
79
|
+
.define_singleton_function("set_application_display_name", &QGuiApplication::setApplicationDisplayName, Arg("name"))
|
|
80
|
+
.define_singleton_function("set_desktop_file_name", &QGuiApplication::setDesktopFileName, Arg("name"))
|
|
81
|
+
.define_singleton_function("set_desktop_settings_aware", &QGuiApplication::setDesktopSettingsAware, Arg("on"))
|
|
82
|
+
.define_singleton_function("set_font", &QGuiApplication::setFont, Arg("font"))
|
|
83
|
+
.define_singleton_function("set_high_dpi_scale_factor_rounding_policy", &QGuiApplication::setHighDpiScaleFactorRoundingPolicy, Arg("policy"))
|
|
84
|
+
.define_singleton_function("set_layout_direction", &QGuiApplication::setLayoutDirection, Arg("direction"))
|
|
85
|
+
.define_singleton_function("set_override_cursor", &QGuiApplication::setOverrideCursor, Arg("cursor"))
|
|
86
|
+
.define_singleton_function("set_palette", &QGuiApplication::setPalette, Arg("pal"))
|
|
87
|
+
.define_singleton_function("set_quit_on_last_window_closed", &QGuiApplication::setQuitOnLastWindowClosed, Arg("quit"))
|
|
88
|
+
.define_singleton_function("set_window_icon", &QGuiApplication::setWindowIcon, Arg("icon"))
|
|
89
|
+
.define_singleton_function("style_hints", &QGuiApplication::styleHints)
|
|
90
|
+
.define_singleton_function("sync", &QGuiApplication::sync)
|
|
91
|
+
.define_singleton_function("top_level_at", &QGuiApplication::topLevelAt, Arg("pos"))
|
|
92
|
+
.define_singleton_function("top_level_windows", &QGuiApplication::topLevelWindows)
|
|
93
|
+
.define_singleton_function("window_icon", &QGuiApplication::windowIcon);
|
|
94
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
#include "qicon-rb.hpp"
|
|
2
|
+
#include <qicon.h>
|
|
3
|
+
#include <rice/qt6/qenum.hpp>
|
|
4
|
+
|
|
5
|
+
#include <QPainter>
|
|
6
|
+
#include <QWindow>
|
|
7
|
+
|
|
8
|
+
using namespace Rice;
|
|
9
|
+
|
|
10
|
+
Rice::Class rb_cQIcon;
|
|
11
|
+
|
|
12
|
+
void Init_qicon(Rice::Module rb_mQt6QtGui)
|
|
13
|
+
{
|
|
14
|
+
rb_cQIcon =
|
|
15
|
+
// RubyQt6::QtGui::QIcon
|
|
16
|
+
define_class_under<QIcon>(rb_mQt6QtGui, "QIcon")
|
|
17
|
+
// Constructor
|
|
18
|
+
.define_constructor(Constructor<QIcon>())
|
|
19
|
+
.define_constructor(Constructor<QIcon, const QString &>(), Arg("file_name"))
|
|
20
|
+
.define_constructor(Constructor<QIcon, const QPixmap &>(), Arg("pixmap"))
|
|
21
|
+
// Public Functions
|
|
22
|
+
.define_method<QSize (QIcon::*)(const QSize &, QIcon::Mode, QIcon::State) const>("actual_size", &QIcon::actualSize, Arg("size"), Arg("mode") = static_cast<QIcon::Mode>(QIcon::Mode::Normal), Arg("state") = static_cast<QIcon::State>(QIcon::State::Off))
|
|
23
|
+
.define_method("add_file", &QIcon::addFile, Arg("file_name"), Arg("size") = static_cast<const QSize &>(QSize()), Arg("mode") = static_cast<QIcon::Mode>(QIcon::Mode::Normal), Arg("state") = static_cast<QIcon::State>(QIcon::State::Off))
|
|
24
|
+
.define_method("add_pixmap", &QIcon::addPixmap, Arg("pixmap"), Arg("mode") = static_cast<QIcon::Mode>(QIcon::Mode::Normal), Arg("state") = static_cast<QIcon::State>(QIcon::State::Off))
|
|
25
|
+
.define_method("available_sizes", &QIcon::availableSizes, Arg("mode") = static_cast<QIcon::Mode>(QIcon::Mode::Normal), Arg("state") = static_cast<QIcon::State>(QIcon::State::Off))
|
|
26
|
+
.define_method("cache_key", &QIcon::cacheKey)
|
|
27
|
+
.define_method("detach", &QIcon::detach)
|
|
28
|
+
.define_method("detached?", &QIcon::isDetached)
|
|
29
|
+
.define_method("mask?", &QIcon::isMask)
|
|
30
|
+
.define_method("null?", &QIcon::isNull)
|
|
31
|
+
.define_method("name", &QIcon::name)
|
|
32
|
+
.define_method<void (QIcon::*)(QPainter *, const QRect &, Qt::Alignment, QIcon::Mode, QIcon::State) const>("paint", &QIcon::paint, Arg("painter"), Arg("rect"), Arg("alignment") = static_cast<Qt::Alignment>(Qt::AlignCenter), Arg("mode") = static_cast<QIcon::Mode>(QIcon::Mode::Normal), Arg("state") = static_cast<QIcon::State>(QIcon::State::Off))
|
|
33
|
+
.define_method<void (QIcon::*)(QPainter *, int, int, int, int, Qt::Alignment, QIcon::Mode, QIcon::State) const>("paint", &QIcon::paint, Arg("painter"), Arg("x"), Arg("y"), Arg("w"), Arg("h"), Arg("alignment") = static_cast<Qt::Alignment>(Qt::AlignCenter), Arg("mode") = static_cast<QIcon::Mode>(QIcon::Mode::Normal), Arg("state") = static_cast<QIcon::State>(QIcon::State::Off))
|
|
34
|
+
.define_method<QPixmap (QIcon::*)(const QSize &, QIcon::Mode, QIcon::State) const>("pixmap", &QIcon::pixmap, Arg("size"), Arg("mode") = static_cast<QIcon::Mode>(QIcon::Mode::Normal), Arg("state") = static_cast<QIcon::State>(QIcon::State::Off))
|
|
35
|
+
.define_method<QPixmap (QIcon::*)(const QSize &, qreal, QIcon::Mode, QIcon::State) const>("pixmap", &QIcon::pixmap, Arg("size"), Arg("device_pixel_ratio"), Arg("mode") = static_cast<QIcon::Mode>(QIcon::Mode::Normal), Arg("state") = static_cast<QIcon::State>(QIcon::State::Off))
|
|
36
|
+
.define_method<QPixmap (QIcon::*)(int, QIcon::Mode, QIcon::State) const>("pixmap", &QIcon::pixmap, Arg("extent"), Arg("mode") = static_cast<QIcon::Mode>(QIcon::Mode::Normal), Arg("state") = static_cast<QIcon::State>(QIcon::State::Off))
|
|
37
|
+
.define_method<QPixmap (QIcon::*)(int, int, QIcon::Mode, QIcon::State) const>("pixmap", &QIcon::pixmap, Arg("w"), Arg("h"), Arg("mode") = static_cast<QIcon::Mode>(QIcon::Mode::Normal), Arg("state") = static_cast<QIcon::State>(QIcon::State::Off))
|
|
38
|
+
.define_method("set_is_mask", &QIcon::setIsMask, Arg("is_mask"))
|
|
39
|
+
// Static Public Members
|
|
40
|
+
.define_singleton_function("fallback_search_paths", &QIcon::fallbackSearchPaths)
|
|
41
|
+
.define_singleton_function("fallback_theme_name", &QIcon::fallbackThemeName)
|
|
42
|
+
.define_singleton_function<QIcon (*)(QIcon::ThemeIcon)>("from_theme", &QIcon::fromTheme, Arg("icon"))
|
|
43
|
+
.define_singleton_function<QIcon (*)(QIcon::ThemeIcon, const QIcon &)>("from_theme", &QIcon::fromTheme, Arg("icon"), Arg("fallback"))
|
|
44
|
+
.define_singleton_function<QIcon (*)(const QString &)>("from_theme", &QIcon::fromTheme, Arg("name"))
|
|
45
|
+
.define_singleton_function<QIcon (*)(const QString &, const QIcon &)>("from_theme", &QIcon::fromTheme, Arg("name"), Arg("fallback"))
|
|
46
|
+
.define_singleton_function<bool (*)(QIcon::ThemeIcon)>("has_theme_icon", &QIcon::hasThemeIcon, Arg("icon"))
|
|
47
|
+
.define_singleton_function<bool (*)(const QString &)>("has_theme_icon", &QIcon::hasThemeIcon, Arg("name"))
|
|
48
|
+
.define_singleton_function("set_fallback_search_paths", &QIcon::setFallbackSearchPaths, Arg("paths"))
|
|
49
|
+
.define_singleton_function("set_fallback_theme_name", &QIcon::setFallbackThemeName, Arg("name"))
|
|
50
|
+
.define_singleton_function("set_theme_name", &QIcon::setThemeName, Arg("path"))
|
|
51
|
+
.define_singleton_function("set_theme_search_paths", &QIcon::setThemeSearchPaths, Arg("searchpath"))
|
|
52
|
+
.define_singleton_function("theme_name", &QIcon::themeName)
|
|
53
|
+
.define_singleton_function("theme_search_paths", &QIcon::themeSearchPaths);
|
|
54
|
+
|
|
55
|
+
Data_Type<QIcon::Mode> rb_cQIconMode =
|
|
56
|
+
// RubyQt6::QtGui::QIcon::Mode
|
|
57
|
+
define_qenum_under<QIcon::Mode>(rb_cQIcon, "Mode");
|
|
58
|
+
define_qenum_value_under(rb_cQIconMode, "Normal", QIcon::Mode::Normal);
|
|
59
|
+
define_qenum_value_under(rb_cQIconMode, "Disabled", QIcon::Mode::Disabled);
|
|
60
|
+
define_qenum_value_under(rb_cQIconMode, "Active", QIcon::Mode::Active);
|
|
61
|
+
define_qenum_value_under(rb_cQIconMode, "Selected", QIcon::Mode::Selected);
|
|
62
|
+
|
|
63
|
+
Data_Type<QIcon::State> rb_cQIconState =
|
|
64
|
+
// RubyQt6::QtGui::QIcon::State
|
|
65
|
+
define_qenum_under<QIcon::State>(rb_cQIcon, "State");
|
|
66
|
+
define_qenum_value_under(rb_cQIconState, "On", QIcon::State::On);
|
|
67
|
+
define_qenum_value_under(rb_cQIconState, "Off", QIcon::State::Off);
|
|
68
|
+
|
|
69
|
+
Data_Type<QIcon::ThemeIcon> rb_cQIconThemeIcon =
|
|
70
|
+
// RubyQt6::QtGui::QIcon::ThemeIcon
|
|
71
|
+
define_qenum_under<QIcon::ThemeIcon>(rb_cQIcon, "ThemeIcon");
|
|
72
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "AddressBookNew", QIcon::ThemeIcon::AddressBookNew);
|
|
73
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "ApplicationExit", QIcon::ThemeIcon::ApplicationExit);
|
|
74
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "AppointmentNew", QIcon::ThemeIcon::AppointmentNew);
|
|
75
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "CallStart", QIcon::ThemeIcon::CallStart);
|
|
76
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "CallStop", QIcon::ThemeIcon::CallStop);
|
|
77
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "ContactNew", QIcon::ThemeIcon::ContactNew);
|
|
78
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "DocumentNew", QIcon::ThemeIcon::DocumentNew);
|
|
79
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "DocumentOpen", QIcon::ThemeIcon::DocumentOpen);
|
|
80
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "DocumentOpenRecent", QIcon::ThemeIcon::DocumentOpenRecent);
|
|
81
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "DocumentPageSetup", QIcon::ThemeIcon::DocumentPageSetup);
|
|
82
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "DocumentPrint", QIcon::ThemeIcon::DocumentPrint);
|
|
83
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "DocumentPrintPreview", QIcon::ThemeIcon::DocumentPrintPreview);
|
|
84
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "DocumentProperties", QIcon::ThemeIcon::DocumentProperties);
|
|
85
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "DocumentRevert", QIcon::ThemeIcon::DocumentRevert);
|
|
86
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "DocumentSave", QIcon::ThemeIcon::DocumentSave);
|
|
87
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "DocumentSaveAs", QIcon::ThemeIcon::DocumentSaveAs);
|
|
88
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "DocumentSend", QIcon::ThemeIcon::DocumentSend);
|
|
89
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "EditClear", QIcon::ThemeIcon::EditClear);
|
|
90
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "EditCopy", QIcon::ThemeIcon::EditCopy);
|
|
91
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "EditCut", QIcon::ThemeIcon::EditCut);
|
|
92
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "EditDelete", QIcon::ThemeIcon::EditDelete);
|
|
93
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "EditFind", QIcon::ThemeIcon::EditFind);
|
|
94
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "EditPaste", QIcon::ThemeIcon::EditPaste);
|
|
95
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "EditRedo", QIcon::ThemeIcon::EditRedo);
|
|
96
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "EditSelectAll", QIcon::ThemeIcon::EditSelectAll);
|
|
97
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "EditUndo", QIcon::ThemeIcon::EditUndo);
|
|
98
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "FolderNew", QIcon::ThemeIcon::FolderNew);
|
|
99
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "FormatIndentLess", QIcon::ThemeIcon::FormatIndentLess);
|
|
100
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "FormatIndentMore", QIcon::ThemeIcon::FormatIndentMore);
|
|
101
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "FormatJustifyCenter", QIcon::ThemeIcon::FormatJustifyCenter);
|
|
102
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "FormatJustifyFill", QIcon::ThemeIcon::FormatJustifyFill);
|
|
103
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "FormatJustifyLeft", QIcon::ThemeIcon::FormatJustifyLeft);
|
|
104
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "FormatJustifyRight", QIcon::ThemeIcon::FormatJustifyRight);
|
|
105
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "FormatTextDirectionLtr", QIcon::ThemeIcon::FormatTextDirectionLtr);
|
|
106
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "FormatTextDirectionRtl", QIcon::ThemeIcon::FormatTextDirectionRtl);
|
|
107
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "FormatTextBold", QIcon::ThemeIcon::FormatTextBold);
|
|
108
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "FormatTextItalic", QIcon::ThemeIcon::FormatTextItalic);
|
|
109
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "FormatTextUnderline", QIcon::ThemeIcon::FormatTextUnderline);
|
|
110
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "FormatTextStrikethrough", QIcon::ThemeIcon::FormatTextStrikethrough);
|
|
111
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "GoDown", QIcon::ThemeIcon::GoDown);
|
|
112
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "GoHome", QIcon::ThemeIcon::GoHome);
|
|
113
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "GoNext", QIcon::ThemeIcon::GoNext);
|
|
114
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "GoPrevious", QIcon::ThemeIcon::GoPrevious);
|
|
115
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "GoUp", QIcon::ThemeIcon::GoUp);
|
|
116
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "HelpAbout", QIcon::ThemeIcon::HelpAbout);
|
|
117
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "HelpFaq", QIcon::ThemeIcon::HelpFaq);
|
|
118
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "InsertImage", QIcon::ThemeIcon::InsertImage);
|
|
119
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "InsertLink", QIcon::ThemeIcon::InsertLink);
|
|
120
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "InsertText", QIcon::ThemeIcon::InsertText);
|
|
121
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "ListAdd", QIcon::ThemeIcon::ListAdd);
|
|
122
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "ListRemove", QIcon::ThemeIcon::ListRemove);
|
|
123
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MailForward", QIcon::ThemeIcon::MailForward);
|
|
124
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MailMarkImportant", QIcon::ThemeIcon::MailMarkImportant);
|
|
125
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MailMarkRead", QIcon::ThemeIcon::MailMarkRead);
|
|
126
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MailMarkUnread", QIcon::ThemeIcon::MailMarkUnread);
|
|
127
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MailMessageNew", QIcon::ThemeIcon::MailMessageNew);
|
|
128
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MailReplyAll", QIcon::ThemeIcon::MailReplyAll);
|
|
129
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MailReplySender", QIcon::ThemeIcon::MailReplySender);
|
|
130
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MailSend", QIcon::ThemeIcon::MailSend);
|
|
131
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MediaEject", QIcon::ThemeIcon::MediaEject);
|
|
132
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MediaPlaybackPause", QIcon::ThemeIcon::MediaPlaybackPause);
|
|
133
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MediaPlaybackStart", QIcon::ThemeIcon::MediaPlaybackStart);
|
|
134
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MediaPlaybackStop", QIcon::ThemeIcon::MediaPlaybackStop);
|
|
135
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MediaRecord", QIcon::ThemeIcon::MediaRecord);
|
|
136
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MediaSeekBackward", QIcon::ThemeIcon::MediaSeekBackward);
|
|
137
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MediaSeekForward", QIcon::ThemeIcon::MediaSeekForward);
|
|
138
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MediaSkipBackward", QIcon::ThemeIcon::MediaSkipBackward);
|
|
139
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MediaSkipForward", QIcon::ThemeIcon::MediaSkipForward);
|
|
140
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "ObjectRotateLeft", QIcon::ThemeIcon::ObjectRotateLeft);
|
|
141
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "ObjectRotateRight", QIcon::ThemeIcon::ObjectRotateRight);
|
|
142
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "ProcessStop", QIcon::ThemeIcon::ProcessStop);
|
|
143
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "SystemLockScreen", QIcon::ThemeIcon::SystemLockScreen);
|
|
144
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "SystemLogOut", QIcon::ThemeIcon::SystemLogOut);
|
|
145
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "SystemSearch", QIcon::ThemeIcon::SystemSearch);
|
|
146
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "SystemReboot", QIcon::ThemeIcon::SystemReboot);
|
|
147
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "SystemShutdown", QIcon::ThemeIcon::SystemShutdown);
|
|
148
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "ToolsCheckSpelling", QIcon::ThemeIcon::ToolsCheckSpelling);
|
|
149
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "ViewFullscreen", QIcon::ThemeIcon::ViewFullscreen);
|
|
150
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "ViewRefresh", QIcon::ThemeIcon::ViewRefresh);
|
|
151
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "ViewRestore", QIcon::ThemeIcon::ViewRestore);
|
|
152
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "WindowClose", QIcon::ThemeIcon::WindowClose);
|
|
153
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "WindowNew", QIcon::ThemeIcon::WindowNew);
|
|
154
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "ZoomFitBest", QIcon::ThemeIcon::ZoomFitBest);
|
|
155
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "ZoomIn", QIcon::ThemeIcon::ZoomIn);
|
|
156
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "ZoomOut", QIcon::ThemeIcon::ZoomOut);
|
|
157
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "AudioCard", QIcon::ThemeIcon::AudioCard);
|
|
158
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "AudioInputMicrophone", QIcon::ThemeIcon::AudioInputMicrophone);
|
|
159
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "Battery", QIcon::ThemeIcon::Battery);
|
|
160
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "CameraPhoto", QIcon::ThemeIcon::CameraPhoto);
|
|
161
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "CameraVideo", QIcon::ThemeIcon::CameraVideo);
|
|
162
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "CameraWeb", QIcon::ThemeIcon::CameraWeb);
|
|
163
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "Computer", QIcon::ThemeIcon::Computer);
|
|
164
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "DriveHarddisk", QIcon::ThemeIcon::DriveHarddisk);
|
|
165
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "DriveOptical", QIcon::ThemeIcon::DriveOptical);
|
|
166
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "InputGaming", QIcon::ThemeIcon::InputGaming);
|
|
167
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "InputKeyboard", QIcon::ThemeIcon::InputKeyboard);
|
|
168
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "InputMouse", QIcon::ThemeIcon::InputMouse);
|
|
169
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "InputTablet", QIcon::ThemeIcon::InputTablet);
|
|
170
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MediaFlash", QIcon::ThemeIcon::MediaFlash);
|
|
171
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MediaOptical", QIcon::ThemeIcon::MediaOptical);
|
|
172
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MediaTape", QIcon::ThemeIcon::MediaTape);
|
|
173
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MultimediaPlayer", QIcon::ThemeIcon::MultimediaPlayer);
|
|
174
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "NetworkWired", QIcon::ThemeIcon::NetworkWired);
|
|
175
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "NetworkWireless", QIcon::ThemeIcon::NetworkWireless);
|
|
176
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "Phone", QIcon::ThemeIcon::Phone);
|
|
177
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "Printer", QIcon::ThemeIcon::Printer);
|
|
178
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "Scanner", QIcon::ThemeIcon::Scanner);
|
|
179
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "VideoDisplay", QIcon::ThemeIcon::VideoDisplay);
|
|
180
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "AppointmentMissed", QIcon::ThemeIcon::AppointmentMissed);
|
|
181
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "AppointmentSoon", QIcon::ThemeIcon::AppointmentSoon);
|
|
182
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "AudioVolumeHigh", QIcon::ThemeIcon::AudioVolumeHigh);
|
|
183
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "AudioVolumeLow", QIcon::ThemeIcon::AudioVolumeLow);
|
|
184
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "AudioVolumeMedium", QIcon::ThemeIcon::AudioVolumeMedium);
|
|
185
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "AudioVolumeMuted", QIcon::ThemeIcon::AudioVolumeMuted);
|
|
186
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "BatteryCaution", QIcon::ThemeIcon::BatteryCaution);
|
|
187
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "BatteryLow", QIcon::ThemeIcon::BatteryLow);
|
|
188
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "DialogError", QIcon::ThemeIcon::DialogError);
|
|
189
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "DialogInformation", QIcon::ThemeIcon::DialogInformation);
|
|
190
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "DialogPassword", QIcon::ThemeIcon::DialogPassword);
|
|
191
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "DialogQuestion", QIcon::ThemeIcon::DialogQuestion);
|
|
192
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "DialogWarning", QIcon::ThemeIcon::DialogWarning);
|
|
193
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "FolderDragAccept", QIcon::ThemeIcon::FolderDragAccept);
|
|
194
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "FolderOpen", QIcon::ThemeIcon::FolderOpen);
|
|
195
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "FolderVisiting", QIcon::ThemeIcon::FolderVisiting);
|
|
196
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "ImageLoading", QIcon::ThemeIcon::ImageLoading);
|
|
197
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "ImageMissing", QIcon::ThemeIcon::ImageMissing);
|
|
198
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MailAttachment", QIcon::ThemeIcon::MailAttachment);
|
|
199
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MailUnread", QIcon::ThemeIcon::MailUnread);
|
|
200
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MailRead", QIcon::ThemeIcon::MailRead);
|
|
201
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MailReplied", QIcon::ThemeIcon::MailReplied);
|
|
202
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MediaPlaylistRepeat", QIcon::ThemeIcon::MediaPlaylistRepeat);
|
|
203
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "MediaPlaylistShuffle", QIcon::ThemeIcon::MediaPlaylistShuffle);
|
|
204
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "NetworkOffline", QIcon::ThemeIcon::NetworkOffline);
|
|
205
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "PrinterPrinting", QIcon::ThemeIcon::PrinterPrinting);
|
|
206
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "SecurityHigh", QIcon::ThemeIcon::SecurityHigh);
|
|
207
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "SecurityLow", QIcon::ThemeIcon::SecurityLow);
|
|
208
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "SoftwareUpdateAvailable", QIcon::ThemeIcon::SoftwareUpdateAvailable);
|
|
209
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "SoftwareUpdateUrgent", QIcon::ThemeIcon::SoftwareUpdateUrgent);
|
|
210
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "SyncError", QIcon::ThemeIcon::SyncError);
|
|
211
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "SyncSynchronizing", QIcon::ThemeIcon::SyncSynchronizing);
|
|
212
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "UserAvailable", QIcon::ThemeIcon::UserAvailable);
|
|
213
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "UserOffline", QIcon::ThemeIcon::UserOffline);
|
|
214
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "WeatherClear", QIcon::ThemeIcon::WeatherClear);
|
|
215
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "WeatherClearNight", QIcon::ThemeIcon::WeatherClearNight);
|
|
216
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "WeatherFewClouds", QIcon::ThemeIcon::WeatherFewClouds);
|
|
217
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "WeatherFewCloudsNight", QIcon::ThemeIcon::WeatherFewCloudsNight);
|
|
218
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "WeatherFog", QIcon::ThemeIcon::WeatherFog);
|
|
219
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "WeatherShowers", QIcon::ThemeIcon::WeatherShowers);
|
|
220
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "WeatherSnow", QIcon::ThemeIcon::WeatherSnow);
|
|
221
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "WeatherStorm", QIcon::ThemeIcon::WeatherStorm);
|
|
222
|
+
define_qenum_value_under(rb_cQIconThemeIcon, "NThemeIcons", QIcon::ThemeIcon::NThemeIcons);
|
|
223
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
#include "qimage-rb.hpp"
|
|
2
|
+
#include <qimage.h>
|
|
3
|
+
#include <rice/qt6/qenum.hpp>
|
|
4
|
+
|
|
5
|
+
#include <QColorTransform>
|
|
6
|
+
#include <QColorSpace>
|
|
7
|
+
#include <QIODevice>
|
|
8
|
+
#include <QPaintEngine>
|
|
9
|
+
|
|
10
|
+
using namespace Rice;
|
|
11
|
+
|
|
12
|
+
Rice::Class rb_cQImage;
|
|
13
|
+
|
|
14
|
+
void Init_qimage(Rice::Module rb_mQt6QtGui)
|
|
15
|
+
{
|
|
16
|
+
rb_cQImage =
|
|
17
|
+
// RubyQt6::QtGui::QImage
|
|
18
|
+
define_class_under<QImage, QPaintDevice>(rb_mQt6QtGui, "QImage")
|
|
19
|
+
// Constructor
|
|
20
|
+
.define_constructor(Constructor<QImage>())
|
|
21
|
+
.define_constructor(Constructor<QImage, const QString &>(), Arg("file_name"))
|
|
22
|
+
.define_constructor(Constructor<QImage, const QSize &, QImage::Format>(), Arg("size"), Arg("format"))
|
|
23
|
+
// Public Functions
|
|
24
|
+
.define_method("all_gray", &QImage::allGray)
|
|
25
|
+
.define_method<void (QImage::*)(const QColorTransform &)>("apply_color_transform", &QImage::applyColorTransform, Arg("transform"))
|
|
26
|
+
.define_method<void (QImage::*)(const QColorTransform &, QImage::Format, Qt::ImageConversionFlags)>("apply_color_transform", &QImage::applyColorTransform, Arg("transform"), Arg("format"), Arg("flags") = static_cast<Qt::ImageConversionFlags>(Qt::AutoColor))
|
|
27
|
+
.define_method("bit_plane_count", &QImage::bitPlaneCount)
|
|
28
|
+
.define_method<const uchar *(QImage::*)() const>("bits", &QImage::bits)
|
|
29
|
+
.define_method<uchar *(QImage::*)()>("bits", &QImage::bits)
|
|
30
|
+
.define_method("bytes_per_line", &QImage::bytesPerLine)
|
|
31
|
+
.define_method("cache_key", &QImage::cacheKey)
|
|
32
|
+
.define_method("color", &QImage::color, Arg("i"))
|
|
33
|
+
.define_method("color_count", &QImage::colorCount)
|
|
34
|
+
.define_method("color_space", &QImage::colorSpace)
|
|
35
|
+
.define_method("color_table", &QImage::colorTable)
|
|
36
|
+
// .define_method<QImage (QImage::*)(const QColorTransform &) const>("color_transformed", &QImage::colorTransformed, Arg("transform"))
|
|
37
|
+
// .define_method<QImage (QImage::*)(const QColorTransform &)>("color_transformed", &QImage::colorTransformed, Arg("transform"))
|
|
38
|
+
// .define_method<QImage (QImage::*)(const QColorTransform &, QImage::Format, Qt::ImageConversionFlags) const>("color_transformed", &QImage::colorTransformed, Arg("transform"), Arg("format"), Arg("flags") = static_cast<Qt::ImageConversionFlags>(Qt::AutoColor))
|
|
39
|
+
// .define_method<QImage (QImage::*)(const QColorTransform &, QImage::Format, Qt::ImageConversionFlags)>("color_transformed", &QImage::colorTransformed, Arg("transform"), Arg("format"), Arg("flags") = static_cast<Qt::ImageConversionFlags>(Qt::AutoColor))
|
|
40
|
+
.define_method("const_bits", &QImage::constBits)
|
|
41
|
+
.define_method("const_scan_line", &QImage::constScanLine, Arg("i"))
|
|
42
|
+
.define_method("convert_to", &QImage::convertTo, Arg("f"), Arg("flags") = static_cast<Qt::ImageConversionFlags>(Qt::AutoColor))
|
|
43
|
+
.define_method<void (QImage::*)(const QColorSpace &)>("convert_to_color_space", &QImage::convertToColorSpace, Arg("color_space"))
|
|
44
|
+
.define_method<void (QImage::*)(const QColorSpace &, QImage::Format, Qt::ImageConversionFlags)>("convert_to_color_space", &QImage::convertToColorSpace, Arg("color_space"), Arg("format"), Arg("flags") = static_cast<Qt::ImageConversionFlags>(Qt::AutoColor))
|
|
45
|
+
// .define_method<QImage (QImage::*)(QImage::Format, Qt::ImageConversionFlags) const>("convert_to_format", &QImage::convertToFormat, Arg("f"), Arg("flags") = static_cast<Qt::ImageConversionFlags>(Qt::AutoColor))
|
|
46
|
+
// .define_method<QImage (QImage::*)(QImage::Format, Qt::ImageConversionFlags)>("convert_to_format", &QImage::convertToFormat, Arg("f"), Arg("flags") = static_cast<Qt::ImageConversionFlags>(Qt::AutoColor))
|
|
47
|
+
// .define_method<QImage (QImage::*)(QImage::Format, const QList &, Qt::ImageConversionFlags) const>("convert_to_format", &QImage::convertToFormat, Arg("f"), Arg("color_table"), Arg("flags") = static_cast<Qt::ImageConversionFlags>(Qt::AutoColor))
|
|
48
|
+
// .define_method<QImage (QImage::*)(QImage::Format, Qt::ImageConversionFlags) const>("converted_to", &QImage::convertedTo, Arg("f"), Arg("flags") = static_cast<Qt::ImageConversionFlags>(Qt::AutoColor))
|
|
49
|
+
// .define_method<QImage (QImage::*)(QImage::Format, Qt::ImageConversionFlags)>("converted_to", &QImage::convertedTo, Arg("f"), Arg("flags") = static_cast<Qt::ImageConversionFlags>(Qt::AutoColor))
|
|
50
|
+
// .define_method<QImage (QImage::*)(const QColorSpace &) const>("converted_to_color_space", &QImage::convertedToColorSpace, Arg("color_space"))
|
|
51
|
+
// .define_method<QImage (QImage::*)(const QColorSpace &, QImage::Format, Qt::ImageConversionFlags) const>("converted_to_color_space", &QImage::convertedToColorSpace, Arg("color_space"), Arg("format"), Arg("flags") = static_cast<Qt::ImageConversionFlags>(Qt::AutoColor))
|
|
52
|
+
// .define_method<QImage (QImage::*)(const QColorSpace &, QImage::Format, Qt::ImageConversionFlags)>("converted_to_color_space", &QImage::convertedToColorSpace, Arg("color_space"), Arg("format"), Arg("flags") = static_cast<Qt::ImageConversionFlags>(Qt::AutoColor))
|
|
53
|
+
.define_method<QImage (QImage::*)(const QRect &) const>("copy", &QImage::copy, Arg("rect") = static_cast<const QRect &>(QRect()))
|
|
54
|
+
.define_method<QImage (QImage::*)(int, int, int, int) const>("copy", &QImage::copy, Arg("x"), Arg("y"), Arg("w"), Arg("h"))
|
|
55
|
+
.define_method("create_alpha_mask", &QImage::createAlphaMask, Arg("flags") = static_cast<Qt::ImageConversionFlags>(Qt::AutoColor))
|
|
56
|
+
.define_method("create_heuristic_mask", &QImage::createHeuristicMask, Arg("clip_tight") = static_cast<bool>(true))
|
|
57
|
+
.define_method("create_mask_from_color", &QImage::createMaskFromColor, Arg("color"), Arg("mode") = static_cast<Qt::MaskMode>(Qt::MaskInColor))
|
|
58
|
+
.define_method("depth", &QImage::depth)
|
|
59
|
+
.define_method("detach", &QImage::detach)
|
|
60
|
+
.define_method("dev_type", &QImage::devType)
|
|
61
|
+
.define_method("device_independent_size", &QImage::deviceIndependentSize)
|
|
62
|
+
.define_method("device_pixel_ratio", &QImage::devicePixelRatio)
|
|
63
|
+
.define_method("dots_per_meter_x", &QImage::dotsPerMeterX)
|
|
64
|
+
.define_method("dots_per_meter_y", &QImage::dotsPerMeterY)
|
|
65
|
+
.define_method<void (QImage::*)(uint)>("fill", &QImage::fill, Arg("pixel"))
|
|
66
|
+
.define_method<void (QImage::*)(Qt::GlobalColor)>("fill", &QImage::fill, Arg("color"))
|
|
67
|
+
.define_method<void (QImage::*)(const QColor &)>("fill", &QImage::fill, Arg("color"))
|
|
68
|
+
.define_method("flip", &QImage::flip, Arg("orient") = static_cast<Qt::Orientations>(Qt::Vertical))
|
|
69
|
+
// .define_method<QImage (QImage::*)(Qt::Orientations) const>("flipped", &QImage::flipped, Arg("orient") = static_cast<Qt::Orientations>(Qt::Vertical))
|
|
70
|
+
// .define_method<QImage (QImage::*)(Qt::Orientations)>("flipped", &QImage::flipped, Arg("orient") = static_cast<Qt::Orientations>(Qt::Vertical))
|
|
71
|
+
.define_method("format", &QImage::format)
|
|
72
|
+
.define_method("has_alpha_channel", &QImage::hasAlphaChannel)
|
|
73
|
+
.define_method("height", &QImage::height)
|
|
74
|
+
.define_method("invert_pixels", &QImage::invertPixels, Arg("mode") = static_cast<QImage::InvertMode>(QImage::InvertMode::InvertRgb))
|
|
75
|
+
.define_method("detached?", &QImage::isDetached)
|
|
76
|
+
.define_method("grayscale?", &QImage::isGrayscale)
|
|
77
|
+
.define_method("null?", &QImage::isNull)
|
|
78
|
+
.define_method<bool (QImage::*)(QIODevice *, const char *)>("load", &QImage::load, Arg("device"), Arg("format"))
|
|
79
|
+
.define_method<bool (QImage::*)(const QString &, const char *)>("load", &QImage::load, Arg("file_name"), Arg("format") = static_cast<const char *>(nullptr))
|
|
80
|
+
.define_method<bool (QImage::*)(QByteArrayView, const char *)>("load_from_data", &QImage::loadFromData, Arg("data"), Arg("format") = static_cast<const char *>(nullptr))
|
|
81
|
+
.define_method<bool (QImage::*)(const QByteArray &, const char *)>("load_from_data", &QImage::loadFromData, Arg("data"), Arg("format") = static_cast<const char *>(nullptr))
|
|
82
|
+
.define_method<bool (QImage::*)(const uchar *, int, const char *)>("load_from_data", &QImage::loadFromData, Arg("buf"), Arg("len"), Arg("format") = static_cast<const char *>(nullptr))
|
|
83
|
+
// .define_method("mirror", &QImage::mirror, Arg("horizontally") = static_cast<bool>(false), Arg("vertically") = static_cast<bool>(true))
|
|
84
|
+
// .define_method<QImage (QImage::*)(bool, bool) const>("mirrored", &QImage::mirrored, Arg("horizontally") = static_cast<bool>(false), Arg("vertically") = static_cast<bool>(true))
|
|
85
|
+
// .define_method<QImage (QImage::*)(bool, bool)>("mirrored", &QImage::mirrored, Arg("horizontally") = static_cast<bool>(false), Arg("vertically") = static_cast<bool>(true))
|
|
86
|
+
.define_method("offset", &QImage::offset)
|
|
87
|
+
.define_method<QRgb (QImage::*)(const QPoint &) const>("pixel", &QImage::pixel, Arg("pt"))
|
|
88
|
+
.define_method<QRgb (QImage::*)(int, int) const>("pixel", &QImage::pixel, Arg("x"), Arg("y"))
|
|
89
|
+
.define_method<QColor (QImage::*)(const QPoint &) const>("pixel_color", &QImage::pixelColor, Arg("pt"))
|
|
90
|
+
.define_method<QColor (QImage::*)(int, int) const>("pixel_color", &QImage::pixelColor, Arg("x"), Arg("y"))
|
|
91
|
+
.define_method("pixel_format", &QImage::pixelFormat)
|
|
92
|
+
.define_method<int (QImage::*)(const QPoint &) const>("pixel_index", &QImage::pixelIndex, Arg("pt"))
|
|
93
|
+
.define_method<int (QImage::*)(int, int) const>("pixel_index", &QImage::pixelIndex, Arg("x"), Arg("y"))
|
|
94
|
+
.define_method("rect", &QImage::rect)
|
|
95
|
+
.define_method("reinterpret_as_format", &QImage::reinterpretAsFormat, Arg("f"))
|
|
96
|
+
.define_method<bool (QImage::*)(QIODevice *, const char *, int) const>("save", &QImage::save, Arg("device"), Arg("format") = static_cast<const char *>(nullptr), Arg("quality") = static_cast<int>(-1))
|
|
97
|
+
.define_method<bool (QImage::*)(const QString &, const char *, int) const>("save", &QImage::save, Arg("file_name"), Arg("format") = static_cast<const char *>(nullptr), Arg("quality") = static_cast<int>(-1))
|
|
98
|
+
.define_method<QImage (QImage::*)(const QSize &, Qt::AspectRatioMode, Qt::TransformationMode) const>("scaled", &QImage::scaled, Arg("s"), Arg("aspect_mode") = static_cast<Qt::AspectRatioMode>(Qt::IgnoreAspectRatio), Arg("mode") = static_cast<Qt::TransformationMode>(Qt::FastTransformation))
|
|
99
|
+
.define_method<QImage (QImage::*)(int, int, Qt::AspectRatioMode, Qt::TransformationMode) const>("scaled", &QImage::scaled, Arg("w"), Arg("h"), Arg("aspect_mode") = static_cast<Qt::AspectRatioMode>(Qt::IgnoreAspectRatio), Arg("mode") = static_cast<Qt::TransformationMode>(Qt::FastTransformation))
|
|
100
|
+
.define_method("scaled_to_height", &QImage::scaledToHeight, Arg("h"), Arg("mode") = static_cast<Qt::TransformationMode>(Qt::FastTransformation))
|
|
101
|
+
.define_method("scaled_to_width", &QImage::scaledToWidth, Arg("w"), Arg("mode") = static_cast<Qt::TransformationMode>(Qt::FastTransformation))
|
|
102
|
+
.define_method<const uchar *(QImage::*)(int) const>("scan_line", &QImage::scanLine, Arg("i"))
|
|
103
|
+
.define_method<uchar *(QImage::*)(int)>("scan_line", &QImage::scanLine, Arg("i"))
|
|
104
|
+
.define_method("set_alpha_channel", &QImage::setAlphaChannel, Arg("alpha_channel"))
|
|
105
|
+
.define_method("set_color", &QImage::setColor, Arg("i"), Arg("c"))
|
|
106
|
+
.define_method("set_color_count", &QImage::setColorCount, Arg("color_count"))
|
|
107
|
+
.define_method("set_color_space", &QImage::setColorSpace, Arg("color_space"))
|
|
108
|
+
.define_method("set_color_table", &QImage::setColorTable, Arg("colors"))
|
|
109
|
+
.define_method("set_device_pixel_ratio", &QImage::setDevicePixelRatio, Arg("scale_factor"))
|
|
110
|
+
.define_method("set_dots_per_meter_x", &QImage::setDotsPerMeterX, Arg("x"))
|
|
111
|
+
.define_method("set_dots_per_meter_y", &QImage::setDotsPerMeterY, Arg("y"))
|
|
112
|
+
.define_method("set_offset", &QImage::setOffset, Arg("offset"))
|
|
113
|
+
.define_method<void (QImage::*)(const QPoint &, uint)>("set_pixel", &QImage::setPixel, Arg("pt"), Arg("index_or_rgb"))
|
|
114
|
+
.define_method<void (QImage::*)(int, int, uint)>("set_pixel", &QImage::setPixel, Arg("x"), Arg("y"), Arg("index_or_rgb"))
|
|
115
|
+
.define_method<void (QImage::*)(const QPoint &, const QColor &)>("set_pixel_color", &QImage::setPixelColor, Arg("pt"), Arg("c"))
|
|
116
|
+
.define_method<void (QImage::*)(int, int, const QColor &)>("set_pixel_color", &QImage::setPixelColor, Arg("x"), Arg("y"), Arg("c"))
|
|
117
|
+
.define_method("set_text", &QImage::setText, Arg("key"), Arg("value"))
|
|
118
|
+
.define_method("size", &QImage::size)
|
|
119
|
+
.define_method("size_in_bytes", &QImage::sizeInBytes)
|
|
120
|
+
.define_method("text", &QImage::text, Arg("key") = static_cast<const QString &>(QString()))
|
|
121
|
+
.define_method("text_keys", &QImage::textKeys)
|
|
122
|
+
.define_method("transformed", &QImage::transformed, Arg("matrix"), Arg("mode") = static_cast<Qt::TransformationMode>(Qt::FastTransformation))
|
|
123
|
+
.define_method<bool (QImage::*)(const QPoint &) const>("valid", &QImage::valid, Arg("pt"))
|
|
124
|
+
.define_method<bool (QImage::*)(int, int) const>("valid", &QImage::valid, Arg("x"), Arg("y"))
|
|
125
|
+
.define_method("width", &QImage::width)
|
|
126
|
+
// Static Public Members
|
|
127
|
+
.define_singleton_function<QImage (*)(QByteArrayView, const char *)>("from_data", &QImage::fromData, Arg("data"), Arg("format") = static_cast<const char *>(nullptr))
|
|
128
|
+
.define_singleton_function<QImage (*)(const QByteArray &, const char *)>("from_data", &QImage::fromData, Arg("data"), Arg("format") = static_cast<const char *>(nullptr))
|
|
129
|
+
.define_singleton_function<QImage (*)(const uchar *, int, const char *)>("from_data", &QImage::fromData, Arg("data"), Arg("size"), Arg("format") = static_cast<const char *>(nullptr))
|
|
130
|
+
// .define_singleton_function("to_image_format", &QImage::toImageFormat, Arg("format"))
|
|
131
|
+
// .define_singleton_function("to_pixel_format", &QImage::toPixelFormat, Arg("format"))
|
|
132
|
+
.define_singleton_function("true_matrix", &QImage::trueMatrix, Arg("matrix"), Arg("w"), Arg("h"));
|
|
133
|
+
|
|
134
|
+
Data_Type<QImage::Format> rb_cQImageFormat =
|
|
135
|
+
// RubyQt6::QtGui::QImage::Format
|
|
136
|
+
define_qenum_under<QImage::Format>(rb_cQImage, "Format");
|
|
137
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_Invalid", QImage::Format::Format_Invalid);
|
|
138
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_Mono", QImage::Format::Format_Mono);
|
|
139
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_MonoLSB", QImage::Format::Format_MonoLSB);
|
|
140
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_Indexed8", QImage::Format::Format_Indexed8);
|
|
141
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_RGB32", QImage::Format::Format_RGB32);
|
|
142
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_ARGB32", QImage::Format::Format_ARGB32);
|
|
143
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_ARGB32_Premultiplied", QImage::Format::Format_ARGB32_Premultiplied);
|
|
144
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_RGB16", QImage::Format::Format_RGB16);
|
|
145
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_ARGB8565_Premultiplied", QImage::Format::Format_ARGB8565_Premultiplied);
|
|
146
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_RGB666", QImage::Format::Format_RGB666);
|
|
147
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_ARGB6666_Premultiplied", QImage::Format::Format_ARGB6666_Premultiplied);
|
|
148
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_RGB555", QImage::Format::Format_RGB555);
|
|
149
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_ARGB8555_Premultiplied", QImage::Format::Format_ARGB8555_Premultiplied);
|
|
150
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_RGB888", QImage::Format::Format_RGB888);
|
|
151
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_RGB444", QImage::Format::Format_RGB444);
|
|
152
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_ARGB4444_Premultiplied", QImage::Format::Format_ARGB4444_Premultiplied);
|
|
153
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_RGBX8888", QImage::Format::Format_RGBX8888);
|
|
154
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_RGBA8888", QImage::Format::Format_RGBA8888);
|
|
155
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_RGBA8888_Premultiplied", QImage::Format::Format_RGBA8888_Premultiplied);
|
|
156
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_BGR30", QImage::Format::Format_BGR30);
|
|
157
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_A2BGR30_Premultiplied", QImage::Format::Format_A2BGR30_Premultiplied);
|
|
158
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_RGB30", QImage::Format::Format_RGB30);
|
|
159
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_A2RGB30_Premultiplied", QImage::Format::Format_A2RGB30_Premultiplied);
|
|
160
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_Alpha8", QImage::Format::Format_Alpha8);
|
|
161
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_Grayscale8", QImage::Format::Format_Grayscale8);
|
|
162
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_RGBX64", QImage::Format::Format_RGBX64);
|
|
163
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_RGBA64", QImage::Format::Format_RGBA64);
|
|
164
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_RGBA64_Premultiplied", QImage::Format::Format_RGBA64_Premultiplied);
|
|
165
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_Grayscale16", QImage::Format::Format_Grayscale16);
|
|
166
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_BGR888", QImage::Format::Format_BGR888);
|
|
167
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_RGBX16FPx4", QImage::Format::Format_RGBX16FPx4);
|
|
168
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_RGBA16FPx4", QImage::Format::Format_RGBA16FPx4);
|
|
169
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_RGBA16FPx4_Premultiplied", QImage::Format::Format_RGBA16FPx4_Premultiplied);
|
|
170
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_RGBX32FPx4", QImage::Format::Format_RGBX32FPx4);
|
|
171
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_RGBA32FPx4", QImage::Format::Format_RGBA32FPx4);
|
|
172
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_RGBA32FPx4_Premultiplied", QImage::Format::Format_RGBA32FPx4_Premultiplied);
|
|
173
|
+
define_qenum_value_under(rb_cQImageFormat, "Format_CMYK8888", QImage::Format::Format_CMYK8888);
|
|
174
|
+
define_qenum_value_under(rb_cQImageFormat, "NImageFormats", QImage::Format::NImageFormats);
|
|
175
|
+
|
|
176
|
+
Data_Type<QImage::InvertMode> rb_cQImageInvertMode =
|
|
177
|
+
// RubyQt6::QtGui::QImage::InvertMode
|
|
178
|
+
define_qenum_under<QImage::InvertMode>(rb_cQImage, "InvertMode");
|
|
179
|
+
define_qenum_value_under(rb_cQImageInvertMode, "InvertRgb", QImage::InvertMode::InvertRgb);
|
|
180
|
+
define_qenum_value_under(rb_cQImageInvertMode, "InvertRgba", QImage::InvertMode::InvertRgba);
|
|
181
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
#include "qimagewriter-rb.hpp"
|
|
2
|
+
#include <qimagewriter.h>
|
|
3
|
+
#include <rice/qt6/qenum.hpp>
|
|
4
|
+
|
|
5
|
+
using namespace Rice;
|
|
6
|
+
|
|
7
|
+
Rice::Class rb_cQImageWriter;
|
|
8
|
+
|
|
9
|
+
void Init_qimagewriter(Rice::Module rb_mQt6QtGui)
|
|
10
|
+
{
|
|
11
|
+
rb_cQImageWriter =
|
|
12
|
+
// RubyQt6::QtGui::QImageWriter
|
|
13
|
+
define_class_under<QImageWriter>(rb_mQt6QtGui, "QImageWriter")
|
|
14
|
+
// Constructor
|
|
15
|
+
.define_constructor(Constructor<QImageWriter>())
|
|
16
|
+
.define_constructor(Constructor<QImageWriter, QIODevice *, const QByteArray &>(), Arg("device"), Arg("format"))
|
|
17
|
+
.define_constructor(Constructor<QImageWriter, const QString &, const QByteArray &>(), Arg("file_name"), Arg("format"))
|
|
18
|
+
// Public Functions
|
|
19
|
+
.define_method("can_write", &QImageWriter::canWrite)
|
|
20
|
+
.define_method("compression", &QImageWriter::compression)
|
|
21
|
+
.define_method("device", &QImageWriter::device)
|
|
22
|
+
.define_method("error", &QImageWriter::error)
|
|
23
|
+
.define_method("error_string", &QImageWriter::errorString)
|
|
24
|
+
.define_method("file_name", &QImageWriter::fileName)
|
|
25
|
+
.define_method("format", &QImageWriter::format)
|
|
26
|
+
.define_method("optimized_write", &QImageWriter::optimizedWrite)
|
|
27
|
+
.define_method("progressive_scan_write", &QImageWriter::progressiveScanWrite)
|
|
28
|
+
.define_method("quality", &QImageWriter::quality)
|
|
29
|
+
.define_method("set_compression", &QImageWriter::setCompression, Arg("compression"))
|
|
30
|
+
.define_method("set_device", &QImageWriter::setDevice, Arg("device"))
|
|
31
|
+
.define_method("set_file_name", &QImageWriter::setFileName, Arg("file_name"))
|
|
32
|
+
.define_method("set_format", &QImageWriter::setFormat, Arg("format"))
|
|
33
|
+
.define_method("set_optimized_write", &QImageWriter::setOptimizedWrite, Arg("optimize"))
|
|
34
|
+
.define_method("set_progressive_scan_write", &QImageWriter::setProgressiveScanWrite, Arg("progressive"))
|
|
35
|
+
.define_method("set_quality", &QImageWriter::setQuality, Arg("quality"))
|
|
36
|
+
.define_method("set_sub_type", &QImageWriter::setSubType, Arg("type"))
|
|
37
|
+
.define_method("set_text", &QImageWriter::setText, Arg("key"), Arg("text"))
|
|
38
|
+
.define_method("set_transformation", &QImageWriter::setTransformation, Arg("orientation"))
|
|
39
|
+
.define_method("sub_type", &QImageWriter::subType)
|
|
40
|
+
.define_method("supported_sub_types", &QImageWriter::supportedSubTypes)
|
|
41
|
+
.define_method("supports_option", &QImageWriter::supportsOption, Arg("option"))
|
|
42
|
+
.define_method("transformation", &QImageWriter::transformation)
|
|
43
|
+
.define_method("write", &QImageWriter::write, Arg("image"))
|
|
44
|
+
// Static Public Members
|
|
45
|
+
.define_singleton_function("image_formats_for_mime_type", &QImageWriter::imageFormatsForMimeType, Arg("mime_type"))
|
|
46
|
+
.define_singleton_function("supported_image_formats", &QImageWriter::supportedImageFormats)
|
|
47
|
+
.define_singleton_function("supported_mime_types", &QImageWriter::supportedMimeTypes);
|
|
48
|
+
|
|
49
|
+
Data_Type<QImageWriter::ImageWriterError> rb_cQImageWriterImageWriterError =
|
|
50
|
+
// RubyQt6::QtGui::QImageWriter::ImageWriterError
|
|
51
|
+
define_qenum_under<QImageWriter::ImageWriterError>(rb_cQImageWriter, "ImageWriterError");
|
|
52
|
+
define_qenum_value_under(rb_cQImageWriterImageWriterError, "UnknownError", QImageWriter::ImageWriterError::UnknownError);
|
|
53
|
+
define_qenum_value_under(rb_cQImageWriterImageWriterError, "DeviceError", QImageWriter::ImageWriterError::DeviceError);
|
|
54
|
+
define_qenum_value_under(rb_cQImageWriterImageWriterError, "UnsupportedFormatError", QImageWriter::ImageWriterError::UnsupportedFormatError);
|
|
55
|
+
define_qenum_value_under(rb_cQImageWriterImageWriterError, "InvalidImageError", QImageWriter::ImageWriterError::InvalidImageError);
|
|
56
|
+
}
|