aboutsummaryrefslogtreecommitdiff
path: root/adw/src
diff options
context:
space:
mode:
Diffstat (limited to 'adw/src')
-rw-r--r--adw/src/aboutdialog.cpp607
-rw-r--r--adw/src/actionrow.cpp246
-rw-r--r--adw/src/alertdialog.cpp108
-rw-r--r--adw/src/application.cpp89
-rw-r--r--adw/src/applicationwindow.cpp62
-rw-r--r--adw/src/breakpoint.cpp146
-rw-r--r--adw/src/comborow.cpp273
-rw-r--r--adw/src/dialog.cpp338
-rw-r--r--adw/src/entryrow.cpp282
-rw-r--r--adw/src/enums.cpp80
-rw-r--r--adw/src/helpers/async_callback.cpp34
-rw-r--r--adw/src/preferencesdialog.cpp70
-rw-r--r--adw/src/preferencespage.cpp61
-rw-r--r--adw/src/preferencesrow.cpp147
-rw-r--r--adw/src/private/aboutdialog_p.cpp40
-rw-r--r--adw/src/private/actionrow_p.cpp84
-rw-r--r--adw/src/private/alertdialog_p.cpp40
-rw-r--r--adw/src/private/application_p.cpp40
-rw-r--r--adw/src/private/applicationwindow_p.cpp40
-rw-r--r--adw/src/private/breakpoint_p.cpp42
-rw-r--r--adw/src/private/comborow_p.cpp41
-rw-r--r--adw/src/private/dialog_p.cpp101
-rw-r--r--adw/src/private/entryrow_p.cpp44
-rw-r--r--adw/src/private/preferencesdialog_p.cpp40
-rw-r--r--adw/src/private/preferencespage_p.cpp41
-rw-r--r--adw/src/private/preferencesrow_p.cpp41
-rw-r--r--adw/src/private/spinrow_p.cpp41
-rw-r--r--adw/src/private/stylemanager_p.cpp39
-rw-r--r--adw/src/private/switchrow_p.cpp41
-rw-r--r--adw/src/private/toast_p.cpp39
-rw-r--r--adw/src/private/toastoverlay_p.cpp42
-rw-r--r--adw/src/private/windowtitle_p.cpp42
-rw-r--r--adw/src/spinrow.cpp383
-rw-r--r--adw/src/stylemanager.cpp131
-rw-r--r--adw/src/switchrow.cpp80
-rw-r--r--adw/src/toast.cpp262
-rw-r--r--adw/src/toastoverlay.cpp93
-rw-r--r--adw/src/windowtitle.cpp110
-rw-r--r--adw/src/wrap_init.cpp96
39 files changed, 0 insertions, 4536 deletions
diff --git a/adw/src/aboutdialog.cpp b/adw/src/aboutdialog.cpp
deleted file mode 100644
index a30758a..0000000
--- a/adw/src/aboutdialog.cpp
+++ /dev/null
@@ -1,607 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/aboutdialog.hpp"
-
-#include "adwaitamm/dialog.hpp"
-#include "adwaitamm/private/aboutdialog_p.hpp"
-
-#include <sigc++/functors/slot.h>
-
-#include <glibmm/containerhandle_shared.h>
-#include <glibmm/exceptionhandler.h>
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/refptr.h>
-#include <glibmm/signalproxy.h>
-#include <glibmm/ustring.h>
-#include <glibmm/utility.h>
-#include <glibmm/vectorutils.h>
-#include <glibmm/wrap.h>
-
-#include <giomm/asyncresult.h>
-#include <giomm/cancellable.h>
-
-#include <gtkmm/aboutdialog.h>
-#include <gtkmm/widget.h>
-
-#include <adwaita.h>
-#include <glib-object.h>
-#include <glib.h>
-#include <gtk/gtk.h>
-
-#include <string>
-#include <vector>
-
-namespace Adwaita
-{
-
- namespace
- {
- auto constinit _class = AboutDialog_Class{}; ///< The static instance of this types class
-
- extern "C" auto AdwAboutDialog_signal_activate_link_connect_callback(AdwAboutDialog * self, char const * uri, void * user_data) -> gboolean
- try
- {
- auto object = Glib::wrap(self);
- if (object)
- {
- auto slot = Glib::SignalProxyNormal::data_to_slot(user_data);
- if (slot)
- {
- return static_cast<gboolean>(
- (*static_cast<sigc::slot<bool(Glib::ustring const &)> *>(slot))(Glib::convert_const_gchar_ptr_to_ustring(uri)));
- }
- }
- return {};
- }
- catch (...)
- {
- Glib::exception_handlers_invoke();
- return {};
- }
-
- extern "C" auto AdwAboutDialog_signal_activate_link_notify_callback(AdwAboutDialog * self, char const * uri, void * user_data) -> gboolean
- try
- {
- auto object = Glib::wrap(self);
- if (object)
- {
- auto slot = Glib::SignalProxyNormal::data_to_slot(user_data);
- if (slot)
- {
- (*static_cast<sigc::slot<void(Glib::ustring const &)> *>(slot))(Glib::convert_const_gchar_ptr_to_ustring(uri));
- }
- }
- return {};
- }
- catch (...)
- {
- Glib::exception_handlers_invoke();
- return {};
- }
-
- namespace property_name
- {
- auto constexpr application_icon = "application-icon";
- auto constexpr application_name = "application-name";
- auto constexpr artists = "artists";
- auto constexpr comments = "comments";
- auto constexpr copyright = "copyright";
- auto constexpr debug_info = "debug-info";
- auto constexpr debug_info_filename = "debug-info-filename";
- auto constexpr designers = "designers";
- auto constexpr developer_name = "developer-name";
- auto constexpr developers = "developers";
- auto constexpr documenters = "documenters";
- auto constexpr issue_url = "issue-url";
- auto constexpr license_type = "license-type";
- auto constexpr license = "license";
- auto constexpr release_notes = "release-notes";
- auto constexpr release_notes_version = "release-notes-version";
- auto constexpr support_url = "support-url";
- auto constexpr translator_credits = "translator-credits";
- auto constexpr version = "version";
- auto constexpr website = "website";
- } // namespace property_name
-
- namespace signal_info
- {
- static const Glib::SignalProxyInfo activate_link = {"activate_link",
- (GCallback)&AdwAboutDialog_signal_activate_link_connect_callback,
- (GCallback)&AdwAboutDialog_signal_activate_link_notify_callback};
- } // namespace signal_info
-
- } // namespace
-
- AboutDialog::AboutDialog()
- : Glib::ObjectBase{nullptr}
- , Dialog{Glib::ConstructParams{_class.init()}}
- {
- }
-
- AboutDialog::AboutDialog(std::string resource_path, std::string release_notes_version)
- : Glib::ObjectBase{nullptr}
- , Dialog{adw_about_dialog_new_from_appdata(resource_path.c_str(), Glib::c_str_or_nullptr(release_notes_version))}
- {
- }
-
- auto AboutDialog::get_type() -> GType
- {
- return _class.init().get_type();
- }
-
- auto AboutDialog::get_base_type() -> GType
- {
- return adw_about_dialog_get_type();
- }
-
- auto AboutDialog::add_acknowledgement_section(Glib::ustring const & name, std::vector<Glib::ustring> const & people) -> void
- {
- return adw_about_dialog_add_acknowledgement_section(unwrap(this),
- Glib::c_str_or_nullptr(name),
- Glib::ArrayHandler<Glib::ustring>::vector_to_array(people).data());
- }
-
- auto AboutDialog::add_credit_section(Glib::ustring const & name, std::vector<Glib::ustring> const & people) -> void
- {
-
- return adw_about_dialog_add_credit_section(unwrap(this),
- Glib::c_str_or_nullptr(name),
- Glib::ArrayHandler<Glib::ustring>::vector_to_array(people).data());
- }
-
- auto AboutDialog::add_legal_section(Glib::ustring const & title,
- Glib::ustring const & copyright,
- Gtk::License license_type,
- Glib::ustring const & license) -> void
- {
- return adw_about_dialog_add_legal_section(Glib::unwrap(this),
- title.c_str(),
- c_str_or_nullptr(copyright),
- static_cast<GtkLicense>(license_type),
- c_str_or_nullptr(license));
- }
-
- auto AboutDialog::add_link(Glib::ustring const & title, Glib::ustring const & url) -> void
- {
- return adw_about_dialog_add_link(unwrap(this), title.c_str(), url.c_str());
- }
-
- auto AboutDialog::add_other_app(Glib::ustring const & id, Glib::ustring const & name, Glib::ustring const & summary) -> void
- {
- return adw_about_dialog_add_other_app(unwrap(this), id.c_str(), name.c_str(), summary.c_str());
- }
-
- auto AboutDialog::get_application_icon() const -> Glib::ustring
- {
- return adw_about_dialog_get_application_icon(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto AboutDialog::get_application_name() const -> Glib::ustring
- {
- return adw_about_dialog_get_application_name(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto AboutDialog::get_artists() const -> std::vector<Glib::ustring>
- {
- return Glib::ArrayHandler<Glib::ustring>::array_to_vector(adw_about_dialog_get_artists(const_cast<BaseObjectType *>(unwrap(this))),
- Glib::OWNERSHIP_NONE);
- }
-
- auto AboutDialog::get_comments() const -> Glib::ustring
- {
- return adw_about_dialog_get_comments(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto AboutDialog::get_copyright() const -> Glib::ustring
- {
- return adw_about_dialog_get_copyright(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto AboutDialog::get_debug_info() const -> Glib::ustring
- {
- return adw_about_dialog_get_debug_info(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto AboutDialog::get_debug_info_filename() const -> Glib::ustring
- {
- return adw_about_dialog_get_debug_info_filename(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto AboutDialog::get_designers() const -> std::vector<Glib::ustring>
- {
- return Glib::ArrayHandler<Glib::ustring>::array_to_vector(adw_about_dialog_get_designers(const_cast<BaseObjectType *>(unwrap(this))),
- Glib::OWNERSHIP_NONE);
- }
-
- auto AboutDialog::get_developer_name() const -> Glib::ustring
- {
- return adw_about_dialog_get_developer_name(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto AboutDialog::get_developers() const -> std::vector<Glib::ustring>
- {
- return Glib::ArrayHandler<Glib::ustring>::array_to_vector(adw_about_dialog_get_developers(const_cast<BaseObjectType *>(unwrap(this))),
- Glib::OWNERSHIP_NONE);
- }
-
- auto AboutDialog::get_documenters() const -> std::vector<Glib::ustring>
- {
- return Glib::ArrayHandler<Glib::ustring>::array_to_vector(adw_about_dialog_get_documenters(const_cast<BaseObjectType *>(unwrap(this))),
- Glib::OWNERSHIP_NONE);
- }
-
- auto AboutDialog::get_issue_url() const -> Glib::ustring
- {
- return adw_about_dialog_get_issue_url(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto AboutDialog::get_license() const -> Glib::ustring
- {
- return adw_about_dialog_get_license(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto AboutDialog::get_license_type() const -> Gtk::License
- {
- return static_cast<Gtk::License>(adw_about_dialog_get_license_type(const_cast<BaseObjectType *>(unwrap(this))));
- }
-
- auto AboutDialog::get_release_notes() const -> Glib::ustring
- {
- return adw_about_dialog_get_release_notes(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto AboutDialog::get_release_notes_version() const -> Glib::ustring
- {
- return adw_about_dialog_get_release_notes_version(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto AboutDialog::get_support_url() const -> Glib::ustring
- {
- return adw_about_dialog_get_support_url(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto AboutDialog::get_translator_credits() const -> Glib::ustring
- {
- return adw_about_dialog_get_translator_credits(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto AboutDialog::get_version() const -> Glib::ustring
- {
- return adw_about_dialog_get_version(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto AboutDialog::get_website() const -> Glib::ustring
- {
- return adw_about_dialog_get_website(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto AboutDialog::set_application_icon(Glib::ustring const & value) -> void
- {
- return adw_about_dialog_set_application_icon(unwrap(this), value.c_str());
- }
-
- auto AboutDialog::set_application_name(Glib::ustring const & value) -> void
- {
- return adw_about_dialog_set_application_name(unwrap(this), value.c_str());
- }
-
- auto AboutDialog::set_artists(std::vector<Glib::ustring> const & value) -> void
- {
- return adw_about_dialog_set_artists(unwrap(this), Glib::ArrayHandler<Glib::ustring>::vector_to_array(value).data());
- }
-
- auto AboutDialog::set_comments(Glib::ustring const & value) -> void
- {
- return adw_about_dialog_set_comments(unwrap(this), value.c_str());
- }
-
- auto AboutDialog::set_copyright(Glib::ustring const & value) -> void
- {
- return adw_about_dialog_set_copyright(unwrap(this), value.c_str());
- }
-
- auto AboutDialog::set_debug_info(Glib::ustring const & value) -> void
- {
- return adw_about_dialog_set_debug_info(unwrap(this), value.c_str());
- }
-
- auto AboutDialog::set_debug_info_filename(Glib::ustring const & value) -> void
- {
- return adw_about_dialog_set_debug_info_filename(unwrap(this), value.c_str());
- }
-
- auto AboutDialog::set_designers(std::vector<Glib::ustring> const & value) -> void
- {
- return adw_about_dialog_set_designers(unwrap(this), Glib::ArrayHandler<Glib::ustring>::vector_to_array(value).data());
- }
-
- auto AboutDialog::set_developer_name(Glib::ustring const & value) -> void
- {
- return adw_about_dialog_set_developer_name(unwrap(this), value.c_str());
- }
-
- auto AboutDialog::set_developers(std::vector<Glib::ustring> const & value) -> void
- {
- return adw_about_dialog_set_developers(unwrap(this), Glib::ArrayHandler<Glib::ustring>::vector_to_array(value).data());
- }
-
- auto AboutDialog::set_documenters(std::vector<Glib::ustring> const & value) -> void
- {
- return adw_about_dialog_set_documenters(unwrap(this), Glib::ArrayHandler<Glib::ustring>::vector_to_array(value).data());
- }
-
- auto AboutDialog::set_issue_url(Glib::ustring const & value) -> void
- {
- return adw_about_dialog_set_issue_url(unwrap(this), value.c_str());
- }
-
- auto AboutDialog::set_license(Glib::ustring const & value) -> void
- {
- return adw_about_dialog_set_license(unwrap(this), value.c_str());
- }
-
- auto AboutDialog::set_license_type(Gtk::License const & value) -> void
- {
- return adw_about_dialog_set_license_type(unwrap(this), static_cast<GtkLicense>(value));
- }
-
- auto AboutDialog::set_release_notes(Glib::ustring const & value) -> void
- {
- return adw_about_dialog_set_release_notes(unwrap(this), value.c_str());
- }
-
- auto AboutDialog::set_release_notes_version(Glib::ustring const & value) -> void
- {
- return adw_about_dialog_set_release_notes_version(unwrap(this), value.c_str());
- }
-
- auto AboutDialog::set_support_url(Glib::ustring const & value) -> void
- {
- return adw_about_dialog_set_support_url(unwrap(this), value.c_str());
- }
-
- auto AboutDialog::set_translator_credits(Glib::ustring const & value) -> void
- {
- return adw_about_dialog_set_translator_credits(unwrap(this), value.c_str());
- }
-
- auto AboutDialog::set_version(Glib::ustring const & value) -> void
- {
- return adw_about_dialog_set_version(unwrap(this), value.c_str());
- }
-
- auto AboutDialog::set_website(Glib::ustring const & value) -> void
- {
- return adw_about_dialog_set_website(unwrap(this), value.c_str());
- }
-
- auto AboutDialog::property_application_icon() -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>{this, property_name::application_icon};
- }
-
- auto AboutDialog::property_application_icon() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>{this, property_name::application_icon};
- }
-
- auto AboutDialog::property_application_name() -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>{this, property_name::application_name};
- }
-
- auto AboutDialog::property_application_name() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>{this, property_name::application_name};
- }
-
- auto AboutDialog::property_artists() -> Glib::PropertyProxy<std::vector<Glib::ustring>>
- {
- return Glib::PropertyProxy<std::vector<Glib::ustring>>{this, property_name::artists};
- }
-
- auto AboutDialog::property_artists() const -> Glib::PropertyProxy_ReadOnly<std::vector<Glib::ustring>>
- {
- return Glib::PropertyProxy_ReadOnly<std::vector<Glib::ustring>>{this, property_name::artists};
- }
-
- auto AboutDialog::property_comments() -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>{this, property_name::comments};
- }
-
- auto AboutDialog::property_comments() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>{this, property_name::comments};
- }
-
- auto AboutDialog::property_copyright() -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>{this, property_name::copyright};
- }
-
- auto AboutDialog::property_copyright() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>{this, property_name::copyright};
- }
-
- auto AboutDialog::property_debug_info() -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>{this, property_name::debug_info};
- }
-
- auto AboutDialog::property_debug_info() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>{this, property_name::debug_info};
- }
-
- auto AboutDialog::property_debug_info_filename() -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>{this, property_name::debug_info_filename};
- }
-
- auto AboutDialog::property_debug_info_filename() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>{this, property_name::debug_info_filename};
- }
-
- auto AboutDialog::property_designers() -> Glib::PropertyProxy<std::vector<Glib::ustring>>
- {
- return Glib::PropertyProxy<std::vector<Glib::ustring>>{this, property_name::designers};
- }
-
- auto AboutDialog::property_designers() const -> Glib::PropertyProxy_ReadOnly<std::vector<Glib::ustring>>
- {
- return Glib::PropertyProxy_ReadOnly<std::vector<Glib::ustring>>{this, property_name::designers};
- }
-
- auto AboutDialog::property_developer_name() -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>{this, property_name::developer_name};
- }
-
- auto AboutDialog::property_developer_name() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>{this, property_name::developer_name};
- }
-
- auto AboutDialog::property_developers() -> Glib::PropertyProxy<std::vector<Glib::ustring>>
- {
- return Glib::PropertyProxy<std::vector<Glib::ustring>>{this, property_name::developers};
- }
-
- auto AboutDialog::property_developers() const -> Glib::PropertyProxy_ReadOnly<std::vector<Glib::ustring>>
- {
- return Glib::PropertyProxy_ReadOnly<std::vector<Glib::ustring>>{this, property_name::developers};
- }
-
- auto AboutDialog::property_documenters() -> Glib::PropertyProxy<std::vector<Glib::ustring>>
- {
- return Glib::PropertyProxy<std::vector<Glib::ustring>>{this, property_name::documenters};
- }
-
- auto AboutDialog::property_documenters() const -> Glib::PropertyProxy_ReadOnly<std::vector<Glib::ustring>>
- {
- return Glib::PropertyProxy_ReadOnly<std::vector<Glib::ustring>>{this, property_name::documenters};
- }
-
- auto AboutDialog::property_issue_url() -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>{this, property_name::issue_url};
- }
-
- auto AboutDialog::property_issue_url() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>{this, property_name::issue_url};
- }
-
- auto AboutDialog::property_license_type() -> Glib::PropertyProxy<Gtk::License>
- {
- return Glib::PropertyProxy<Gtk::License>{this, property_name::license_type};
- }
-
- auto AboutDialog::property_license_type() const -> Glib::PropertyProxy_ReadOnly<Gtk::License>
- {
- return Glib::PropertyProxy_ReadOnly<Gtk::License>{this, property_name::license_type};
- }
-
- auto AboutDialog::property_license() -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>{this, property_name::license};
- }
-
- auto AboutDialog::property_license() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>{this, property_name::license};
- }
-
- auto AboutDialog::property_release_notes() -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>{this, property_name::release_notes};
- }
-
- auto AboutDialog::property_release_notes() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>{this, property_name::release_notes};
- }
-
- auto AboutDialog::property_release_notes_version() -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>{this, property_name::release_notes_version};
- }
-
- auto AboutDialog::property_release_notes_version() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>{this, property_name::release_notes_version};
- }
-
- auto AboutDialog::property_support_url() -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>{this, property_name::support_url};
- }
-
- auto AboutDialog::property_support_url() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>{this, property_name::support_url};
- }
-
- auto AboutDialog::property_translator_credits() -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>{this, property_name::translator_credits};
- }
-
- auto AboutDialog::property_translator_credits() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>{this, property_name::translator_credits};
- }
-
- auto AboutDialog::property_version() -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>{this, property_name::version};
- }
-
- auto AboutDialog::property_version() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>{this, property_name::version};
- }
-
- auto AboutDialog::property_website() -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>{this, property_name::website};
- }
-
- auto AboutDialog::property_website() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>{this, property_name::website};
- }
-
- auto AboutDialog::signal_activate_link() -> Glib::SignalProxy<bool(Glib::ustring const &)>
- {
- return Glib::SignalProxy<bool(Glib::ustring const &)>{this, &signal_info::activate_link};
- }
-
- AboutDialog::AboutDialog(Glib::ConstructParams const & params)
- : Dialog{params}
- {
- }
-
- AboutDialog::AboutDialog(BaseObjectType * gobj)
- : Dialog(ADW_DIALOG(gobj))
- {
- }
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwAboutDialog * object, bool copy) -> Adwaita::AboutDialog *
- {
- return dynamic_cast<Adwaita::AboutDialog *>(Glib::wrap_auto(G_OBJECT(object), copy));
- }
-} // namespace Glib \ No newline at end of file
diff --git a/adw/src/actionrow.cpp b/adw/src/actionrow.cpp
deleted file mode 100644
index f17eef3..0000000
--- a/adw/src/actionrow.cpp
+++ /dev/null
@@ -1,246 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/actionrow.hpp"
-
-#include "adwaitamm/preferencesrow.hpp"
-#include "adwaitamm/private/actionrow_p.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/refptr.h>
-#include <glibmm/signalproxy.h>
-#include <glibmm/ustring.h>
-#include <glibmm/wrap.h>
-
-#include <gtkmm/widget.h>
-
-#include <glib-object.h>
-#include <glib.h>
-
-namespace Adwaita
-
-{
- namespace
- {
- auto constinit _class = ActionRow_Class{};
-
- namespace property_name
- {
- auto constexpr activatable_widget = "activatable-widget";
- auto constexpr icon_name = "icon-name";
- auto constexpr subtitle = "subtitle";
- auto constexpr subtitle_lines = "subtitle-lines";
- auto constexpr subtitle_selectable = "subtitle-selectable";
- auto constexpr title_lines = "title-lines";
- } // namespace property_name
-
- namespace signal_info
- {
- auto const static activated = Glib::SignalProxyInfo{
- "activated",
- reinterpret_cast<GCallback>(&Glib::SignalProxyNormal::slot0_void_callback),
- reinterpret_cast<GCallback>(&Glib::SignalProxyNormal::slot0_void_callback),
- };
- } // namespace signal_info
- } // namespace
-
- ActionRow::ActionRow()
- : Glib::ObjectBase{nullptr}
- , PreferencesRow{Glib::ConstructParams{_class.init()}}
- {
- }
-
- auto ActionRow::get_type() -> GType
- {
- return _class.init().get_type();
- }
-
- auto ActionRow::get_base_type() -> GType
- {
- return adw_action_row_get_type();
- }
-
- auto ActionRow::activate() -> void
- {
- return adw_action_row_activate(unwrap(this));
- }
-
- auto ActionRow::add_prefix(Gtk::Widget & widget) -> void
- {
- return adw_action_row_add_prefix(unwrap(this), unwrap(&widget));
- }
-
- auto ActionRow::add_suffix(Gtk::Widget & widget) -> void
- {
- return adw_action_row_add_suffix(unwrap(this), unwrap(&widget));
- }
-
- auto ActionRow::remove(Gtk::Widget & widget) -> void
- {
- return adw_action_row_remove(unwrap(this), unwrap(&widget));
- }
-
- auto ActionRow::get_activatable_widget() const noexcept -> Gtk::Widget *
- {
- return Glib::wrap(adw_action_row_get_activatable_widget(const_cast<BaseObjectType *>(unwrap(this))));
- }
-
- auto ActionRow::get_icon_name() const -> Glib::ustring
- {
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
- return adw_action_row_get_icon_name(const_cast<BaseObjectType *>(unwrap(this)));
-#pragma GCC diagnostic pop
- }
-
- auto ActionRow::get_subtitle() const -> Glib::ustring
- {
- return adw_action_row_get_subtitle(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto ActionRow::get_subtitle_lines() const noexcept -> int
- {
- return adw_action_row_get_subtitle_lines(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto ActionRow::get_subtitle_selectable() const noexcept -> bool
- {
- return adw_action_row_get_subtitle_selectable(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto ActionRow::get_title_lines() const noexcept -> int
- {
- return adw_action_row_get_title_lines(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto ActionRow::set_activatable_widget(Gtk::Widget & widget) noexcept -> void
- {
- adw_action_row_set_activatable_widget(unwrap(this), unwrap(&widget));
- }
-
- auto ActionRow::set_icon_name(Glib::ustring const & name) -> void
- {
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
- adw_action_row_set_icon_name(unwrap(this), name.c_str());
-#pragma GCC diagnostic pop
- }
-
- auto ActionRow::set_subtitle(Glib::ustring const & subtitle) -> void
- {
- adw_action_row_set_subtitle(unwrap(this), subtitle.c_str());
- }
-
- auto ActionRow::set_subtitle_lines(int subtitle_lines) noexcept -> void
- {
- adw_action_row_set_subtitle_lines(unwrap(this), subtitle_lines);
- }
-
- auto ActionRow::set_subtitle_selectable(bool subtitle_selectable) noexcept -> void
- {
- adw_action_row_set_subtitle_selectable(unwrap(this), static_cast<gboolean>(subtitle_selectable));
- }
-
- auto ActionRow::set_title_lines(int title_lines) noexcept -> void
- {
- adw_action_row_set_title_lines(unwrap(this), title_lines);
- }
-
- auto ActionRow::property_activatable_widget() noexcept -> Glib::PropertyProxy<Gtk::Widget *>
- {
- return Glib::PropertyProxy<Gtk::Widget *>(this, property_name::activatable_widget);
- }
-
- auto ActionRow::property_activatable_widget() const noexcept -> Glib::PropertyProxy_ReadOnly<Gtk::Widget *>
- {
- return Glib::PropertyProxy_ReadOnly<Gtk::Widget *>(this, property_name::activatable_widget);
- }
-
- auto ActionRow::property_icon_name() noexcept -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>(this, property_name::icon_name);
- }
-
- auto ActionRow::property_icon_name() const noexcept -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, property_name::icon_name);
- }
-
- auto ActionRow::property_subtitle() noexcept -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>(this, property_name::subtitle);
- }
-
- auto ActionRow::property_subtitle() const noexcept -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, property_name::subtitle);
- }
-
- auto ActionRow::property_subtitle_lines() noexcept -> Glib::PropertyProxy<int>
- {
- return Glib::PropertyProxy<int>(this, property_name::subtitle_lines);
- }
-
- auto ActionRow::property_subtitle_lines() const noexcept -> Glib::PropertyProxy_ReadOnly<int>
- {
- return Glib::PropertyProxy_ReadOnly<int>(this, property_name::subtitle_lines);
- }
-
- auto ActionRow::property_subtitle_selectable() noexcept -> Glib::PropertyProxy<bool>
- {
- return Glib::PropertyProxy<bool>(this, property_name::subtitle_selectable);
- }
-
- auto ActionRow::property_subtitle_selectable() const noexcept -> Glib::PropertyProxy_ReadOnly<bool>
- {
- return Glib::PropertyProxy_ReadOnly<bool>(this, property_name::subtitle_selectable);
- }
-
- auto ActionRow::property_title_lines() noexcept -> Glib::PropertyProxy<int>
- {
- return Glib::PropertyProxy<int>(this, property_name::title_lines);
- }
-
- auto ActionRow::property_title_lines() const noexcept -> Glib::PropertyProxy_ReadOnly<int>
- {
- return Glib::PropertyProxy_ReadOnly<int>(this, property_name::title_lines);
- }
-
- auto ActionRow::signal_activated() -> Glib::SignalProxy<void()>
- {
- return Glib::SignalProxy<void()>{this, &signal_info::activated};
- }
-
- auto ActionRow::activate_vfunc() -> void
- {
- auto base_object = static_cast<BaseClassType *>(g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)));
- if (base_object && base_object->activate)
- {
- (base_object->activate)(unwrap(this));
- }
- }
-
- ActionRow::ActionRow(Glib::ConstructParams const & params)
- : PreferencesRow{params}
- {
- }
-
- ActionRow::ActionRow(BaseObjectType * gobj)
- : PreferencesRow(ADW_PREFERENCES_ROW(gobj))
- {
- }
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwActionRow * object, bool copy) -> Adwaita::ActionRow *
- {
- return dynamic_cast<Adwaita::ActionRow *>(Glib::wrap_auto(G_OBJECT(object), copy));
- }
-} // namespace Glib \ No newline at end of file
diff --git a/adw/src/alertdialog.cpp b/adw/src/alertdialog.cpp
deleted file mode 100644
index 0e91e68..0000000
--- a/adw/src/alertdialog.cpp
+++ /dev/null
@@ -1,108 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/alertdialog.hpp"
-
-#include "adwaitamm/dialog.hpp"
-#include "adwaitamm/helpers/async_callback.hpp"
-#include "adwaitamm/private/alertdialog_p.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/refptr.h>
-#include <glibmm/ustring.h>
-#include <glibmm/utility.h>
-#include <glibmm/wrap.h>
-
-#include <giomm/asyncresult.h>
-#include <giomm/cancellable.h>
-
-#include <gtkmm/widget.h>
-
-#include <glib-object.h>
-
-namespace Adwaita
-{
-
- namespace
- {
- auto constinit _class = AlertDialog_Class{};
- } // namespace
-
- auto AlertDialog::create(Glib::ustring heading, Glib::ustring body) -> Glib::RefPtr<AlertDialog>
- {
- return Glib::RefPtr<AlertDialog>{new AlertDialog(heading, body)};
- }
-
- auto AlertDialog::get_type() -> GType
- {
- return _class.init().get_type();
- }
-
- auto AlertDialog::get_base_type() -> GType
- {
- return adw_alert_dialog_get_type();
- }
-
- AlertDialog::AlertDialog(Glib::ConstructParams const & params)
- : Dialog{params}
- {
- }
-
- AlertDialog::AlertDialog(BaseObjectType * gobj)
- : Dialog(ADW_DIALOG(gobj))
- {
- }
-
- AlertDialog::AlertDialog(Glib::ustring heading, Glib::ustring body)
- : Glib::ObjectBase{nullptr}
- , Dialog{Glib::ConstructParams{_class.init(), "heading", heading.c_str(), "body", Glib::c_str_or_nullptr(body), nullptr}}
- {
- }
-
- auto AlertDialog::add_response(Glib::ustring id, Glib::ustring label) -> void
- {
- adw_alert_dialog_add_response(Glib::unwrap(this), id.c_str(), label.c_str());
- }
-
- auto AlertDialog::choose(Gtk::Widget & parent, Glib::RefPtr<Gio::Cancellable> const & cancellable, Gio::SlotAsyncReady const & slot) -> void
- {
- adw_alert_dialog_choose(unwrap(this),
- parent.gobj(),
- const_cast<GCancellable *>(unwrap(cancellable)),
- &helpers::async_callback,
- new Gio::SlotAsyncReady(slot));
- }
-
- auto AlertDialog::choose_finish(Glib::RefPtr<Gio::AsyncResult> const & result) -> Glib::ustring
- {
- return adw_alert_dialog_choose_finish(Glib::unwrap(this), Glib::unwrap(result));
- }
-
- auto AlertDialog::set_close_response(Glib::ustring id) -> void
- {
- adw_alert_dialog_set_close_response(unwrap(this), id.c_str());
- }
-
- auto AlertDialog::set_default_response(Glib::ustring id) -> void
- {
- adw_alert_dialog_set_default_response(unwrap(this), id.c_str());
- }
-
- auto AlertDialog::set_response_appearance(Glib::ustring id, ResponseAppearance value) -> void
- {
- adw_alert_dialog_set_response_appearance(unwrap(this), id.c_str(), static_cast<AdwResponseAppearance>(static_cast<int>(value)));
- }
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwAlertDialog * object, bool copy) -> Adwaita::AlertDialog *
- {
- return dynamic_cast<Adwaita::AlertDialog *>(Glib::wrap_auto(G_OBJECT(object), copy));
- }
-} // namespace Glib \ No newline at end of file
diff --git a/adw/src/application.cpp b/adw/src/application.cpp
deleted file mode 100644
index a50d133..0000000
--- a/adw/src/application.cpp
+++ /dev/null
@@ -1,89 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/application.hpp"
-
-#include "adwaitamm/private/application_p.hpp"
-#include "adwaitamm/wrap_init.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/refptr.h>
-#include <glibmm/ustring.h>
-#include <glibmm/utility.h>
-#include <glibmm/wrap.h>
-
-#include <giomm/application.h>
-
-#include <gtkmm/application.h>
-#include <gtkmm/init.h>
-
-#include <adwaita.h>
-#include <gio/gio.h>
-#include <glib-object.h>
-
-namespace Adwaita
-{
- namespace
- {
- auto constinit _class = Application_Class{};
- } // namespace
-
- auto Application::get_type() -> GType
- {
- return _class.init().get_type();
- }
-
- auto Application::get_base_type() -> GType
- {
- return adw_application_get_type();
- }
-
- auto Application::create(Glib::ustring const & id, Gio::Application::Flags flags) -> Glib::RefPtr<Application>
- {
- return Glib::RefPtr<Application>(new Application(id, flags));
- }
-
- Glib::Class const & Application::custom_class_init()
- {
-
- auto static did_init{false};
- if (!did_init)
- {
- Gtk::init_gtkmm_internals();
- wrap_init();
- }
-
- return _class.init();
- }
-
- Application::Application(Glib::ConstructParams const & params)
- : Gtk::Application{params}
- {
- }
-
- Application::Application(AdwApplication * gobj)
- : Gtk::Application((GtkApplication *)gobj)
- {
- }
-
- Application::Application(Glib::ustring const & id, Gio::Application::Flags flags)
- : Glib::ObjectBase{nullptr}
- , Gtk::Application{Glib::ConstructParams{custom_class_init(), "application_id", Glib::c_str_or_nullptr(id), "flags", static_cast<GApplicationFlags>(flags), nullptr}}
- {
- adw_init();
- }
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwApplication * object, bool copy) -> Glib::RefPtr<Adwaita::Application>
- {
- return Glib::make_refptr_for_instance(dynamic_cast<Adwaita::Application *>(Glib::wrap_auto(G_OBJECT(object), copy)));
- }
-} // namespace Glib \ No newline at end of file
diff --git a/adw/src/applicationwindow.cpp b/adw/src/applicationwindow.cpp
deleted file mode 100644
index 5b01cfb..0000000
--- a/adw/src/applicationwindow.cpp
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/applicationwindow.hpp"
-
-#include "adwaitamm/private/applicationwindow_p.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/wrap.h>
-
-#include <gtkmm/application.h>
-#include <gtkmm/applicationwindow.h>
-
-#include <glib-object.h>
-#include <gtk/gtk.h>
-
-namespace Adwaita
-{
- namespace
- {
- auto constinit _class = ApplicationWindow_Class{};
- } // namespace
-
- auto ApplicationWindow::get_type() -> GType
- {
- return _class.init().get_type();
- }
-
- auto ApplicationWindow::get_base_type() -> GType
- {
- return adw_application_window_get_type();
- }
-
- ApplicationWindow::ApplicationWindow(Gtk::Application & app)
- : Glib::ObjectBase{nullptr}
- , Gtk::ApplicationWindow{Glib::ConstructParams{_class.init(), "app", &app, nullptr}}
- {
- }
-
- ApplicationWindow::ApplicationWindow(Glib::ConstructParams const & params)
- : Gtk::ApplicationWindow{params}
- {
- }
-
- ApplicationWindow::ApplicationWindow(BaseObjectType * gobj)
- : Gtk::ApplicationWindow(GTK_APPLICATION_WINDOW(gobj))
- {
- }
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwApplicationWindow * object, bool copy) -> Adwaita::ApplicationWindow *
- {
- return dynamic_cast<Adwaita::ApplicationWindow *>(Glib::wrap_auto(G_OBJECT(object), copy));
- }
-} // namespace Glib \ No newline at end of file
diff --git a/adw/src/breakpoint.cpp b/adw/src/breakpoint.cpp
deleted file mode 100644
index be275e1..0000000
--- a/adw/src/breakpoint.cpp
+++ /dev/null
@@ -1,146 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/breakpoint.hpp"
-
-#include "adwaitamm/enums.hpp"
-#include "adwaitamm/private/breakpoint_p.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/refptr.h>
-#include <glibmm/ustring.h>
-#include <glibmm/wrap.h>
-
-#include <glib-object.h>
-
-#include <optional>
-#include <utility>
-
-namespace Adwaita
-{
-
- BreakpointCondition::BreakpointCondition(BreakpointCondition const & other)
- : BreakpointCondition{adw_breakpoint_condition_copy(other.m_object)}
- {
- }
-
- BreakpointCondition::BreakpointCondition(BreakpointCondition && other)
- : BreakpointCondition{std::exchange(other.m_object, nullptr)}
- {
- }
-
- BreakpointCondition::BreakpointCondition(LengthType type, double value, int unit)
- : BreakpointCondition{adw_breakpoint_condition_new_length(static_cast<AdwBreakpointConditionLengthType>(static_cast<int>(type)),
- value,
- static_cast<AdwLengthUnit>(unit))}
- {
- }
-
- BreakpointCondition::BreakpointCondition(RatioType type, int width, int height)
- : BreakpointCondition{
- adw_breakpoint_condition_new_ratio(static_cast<AdwBreakpointConditionRatioType>(static_cast<int>(type)), width, height)}
- {
- }
-
- BreakpointCondition::BreakpointCondition(AdwBreakpointCondition * object)
- : m_object{object}
- {
- }
-
- BreakpointCondition::~BreakpointCondition() noexcept
- {
- if (m_object)
- {
- adw_breakpoint_condition_free(m_object);
- m_object = nullptr;
- }
- }
-
- auto BreakpointCondition::operator&&(BreakpointCondition & rhs) & -> BreakpointCondition
- {
- return BreakpointCondition{adw_breakpoint_condition_new_and(m_object, rhs.m_object)};
- }
-
- auto BreakpointCondition::operator||(BreakpointCondition & rhs) & -> BreakpointCondition
- {
- return BreakpointCondition{adw_breakpoint_condition_new_or(m_object, rhs.m_object)};
- }
-
- BreakpointCondition::operator Glib::ustring() const
- {
- return adw_breakpoint_condition_to_string(const_cast<AdwBreakpointCondition *>(m_object));
- }
-
- auto BreakpointCondition::parse(Glib::ustring str) -> std::optional<BreakpointCondition>
- {
- if (auto object = adw_breakpoint_condition_parse(str.c_str()))
- {
- return BreakpointCondition{object};
- }
- return std::nullopt;
- }
-
-} // namespace Adwaita
-
-namespace Adwaita
-{
- namespace
- {
- auto constinit _class = Breakpoint_Class{};
- } // namespace
-
- Breakpoint::Breakpoint(BreakpointCondition & condition)
- : Glib::ObjectBase{nullptr}
- , Glib::Object{Glib::ConstructParams{_class.init(), "condition", condition.m_object, nullptr}}
- {
- }
-
- Breakpoint::Breakpoint(Glib::ConstructParams const & params)
- : Glib::Object{params}
- {
- }
-
- Breakpoint::Breakpoint(BaseObjectType * gobj)
- : Glib::Object{G_OBJECT(gobj)}
- {
- }
-
- auto Breakpoint::create(BreakpointCondition & condition) -> Glib::RefPtr<Breakpoint>
- {
- return Glib::make_refptr_for_instance(new Breakpoint(condition));
- }
-
- auto Breakpoint::get_type() -> GType
- {
- return _class.init().get_type();
- }
-
- auto Breakpoint::get_base_type() -> GType
- {
- return adw_breakpoint_get_type();
- }
-
- auto Breakpoint::property_condition() -> Glib::PropertyProxy<BreakpointCondition *>
- {
- return Glib::PropertyProxy<BreakpointCondition *>(this, "condition");
- }
-
- auto Breakpoint::property_condition() const -> Glib::PropertyProxy_ReadOnly<BreakpointCondition *>
- {
- return Glib::PropertyProxy_ReadOnly<BreakpointCondition *>(this, "condition");
- }
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwBreakpoint * object, bool copy) -> Glib::RefPtr<Adwaita::Breakpoint>
- {
- return Glib::make_refptr_for_instance(dynamic_cast<Adwaita::Breakpoint *>(Glib::wrap_auto(G_OBJECT(object), copy)));
- }
-} // namespace Glib
diff --git a/adw/src/comborow.cpp b/adw/src/comborow.cpp
deleted file mode 100644
index 27e97fe..0000000
--- a/adw/src/comborow.cpp
+++ /dev/null
@@ -1,273 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/comborow.hpp"
-
-#include "adwaitamm/actionrow.hpp"
-#include "adwaitamm/private/comborow_p.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/refptr.h>
-#include <glibmm/ustring.h>
-#include <glibmm/wrap.h>
-
-#include <giomm/listmodel.h>
-
-#include <gtkmm/expression.h>
-#include <gtkmm/listitemfactory.h>
-#include <gtkmm/stringfilter.h>
-
-#include <glib-object.h>
-#include <gtk/gtkdropdown.h>
-
-namespace Adwaita
-{
- namespace
- {
- auto constinit _class = ComboRow_Class{};
-
- namespace property_name
- {
- auto constexpr enable_search = "enable_search";
- auto constexpr expression = "expression";
- auto constexpr factory = "factory";
- auto constexpr header_factory = "header-factory";
- auto constexpr list_factory = "list-factory";
- auto constexpr model = "model";
- auto constexpr search_match_mode = "search-match-mode";
- auto constexpr selected = "selected";
- auto constexpr selected_item = "selected-item";
- auto constexpr use_subtitle = "use-subtitle";
- } // namespace property_name
- } // namespace
-
- ComboRow::ComboRow()
- : Glib::ObjectBase{nullptr}
- , ActionRow{Glib::ConstructParams{_class.init()}}
- {
- }
-
- auto ComboRow::get_type() -> GType
- {
- return _class.init().get_type();
- }
-
- auto ComboRow::get_base_type() -> GType
- {
- return adw_combo_row_get_type();
- }
-
- auto ComboRow::get_enable_search() const -> bool
- {
- return adw_combo_row_get_enable_search(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto ComboRow::get_expression() const -> Glib::RefPtr<Gtk::Expression<Glib::ustring>>
- {
- return Glib::wrap<Glib::ustring>(adw_combo_row_get_expression(const_cast<BaseObjectType *>(unwrap(this))), true);
- }
-
- auto ComboRow::get_factory() const -> Glib::RefPtr<Gtk::ListItemFactory>
- {
- return Glib::wrap(adw_combo_row_get_factory(const_cast<BaseObjectType *>(unwrap(this))), true);
- }
-
- auto ComboRow::get_header_factory() const -> Glib::RefPtr<Gtk::ListItemFactory>
- {
- return Glib::wrap(adw_combo_row_get_header_factory(const_cast<BaseObjectType *>(unwrap(this))), true);
- }
-
- auto ComboRow::get_list_factory() const -> Glib::RefPtr<Gtk::ListItemFactory>
- {
- return Glib::wrap(adw_combo_row_get_list_factory(const_cast<BaseObjectType *>(unwrap(this))), true);
- }
-
- auto ComboRow::get_model() const -> Glib::RefPtr<Gio::ListModel>
- {
- return Glib::wrap(adw_combo_row_get_model(const_cast<BaseObjectType *>(unwrap(this))), true);
- }
-
- auto ComboRow::get_search_match_mode() const -> Gtk::StringFilter::MatchMode
- {
- return static_cast<Gtk::StringFilter::MatchMode>(adw_combo_row_get_search_match_mode(const_cast<BaseObjectType *>(unwrap(this))));
- }
-
- auto ComboRow::get_selected() const -> unsigned int
- {
- return adw_combo_row_get_selected(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto ComboRow::get_selected_item() const -> Glib::RefPtr<Glib::Object>
- {
- return Glib::wrap(G_OBJECT(adw_combo_row_get_selected_item(const_cast<BaseObjectType *>(unwrap(this)))));
- }
-
- auto ComboRow::get_use_subtitle() const -> bool
- {
- return adw_combo_row_get_use_subtitle(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto ComboRow::set_enable_search(bool value) -> void
- {
- return adw_combo_row_set_enable_search(unwrap(this), value);
- }
-
- auto ComboRow::set_expression(Glib::RefPtr<Gtk::Expression<Glib::ustring>> const & value) -> void
- {
- return adw_combo_row_set_expression(unwrap(this), value ? value->gobj() : nullptr);
- }
-
- auto ComboRow::set_factory(Glib::RefPtr<Gtk::ListItemFactory> const & value) -> void
- {
- return adw_combo_row_set_factory(unwrap(this), value ? value->gobj() : nullptr);
- }
-
- auto ComboRow::set_header_factory(Glib::RefPtr<Gtk::ListItemFactory> const & value) -> void
- {
- return adw_combo_row_set_header_factory(unwrap(this), value ? value->gobj() : nullptr);
- }
-
- auto ComboRow::set_list_factory(Glib::RefPtr<Gtk::ListItemFactory> const & value) -> void
- {
- return adw_combo_row_set_list_factory(unwrap(this), value ? value->gobj() : nullptr);
- }
-
- auto ComboRow::set_model(Glib::RefPtr<Gio::ListModel> const & value) -> void
- {
- return adw_combo_row_set_model(unwrap(this), value ? value->gobj() : nullptr);
- }
-
- auto ComboRow::set_search_match_mode(Gtk::StringFilter::MatchMode value) -> void
- {
- return adw_combo_row_set_search_match_mode(unwrap(this), static_cast<GtkStringFilterMatchMode>(value));
- }
-
- auto ComboRow::set_selected(unsigned int value) -> void
- {
- return adw_combo_row_set_selected(unwrap(this), value);
- }
-
- auto ComboRow::set_use_subtitle(bool value) -> void
- {
- return adw_combo_row_set_use_subtitle(unwrap(this), value);
- }
-
- auto ComboRow::property_enable_search() -> Glib::PropertyProxy<bool>
- {
- return {this, property_name::enable_search};
- }
-
- auto ComboRow::property_enable_search() const -> Glib::PropertyProxy_ReadOnly<bool>
- {
- return {this, property_name::enable_search};
- }
-
- auto ComboRow::property_expression() -> Glib::PropertyProxy<Glib::RefPtr<Gtk::Expression<Glib::ustring>>>
- {
- return {this, property_name::expression};
- }
-
- auto ComboRow::property_expression() const -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Gtk::Expression<Glib::ustring>>>
- {
- return {this, property_name::expression};
- }
-
- auto ComboRow::property_factory() -> Glib::PropertyProxy<Glib::RefPtr<Gtk::ListItemFactory>>
- {
- return {this, property_name::factory};
- }
-
- auto ComboRow::property_factory() const -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Gtk::ListItemFactory>>
- {
- return {this, property_name::factory};
- }
-
- auto ComboRow::property_header_factory() -> Glib::PropertyProxy<Glib::RefPtr<Gtk::ListItemFactory>>
- {
- return {this, property_name::header_factory};
- }
-
- auto ComboRow::property_header_factory() const -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Gtk::ListItemFactory>>
- {
- return {this, property_name::header_factory};
- }
-
- auto ComboRow::property_list_factory() -> Glib::PropertyProxy<Glib::RefPtr<Gtk::ListItemFactory>>
- {
- return {this, property_name::list_factory};
- }
-
- auto ComboRow::property_list_factory() const -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Gtk::ListItemFactory>>
- {
- return {this, property_name::list_factory};
- }
-
- auto ComboRow::property_model() -> Glib::PropertyProxy<Glib::RefPtr<Gio::ListModel>>
- {
- return {this, property_name::model};
- }
-
- auto ComboRow::property_model() const -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Gio::ListModel>>
- {
- return {this, property_name::model};
- }
-
- auto ComboRow::property_search_match_mode() -> Glib::PropertyProxy<Gtk::StringFilter::MatchMode>
- {
- return {this, property_name::search_match_mode};
- }
-
- auto ComboRow::property_search_match_mode() const -> Glib::PropertyProxy_ReadOnly<Gtk::StringFilter::MatchMode>
- {
- return {this, property_name::search_match_mode};
- }
-
- auto ComboRow::property_selected() -> Glib::PropertyProxy<unsigned int>
- {
- return {this, property_name::selected};
- }
-
- auto ComboRow::property_selected() const -> Glib::PropertyProxy_ReadOnly<unsigned int>
- {
- return {this, property_name::selected};
- }
-
- auto ComboRow::property_selected_item() -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Glib::Object>>
- {
- return {this, property_name::selected_item};
- }
-
- auto ComboRow::property_use_subtitle() -> Glib::PropertyProxy<bool>
- {
- return {this, property_name::use_subtitle};
- }
-
- auto ComboRow::property_use_subtitle() const -> Glib::PropertyProxy_ReadOnly<bool>
- {
- return {this, property_name::use_subtitle};
- }
-
- ComboRow::ComboRow(Glib::ConstructParams const & params)
- : ActionRow{params}
- {
- }
-
- ComboRow::ComboRow(BaseObjectType * gobj)
- : ActionRow(ADW_ACTION_ROW(gobj))
- {
- }
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwComboRow * object, bool copy) -> Adwaita::ComboRow *
- {
- return dynamic_cast<Adwaita::ComboRow *>(Glib::wrap_auto(G_OBJECT(object), copy));
- }
-} // namespace Glib \ No newline at end of file
diff --git a/adw/src/dialog.cpp b/adw/src/dialog.cpp
deleted file mode 100644
index 65da6a2..0000000
--- a/adw/src/dialog.cpp
+++ /dev/null
@@ -1,338 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/dialog.hpp"
-
-#include "adwaitamm/breakpoint.hpp"
-#include "adwaitamm/enums.hpp"
-#include "adwaitamm/private/dialog_p.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/refptr.h>
-#include <glibmm/signalproxy.h>
-#include <glibmm/ustring.h>
-#include <glibmm/utility.h>
-#include <glibmm/wrap.h>
-
-#include <gtkmm/widget.h>
-
-#include <glib-object.h>
-#include <glib.h>
-#include <gtk/gtk.h>
-
-namespace Adwaita
-{
-
- namespace
- {
- auto constinit _class = Dialog_Class{};
-
- namespace property_name
- {
- auto constexpr can_close = "can-close";
- auto constexpr child = "child";
- auto constexpr content_height = "content-height";
- auto constexpr content_width = "content-width";
- auto constexpr current_breakpoint = "current-breakpoint";
- auto constexpr default_widget = "default-widget";
- auto constexpr focus_widget = "focus-widget";
- auto constexpr follows_content_size = "follows_content_size";
- auto constexpr presentation_mode = "presentation_mode";
- auto constexpr title = "title";
- } // namespace property_name
-
- namespace signal_info
- {
- auto const close_attempt = Glib::SignalProxyInfo{
- "close-attempt",
- reinterpret_cast<GCallback>(&Glib::SignalProxyNormal::slot0_void_callback),
- reinterpret_cast<GCallback>(&Glib::SignalProxyNormal::slot0_void_callback),
- };
-
- auto const closed = Glib::SignalProxyInfo{
- "closed",
- reinterpret_cast<GCallback>(&Glib::SignalProxyNormal::slot0_void_callback),
- reinterpret_cast<GCallback>(&Glib::SignalProxyNormal::slot0_void_callback),
- };
- } // namespace signal_info
- } // namespace
-
- auto Dialog::get_type() -> GType
- {
- return _class.init().get_type();
- }
-
- auto Dialog::get_base_type() -> GType
- {
- return adw_dialog_get_type();
- }
-
- Dialog::Dialog(Glib::ConstructParams const & params)
- : Gtk::Widget{params}
- {
- }
-
- Dialog::Dialog(AdwDialog * gobj)
- : Gtk::Widget(GTK_WIDGET(gobj))
- {
- }
-
- Dialog::Dialog()
- : Glib::ObjectBase{nullptr}
- , Gtk::Widget{Glib::ConstructParams{_class.init()}}
- {
- }
-
- auto Dialog::add_breakpoint(Glib::RefPtr<Breakpoint> const & breakpoint) -> void
- {
- // Take a copy because the dialog will take ownership of the breakpoint.
- adw_dialog_add_breakpoint(unwrap(this), Glib::unwrap_copy(breakpoint));
- }
-
- auto Dialog::close() -> void
- {
- adw_dialog_close(unwrap(this));
- }
-
- auto Dialog::force_close() -> void
- {
- adw_dialog_force_close(unwrap(this));
- }
-
- auto Dialog::present(Gtk::Widget * parent) -> void
- {
- adw_dialog_present(unwrap(this), Glib::unwrap(parent));
- }
-
- auto Dialog::get_can_close() const -> bool
- {
- return adw_dialog_get_can_close(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto Dialog::get_child() const -> Gtk::Widget *
- {
- return Glib::wrap(adw_dialog_get_child(const_cast<BaseObjectType *>(unwrap(this))), true);
- }
-
- auto Dialog::get_content_height() const -> int
- {
- return adw_dialog_get_content_height(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto Dialog::get_content_width() const -> int
- {
- return adw_dialog_get_content_width(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto Dialog::get_current_breakpoint() const -> Glib::RefPtr<Breakpoint>
- {
- return Glib::wrap(adw_dialog_get_current_breakpoint(const_cast<BaseObjectType *>(unwrap(this))), true);
- }
-
- auto Dialog::get_default_widget() const -> Gtk::Widget *
- {
- return Glib::wrap(adw_dialog_get_default_widget(const_cast<BaseObjectType *>(unwrap(this))));
- }
-
- auto Dialog::get_focus() const -> Gtk::Widget *
- {
- return Glib::wrap(adw_dialog_get_focus(const_cast<BaseObjectType *>(unwrap(this))));
- }
-
- auto Dialog::get_follows_content_size() const -> bool
- {
- return adw_dialog_get_follows_content_size(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto Dialog::get_presentation_mode() const -> PresentationMode
- {
- return static_cast<PresentationMode>(adw_dialog_get_presentation_mode(const_cast<BaseObjectType *>(unwrap(this))));
- }
-
- auto Dialog::get_title() const -> Glib::ustring
- {
- return adw_dialog_get_title(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto Dialog::set_can_close(bool value) -> void
- {
- return adw_dialog_set_can_close(unwrap(this), static_cast<gboolean>(value));
- }
-
- auto Dialog::set_child(Gtk::Widget & value) -> void
- {
- return adw_dialog_set_child(unwrap(this), unwrap(&value));
- }
-
- auto Dialog::set_content_height(int value) -> void
- {
- return adw_dialog_set_content_height(unwrap(this), value);
- }
-
- auto Dialog::set_content_width(int value) -> void
- {
- return adw_dialog_set_content_width(unwrap(this), value);
- }
-
- auto Dialog::set_default_widget(Gtk::Widget & value) -> void
- {
- return adw_dialog_set_default_widget(unwrap(this), unwrap(&value));
- }
-
- auto Dialog::set_focus(Gtk::Widget & value) -> void
- {
- return adw_dialog_set_focus(unwrap(this), unwrap(&value));
- }
-
- auto Dialog::set_follows_content_size(bool value) -> void
- {
- return adw_dialog_set_follows_content_size(unwrap(this), value);
- }
-
- auto Dialog::set_presentation_mode(PresentationMode value) -> void
- {
- return adw_dialog_set_presentation_mode(unwrap(this), static_cast<AdwDialogPresentationMode>(value));
- }
-
- auto Dialog::set_title(Glib::ustring const & str) -> void
- {
- return adw_dialog_set_title(unwrap(this), Glib::c_str_or_nullptr(str));
- }
-
- auto Dialog::property_can_close() -> Glib::PropertyProxy<bool>
- {
- return {this, property_name::can_close};
- }
-
- auto Dialog::property_can_close() const -> Glib::PropertyProxy_ReadOnly<bool>
- {
- return {this, property_name::can_close};
- }
-
- auto Dialog::property_child() -> Glib::PropertyProxy<Gtk::Widget *>
- {
- return {this, property_name::child};
- }
-
- auto Dialog::property_child() const -> Glib::PropertyProxy_ReadOnly<Gtk::Widget *>
- {
- return {this, property_name::child};
- }
-
- auto Dialog::property_content_height() -> Glib::PropertyProxy<int>
- {
- return {this, property_name::content_height};
- }
-
- auto Dialog::property_content_height() const -> Glib::PropertyProxy_ReadOnly<int>
- {
- return {this, property_name::content_height};
- }
-
- auto Dialog::property_content_width() -> Glib::PropertyProxy<int>
- {
- return {this, property_name::content_width};
- }
-
- auto Dialog::property_content_width() const -> Glib::PropertyProxy_ReadOnly<int>
- {
- return {this, property_name::content_width};
- }
-
- auto Dialog::property_current_breakpoint() const -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Breakpoint>>
- {
- return {this, property_name::current_breakpoint};
- }
-
- auto Dialog::property_default_widget() -> Glib::PropertyProxy<Gtk::Widget *>
- {
- return {this, property_name::default_widget};
- }
-
- auto Dialog::property_default_widget() const -> Glib::PropertyProxy_ReadOnly<Gtk::Widget *>
- {
- return {this, property_name::default_widget};
- }
-
- auto Dialog::property_focus_widget() -> Glib::PropertyProxy<Gtk::Widget *>
- {
- return {this, property_name::focus_widget};
- }
-
- auto Dialog::property_focus_widget() const -> Glib::PropertyProxy_ReadOnly<Gtk::Widget *>
- {
- return {this, property_name::focus_widget};
- }
-
- auto Dialog::property_follows_content_size() -> Glib::PropertyProxy<bool>
- {
- return {this, property_name::follows_content_size};
- }
-
- auto Dialog::property_follows_content_size() const -> Glib::PropertyProxy_ReadOnly<bool>
- {
- return {this, property_name::follows_content_size};
- }
-
- auto Dialog::property_presentation_mode() -> Glib::PropertyProxy<PresentationMode>
- {
- return {this, property_name::presentation_mode};
- }
-
- auto Dialog::property_presentation_mode() const -> Glib::PropertyProxy_ReadOnly<PresentationMode>
- {
- return {this, property_name::presentation_mode};
- }
-
- auto Dialog::property_title() -> Glib::PropertyProxy<Glib::ustring>
- {
- return {this, property_name::title};
- }
-
- auto Dialog::property_title() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return {this, property_name::title};
- }
-
- auto Dialog::signal_close_attempt() -> Glib::SignalProxy<void()>
- {
- return {this, &signal_info::close_attempt};
- }
-
- auto Dialog::signal_closed() -> Glib::SignalProxy<void()>
- {
- return {this, &signal_info::closed};
- }
-
- auto Dialog::on_close_attempt() -> void
- {
- auto base_class = static_cast<BaseClassType *>(g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)));
- if (base_class && base_class->close_attempt)
- {
- return (base_class->close_attempt)(unwrap(this));
- }
- }
-
- auto Dialog::on_closed() -> void
- {
- auto base_class = static_cast<BaseClassType *>(g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)));
- if (base_class && base_class->closed)
- {
- return (base_class->closed)(unwrap(this));
- }
- }
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwDialog * object, bool copy) -> Adwaita::Dialog *
- {
- return dynamic_cast<Adwaita::Dialog *>(Glib::wrap_auto(G_OBJECT(object), copy));
- }
-} // namespace Glib \ No newline at end of file
diff --git a/adw/src/entryrow.cpp b/adw/src/entryrow.cpp
deleted file mode 100644
index b6053fd..0000000
--- a/adw/src/entryrow.cpp
+++ /dev/null
@@ -1,282 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/entryrow.hpp"
-
-#include "adwaitamm/preferencesrow.hpp"
-#include "adwaitamm/private/entryrow_p.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/refptr.h>
-#include <glibmm/signalproxy.h>
-#include <glibmm/ustring.h>
-#include <glibmm/wrap.h>
-
-#include <giomm/listmodel.h>
-
-#include <gtkmm/enums.h>
-#include <gtkmm/expression.h>
-#include <gtkmm/listitemfactory.h>
-#include <gtkmm/stringfilter.h>
-#include <gtkmm/widget.h>
-
-#include <glib-object.h>
-#include <gtk/gtk.h>
-#include <gtk/gtkdropdown.h>
-#include <pangomm/attrlist.h>
-
-namespace Adwaita
-{
- namespace
- {
- auto constinit _class = EntryRow_Class{};
-
- namespace property_name
- {
- auto constexpr activates_default = "activates-default";
- auto constexpr attributes = "attributes";
- auto constexpr enable_emoji_completion = "enable-emoji-completion";
- auto constexpr input_hints = "input-hints";
- auto constexpr input_purpose = "input-purpose";
- auto constexpr max_length = "max-length";
- auto constexpr show_apply_button = "show-apply-button";
- auto constexpr text_length = "text-length";
- } // namespace property_name
-
- namespace signal_info
- {
- auto const apply = Glib::SignalProxyInfo{
- "apply",
- reinterpret_cast<GCallback>(&Glib::SignalProxyNormal::slot0_void_callback),
- reinterpret_cast<GCallback>(&Glib::SignalProxyNormal::slot0_void_callback),
- };
-
- auto const entry_activated = Glib::SignalProxyInfo{
- "entry-activated",
- reinterpret_cast<GCallback>(&Glib::SignalProxyNormal::slot0_void_callback),
- reinterpret_cast<GCallback>(&Glib::SignalProxyNormal::slot0_void_callback),
- };
-
- } // namespace signal_info
- } // namespace
-
- EntryRow::EntryRow()
- : Glib::ObjectBase{nullptr}
- , PreferencesRow{Glib::ConstructParams{_class.init()}}
- {
- }
-
- auto EntryRow::get_type() -> GType
- {
- return _class.init().get_type();
- }
-
- auto EntryRow::get_base_type() -> GType
- {
- return adw_entry_row_get_type();
- }
-
- auto EntryRow::add_prefix(Gtk::Widget & widget) -> void
- {
- return adw_entry_row_add_prefix(unwrap(this), unwrap(&widget));
- }
-
- auto EntryRow::add_suffix(Gtk::Widget & widget) -> void
- {
- return adw_entry_row_add_suffix(unwrap(this), unwrap(&widget));
- }
-
- auto EntryRow::grab_focus_without_selecting() -> bool
- {
- return adw_entry_row_grab_focus_without_selecting(unwrap(this));
- }
-
- auto EntryRow::remove(Gtk::Widget & widget) -> void
- {
- return adw_entry_row_remove(unwrap(this), unwrap(&widget));
- }
-
- auto EntryRow::get_activates_default() const -> bool
- {
- return adw_entry_row_get_activates_default(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto EntryRow::get_attributes() const -> Pango::AttrList
- {
- return Glib::wrap(adw_entry_row_get_attributes(const_cast<BaseObjectType *>(unwrap(this))));
- }
-
- auto EntryRow::get_enable_emoji_completion() const -> bool
- {
- return adw_entry_row_get_enable_emoji_completion(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto EntryRow::get_input_hints() const -> Gtk::InputHints
- {
- return static_cast<Gtk::InputHints>(adw_entry_row_get_input_hints(const_cast<BaseObjectType *>(unwrap(this))));
- }
-
- auto EntryRow::get_input_purpose() const -> Gtk::InputPurpose
- {
- return static_cast<Gtk::InputPurpose>(adw_entry_row_get_input_purpose(const_cast<BaseObjectType *>(unwrap(this))));
- }
-
- auto EntryRow::get_max_length() const -> int
- {
- return adw_entry_row_get_max_length(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto EntryRow::get_show_apply_button() const -> bool
- {
- return adw_entry_row_get_show_apply_button(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto EntryRow::get_text_length() const -> unsigned int
- {
- return adw_entry_row_get_text_length(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto EntryRow::set_activates_default(bool value) -> void
- {
- return adw_entry_row_set_activates_default(unwrap(this), value);
- }
-
- auto EntryRow::set_attributes(Pango::AttrList & value) -> void
- {
- return adw_entry_row_set_attributes(unwrap(this), Glib::unwrap(&value));
- }
-
- auto EntryRow::set_enable_emoji_completion(bool value) -> void
- {
- return adw_entry_row_set_enable_emoji_completion(unwrap(this), value);
- }
-
- auto EntryRow::set_input_hints(Gtk::InputHints value) -> void
- {
- return adw_entry_row_set_input_hints(unwrap(this), static_cast<GtkInputHints>(value));
- }
-
- auto EntryRow::set_input_purpose(Gtk::InputPurpose value) -> void
- {
- return adw_entry_row_set_input_purpose(unwrap(this), static_cast<GtkInputPurpose>(value));
- }
-
- auto EntryRow::set_max_length(int value) -> void
- {
- return adw_entry_row_set_max_length(unwrap(this), value);
- }
-
- auto EntryRow::set_show_apply_button(bool value) -> void
- {
- return adw_entry_row_set_show_apply_button(unwrap(this), value);
- }
-
- auto EntryRow::property_activates_default() -> Glib::PropertyProxy<bool>
- {
- return {this, property_name::activates_default};
- }
-
- auto EntryRow::property_activates_default() const -> Glib::PropertyProxy_ReadOnly<bool>
- {
- return {this, property_name::activates_default};
- }
-
- auto EntryRow::property_attributes() -> Glib::PropertyProxy<Pango::AttrList>
- {
- return {this, property_name::attributes};
- }
-
- auto EntryRow::property_attributes() const -> Glib::PropertyProxy_ReadOnly<Pango::AttrList>
- {
- return {this, property_name::attributes};
- }
-
- auto EntryRow::property_enable_emoji_completion() -> Glib::PropertyProxy<bool>
- {
- return {this, property_name::enable_emoji_completion};
- }
-
- auto EntryRow::property_enable_emoji_completion() const -> Glib::PropertyProxy_ReadOnly<bool>
- {
- return {this, property_name::enable_emoji_completion};
- }
-
- auto EntryRow::property_input_hints() -> Glib::PropertyProxy<Gtk::InputHints>
- {
- return {this, property_name::input_hints};
- }
-
- auto EntryRow::property_input_hints() const -> Glib::PropertyProxy_ReadOnly<Gtk::InputHints>
- {
- return {this, property_name::input_hints};
- }
-
- auto EntryRow::property_input_purpose() -> Glib::PropertyProxy<Gtk::InputPurpose>
- {
- return {this, property_name::input_purpose};
- }
-
- auto EntryRow::property_input_purpose() const -> Glib::PropertyProxy_ReadOnly<Gtk::InputPurpose>
- {
- return {this, property_name::input_purpose};
- }
-
- auto EntryRow::property_max_length() -> Glib::PropertyProxy<int>
- {
- return {this, property_name::max_length};
- }
-
- auto EntryRow::property_max_length() const -> Glib::PropertyProxy_ReadOnly<int>
- {
- return {this, property_name::max_length};
- }
-
- auto EntryRow::property_show_apply_button() -> Glib::PropertyProxy<bool>
- {
- return {this, property_name::show_apply_button};
- }
-
- auto EntryRow::property_show_apply_button() const -> Glib::PropertyProxy_ReadOnly<bool>
- {
- return {this, property_name::show_apply_button};
- }
-
- auto EntryRow::property_text_length() -> Glib::PropertyProxy_ReadOnly<unsigned int>
- {
- return {this, property_name::text_length};
- }
-
- auto EntryRow::signal_apply() -> Glib::SignalProxy<void()>
- {
- return {this, &signal_info::apply};
- }
-
- auto EntryRow::signal_entry_activated() -> Glib::SignalProxy<void()>
- {
- return {this, &signal_info::entry_activated};
- }
-
- EntryRow::EntryRow(Glib::ConstructParams const & params)
- : PreferencesRow{params}
- {
- }
-
- EntryRow::EntryRow(BaseObjectType * gobj)
- : PreferencesRow(ADW_PREFERENCES_ROW(gobj))
- {
- }
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwEntryRow * object, bool copy) -> Adwaita::EntryRow *
- {
- return dynamic_cast<Adwaita::EntryRow *>(Glib::wrap_auto(G_OBJECT(object), copy));
- }
-} // namespace Glib \ No newline at end of file
diff --git a/adw/src/enums.cpp b/adw/src/enums.cpp
deleted file mode 100644
index b93ac3d..0000000
--- a/adw/src/enums.cpp
+++ /dev/null
@@ -1,80 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/enums.hpp"
-
-#include "adwaitamm/stylemanager.hpp"
-
-#include <adwaita.h>
-#include <glib-object.h>
-
-#include <type_traits>
-
-namespace
-{
- template<auto Wrapped, auto Unwrapped>
- auto constexpr matches =
- static_cast<std::underlying_type_t<decltype(Wrapped)>>(Wrapped) == static_cast<std::underlying_type_t<decltype(Unwrapped)>>(Unwrapped);
-} // namespace
-
-namespace Adwaita
-{
-
- static_assert(matches<AccentColor::Blue, ADW_ACCENT_COLOR_BLUE>);
- static_assert(matches<AccentColor::Teal, ADW_ACCENT_COLOR_TEAL>);
- static_assert(matches<AccentColor::Green, ADW_ACCENT_COLOR_GREEN>);
- static_assert(matches<AccentColor::Yellow, ADW_ACCENT_COLOR_YELLOW>);
- static_assert(matches<AccentColor::Orange, ADW_ACCENT_COLOR_ORANGE>);
- static_assert(matches<AccentColor::Red, ADW_ACCENT_COLOR_RED>);
- static_assert(matches<AccentColor::Pink, ADW_ACCENT_COLOR_PINK>);
- static_assert(matches<AccentColor::Purple, ADW_ACCENT_COLOR_PURPLE>);
- static_assert(matches<AccentColor::Slate, ADW_ACCENT_COLOR_SLATE>);
-
- static_assert(matches<ColorScheme::Default, ADW_COLOR_SCHEME_DEFAULT>);
- static_assert(matches<ColorScheme::ForceLight, ADW_COLOR_SCHEME_FORCE_LIGHT>);
- static_assert(matches<ColorScheme::PreferLight, ADW_COLOR_SCHEME_PREFER_LIGHT>);
- static_assert(matches<ColorScheme::PreferDark, ADW_COLOR_SCHEME_PREFER_DARK>);
- static_assert(matches<ColorScheme::ForceDark, ADW_COLOR_SCHEME_FORCE_DARK>);
-
- static_assert(matches<LengthType::MinWidth, ADW_BREAKPOINT_CONDITION_MIN_WIDTH>);
- static_assert(matches<LengthType::MaxWidth, ADW_BREAKPOINT_CONDITION_MAX_WIDTH>);
- static_assert(matches<LengthType::MinHeight, ADW_BREAKPOINT_CONDITION_MIN_HEIGHT>);
- static_assert(matches<LengthType::MaxHeight, ADW_BREAKPOINT_CONDITION_MAX_HEIGHT>);
-
- static_assert(matches<PresentationMode::Auto, ADW_DIALOG_AUTO>);
- static_assert(matches<PresentationMode::Floating, ADW_DIALOG_FLOATING>);
- static_assert(matches<PresentationMode::BottomSheet, ADW_DIALOG_BOTTOM_SHEET>);
-
- static_assert(matches<RatioType::MinAspectRatio, ADW_BREAKPOINT_CONDITION_MIN_ASPECT_RATIO>);
- static_assert(matches<RatioType::MaxAspectRatio, ADW_BREAKPOINT_CONDITION_MAX_ASPECT_RATIO>);
-
- static_assert(matches<ResponseAppearance::Default, ADW_RESPONSE_DEFAULT>);
- static_assert(matches<ResponseAppearance::Suggested, ADW_RESPONSE_SUGGESTED>);
- static_assert(matches<ResponseAppearance::Destructive, ADW_RESPONSE_DESTRUCTIVE>);
-
- static_assert(matches<ToastPriority::Normal, ADW_TOAST_PRIORITY_NORMAL>);
- static_assert(matches<ToastPriority::High, ADW_TOAST_PRIORITY_HIGH>);
-
-} // namespace Adwaita
-
-namespace Glib
-{
-#define VALUE_SPECIALIZATION(Enum, AdwEnumName) \
- auto Value<Adwaita::Enum>::value_type() -> GType \
- { \
- return adw_##AdwEnumName##_get_type(); \
- }
-
- VALUE_SPECIALIZATION(AccentColor, accent_color)
- VALUE_SPECIALIZATION(ColorScheme, color_scheme)
- VALUE_SPECIALIZATION(LengthType, breakpoint_condition)
- VALUE_SPECIALIZATION(PresentationMode, dialog_presentation_mode);
- VALUE_SPECIALIZATION(RatioType, breakpoint_condition)
- VALUE_SPECIALIZATION(ResponseAppearance, response_appearance)
- VALUE_SPECIALIZATION(ToastPriority, toast_priority)
-
-#undef VALUE_SPECIALIZATION
-} // namespace Glib \ No newline at end of file
diff --git a/adw/src/helpers/async_callback.cpp b/adw/src/helpers/async_callback.cpp
deleted file mode 100644
index f8a8b27..0000000
--- a/adw/src/helpers/async_callback.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/helpers/async_callback.hpp"
-
-#include <glibmm/exceptionhandler.h>
-#include <glibmm/object.h>
-
-#include <giomm/asyncresult.h>
-
-#include <memory>
-
-namespace Adwaita::helpers
-{
-
- auto async_callback(GObject *, GAsyncResult * result, void * data) noexcept -> void
- {
- auto slot = std::unique_ptr<Gio::SlotAsyncReady>(static_cast<Gio::SlotAsyncReady *>(data));
-
- try
- {
- auto actual_result = Glib::wrap(result, true);
- (*slot)(actual_result);
- }
- catch (...)
- {
- Glib::exception_handlers_invoke();
- }
- }
-
-} // namespace Adwaita::helpers \ No newline at end of file
diff --git a/adw/src/preferencesdialog.cpp b/adw/src/preferencesdialog.cpp
deleted file mode 100644
index 3d70ed5..0000000
--- a/adw/src/preferencesdialog.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/preferencesdialog.hpp"
-
-#include "adwaitamm/dialog.hpp"
-#include "adwaitamm/preferencespage.hpp"
-#include "adwaitamm/private/preferencesdialog_p.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/wrap.h>
-
-#include <glib-object.h>
-
-namespace Adwaita
-{
- namespace
- {
- auto constinit _class = PreferencesDialog_Class{};
- } // namespace
-
- auto PreferencesDialog::get_type() -> GType
- {
- return _class.init().get_type();
- }
-
- auto PreferencesDialog::get_base_type() -> GType
- {
- return adw_dialog_get_type();
- }
-
- PreferencesDialog::PreferencesDialog(Glib::ConstructParams const & params)
- : Dialog{params}
- {
- }
-
- PreferencesDialog::PreferencesDialog(AdwPreferencesDialog * gobj)
- : Dialog(ADW_DIALOG(gobj))
- {
- }
-
- PreferencesDialog::PreferencesDialog()
- : Glib::ObjectBase{nullptr}
- , Dialog{Glib::ConstructParams{_class.init()}}
- {
- }
-
- auto PreferencesDialog::add(PreferencesPage & page) -> void
- {
- adw_preferences_dialog_add(Glib::unwrap(this), Glib::unwrap(&page));
- }
-
- auto PreferencesDialog::set_visible_page(PreferencesPage & page) -> void
- {
- adw_preferences_dialog_set_visible_page(unwrap(this), Glib::unwrap(&page));
- }
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwPreferencesDialog * object, bool copy) -> Adwaita::PreferencesDialog *
- {
- return dynamic_cast<Adwaita::PreferencesDialog *>(Glib::wrap_auto(G_OBJECT(object), copy));
- }
-} // namespace Glib \ No newline at end of file
diff --git a/adw/src/preferencespage.cpp b/adw/src/preferencespage.cpp
deleted file mode 100644
index 8ad9e8c..0000000
--- a/adw/src/preferencespage.cpp
+++ /dev/null
@@ -1,61 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/preferencespage.hpp"
-
-#include "adwaitamm/private/preferencespage_p.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/wrap.h>
-
-#include <gtkmm/widget.h>
-
-#include <glib-object.h>
-#include <gtk/gtk.h>
-
-namespace Adwaita
-{
- namespace
- {
- auto constinit _class = PreferencesPage_Class{};
- } // namespace
-
- auto PreferencesPage::get_type() -> GType
- {
- return _class.init().get_type();
- }
-
- auto PreferencesPage::get_base_type() -> GType
- {
- return adw_preferences_page_get_type();
- }
-
- PreferencesPage::PreferencesPage(Glib::ConstructParams const & params)
- : Gtk::Widget{params}
- {
- }
-
- PreferencesPage::PreferencesPage(AdwPreferencesPage * gobj)
- : Gtk::Widget(GTK_WIDGET(gobj))
- {
- }
-
- PreferencesPage::PreferencesPage()
- : Glib::ObjectBase{nullptr}
- , Gtk::Widget{Glib::ConstructParams{_class.init()}}
- {
- }
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwPreferencesPage * object, bool copy) -> Adwaita::PreferencesPage *
- {
- return dynamic_cast<Adwaita::PreferencesPage *>(Glib::wrap_auto(G_OBJECT(object), copy));
- }
-} // namespace Glib \ No newline at end of file
diff --git a/adw/src/preferencesrow.cpp b/adw/src/preferencesrow.cpp
deleted file mode 100644
index 898903f..0000000
--- a/adw/src/preferencesrow.cpp
+++ /dev/null
@@ -1,147 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/preferencesrow.hpp"
-
-#include "adwaitamm/private/preferencesrow_p.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/ustring.h>
-#include <glibmm/wrap.h>
-
-#include <gtkmm/listboxrow.h>
-
-#include <glib-object.h>
-#include <gtk/gtk.h>
-
-namespace Adwaita
-{
- namespace
- {
- auto constinit _class = PreferencesRow_Class{};
- } // namespace
-
- auto PreferencesRow::get_type() -> GType
- {
- return _class.init().get_type();
- }
-
- auto PreferencesRow::get_base_type() -> GType
- {
- return adw_preferences_row_get_type();
- }
-
- PreferencesRow::PreferencesRow(Glib::ConstructParams const & params)
- : Gtk::ListBoxRow{params}
- {
- }
-
- PreferencesRow::PreferencesRow(BaseObjectType * gobj)
- : Gtk::ListBoxRow(GTK_LIST_BOX_ROW(gobj))
- {
- }
-
- PreferencesRow::PreferencesRow()
- : Glib::ObjectBase{nullptr}
- , Gtk::ListBoxRow{Glib::ConstructParams{_class.init()}}
- {
- }
-
- auto PreferencesRow::get_title() const -> Glib::ustring
- {
- return adw_preferences_row_get_title(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto PreferencesRow::get_title_selectable() const noexcept -> bool
- {
- return adw_preferences_row_get_title_selectable(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto PreferencesRow::get_use_markup() const noexcept -> bool
- {
- return adw_preferences_row_get_use_markup(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto PreferencesRow::get_use_underline() const noexcept -> bool
- {
- return adw_preferences_row_get_use_underline(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto PreferencesRow::set_title(Glib::ustring const & title) -> CppObjectType &
- {
- adw_preferences_row_set_title(Glib::unwrap(this), title.c_str());
- return *this;
- }
-
- auto PreferencesRow::set_title_selectable(bool selectable) noexcept -> CppObjectType &
- {
- adw_preferences_row_set_title_selectable(Glib::unwrap(this), selectable);
- return *this;
- }
-
- auto PreferencesRow::set_use_markup(bool use) noexcept -> CppObjectType &
- {
- adw_preferences_row_set_use_markup(Glib::unwrap(this), use);
- return *this;
- }
-
- auto PreferencesRow::set_use_underline(bool use) noexcept -> CppObjectType &
- {
- adw_preferences_row_set_use_underline(Glib::unwrap(this), use);
- return *this;
- }
-
- auto PreferencesRow::property_title() -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>{this, "title"};
- }
-
- auto PreferencesRow::property_title() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>{this, "title"};
- }
-
- auto PreferencesRow::property_title_selectable() -> Glib::PropertyProxy<bool>
- {
- return Glib::PropertyProxy<bool>{this, "title-selectable"};
- }
-
- auto PreferencesRow::property_title_selectable() const -> Glib::PropertyProxy_ReadOnly<bool>
- {
- return Glib::PropertyProxy_ReadOnly<bool>{this, "title-selectable"};
- }
-
- auto PreferencesRow::property_use_markup() -> Glib::PropertyProxy<bool>
- {
- return Glib::PropertyProxy<bool>{this, "use-markup"};
- }
-
- auto PreferencesRow::property_use_markup() const -> Glib::PropertyProxy_ReadOnly<bool>
- {
- return Glib::PropertyProxy_ReadOnly<bool>{this, "use-markup"};
- }
-
- auto PreferencesRow::property_use_underline() -> Glib::PropertyProxy<bool>
- {
- return Glib::PropertyProxy<bool>{this, "use-underline"};
- }
-
- auto PreferencesRow::property_use_underline() const -> Glib::PropertyProxy_ReadOnly<bool>
- {
- return Glib::PropertyProxy_ReadOnly<bool>{this, "use-underline"};
- }
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwPreferencesRow * object, bool copy) -> Adwaita::PreferencesRow *
- {
- return dynamic_cast<Adwaita::PreferencesRow *>(Glib::wrap_auto(G_OBJECT(object), copy));
- }
-} // namespace Glib \ No newline at end of file
diff --git a/adw/src/private/aboutdialog_p.cpp b/adw/src/private/aboutdialog_p.cpp
deleted file mode 100644
index ac923a8..0000000
--- a/adw/src/private/aboutdialog_p.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/private/aboutdialog_p.hpp"
-
-#include "adwaitamm/aboutdialog.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/object.h>
-
-#include <adwaita.h>
-
-namespace Adwaita
-{
- auto AboutDialog_Class::init() -> Glib::Class const &
- {
- if (!gtype_)
- {
- class_init_func_ = &class_init_function;
- gtype_ = adw_about_dialog_get_type();
- }
- return *this;
- }
-
- auto AboutDialog_Class::class_init_function(void * gclass, void * data) -> void
- {
- auto const klass = static_cast<BaseClassType *>(gclass);
- CppClassParent::class_init_function(klass, data);
- }
-
- auto AboutDialog_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
- {
- return Gtk::manage(new AboutDialog(ADW_ABOUT_DIALOG(object)));
- }
-} // namespace Adwaita \ No newline at end of file
diff --git a/adw/src/private/actionrow_p.cpp b/adw/src/private/actionrow_p.cpp
deleted file mode 100644
index 9c4e936..0000000
--- a/adw/src/private/actionrow_p.cpp
+++ /dev/null
@@ -1,84 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/private/actionrow_p.hpp"
-
-#include "adwaitamm/actionrow.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/exceptionhandler.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/object.h>
-
-#include <adwaita.h>
-#include <glib-object.h>
-
-namespace Adwaita
-{
- namespace
- {
- namespace vfuncs
- {
- void (*activate_vfunc_ptr)(AdwActionRow *){};
- auto static activate_vfunc_c_callback(AdwActionRow * self)
- {
- activate_vfunc_ptr(self);
- }
- } // namespace vfuncs
- } // namespace
-
- auto ActionRow_Class::init() -> Glib::Class const &
- {
- if (!gtype_)
- {
- class_init_func_ = &class_init_function;
- register_derived_type(adw_action_row_get_type());
- }
- return *this;
- }
-
- auto ActionRow_Class::class_init_function(void * gclass, void * data) -> void
- {
- auto const klass = static_cast<BaseClassType *>(gclass);
- CppClassParent::class_init_function(klass, data);
-
- klass->activate = &vfuncs::activate_vfunc_c_callback;
- vfuncs::activate_vfunc_ptr = &ActionRow_Class::activate_vfunc_callback;
- }
-
- auto ActionRow_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
- {
- return Gtk::manage(new ActionRow(ADW_ACTION_ROW(object)));
- }
-
- auto ActionRow_Class::activate_vfunc_callback(AdwActionRow * self) -> void
- {
- auto base_object = static_cast<Glib::ObjectBase *>(Glib::ObjectBase::_get_current_wrapper(G_OBJECT(self)));
- if (base_object && base_object->is_derived_())
- {
- auto object = dynamic_cast<ActionRow *>(base_object);
- if (object)
- {
- try
- {
- object->activate_vfunc();
- return;
- }
- catch (...)
- {
- Glib::exception_handlers_invoke();
- }
- }
- }
-
- auto base_class = static_cast<BaseClassType *>(g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)));
- if (base_class && base_class->activate)
- {
- (base_class->activate)(self);
- }
- }
-} // namespace Adwaita \ No newline at end of file
diff --git a/adw/src/private/alertdialog_p.cpp b/adw/src/private/alertdialog_p.cpp
deleted file mode 100644
index 51cba24..0000000
--- a/adw/src/private/alertdialog_p.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/private/alertdialog_p.hpp"
-
-#include "adwaitamm/alertdialog.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/object.h>
-
-#include <adwaita.h>
-
-namespace Adwaita
-{
- auto AlertDialog_Class::init() -> Glib::Class const &
- {
- if (!gtype_)
- {
- class_init_func_ = &class_init_function;
- register_derived_type(adw_alert_dialog_get_type());
- }
- return *this;
- }
-
- auto AlertDialog_Class::class_init_function(void * gclass, void * data) -> void
- {
- auto const klass = static_cast<BaseClassType *>(gclass);
- CppClassParent::class_init_function(klass, data);
- }
-
- auto AlertDialog_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
- {
- return Gtk::manage(new AlertDialog(ADW_ALERT_DIALOG(object)));
- }
-} // namespace Adwaita \ No newline at end of file
diff --git a/adw/src/private/application_p.cpp b/adw/src/private/application_p.cpp
deleted file mode 100644
index 5b841a0..0000000
--- a/adw/src/private/application_p.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/private/application_p.hpp"
-
-#include "adwaitamm/application.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/private/application_p.h>
-
-#include <adwaita.h>
-
-namespace Adwaita
-{
- auto Application_Class::init() -> Glib::Class const &
- {
- if (!gtype_)
- {
- class_init_func_ = &class_init_function;
- register_derived_type(adw_application_get_type());
- }
- return *this;
- }
-
- auto Application_Class::class_init_function(void * gclass, void * data) -> void
- {
- auto const klass = static_cast<BaseClassType *>(gclass);
- CppClassParent::class_init_function(klass, data);
- }
-
- auto Application_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
- {
- return new Application(ADW_APPLICATION(object));
- }
-} // namespace Adwaita \ No newline at end of file
diff --git a/adw/src/private/applicationwindow_p.cpp b/adw/src/private/applicationwindow_p.cpp
deleted file mode 100644
index b5d2b19..0000000
--- a/adw/src/private/applicationwindow_p.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/private/applicationwindow_p.hpp"
-
-#include "adwaitamm/applicationwindow.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/private/applicationwindow_p.h>
-
-#include <adwaita.h>
-
-namespace Adwaita
-{
- auto ApplicationWindow_Class::init() -> Glib::Class const &
- {
- if (!gtype_)
- {
- class_init_func_ = &class_init_function;
- register_derived_type(adw_application_window_get_type());
- }
- return *this;
- }
-
- auto ApplicationWindow_Class::class_init_function(void * gclass, void * data) -> void
- {
- auto const klass = static_cast<BaseClassType *>(gclass);
- CppClassParent::class_init_function(klass, data);
- }
-
- auto ApplicationWindow_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
- {
- return new ApplicationWindow(ADW_APPLICATION_WINDOW(object));
- }
-} // namespace Adwaita \ No newline at end of file
diff --git a/adw/src/private/breakpoint_p.cpp b/adw/src/private/breakpoint_p.cpp
deleted file mode 100644
index ed3dda6..0000000
--- a/adw/src/private/breakpoint_p.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/private/breakpoint_p.hpp"
-
-#include "adwaitamm/breakpoint.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/private/object_p.h>
-
-#include <gtkmm/buildable.h>
-
-#include <adwaita.h>
-
-namespace Adwaita
-{
- auto Breakpoint_Class::init() -> Glib::Class const &
- {
- if (!gtype_)
- {
- class_init_func_ = &class_init_function;
- gtype_ = adw_breakpoint_get_type();
- Gtk::Buildable::add_interface(get_type());
- }
- return *this;
- }
-
- auto Breakpoint_Class::class_init_function(void * gclass, void * data) -> void
- {
- auto const klass = static_cast<BaseClassType *>(gclass);
- CppClassParent::class_init_function(klass, data);
- }
-
- auto Breakpoint_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
- {
- return new Breakpoint(ADW_BREAKPOINT(object));
- }
-} // namespace Adwaita \ No newline at end of file
diff --git a/adw/src/private/comborow_p.cpp b/adw/src/private/comborow_p.cpp
deleted file mode 100644
index 4277db2..0000000
--- a/adw/src/private/comborow_p.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/private/comborow_p.hpp"
-
-#include "adwaitamm/comborow.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/object.h>
-
-#include <adwaita.h>
-
-namespace Adwaita
-{
- auto ComboRow_Class::init() -> Glib::Class const &
- {
- if (!gtype_)
- {
- class_init_func_ = &class_init_function;
- register_derived_type(adw_combo_row_get_type());
- }
- return *this;
- }
-
- auto ComboRow_Class::class_init_function(void * gclass, void * data) -> void
- {
- auto const klass = static_cast<BaseClassType *>(gclass);
- CppClassParent::class_init_function(klass, data);
- }
-
- auto ComboRow_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
- {
- return Gtk::manage(new ComboRow(ADW_COMBO_ROW(object)));
- }
-} // namespace Adwaita \ No newline at end of file
diff --git a/adw/src/private/dialog_p.cpp b/adw/src/private/dialog_p.cpp
deleted file mode 100644
index 7af615a..0000000
--- a/adw/src/private/dialog_p.cpp
+++ /dev/null
@@ -1,101 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/private/dialog_p.hpp"
-
-#include "adwaitamm/dialog.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/exceptionhandler.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/object.h>
-#include <gtkmm/private/widget_p.h>
-#include <gtkmm/shortcutmanager.h>
-
-#include <adwaita.h>
-#include <glib-object.h>
-
-namespace Adwaita
-{
-
- auto Dialog_Class::init() -> Glib::Class const &
- {
- if (!gtype_)
- {
- class_init_func_ = &class_init_function;
- register_derived_type(adw_dialog_get_type());
- Gtk::ShortcutManager::add_interface(get_type());
- }
- return *this;
- }
-
- auto Dialog_Class::class_init_function(void * gclass, void * data) -> void
- {
- auto const klass = static_cast<BaseClassType *>(gclass);
- CppClassParent::class_init_function(klass, data);
-
- klass->close_attempt = &close_attempt;
- klass->closed = &closed;
- }
-
- auto Dialog_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
- {
- return Gtk::manage(new Dialog(ADW_DIALOG(object)));
- }
-
- auto Dialog_Class::close_attempt(BaseObjectType * self) -> void
- {
- auto base_object = static_cast<Glib::ObjectBase *>(Glib::ObjectBase::_get_current_wrapper(G_OBJECT(self)));
- if (base_object && base_object->is_derived_())
- {
- auto object = dynamic_cast<CppObjectType *>(base_object);
- if (object)
- {
- try
- {
- return object->on_close_attempt();
- }
- catch (...)
- {
- Glib::exception_handlers_invoke();
- }
- }
- }
-
- auto base_class = static_cast<BaseClassType *>(g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)));
- if (base_class && base_class->close_attempt)
- {
- return (base_class->close_attempt)(self);
- }
- }
-
- auto Dialog_Class::closed(BaseObjectType * self) -> void
- {
- auto base_object = static_cast<Glib::ObjectBase *>(Glib::ObjectBase::_get_current_wrapper(G_OBJECT(self)));
- if (base_object && base_object->is_derived_())
- {
- auto object = dynamic_cast<CppObjectType *>(base_object);
- if (object)
- {
- try
- {
- return object->on_closed();
- }
- catch (...)
- {
- Glib::exception_handlers_invoke();
- }
- }
- }
-
- auto base_class = static_cast<BaseClassType *>(g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)));
- if (base_class && base_class->closed)
- {
- return (base_class->closed)(self);
- }
- }
-} // namespace Adwaita \ No newline at end of file
diff --git a/adw/src/private/entryrow_p.cpp b/adw/src/private/entryrow_p.cpp
deleted file mode 100644
index 8f1274a..0000000
--- a/adw/src/private/entryrow_p.cpp
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/private/entryrow_p.hpp"
-
-#include "adwaitamm/entryrow.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/editable.h>
-#include <gtkmm/object.h>
-
-#include <adwaita.h>
-#include <gtk/gtk.h>
-
-namespace Adwaita
-{
- auto EntryRow_Class::init() -> Glib::Class const &
- {
- if (!gtype_)
- {
- class_init_func_ = &class_init_function;
- register_derived_type(adw_entry_row_get_type());
- Gtk::Editable::add_interface(get_type());
- }
- return *this;
- }
-
- auto EntryRow_Class::class_init_function(void * gclass, void * data) -> void
- {
- auto const klass = static_cast<BaseClassType *>(gclass);
- CppClassParent::class_init_function(klass, data);
- }
-
- auto EntryRow_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
- {
- return Gtk::manage(new EntryRow(ADW_ENTRY_ROW(object)));
- }
-} // namespace Adwaita \ No newline at end of file
diff --git a/adw/src/private/preferencesdialog_p.cpp b/adw/src/private/preferencesdialog_p.cpp
deleted file mode 100644
index 14e1aa7..0000000
--- a/adw/src/private/preferencesdialog_p.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/private/preferencesdialog_p.hpp"
-
-#include "adwaitamm/preferencesdialog.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/object.h>
-
-#include <adwaita.h>
-
-namespace Adwaita
-{
- auto PreferencesDialog_Class::init() -> Glib::Class const &
- {
- if (!gtype_)
- {
- class_init_func_ = &class_init_function;
- register_derived_type(adw_preferences_dialog_get_type());
- }
- return *this;
- }
-
- auto PreferencesDialog_Class::class_init_function(void * gclass, void * data) -> void
- {
- auto const klass = static_cast<BaseClassType *>(gclass);
- CppClassParent::class_init_function(klass, data);
- }
-
- auto PreferencesDialog_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
- {
- return Gtk::manage(new PreferencesDialog(ADW_PREFERENCES_DIALOG(object)));
- }
-} // namespace Adwaita \ No newline at end of file
diff --git a/adw/src/private/preferencespage_p.cpp b/adw/src/private/preferencespage_p.cpp
deleted file mode 100644
index 0a7cd74..0000000
--- a/adw/src/private/preferencespage_p.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/private/preferencespage_p.hpp"
-
-#include "adwaitamm/preferencespage.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/object.h>
-#include <gtkmm/private/widget_p.h>
-
-#include <adwaita.h>
-
-namespace Adwaita
-{
- auto PreferencesPage_Class::init() -> Glib::Class const &
- {
- if (!gtype_)
- {
- class_init_func_ = &class_init_function;
- register_derived_type(adw_preferences_page_get_type());
- }
- return *this;
- }
-
- auto PreferencesPage_Class::class_init_function(void * gclass, void * data) -> void
- {
- auto const klass = static_cast<BaseClassType *>(gclass);
- CppClassParent::class_init_function(klass, data);
- }
-
- auto PreferencesPage_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
- {
- return Gtk::manage(new PreferencesPage(ADW_PREFERENCES_PAGE(object)));
- }
-} // namespace Adwaita \ No newline at end of file
diff --git a/adw/src/private/preferencesrow_p.cpp b/adw/src/private/preferencesrow_p.cpp
deleted file mode 100644
index 5823d7e..0000000
--- a/adw/src/private/preferencesrow_p.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/private/preferencesrow_p.hpp"
-
-#include "adwaitamm/preferencesrow.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/object.h>
-#include <gtkmm/private/listboxrow_p.h>
-
-#include <adwaita.h>
-
-namespace Adwaita
-{
- auto PreferencesRow_Class::init() -> Glib::Class const &
- {
- if (!gtype_)
- {
- class_init_func_ = &class_init_function;
- register_derived_type(adw_preferences_row_get_type());
- }
- return *this;
- }
-
- auto PreferencesRow_Class::class_init_function(void * gclass, void * data) -> void
- {
- auto const klass = static_cast<BaseClassType *>(gclass);
- CppClassParent::class_init_function(klass, data);
- }
-
- auto PreferencesRow_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
- {
- return Gtk::manage(new PreferencesRow(ADW_PREFERENCES_ROW(object)));
- }
-} // namespace Adwaita \ No newline at end of file
diff --git a/adw/src/private/spinrow_p.cpp b/adw/src/private/spinrow_p.cpp
deleted file mode 100644
index 1d4d2ca..0000000
--- a/adw/src/private/spinrow_p.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/private/spinrow_p.hpp"
-
-#include "adwaitamm/spinrow.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/object.h>
-
-#include <adwaita.h>
-
-namespace Adwaita
-{
- auto SpinRow_Class::init() -> Glib::Class const &
- {
- if (!gtype_)
- {
- class_init_func_ = &class_init_function;
- gtype_ = adw_spin_row_get_type();
- }
- return *this;
- }
-
- auto SpinRow_Class::class_init_function(void * gclass, void * data) -> void
- {
- auto const klass = static_cast<BaseClassType *>(gclass);
- CppClassParent::class_init_function(klass, data);
- }
-
- auto SpinRow_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
- {
- return Gtk::manage(new SpinRow(ADW_SPIN_ROW(object)));
- }
-} // namespace Adwaita \ No newline at end of file
diff --git a/adw/src/private/stylemanager_p.cpp b/adw/src/private/stylemanager_p.cpp
deleted file mode 100644
index 336444a..0000000
--- a/adw/src/private/stylemanager_p.cpp
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/private/stylemanager_p.hpp"
-
-#include "adwaitamm/stylemanager.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/private/object_p.h>
-
-#include <adwaita.h>
-
-namespace Adwaita
-{
- auto StyleManager_Class::init() -> Glib::Class const &
- {
- if (!gtype_)
- {
- class_init_func_ = &class_init_function;
- gtype_ = adw_style_manager_get_type();
- }
- return *this;
- }
-
- auto StyleManager_Class::class_init_function(void * gclass, void * data) -> void
- {
- auto const klass = static_cast<BaseClassType *>(gclass);
- CppClassParent::class_init_function(klass, data);
- }
-
- auto StyleManager_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
- {
- return new StyleManager(ADW_STYLE_MANAGER(object));
- }
-} // namespace Adwaita \ No newline at end of file
diff --git a/adw/src/private/switchrow_p.cpp b/adw/src/private/switchrow_p.cpp
deleted file mode 100644
index 0f071c4..0000000
--- a/adw/src/private/switchrow_p.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/private/switchrow_p.hpp"
-
-#include "adwaitamm/switchrow.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/object.h>
-
-#include <adwaita.h>
-
-namespace Adwaita
-{
- auto SwitchRow_Class::init() -> Glib::Class const &
- {
- if (!gtype_)
- {
- class_init_func_ = &class_init_function;
- gtype_ = adw_switch_row_get_type();
- }
- return *this;
- }
-
- auto SwitchRow_Class::class_init_function(void * gclass, void * data) -> void
- {
- auto const klass = static_cast<BaseClassType *>(gclass);
- CppClassParent::class_init_function(klass, data);
- }
-
- auto SwitchRow_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
- {
- return Gtk::manage(new SwitchRow(ADW_SWITCH_ROW(object)));
- }
-} // namespace Adwaita \ No newline at end of file
diff --git a/adw/src/private/toast_p.cpp b/adw/src/private/toast_p.cpp
deleted file mode 100644
index e83bc10..0000000
--- a/adw/src/private/toast_p.cpp
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/private/toast_p.hpp"
-
-#include "adwaitamm/toast.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/private/object_p.h>
-
-#include <adwaita.h>
-
-namespace Adwaita
-{
- auto Toast_Class::init() -> Glib::Class const &
- {
- if (!gtype_)
- {
- class_init_func_ = &class_init_function;
- gtype_ = adw_toast_get_type();
- }
- return *this;
- }
-
- auto Toast_Class::class_init_function(void * gclass, void * data) -> void
- {
- auto const klass = static_cast<BaseClassType *>(gclass);
- CppClassParent::class_init_function(klass, data);
- }
-
- auto Toast_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
- {
- return new Toast(ADW_TOAST(object));
- }
-} // namespace Adwaita \ No newline at end of file
diff --git a/adw/src/private/toastoverlay_p.cpp b/adw/src/private/toastoverlay_p.cpp
deleted file mode 100644
index 3834a1e..0000000
--- a/adw/src/private/toastoverlay_p.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/private/toastoverlay_p.hpp"
-
-#include "adwaitamm/toastoverlay.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/object.h>
-#include <gtkmm/private/widget_p.h>
-#include <gtkmm/shortcutmanager.h>
-
-#include <adwaita.h>
-
-namespace Adwaita
-{
- auto ToastOverlay_Class::init() -> Glib::Class const &
- {
- if (!gtype_)
- {
- class_init_func_ = &class_init_function;
- register_derived_type(adw_toast_overlay_get_type());
- }
- return *this;
- }
-
- auto ToastOverlay_Class::class_init_function(void * gclass, void * data) -> void
- {
- auto const klass = static_cast<BaseClassType *>(gclass);
- CppClassParent::class_init_function(klass, data);
- }
-
- auto ToastOverlay_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
- {
- return Gtk::manage(new ToastOverlay(ADW_TOAST_OVERLAY(object)));
- }
-} // namespace Adwaita \ No newline at end of file
diff --git a/adw/src/private/windowtitle_p.cpp b/adw/src/private/windowtitle_p.cpp
deleted file mode 100644
index 77f92d8..0000000
--- a/adw/src/private/windowtitle_p.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/private/windowtitle_p.hpp"
-
-#include "adwaitamm/windowtitle.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/object.h>
-#include <gtkmm/private/widget_p.h>
-
-namespace Adwaita
-{
-
- auto WindowTitle_Class::init() -> Glib::Class const &
- {
- if (!gtype_)
- {
- class_init_func_ = &class_init_function;
- gtype_ = adw_window_title_get_type();
- }
- return *this;
- }
-
- auto WindowTitle_Class::class_init_function(void * gclass, void * data) -> void
- {
- auto const klass = static_cast<BaseClassType *>(gclass);
- CppClassParent::class_init_function(klass, data);
- }
-
- auto WindowTitle_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
- {
- return Gtk::manage(new WindowTitle(ADW_WINDOW_TITLE(object)));
- }
-
-} // namespace Adwaita \ No newline at end of file
diff --git a/adw/src/spinrow.cpp b/adw/src/spinrow.cpp
deleted file mode 100644
index 0f86ca0..0000000
--- a/adw/src/spinrow.cpp
+++ /dev/null
@@ -1,383 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/spinrow.hpp"
-
-#include "adwaitamm/actionrow.hpp"
-#include "adwaitamm/private/spinrow_p.hpp"
-
-#include <sigc++/functors/slot.h>
-
-#include <glibmm/exceptionhandler.h>
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/refptr.h>
-#include <glibmm/signalproxy.h>
-#include <glibmm/wrap.h>
-
-#include <gtkmm/adjustment.h>
-#include <gtkmm/spinbutton.h>
-
-#include <glib-object.h>
-#include <glib.h>
-#include <gtk/gtk.h>
-
-namespace Adwaita
-{
- namespace
- {
- auto constinit _class = SpinRow_Class{};
-
- namespace property_name
- {
- auto constexpr adjustment = "adjustment";
- auto constexpr climb_rate = "climb-rate";
- auto constexpr digits = "digits";
- auto constexpr numeric = "numeric";
- auto constexpr snap_to_ticks = "snap-to-ticks";
- auto constexpr update_policy = "update-policy";
- auto constexpr value = "value";
- auto constexpr wrap = "wrap";
- } // namespace property_name
-
- namespace signal_handler
- {
- auto input(AdwSpinRow * self, double * new_value, void * user_data) -> int
- try
- {
- auto object = Glib::wrap(self);
- if (object)
- {
- auto slot = Glib::SignalProxyNormal::data_to_slot(user_data);
- if (slot)
- {
- return (*static_cast<sigc::slot<int(double &)> *>(slot))(*new_value);
- }
- }
- return {};
- }
- catch (...)
- {
- Glib::exception_handlers_invoke();
- return {};
- }
-
- auto input_notify(AdwSpinRow * self, double * new_value, void * user_data) -> gboolean
- try
- {
- auto object = Glib::wrap(self);
- if (object)
- {
- auto slot = Glib::SignalProxyNormal::data_to_slot(user_data);
- if (slot)
- {
- (*static_cast<sigc::slot<int(double &)> *>(slot))(*new_value);
- }
- }
- return {};
- }
- catch (...)
- {
- Glib::exception_handlers_invoke();
- return {};
- }
-
- auto output(AdwSpinRow * self, void * user_data) -> gboolean
- try
- {
- auto object = Glib::wrap(self);
- if (object)
- {
- auto slot = Glib::SignalProxyNormal::data_to_slot(user_data);
- if (slot)
- {
- return static_cast<gboolean>((*static_cast<sigc::slot<bool()> *>(slot))());
- }
- }
- return {};
- }
- catch (...)
- {
- Glib::exception_handlers_invoke();
- return {};
- }
-
- auto output_notify(AdwSpinRow * self, void * user_data) -> gboolean
- try
- {
- auto object = Glib::wrap(self);
- if (object)
- {
- auto slot = Glib::SignalProxyNormal::data_to_slot(user_data);
- if (slot)
- {
- (*static_cast<sigc::slot<bool()> *>(slot))();
- }
- }
- return {};
- }
- catch (...)
- {
- Glib::exception_handlers_invoke();
- return {};
- }
- } // namespace signal_handler
-
- namespace signal_info
- {
- auto const input = Glib::SignalProxyInfo{
- "input",
- reinterpret_cast<GCallback>(&signal_handler::input),
- reinterpret_cast<GCallback>(&signal_handler::input_notify),
- };
-
- auto const output = Glib::SignalProxyInfo{
- "output",
- reinterpret_cast<GCallback>(&signal_handler::output),
- reinterpret_cast<GCallback>(&signal_handler::output_notify),
- };
-
- auto const wrapped = Glib::SignalProxyInfo{
- "wrapped",
- reinterpret_cast<GCallback>(&Glib::SignalProxyNormal::slot0_void_callback),
- reinterpret_cast<GCallback>(&Glib::SignalProxyNormal::slot0_void_callback),
- };
- } // namespace signal_info
- } // namespace
-
- SpinRow::SpinRow(Gtk::Adjustment & adjustment, double climb_rate, unsigned int digits)
- : Glib::ObjectBase{nullptr}
- , ActionRow{Glib::ConstructParams{_class.init(), "adjustment", unwrap(&adjustment), "climb-rate", climb_rate, "digits", digits, nullptr}}
- {
- }
-
- SpinRow::SpinRow(double min, double max, double step)
- : Glib::ObjectBase{nullptr}
- , ActionRow{ADW_ACTION_ROW(adw_spin_row_new_with_range(min, max, step))}
- {
- }
-
- auto SpinRow::get_type() -> GType
- {
- return _class.init().get_type();
- }
-
- auto SpinRow::get_base_type() -> GType
- {
- return adw_spin_row_get_type();
- }
-
- auto SpinRow::configure(Gtk::Adjustment & adjustment, double climb_rate, unsigned int digits) -> void
- {
- return adw_spin_row_configure(unwrap(this), unwrap(&adjustment), climb_rate, digits);
- }
-
- auto SpinRow::update() -> void
- {
- return adw_spin_row_update(unwrap(this));
- }
-
- auto SpinRow::get_adjustment() const -> Glib::RefPtr<Gtk::Adjustment>
- {
- // Take a copy, since SpinRow owns the adjustment
- return Glib::wrap(adw_spin_row_get_adjustment(const_cast<BaseObjectType *>(unwrap(this))), true);
- }
-
- auto SpinRow::get_climb_rate() const -> double
- {
- return adw_spin_row_get_climb_rate(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto SpinRow::get_digits() const -> unsigned int
- {
- return adw_spin_row_get_digits(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto SpinRow::get_numeric() const -> bool
- {
- return adw_spin_row_get_numeric(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto SpinRow::get_snap_to_ticks() const -> bool
- {
- return adw_spin_row_get_snap_to_ticks(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto SpinRow::get_update_policy() const -> Gtk::SpinButton::UpdatePolicy
- {
- return static_cast<Gtk::SpinButton::UpdatePolicy>(adw_spin_row_get_update_policy(const_cast<BaseObjectType *>(unwrap(this))));
- }
-
- auto SpinRow::get_value() const -> double
- {
- return adw_spin_row_get_value(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto SpinRow::get_wrap() const -> bool
- {
- return adw_spin_row_get_wrap(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto SpinRow::set_adjustment(Gtk::Adjustment & value) -> void
- {
- return adw_spin_row_set_adjustment(unwrap(this), unwrap(&value));
- }
-
- auto SpinRow::set_climb_rate(double value) -> void
- {
- return adw_spin_row_set_climb_rate(unwrap(this), value);
- }
-
- auto SpinRow::set_digits(unsigned int value) -> void
- {
- return adw_spin_row_set_digits(unwrap(this), value);
- }
-
- auto SpinRow::set_numeric(bool value) -> void
- {
- return adw_spin_row_set_numeric(unwrap(this), value);
- }
-
- auto SpinRow::set_range(double min, double max) -> void
- {
- return adw_spin_row_set_range(unwrap(this), min, max);
- }
-
- auto SpinRow::set_snap_to_ticks(bool value) -> void
- {
- return adw_spin_row_set_snap_to_ticks(unwrap(this), value);
- }
-
- auto SpinRow::set_update_policy(Gtk::SpinButton::UpdatePolicy value) -> void
- {
- return adw_spin_row_set_update_policy(unwrap(this), static_cast<GtkSpinButtonUpdatePolicy>(value));
- }
-
- auto SpinRow::set_value(double value) -> void
- {
- return adw_spin_row_set_value(unwrap(this), value);
- }
-
- auto SpinRow::set_wrap(bool value) -> void
- {
- return adw_spin_row_set_wrap(unwrap(this), value);
- }
-
- [[nodiscard]] auto SpinRow::property_adjustment() -> Glib::PropertyProxy<Glib::RefPtr<Gtk::Adjustment>>
- {
- return {this, property_name::adjustment};
- }
-
- [[nodiscard]] auto SpinRow::property_adjustment() const -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Gtk::Adjustment>>
- {
- return {this, property_name::adjustment};
- }
-
- [[nodiscard]] auto SpinRow::property_climb_rate() -> Glib::PropertyProxy<double>
- {
- return {this, property_name::climb_rate};
- }
-
- [[nodiscard]] auto SpinRow::property_climb_rate() const -> Glib::PropertyProxy_ReadOnly<double>
- {
- return {this, property_name::climb_rate};
- }
-
- [[nodiscard]] auto SpinRow::property_digits() -> Glib::PropertyProxy<unsigned int>
- {
- return {this, property_name::digits};
- }
-
- [[nodiscard]] auto SpinRow::property_digits() const -> Glib::PropertyProxy_ReadOnly<unsigned int>
- {
- return {this, property_name::digits};
- }
-
- [[nodiscard]] auto SpinRow::property_numeric() -> Glib::PropertyProxy<bool>
- {
- return {this, property_name::numeric};
- }
-
- [[nodiscard]] auto SpinRow::property_numeric() const -> Glib::PropertyProxy_ReadOnly<bool>
- {
- return {this, property_name::numeric};
- }
-
- [[nodiscard]] auto SpinRow::property_snap_to_ticks() -> Glib::PropertyProxy<bool>
- {
- return {this, property_name::snap_to_ticks};
- }
-
- [[nodiscard]] auto SpinRow::property_snap_to_ticks() const -> Glib::PropertyProxy_ReadOnly<bool>
- {
- return {this, property_name::snap_to_ticks};
- }
-
- [[nodiscard]] auto SpinRow::property_update_policy() -> Glib::PropertyProxy<Gtk::SpinButton::UpdatePolicy>
- {
- return {this, property_name::update_policy};
- }
-
- [[nodiscard]] auto SpinRow::property_update_policy() const -> Glib::PropertyProxy_ReadOnly<Gtk::SpinButton::UpdatePolicy>
- {
- return {this, property_name::update_policy};
- }
-
- [[nodiscard]] auto SpinRow::property_value() -> Glib::PropertyProxy<double>
- {
- return {this, property_name::value};
- }
-
- [[nodiscard]] auto SpinRow::property_value() const -> Glib::PropertyProxy_ReadOnly<double>
- {
- return {this, property_name::value};
- }
-
- [[nodiscard]] auto SpinRow::property_wrap() -> Glib::PropertyProxy<bool>
- {
- return {this, property_name::wrap};
- }
-
- [[nodiscard]] auto SpinRow::property_wrap() const -> Glib::PropertyProxy_ReadOnly<bool>
- {
- return {this, property_name::wrap};
- }
-
- auto SpinRow::signal_input() -> Glib::SignalProxy<int(double &)>
- {
- return {this, &signal_info::input};
- }
-
- auto SpinRow::signal_output() -> Glib::SignalProxy<bool()>
- {
- return {this, &signal_info::output};
- }
-
- auto SpinRow::signal_wrapped() -> Glib::SignalProxy<void()>
- {
- return {this, &signal_info::wrapped};
- }
-
- SpinRow::SpinRow(Glib::ConstructParams const & params)
- : ActionRow{params}
- {
- }
-
- SpinRow::SpinRow(BaseObjectType * gobj)
- : ActionRow(ADW_ACTION_ROW(gobj))
- {
- }
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwSpinRow * object, bool copy) -> Adwaita::SpinRow *
- {
- return dynamic_cast<Adwaita::SpinRow *>(Glib::wrap_auto(G_OBJECT(object), copy));
- }
-} // namespace Glib \ No newline at end of file
diff --git a/adw/src/stylemanager.cpp b/adw/src/stylemanager.cpp
deleted file mode 100644
index c79bcbc..0000000
--- a/adw/src/stylemanager.cpp
+++ /dev/null
@@ -1,131 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/stylemanager.hpp"
-
-#include "adwaitamm/enums.hpp"
-#include "adwaitamm/private/stylemanager_p.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/refptr.h>
-#include <glibmm/ustring.h>
-#include <glibmm/wrap.h>
-
-#include <gdkmm/display.h>
-#include <gdkmm/rgba.h>
-
-#include <adwaita.h>
-#include <glib-object.h>
-
-namespace Adwaita
-{
- namespace
- {
- auto constinit _class = StyleManager_Class{};
- } // namespace
-
- auto StyleManager::get_default() -> StyleManager *
- {
- return Glib::wrap(adw_style_manager_get_default());
- }
-
- auto StyleManager::for_display(Gdk::Display & display) -> StyleManager *
- {
- return Glib::wrap(adw_style_manager_get_for_display(Glib::unwrap(&display)));
- }
-
- auto StyleManager::get_type() -> GType
- {
- return _class.init().get_type();
- }
-
- auto StyleManager::get_base_type() -> GType
- {
- return adw_style_manager_get_type();
- }
-
- StyleManager::StyleManager(Glib::ConstructParams const & params)
- : Glib::Object{params}
- {
- }
-
- StyleManager::StyleManager(BaseObjectType * gobj)
- : Glib::Object(G_OBJECT(gobj))
- {
- }
-
- StyleManager::StyleManager()
- : Glib::ObjectBase{nullptr}
- , Glib::Object{Glib::ConstructParams{_class.init()}}
- {
- adw_init();
- }
-
- auto StyleManager::get_accent_color() const -> AccentColor
- {
- return static_cast<AccentColor>(adw_style_manager_get_accent_color(const_cast<BaseObjectType *>(unwrap(this))));
- }
-
- auto StyleManager::get_accent_color_rgba() const -> Gdk::RGBA
- {
- return Glib::wrap(adw_style_manager_get_accent_color_rgba(const_cast<BaseObjectType *>(unwrap(this))));
- }
-
- auto StyleManager::get_color_scheme() const -> ColorScheme
- {
- return static_cast<ColorScheme>(adw_style_manager_get_color_scheme(const_cast<BaseObjectType *>(unwrap(this))));
- }
-
- auto StyleManager::get_dark() const -> bool
- {
- return adw_style_manager_get_dark(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto StyleManager::get_display() const -> Glib::RefPtr<Gdk::Display>
- {
- return Glib::wrap(adw_style_manager_get_display(const_cast<BaseObjectType *>(unwrap(this))));
- }
-
- auto StyleManager::get_document_font_name() const -> Glib::ustring
- {
- return adw_style_manager_get_document_font_name(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto StyleManager::get_high_contrast() const -> bool
- {
- return adw_style_manager_get_high_contrast(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto StyleManager::get_monospace_font_name() const -> Glib::ustring
- {
- return adw_style_manager_get_monospace_font_name(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto StyleManager::get_system_supports_accent_colors() const -> bool
- {
- return adw_style_manager_get_system_supports_accent_colors(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto StyleManager::get_system_supports_color_schemes() const -> bool
- {
- return adw_style_manager_get_system_supports_color_schemes(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto StyleManager::set_color_scheme(ColorScheme value) -> void
- {
- adw_style_manager_set_color_scheme(unwrap(this), static_cast<AdwColorScheme>(value));
- }
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwStyleManager * object) -> Adwaita::StyleManager *
- {
- return dynamic_cast<Adwaita::StyleManager *>(Glib::wrap_auto(G_OBJECT(object)));
- }
-} // namespace Glib \ No newline at end of file
diff --git a/adw/src/switchrow.cpp b/adw/src/switchrow.cpp
deleted file mode 100644
index e620ee6..0000000
--- a/adw/src/switchrow.cpp
+++ /dev/null
@@ -1,80 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/switchrow.hpp"
-
-#include "adwaitamm/actionrow.hpp"
-#include "adwaitamm/private/switchrow_p.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/wrap.h>
-
-#include <glib-object.h>
-
-namespace Adwaita
-{
- namespace
- {
- auto constinit _class = SwitchRow_Class{};
- } // namespace
-
- SwitchRow::SwitchRow()
- : Glib::ObjectBase{nullptr}
- , ActionRow{Glib::ConstructParams{_class.init()}}
- {
- }
-
- auto SwitchRow::get_type() -> GType
- {
- return _class.init().get_type();
- }
-
- auto SwitchRow::get_base_type() -> GType
- {
- return adw_switch_row_get_type();
- }
-
- SwitchRow::SwitchRow(Glib::ConstructParams const & params)
- : ActionRow{params}
- {
- }
-
- SwitchRow::SwitchRow(BaseObjectType * gobj)
- : ActionRow(ADW_ACTION_ROW(gobj))
- {
- }
-
- auto SwitchRow::get_active() const noexcept -> bool
- {
- return adw_switch_row_get_active(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto SwitchRow::set_active(bool value) noexcept -> void
- {
- adw_switch_row_set_active(unwrap(this), value);
- }
-
- auto SwitchRow::property_active() -> Glib::PropertyProxy<bool>
- {
- return Glib::PropertyProxy<bool>{this, "active"};
- }
-
- auto SwitchRow::property_active() const -> Glib::PropertyProxy_ReadOnly<bool>
- {
- return Glib::PropertyProxy_ReadOnly<bool>{this, "active"};
- }
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwSwitchRow * object, bool copy) -> Adwaita::SwitchRow *
- {
- return dynamic_cast<Adwaita::SwitchRow *>(Glib::wrap_auto(G_OBJECT(object), copy));
- }
-} // namespace Glib \ No newline at end of file
diff --git a/adw/src/toast.cpp b/adw/src/toast.cpp
deleted file mode 100644
index 0a95b09..0000000
--- a/adw/src/toast.cpp
+++ /dev/null
@@ -1,262 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/toast.hpp"
-
-#include "adwaitamm/enums.hpp"
-#include "adwaitamm/private/toast_p.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/refptr.h>
-#include <glibmm/signalproxy.h>
-#include <glibmm/ustring.h>
-#include <glibmm/utility.h>
-#include <glibmm/variant.h>
-#include <glibmm/wrap.h>
-
-#include <gtkmm/widget.h>
-
-#include <glib-object.h>
-#include <glib.h>
-
-namespace Adwaita
-{
- namespace
- {
- auto constinit _class = Toast_Class{};
-
- static const Glib::SignalProxyInfo Toast_signal_button_clicked_info = {"button-clicked",
- (GCallback)&Glib::SignalProxyNormal::slot0_void_callback,
- (GCallback)&Glib::SignalProxyNormal::slot0_void_callback};
-
- static const Glib::SignalProxyInfo Toast_signal_dismissed_info = {"dismissed",
- (GCallback)&Glib::SignalProxyNormal::slot0_void_callback,
- (GCallback)&Glib::SignalProxyNormal::slot0_void_callback};
-
- } // namespace
-
- Toast::Toast(Glib::ustring const & title)
- : Glib::ObjectBase{nullptr}
- , Glib::Object{Glib::ConstructParams{_class.init(), "title", Glib::c_str_or_nullptr(title), nullptr}}
- {
- }
-
- Toast::Toast(Glib::ConstructParams const & params)
- : Glib::Object{params}
- {
- }
-
- Toast::Toast(BaseObjectType * gobj)
- : Glib::Object((GObject *)gobj)
- {
- }
-
- auto Toast::create(Glib::ustring const & title) -> Glib::RefPtr<Toast>
- {
- return Glib::make_refptr_for_instance(new Toast{title});
- }
-
- auto Toast::get_type() -> GType
- {
- return _class.init().get_type();
- }
-
- auto Toast::get_base_type() -> GType
- {
- return adw_toast_get_type();
- }
-
- auto Toast::dismiss() -> void
- {
- return adw_toast_dismiss(gobj());
- }
-
- auto Toast::get_action_name() const -> Glib::ustring
- {
- return adw_toast_get_action_name(const_cast<BaseObjectType *>(Glib::unwrap(this)));
- }
-
- auto Toast::get_action_target_value() const -> Glib::VariantBase
- {
- // Take a copy because the value is owned by the toast.
- return Glib::wrap(adw_toast_get_action_target_value(const_cast<BaseObjectType *>(Glib::unwrap(this))), true);
- }
-
- auto Toast::get_button_label() const -> Glib::ustring
- {
- return adw_toast_get_button_label(const_cast<BaseObjectType *>(Glib::unwrap(this)));
- }
-
- auto Toast::get_custom_title() const -> Gtk::Widget *
- {
- return Glib::wrap(adw_toast_get_custom_title(const_cast<BaseObjectType *>(Glib::unwrap(this))));
- }
-
- auto Toast::get_priority() const -> ToastPriority
- {
- return static_cast<ToastPriority>(adw_toast_get_priority(const_cast<BaseObjectType *>(Glib::unwrap(this))));
- }
-
- auto Toast::get_timeout() const -> unsigned
- {
- return adw_toast_get_timeout(const_cast<BaseObjectType *>(Glib::unwrap(this)));
- }
-
- auto Toast::get_title() const -> Glib::ustring
- {
- return adw_toast_get_title(const_cast<BaseObjectType *>(Glib::unwrap(this)));
- }
-
- auto Toast::get_use_markup() const -> bool
- {
- return adw_toast_get_use_markup(const_cast<BaseObjectType *>(Glib::unwrap(this)));
- }
-
- auto Toast::set_action_name(Glib::ustring value) -> void
- {
- adw_toast_set_action_name(Glib::unwrap(this), Glib::c_str_or_nullptr(value));
- }
-
- auto Toast::set_action_target_value(Glib::VariantBase const & value) -> void
- {
- adw_toast_set_action_target_value(Glib::unwrap(this), const_cast<GVariant *>(Glib::unwrap(&value)));
- }
-
- auto Toast::set_button_label(Glib::ustring value) -> void
- {
- adw_toast_set_button_label(Glib::unwrap(this), Glib::c_str_or_nullptr(value));
- }
-
- auto Toast::set_custom_title(Gtk::Widget * value) -> void
- {
- adw_toast_set_custom_title(Glib::unwrap(this), Glib::unwrap(value));
- }
-
- auto Toast::set_detailed_action_name(Glib::ustring value) -> void
- {
- adw_toast_set_detailed_action_name(Glib::unwrap(this), Glib::c_str_or_nullptr(value));
- }
-
- auto Toast::set_priority(ToastPriority value) -> void
- {
- adw_toast_set_priority(Glib::unwrap(this), static_cast<AdwToastPriority>(value));
- }
-
- auto Toast::set_timeout(unsigned value) -> void
- {
- adw_toast_set_timeout(Glib::unwrap(this), value);
- }
-
- auto Toast::set_title(Glib::ustring value) -> void
- {
- adw_toast_set_title(Glib::unwrap(this), Glib::c_str_or_nullptr(value));
- }
-
- auto Toast::set_use_markup(bool value) -> void
- {
- adw_toast_set_use_markup(Glib::unwrap(this), value);
- }
-
- auto Toast::property_action_name() -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>(this, "action-name");
- }
-
- auto Toast::property_action_name() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "action-name");
- }
-
- auto Toast::property_action_target() -> Glib::PropertyProxy<Glib::VariantBase>
- {
- return Glib::PropertyProxy<Glib::VariantBase>(this, "action-target");
- }
-
- auto Toast::property_action_target() const -> Glib::PropertyProxy_ReadOnly<Glib::VariantBase>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::VariantBase>(this, "action-target");
- }
-
- auto Toast::property_button_label() -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>(this, "button-label");
- }
-
- auto Toast::property_button_label() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "button-label");
- }
-
- auto Toast::property_custom_title() -> Glib::PropertyProxy<Gtk::Widget *>
- {
- return Glib::PropertyProxy<Gtk::Widget *>(this, "custom-title");
- }
-
- auto Toast::property_custom_title() const -> Glib::PropertyProxy_ReadOnly<Gtk::Widget *>
- {
- return Glib::PropertyProxy_ReadOnly<Gtk::Widget *>(this, "custom-title");
- }
-
- auto Toast::property_priority() -> Glib::PropertyProxy<ToastPriority>
- {
- return Glib::PropertyProxy<ToastPriority>(this, "priority");
- }
-
- auto Toast::property_priority() const -> Glib::PropertyProxy_ReadOnly<ToastPriority>
- {
- return Glib::PropertyProxy_ReadOnly<ToastPriority>(this, "priority");
- }
- auto Toast::property_timeout() -> Glib::PropertyProxy<unsigned>
- {
- return Glib::PropertyProxy<unsigned>(this, "timeout");
- }
-
- auto Toast::property_timeout() const -> Glib::PropertyProxy_ReadOnly<unsigned>
- {
- return Glib::PropertyProxy_ReadOnly<unsigned>(this, "timeout");
- }
-
- auto Toast::property_title() -> Glib::PropertyProxy<Glib::ustring>
- {
- return Glib::PropertyProxy<Glib::ustring>(this, "title");
- }
-
- auto Toast::property_title() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "title");
- }
-
- auto Toast::property_use_markup() -> Glib::PropertyProxy<bool>
- {
- return Glib::PropertyProxy<bool>(this, "use-markup");
- }
-
- auto Toast::property_use_markup() const -> Glib::PropertyProxy_ReadOnly<bool>
- {
- return Glib::PropertyProxy_ReadOnly<bool>(this, "use-markup");
- }
-
- auto Toast::signal_button_clicked() -> Glib::SignalProxy<void()>
- {
- return Glib::SignalProxy<void()>{this, &Toast_signal_button_clicked_info};
- }
-
- auto Toast::signal_dismissed() -> Glib::SignalProxy<void()>
- {
- return Glib::SignalProxy<void()>{this, &Toast_signal_dismissed_info};
- }
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwToast * object, bool copy) -> Glib::RefPtr<Adwaita::Toast>
- {
- return Glib::make_refptr_for_instance<Adwaita::Toast>(dynamic_cast<Adwaita::Toast *>(Glib::wrap_auto(G_OBJECT(object), copy)));
- }
-} // namespace Glib \ No newline at end of file
diff --git a/adw/src/toastoverlay.cpp b/adw/src/toastoverlay.cpp
deleted file mode 100644
index 7be0797..0000000
--- a/adw/src/toastoverlay.cpp
+++ /dev/null
@@ -1,93 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/toastoverlay.hpp"
-
-#include "adwaitamm/private/toastoverlay_p.hpp"
-#include "adwaitamm/toast.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/wrap.h>
-
-#include <gtkmm/widget.h>
-
-#include <glib-object.h>
-
-namespace Adwaita
-{
- namespace
- {
- auto constinit _class = ToastOverlay_Class{};
- } // namespace
-
- auto ToastOverlay::get_type() -> GType
- {
- return _class.init().get_type();
- }
-
- auto ToastOverlay::get_base_type() -> GType
- {
- return adw_toast_overlay_get_type();
- }
-
- auto ToastOverlay::add_toast(Toast & toast) -> void
- {
- // Take a copy since the overlay will take ownership of the toast.
- adw_toast_overlay_add_toast(Glib::unwrap(this), Glib::unwrap_copy(toast));
- }
-
- auto ToastOverlay::dismiss_all() -> void
- {
- adw_toast_overlay_dismiss_all(unwrap(this));
- }
-
- auto ToastOverlay::get_child() const -> Gtk::Widget *
- {
- return Glib::wrap(adw_toast_overlay_get_child(const_cast<BaseObjectType *>(unwrap(this))));
- }
-
- auto ToastOverlay::set_child(Gtk::Widget & value) -> void
- {
- adw_toast_overlay_set_child(unwrap(this), unwrap(&value));
- }
-
- auto ToastOverlay::property_child() -> Glib::PropertyProxy<Gtk::Widget *>
- {
- return Glib::PropertyProxy<Gtk::Widget *>{this, "child"};
- }
-
- auto ToastOverlay::property_child() const -> Glib::PropertyProxy_ReadOnly<Gtk::Widget *>
- {
- return Glib::PropertyProxy_ReadOnly<Gtk::Widget *>{this, "child"};
- }
-
- ToastOverlay::ToastOverlay(Glib::ConstructParams const & params)
- : Gtk::Widget{params}
- {
- }
-
- ToastOverlay::ToastOverlay(BaseObjectType * gobj)
- : Gtk::Widget((GtkWidget *)gobj)
- {
- }
-
- ToastOverlay::ToastOverlay()
- : Glib::ObjectBase{nullptr}
- , Gtk::Widget{Glib::ConstructParams{_class.init()}}
- {
- }
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwToastOverlay * object, bool copy) -> Adwaita::ToastOverlay *
- {
- return dynamic_cast<Adwaita::ToastOverlay *>(Glib::wrap_auto(G_OBJECT(object), copy));
- }
-} // namespace Glib \ No newline at end of file
diff --git a/adw/src/windowtitle.cpp b/adw/src/windowtitle.cpp
deleted file mode 100644
index 5433f14..0000000
--- a/adw/src/windowtitle.cpp
+++ /dev/null
@@ -1,110 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/windowtitle.hpp"
-
-#include "adwaitamm/private/windowtitle_p.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/ustring.h>
-#include <glibmm/wrap.h>
-
-#include <gtkmm/widget.h>
-
-#include <glib-object.h>
-#include <gtk/gtk.h>
-
-namespace Adwaita
-{
-
- namespace
- {
- auto constinit _class = WindowTitle_Class{};
-
- namespace property_name
- {
- auto constexpr subtitle = "subtitle";
- auto constexpr title = "title";
- } // namespace property_name
- } // namespace
-
- WindowTitle::WindowTitle(Glib::ustring const & title, Glib::ustring const & subtitle)
- : Glib::ObjectBase{nullptr}
- , Gtk::Widget{Glib::ConstructParams{_class.init(), "title", title.c_str(), "subtitle", subtitle.c_str(), nullptr}}
- {
- }
-
- auto WindowTitle::get_type() -> GType
- {
- return _class.init().get_type();
- }
-
- auto WindowTitle::get_base_type() -> GType
- {
- return adw_window_title_get_type();
- }
-
- auto WindowTitle::get_subtitle() const -> Glib::ustring
- {
- return adw_window_title_get_subtitle(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto WindowTitle::get_title() const -> Glib::ustring
- {
- return adw_window_title_get_title(const_cast<BaseObjectType *>(unwrap(this)));
- }
-
- auto WindowTitle::set_subtitle(Glib::ustring const & value) -> void
- {
- return adw_window_title_set_subtitle(unwrap(this), value.c_str());
- }
-
- auto WindowTitle::set_title(Glib::ustring const & value) -> void
- {
- return adw_window_title_set_title(unwrap(this), value.c_str());
- }
-
- auto WindowTitle::property_subtitle() -> Glib::PropertyProxy<Glib::ustring>
- {
- return {this, property_name::subtitle};
- }
-
- auto WindowTitle::property_subtitle() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return {this, property_name::subtitle};
- }
-
- auto WindowTitle::property_title() -> Glib::PropertyProxy<Glib::ustring>
- {
- return {this, property_name::title};
- }
-
- auto WindowTitle::property_title() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>
- {
- return {this, property_name::title};
- }
-
- WindowTitle::WindowTitle(Glib::ConstructParams const & params)
- : Gtk::Widget{params}
- {
- }
-
- WindowTitle::WindowTitle(BaseObjectType * gobj)
- : Gtk::Widget(GTK_WIDGET(gobj))
- {
- }
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwWindowTitle * object, bool copy) -> Adwaita::WindowTitle *
- {
- return dynamic_cast<Adwaita::WindowTitle *>(Glib::wrap_auto(G_OBJECT(object), copy));
- }
-} // namespace Glib \ No newline at end of file
diff --git a/adw/src/wrap_init.cpp b/adw/src/wrap_init.cpp
deleted file mode 100644
index a609c48..0000000
--- a/adw/src/wrap_init.cpp
+++ /dev/null
@@ -1,96 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/wrap_init.hpp"
-
-#include "adwaitamm/aboutdialog.hpp"
-#include "adwaitamm/actionrow.hpp"
-#include "adwaitamm/alertdialog.hpp"
-#include "adwaitamm/application.hpp"
-#include "adwaitamm/applicationwindow.hpp"
-#include "adwaitamm/breakpoint.hpp"
-#include "adwaitamm/comborow.hpp"
-#include "adwaitamm/dialog.hpp"
-#include "adwaitamm/entryrow.hpp"
-#include "adwaitamm/preferencesdialog.hpp"
-#include "adwaitamm/preferencespage.hpp"
-#include "adwaitamm/preferencesrow.hpp"
-#include "adwaitamm/private/aboutdialog_p.hpp" // IWYU pragma: keep - required for gobj class definition.
-#include "adwaitamm/private/actionrow_p.hpp" // IWYU pragma: keep - required for gobj class definition.
-#include "adwaitamm/private/alertdialog_p.hpp" // IWYU pragma: keep - required for gobj class definition.
-#include "adwaitamm/private/application_p.hpp" // IWYU pragma: keep - required for gobj class definition.
-#include "adwaitamm/private/applicationwindow_p.hpp" // IWYU pragma: keep - required for gobj class definition.
-#include "adwaitamm/private/breakpoint_p.hpp" // IWYU pragma: keep - required for gobj class definition.
-#include "adwaitamm/private/comborow_p.hpp" // IWYU pragma: keep - required for gobj class definition.
-#include "adwaitamm/private/dialog_p.hpp" // IWYU pragma: keep - required for gobj class definition.
-#include "adwaitamm/private/entryrow_p.hpp" // IWYU pragma: keep - required for gobj class definition.
-#include "adwaitamm/private/preferencesdialog_p.hpp" // IWYU pragma: keep - required for gobj class definition.
-#include "adwaitamm/private/preferencespage_p.hpp" // IWYU pragma: keep - required for gobj class definition.
-#include "adwaitamm/private/preferencesrow_p.hpp" // IWYU pragma: keep - required for gobj class definition.
-#include "adwaitamm/private/spinrow_p.hpp"
-#include "adwaitamm/private/stylemanager_p.hpp"
-#include "adwaitamm/private/switchrow_p.hpp"
-#include "adwaitamm/private/toast_p.hpp"
-#include "adwaitamm/private/toastoverlay_p.hpp"
-#include "adwaitamm/private/windowtitle_p.hpp"
-#include "adwaitamm/spinrow.hpp"
-#include "adwaitamm/stylemanager.hpp"
-#include "adwaitamm/switchrow.hpp"
-#include "adwaitamm/toast.hpp"
-#include "adwaitamm/toastoverlay.hpp"
-#include "adwaitamm/windowtitle.hpp"
-
-#include <glibmm/wrap.h>
-
-#include <adwaita.h>
-#include <glib-object.h>
-
-#define WRAP_CLASS(Name, name) Glib::wrap_register(adw_##name##_get_type(), &Name##_Class::wrap_new)
-#define ENSURE_TYPE(Name) g_type_ensure(Name::get_type())
-
-namespace Adwaita
-{
- auto wrap_init() -> void
- {
- WRAP_CLASS(AboutDialog, about_dialog);
- WRAP_CLASS(ActionRow, action_row);
- WRAP_CLASS(AlertDialog, alert_dialog);
- WRAP_CLASS(Application, application);
- WRAP_CLASS(ApplicationWindow, application_window);
- WRAP_CLASS(Breakpoint, breakpoint);
- WRAP_CLASS(ComboRow, combo_row);
- WRAP_CLASS(Dialog, dialog);
- WRAP_CLASS(EntryRow, entry_row);
- WRAP_CLASS(PreferencesDialog, preferences_dialog);
- WRAP_CLASS(PreferencesPage, preferences_page);
- WRAP_CLASS(PreferencesRow, preferences_row);
- WRAP_CLASS(SpinRow, spin_row);
- WRAP_CLASS(StyleManager, style_manager);
- WRAP_CLASS(SwitchRow, switch_row);
- WRAP_CLASS(Toast, toast);
- WRAP_CLASS(ToastOverlay, toast_overlay);
- WRAP_CLASS(WindowTitle, window_title);
-
- ENSURE_TYPE(AboutDialog);
- ENSURE_TYPE(ActionRow);
- ENSURE_TYPE(AlertDialog);
- ENSURE_TYPE(Application);
- ENSURE_TYPE(ApplicationWindow);
- ENSURE_TYPE(Breakpoint);
- ENSURE_TYPE(ComboRow);
- ENSURE_TYPE(Dialog);
- ENSURE_TYPE(EntryRow);
- ENSURE_TYPE(PreferencesDialog);
- ENSURE_TYPE(PreferencesPage);
- ENSURE_TYPE(PreferencesRow);
- ENSURE_TYPE(SpinRow);
- ENSURE_TYPE(StyleManager);
- ENSURE_TYPE(SwitchRow);
- ENSURE_TYPE(Toast);
- ENSURE_TYPE(ToastOverlay);
- ENSURE_TYPE(WindowTitle);
- }
-} // namespace Adwaita \ No newline at end of file