aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitmodules3
-rw-r--r--CMakeLists.txt7
-rw-r--r--adw/CMakeLists.txt65
-rw-r--r--adw/include/adwaitamm/aboutdialog.hpp170
-rw-r--r--adw/include/adwaitamm/actionrow.hpp109
-rw-r--r--adw/include/adwaitamm/alertdialog.hpp76
-rw-r--r--adw/include/adwaitamm/application.hpp68
-rw-r--r--adw/include/adwaitamm/applicationwindow.hpp62
-rw-r--r--adw/include/adwaitamm/breakpoint.hpp96
-rw-r--r--adw/include/adwaitamm/comborow.hpp116
-rw-r--r--adw/include/adwaitamm/dialog.hpp128
-rw-r--r--adw/include/adwaitamm/entryrow.hpp122
-rw-r--r--adw/include/adwaitamm/enums.hpp97
-rw-r--r--adw/include/adwaitamm/helpers/async_callback.hpp15
-rw-r--r--adw/include/adwaitamm/helpers/gobj_mixin.hpp45
-rw-r--r--adw/include/adwaitamm/preferencesdialog.hpp61
-rw-r--r--adw/include/adwaitamm/preferencespage.hpp59
-rw-r--r--adw/include/adwaitamm/preferencesrow.hpp80
-rw-r--r--adw/include/adwaitamm/private/aboutdialog_p.hpp35
-rw-r--r--adw/include/adwaitamm/private/actionrow_p.hpp38
-rw-r--r--adw/include/adwaitamm/private/alertdialog_p.hpp35
-rw-r--r--adw/include/adwaitamm/private/application_p.hpp35
-rw-r--r--adw/include/adwaitamm/private/applicationwindow_p.hpp35
-rw-r--r--adw/include/adwaitamm/private/breakpoint_p.hpp36
-rw-r--r--adw/include/adwaitamm/private/comborow_p.hpp35
-rw-r--r--adw/include/adwaitamm/private/dialog_p.hpp39
-rw-r--r--adw/include/adwaitamm/private/entryrow_p.hpp35
-rw-r--r--adw/include/adwaitamm/private/preferencesdialog_p.hpp35
-rw-r--r--adw/include/adwaitamm/private/preferencespage_p.hpp35
-rw-r--r--adw/include/adwaitamm/private/preferencesrow_p.hpp35
-rw-r--r--adw/include/adwaitamm/private/spinrow_p.hpp35
-rw-r--r--adw/include/adwaitamm/private/stylemanager_p.hpp36
-rw-r--r--adw/include/adwaitamm/private/switchrow_p.hpp35
-rw-r--r--adw/include/adwaitamm/private/toast_p.hpp36
-rw-r--r--adw/include/adwaitamm/private/toastoverlay_p.hpp35
-rw-r--r--adw/include/adwaitamm/private/windowtitle_p.hpp39
-rw-r--r--adw/include/adwaitamm/spinrow.hpp117
-rw-r--r--adw/include/adwaitamm/stylemanager.hpp79
-rw-r--r--adw/include/adwaitamm/switchrow.hpp67
-rw-r--r--adw/include/adwaitamm/toast.hpp119
-rw-r--r--adw/include/adwaitamm/toastoverlay.hpp68
-rw-r--r--adw/include/adwaitamm/windowtitle.hpp78
-rw-r--r--adw/include/adwaitamm/wrap_init.hpp15
-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
m---------deps/libadwaitamm0
83 files changed, 7 insertions, 7095 deletions
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..c151109
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "deps/libadwaitamm"]
+ path = deps/libadwaitamm
+ url = ../libadwaitamm.git
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ba4b133..39423a9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,8 +32,8 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/lib")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/lib")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin")
-set(GLIB_MINIMUM_VERSION "2.80")
-set(GTK4_MINIMUM_VERSION "4.14")
+set(GLIB_MINIMUM_VERSION "2.84")
+set(GTK4_MINIMUM_VERSION "4.16")
# Build options
@@ -68,11 +68,12 @@ pkg_check_modules("giomm" IMPORTED_TARGET REQUIRED "giomm-2.68>=${GLIB_MINIMUM_V
pkg_check_modules("glibmm" IMPORTED_TARGET REQUIRED "glibmm-2.68>=${GLIB_MINIMUM_VERSION}")
pkg_check_modules("gtkmm" IMPORTED_TARGET REQUIRED "gtkmm-4.0>=${GTK4_MINIMUM_VERSION}")
+add_subdirectory("deps/libadwaitamm" EXCLUDE_FROM_ALL SYSTEM)
+
include("Catch")
# Targets
-add_subdirectory("adw")
add_subdirectory("app")
add_subdirectory("core")
add_subdirectory("lang")
diff --git a/adw/CMakeLists.txt b/adw/CMakeLists.txt
deleted file mode 100644
index 6b08199..0000000
--- a/adw/CMakeLists.txt
+++ /dev/null
@@ -1,65 +0,0 @@
-cmake_minimum_required(VERSION "3.30.0")
-
-project("adwaitamm"
- LANGUAGES CXX
- VERSION "1.7.0"
- DESCRIPTION "C++ wrapper for libadwaita"
-)
-
-include("GNUInstallDirs")
-
-find_package("PkgConfig" REQUIRED)
-
-pkg_check_modules("adwaita" IMPORTED_TARGET REQUIRED "libadwaita-1>=1.7.0")
-pkg_check_modules("giomm" IMPORTED_TARGET REQUIRED "giomm-2.68>=2.80")
-pkg_check_modules("glibmm" IMPORTED_TARGET REQUIRED "glibmm-2.68>=2.80")
-
-add_library("adwaitamm")
-
-file(GLOB_RECURSE ADWAITAMM_SOURCES RELATIVE "${PROJECT_SOURCE_DIR}" CONFIGURE_DEPENDS "src/**.cpp")
-
-target_sources("adwaitamm" PRIVATE
- ${ADWAITAMM_SOURCES}
-)
-
-file(GLOB_RECURSE ADWAITAMM_HEADERS RELATIVE "${PROJECT_SOURCE_DIR}" CONFIGURE_DEPENDS "include/**/*.hpp")
-
-target_sources("adwaitamm" PUBLIC
- FILE_SET HEADERS
- FILES ${ADWAITAMM_HEADERS}
- BASE_DIRS "include"
-)
-
-target_include_directories("adwaitamm" SYSTEM PUBLIC
- "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
- "$<INSTALL_INTERFACE:include>"
-)
-
-target_compile_features("adwaitamm" PUBLIC
- "cxx_std_20"
-)
-
-target_compile_options("adwaitamm" PRIVATE
- "$<$<CXX_COMPILER_ID:GNU,Clang>:-Wall>"
- "$<$<CXX_COMPILER_ID:GNU,Clang>:-Wextra>"
- "$<$<CXX_COMPILER_ID:GNU,Clang>:-Werror>"
- "$<$<CXX_COMPILER_ID:GNU,Clang>:-pedantic-errors>"
-)
-
-target_link_libraries("adwaitamm" PUBLIC
- "PkgConfig::adwaita"
- "PkgConfig::gtkmm"
-)
-
-set_target_properties("adwaitamm" PROPERTIES
- CXX_EXTENSIONS NO
- CXX_STANDARD_REQUIRED YES
-)
-
-add_library("adwaitamm::adwaitamm" ALIAS "adwaitamm")
-
-install(TARGETS "adwaitamm"
- FILE_SET HEADERS
- ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
- LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
-) \ No newline at end of file
diff --git a/adw/include/adwaitamm/aboutdialog.hpp b/adw/include/adwaitamm/aboutdialog.hpp
deleted file mode 100644
index 86f6751..0000000
--- a/adw/include/adwaitamm/aboutdialog.hpp
+++ /dev/null
@@ -1,170 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_ABOUT_DIALOG_HPP
-#define LIBADWAITAMM_ABOUT_DIALOG_HPP
-
-#include "adwaitamm/dialog.hpp"
-#include "adwaitamm/helpers/gobj_mixin.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/refptr.h>
-#include <glibmm/signalproxy.h>
-#include <glibmm/ustring.h>
-
-#include <gtkmm/aboutdialog.h>
-
-#include <glib-object.h>
-
-#include <string>
-#include <vector>
-
-#define _ADWAITA_INSIDE
-#include <adw-about-dialog.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- enum struct ResponseAppearance;
-
- struct AboutDialog final : Dialog,
- helpers::gobj_mixin<AboutDialog, AdwAboutDialog>
- {
- using BaseObjectType = AdwAboutDialog;
- using BaseClassType = AdwAboutDialogClass;
- using CppObjectType = AboutDialog;
- using CppClassType = struct AboutDialog_Class;
-
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
-
-#pragma mark - Special Member Functions
- AboutDialog();
- AboutDialog(std::string resource_path, std::string release_notes_version);
- AboutDialog(AboutDialog const & other) = delete;
- AboutDialog(AboutDialog && other) noexcept = default;
-
- auto operator=(AboutDialog const & other) noexcept -> AboutDialog & = delete;
- auto operator=(AboutDialog && other) noexcept -> AboutDialog & = default;
-
-#pragma mark - GObject Support
- auto static get_type() -> GType;
- auto static get_base_type() -> GType;
-
-#pragma mark - Functions
- auto add_acknowledgement_section(Glib::ustring const & name, std::vector<Glib::ustring> const & people) -> void;
- auto add_credit_section(Glib::ustring const & name, std::vector<Glib::ustring> const & people) -> void;
- auto
- add_legal_section(Glib::ustring const & title, Glib::ustring const & copyright, Gtk::License license_type, Glib::ustring const & license)
- -> void;
- auto add_link(Glib::ustring const & title, Glib::ustring const & url) -> void;
- auto add_other_app(Glib::ustring const & id, Glib::ustring const & name, Glib::ustring const & summary) -> void;
-
-#pragma mark - Getters
- [[nodiscard]] auto get_application_icon() const -> Glib::ustring;
- [[nodiscard]] auto get_application_name() const -> Glib::ustring;
- [[nodiscard]] auto get_artists() const -> std::vector<Glib::ustring>;
- [[nodiscard]] auto get_comments() const -> Glib::ustring;
- [[nodiscard]] auto get_copyright() const -> Glib::ustring;
- [[nodiscard]] auto get_debug_info() const -> Glib::ustring;
- [[nodiscard]] auto get_debug_info_filename() const -> Glib::ustring;
- [[nodiscard]] auto get_designers() const -> std::vector<Glib::ustring>;
- [[nodiscard]] auto get_developer_name() const -> Glib::ustring;
- [[nodiscard]] auto get_developers() const -> std::vector<Glib::ustring>;
- [[nodiscard]] auto get_documenters() const -> std::vector<Glib::ustring>;
- [[nodiscard]] auto get_issue_url() const -> Glib::ustring;
- [[nodiscard]] auto get_license() const -> Glib::ustring;
- [[nodiscard]] auto get_license_type() const -> Gtk::License;
- [[nodiscard]] auto get_release_notes() const -> Glib::ustring;
- [[nodiscard]] auto get_release_notes_version() const -> Glib::ustring;
- [[nodiscard]] auto get_support_url() const -> Glib::ustring;
- [[nodiscard]] auto get_translator_credits() const -> Glib::ustring;
- [[nodiscard]] auto get_version() const -> Glib::ustring;
- [[nodiscard]] auto get_website() const -> Glib::ustring;
-
-#pragma mark - Setters
- auto set_application_icon(Glib::ustring const & value) -> void;
- auto set_application_name(Glib::ustring const & value) -> void;
- auto set_artists(std::vector<Glib::ustring> const & value) -> void;
- auto set_comments(Glib::ustring const & value) -> void;
- auto set_copyright(Glib::ustring const & value) -> void;
- auto set_debug_info(Glib::ustring const & value) -> void;
- auto set_debug_info_filename(Glib::ustring const & value) -> void;
- auto set_designers(std::vector<Glib::ustring> const & value) -> void;
- auto set_developer_name(Glib::ustring const & value) -> void;
- auto set_developers(std::vector<Glib::ustring> const & value) -> void;
- auto set_documenters(std::vector<Glib::ustring> const & value) -> void;
- auto set_issue_url(Glib::ustring const & value) -> void;
- auto set_license(Glib::ustring const & value) -> void;
- auto set_license_type(Gtk::License const & value) -> void;
- auto set_release_notes(Glib::ustring const & value) -> void;
- auto set_release_notes_version(Glib::ustring const & value) -> void;
- auto set_support_url(Glib::ustring const & value) -> void;
- auto set_translator_credits(Glib::ustring const & value) -> void;
- auto set_version(Glib::ustring const & value) -> void;
- auto set_website(Glib::ustring const & value) -> void;
-
-#pragma mark - Properties
- auto property_application_icon() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_application_icon() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_application_name() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_application_name() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_artists() -> Glib::PropertyProxy<std::vector<Glib::ustring>>;
- auto property_artists() const -> Glib::PropertyProxy_ReadOnly<std::vector<Glib::ustring>>;
- auto property_comments() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_comments() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_copyright() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_copyright() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_debug_info() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_debug_info() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_debug_info_filename() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_debug_info_filename() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_designers() -> Glib::PropertyProxy<std::vector<Glib::ustring>>;
- auto property_designers() const -> Glib::PropertyProxy_ReadOnly<std::vector<Glib::ustring>>;
- auto property_developer_name() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_developer_name() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_developers() -> Glib::PropertyProxy<std::vector<Glib::ustring>>;
- auto property_developers() const -> Glib::PropertyProxy_ReadOnly<std::vector<Glib::ustring>>;
- auto property_documenters() -> Glib::PropertyProxy<std::vector<Glib::ustring>>;
- auto property_documenters() const -> Glib::PropertyProxy_ReadOnly<std::vector<Glib::ustring>>;
- auto property_issue_url() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_issue_url() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_license_type() -> Glib::PropertyProxy<Gtk::License>;
- auto property_license_type() const -> Glib::PropertyProxy_ReadOnly<Gtk::License>;
- auto property_license() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_license() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_release_notes() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_release_notes() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_release_notes_version() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_release_notes_version() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_support_url() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_support_url() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_translator_credits() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_translator_credits() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_version() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_version() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_website() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_website() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
-
-#pragma mark - Signals
- auto signal_activate_link() -> Glib::SignalProxy<bool(Glib::ustring const &)>;
-
- protected:
- friend AboutDialog_Class;
-
-#pragma mark - Internal Constructors
- explicit AboutDialog(Glib::ConstructParams const & params);
- explicit AboutDialog(BaseObjectType * gobj);
- };
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwAboutDialog * object, bool copy = false) -> Adwaita::AboutDialog *;
-} // namespace Glib
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/actionrow.hpp b/adw/include/adwaitamm/actionrow.hpp
deleted file mode 100644
index 8b5db03..0000000
--- a/adw/include/adwaitamm/actionrow.hpp
+++ /dev/null
@@ -1,109 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_ACTION_ROW_HPP
-#define LIBADWAITAMM_ACTION_ROW_HPP
-
-#include "adwaitamm/helpers/gobj_mixin.hpp"
-#include "adwaitamm/preferencesrow.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/signalproxy.h>
-#include <glibmm/ustring.h>
-
-#include <gtkmm/widget.h>
-
-#include <glib-object.h>
-#include <glib.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-action-row.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct ActionRow : PreferencesRow,
- helpers::gobj_mixin<ActionRow, AdwActionRow>
- {
- using BaseObjectType = AdwActionRow;
- using BaseClassType = AdwActionRowClass;
- using CppObjectType = ActionRow;
- using CppClassType = struct ActionRow_Class;
-
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
-
- explicit ActionRow();
- ActionRow(ActionRow const & other) = delete;
- ActionRow(ActionRow && other) noexcept = default;
-
- auto operator=(ActionRow const & other) noexcept -> ActionRow & = delete;
- auto operator=(ActionRow && other) noexcept -> ActionRow & = default;
-
- auto static get_type() -> GType;
- auto static get_base_type() -> GType;
-
-#pragma mark - Functions
- auto activate() -> void;
- auto add_prefix(Gtk::Widget & widget) -> void;
- auto add_suffix(Gtk::Widget & widget) -> void;
- auto remove(Gtk::Widget & widget) -> void;
-
-#pragma mark - Getters
- auto get_activatable_widget() const noexcept -> Gtk::Widget *;
- [[deprecated("replaced by add_prefix")]] auto get_icon_name() const -> Glib::ustring;
- auto get_subtitle() const -> Glib::ustring;
- auto get_subtitle_lines() const noexcept -> int;
- auto get_subtitle_selectable() const noexcept -> bool;
- auto get_title_lines() const noexcept -> int;
-
-#pragma mark - Setters
- auto set_activatable_widget(Gtk::Widget & widget) noexcept -> void;
- [[deprecated("replaced by add_prefix")]] auto set_icon_name(Glib::ustring const & name) -> void;
- auto set_subtitle(Glib::ustring const & subtitle) -> void;
- auto set_subtitle_lines(int subtitle_lines) noexcept -> void;
- auto set_subtitle_selectable(bool subtitle_selectable) noexcept -> void;
- auto set_title_lines(int title_lines) noexcept -> void;
-
-#pragma mark - Properties
- auto property_activatable_widget() noexcept -> Glib::PropertyProxy<Gtk::Widget *>;
- auto property_activatable_widget() const noexcept -> Glib::PropertyProxy_ReadOnly<Gtk::Widget *>;
- [[deprecated("replaced by add_prefix")]] auto property_icon_name() noexcept -> Glib::PropertyProxy<Glib::ustring>;
- [[deprecated("replaced by add_prefix")]] auto property_icon_name() const noexcept -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_subtitle() noexcept -> Glib::PropertyProxy<Glib::ustring>;
- auto property_subtitle() const noexcept -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_subtitle_lines() noexcept -> Glib::PropertyProxy<int>;
- auto property_subtitle_lines() const noexcept -> Glib::PropertyProxy_ReadOnly<int>;
- auto property_subtitle_selectable() noexcept -> Glib::PropertyProxy<bool>;
- auto property_subtitle_selectable() const noexcept -> Glib::PropertyProxy_ReadOnly<bool>;
- auto property_title_lines() noexcept -> Glib::PropertyProxy<int>;
- auto property_title_lines() const noexcept -> Glib::PropertyProxy_ReadOnly<int>;
-
-#pragma mark - Signals
- auto signal_activated() -> Glib::SignalProxy<void()>;
-
- protected:
- friend struct ActionRow_Class;
-
-#pragma mark - GTK Virtual Functions
- auto virtual activate_vfunc() -> void;
-
-#pragma mark - Internal Constructors
- explicit ActionRow(Glib::ConstructParams const & params);
- explicit ActionRow(BaseObjectType * gobj);
- };
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwActionRow * object, bool copy = false) -> Adwaita::ActionRow *;
-} // namespace Glib
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/alertdialog.hpp b/adw/include/adwaitamm/alertdialog.hpp
deleted file mode 100644
index 367512d..0000000
--- a/adw/include/adwaitamm/alertdialog.hpp
+++ /dev/null
@@ -1,76 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_ALERT_DIALOG_HPP
-#define LIBADWAITAMM_ALERT_DIALOG_HPP
-
-#include "adwaitamm/dialog.hpp"
-#include "adwaitamm/helpers/gobj_mixin.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/refptr.h>
-#include <glibmm/ustring.h>
-
-#include <giomm/asyncresult.h>
-#include <giomm/cancellable.h>
-
-#include <gtkmm/widget.h>
-
-#include <glib-object.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-alert-dialog.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- enum struct ResponseAppearance;
-
- struct AlertDialog : Dialog,
- helpers::gobj_mixin<AlertDialog, AdwAlertDialog>
- {
- using BaseObjectType = AdwAlertDialog;
- using BaseClassType = AdwAlertDialogClass;
- using CppObjectType = AlertDialog;
- using CppClassType = struct AlertDialog_Class;
-
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
-
- AlertDialog(Glib::ustring heading, Glib::ustring body);
- AlertDialog(AlertDialog const & other) = delete;
- AlertDialog(AlertDialog && other) noexcept = default;
-
- auto operator=(AlertDialog const & other) noexcept -> AlertDialog & = delete;
- auto operator=(AlertDialog && other) noexcept -> AlertDialog & = default;
-
- auto static create(Glib::ustring heading, Glib::ustring body) -> Glib::RefPtr<AlertDialog>;
- auto static get_type() -> GType;
- auto static get_base_type() -> GType;
-
- auto add_response(Glib::ustring id, Glib::ustring label) -> void;
- auto choose(Gtk::Widget & parent, Glib::RefPtr<Gio::Cancellable> const & cancellable, Gio::SlotAsyncReady const & slot) -> void;
- auto choose_finish(Glib::RefPtr<Gio::AsyncResult> const & result) -> Glib::ustring;
- auto set_close_response(Glib::ustring id) -> void;
- auto set_default_response(Glib::ustring id) -> void;
- auto set_response_appearance(Glib::ustring id, ResponseAppearance value) -> void;
-
- protected:
- friend AlertDialog_Class;
-
- explicit AlertDialog(Glib::ConstructParams const & params);
- explicit AlertDialog(BaseObjectType * gobj);
- };
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwAlertDialog * object, bool copy = false) -> Adwaita::AlertDialog *;
-} // namespace Glib
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/application.hpp b/adw/include/adwaitamm/application.hpp
deleted file mode 100644
index 0da9427..0000000
--- a/adw/include/adwaitamm/application.hpp
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_APPLICATION_HPP
-#define LIBADWAITAMM_APPLICATION_HPP
-
-#include "adwaitamm/helpers/gobj_mixin.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/refptr.h>
-#include <glibmm/ustring.h>
-
-#include <giomm/application.h>
-
-#include <gtkmm/application.h>
-
-#include <glib-object.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-application.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct Application : Gtk::Application,
- helpers::gobj_mixin<Application, AdwApplication>
- {
- using BaseObjectType = AdwApplication;
- using BaseClassType = AdwApplicationClass;
- using CppObjectType = Application;
- using CppClassType = struct Application_Class;
-
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
-
- Application(Application const & other) = delete;
- Application(Application && other) noexcept = default;
-
- auto operator=(Application const & other) noexcept -> Application & = delete;
- auto operator=(Application && other) noexcept -> Application & = default;
-
- auto static create(Glib::ustring const & id = {}, Gio::Application::Flags flags = Gio::Application::Flags::NONE)
- -> Glib::RefPtr<Application>;
-
- auto static get_type() -> GType;
- auto static get_base_type() -> GType;
-
- protected:
- friend Application_Class;
-
- explicit Application(Glib::ConstructParams const & params);
- explicit Application(BaseObjectType * gobj);
- explicit Application(Glib::ustring const & id = {}, Gio::Application::Flags flags = Gio::Application::Flags::NONE);
-
- private:
- Glib::Class const & custom_class_init();
- };
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwApplication * object, bool copy = false) -> Glib::RefPtr<Adwaita::Application>;
-} // namespace Glib
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/applicationwindow.hpp b/adw/include/adwaitamm/applicationwindow.hpp
deleted file mode 100644
index c2fa0d1..0000000
--- a/adw/include/adwaitamm/applicationwindow.hpp
+++ /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
- */
-
-#ifndef LIBADWAITAMM_APPLICATION_WINDOW_HPP
-#define LIBADWAITAMM_APPLICATION_WINDOW_HPP
-
-#include "helpers/gobj_mixin.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/refptr.h>
-#include <glibmm/ustring.h>
-
-#include <gtkmm/application.h>
-#include <gtkmm/applicationwindow.h>
-
-#include <glib-object.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-application-window.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct ApplicationWindow : Gtk::ApplicationWindow,
- helpers::gobj_mixin<ApplicationWindow, AdwApplicationWindow>
- {
- using BaseObjectType = AdwApplicationWindow;
- using BaseClassType = AdwApplicationWindowClass;
- using CppObjectType = ApplicationWindow;
- using CppClassType = struct ApplicationWindow_Class;
-
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
-
- explicit ApplicationWindow(Gtk::Application & app);
- ApplicationWindow(ApplicationWindow const & other) = delete;
- ApplicationWindow(ApplicationWindow && other) noexcept = default;
-
- auto operator=(ApplicationWindow const & other) noexcept -> ApplicationWindow & = delete;
- auto operator=(ApplicationWindow && other) noexcept -> ApplicationWindow & = default;
-
- auto static get_type() -> GType;
- auto static get_base_type() -> GType;
-
- protected:
- friend ApplicationWindow_Class;
-
- explicit ApplicationWindow(Glib::ConstructParams const & params);
- explicit ApplicationWindow(BaseObjectType * gobj);
- };
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwApplicationWindow * object, bool copy = false) -> Adwaita::ApplicationWindow *;
-} // namespace Glib
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/breakpoint.hpp b/adw/include/adwaitamm/breakpoint.hpp
deleted file mode 100644
index 4b40574..0000000
--- a/adw/include/adwaitamm/breakpoint.hpp
+++ /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
- */
-
-#ifndef LIBADWAITAMM_BREAKPOINT_HPP
-#define LIBADWAITAMM_BREAKPOINT_HPP
-
-#include "adwaitamm/helpers/gobj_mixin.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/refptr.h>
-#include <glibmm/ustring.h>
-
-#include <gtkmm/buildable.h>
-
-#include <glib-object.h>
-
-#include <optional>
-
-#define _ADWAITA_INSIDE
-#include <adw-breakpoint.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- enum struct LengthType;
- enum struct RatioType;
-
- struct BreakpointCondition
- {
- BreakpointCondition(BreakpointCondition const & other);
- BreakpointCondition(BreakpointCondition && other);
- BreakpointCondition(LengthType type, double value, int unit); // FIXME: replace unit type with actual enum.
- BreakpointCondition(RatioType type, int width, int height);
-
- ~BreakpointCondition() noexcept;
-
- auto operator&&(BreakpointCondition & rhs) & -> BreakpointCondition;
- auto operator||(BreakpointCondition & lhs) & -> BreakpointCondition;
-
- explicit operator Glib::ustring() const;
-
- auto static parse(Glib::ustring str) -> std::optional<BreakpointCondition>;
-
- private:
- friend struct Breakpoint;
-
- explicit BreakpointCondition(AdwBreakpointCondition * object);
-
- AdwBreakpointCondition * m_object{nullptr};
- };
-
- struct Breakpoint final : Glib::Object,
- Gtk::Buildable,
- helpers::gobj_mixin<Breakpoint, AdwBreakpoint>
- {
- using BaseObjectType = AdwBreakpoint;
- using BaseClassType = AdwBreakpointClass;
- using CppObjectType = Breakpoint;
- using CppClassType = struct Breakpoint_Class;
-
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
-
- Breakpoint(Breakpoint const & other) = delete;
- Breakpoint(Breakpoint && other) noexcept = default;
-
- auto operator=(Breakpoint const & other) noexcept -> Breakpoint & = delete;
- auto operator=(Breakpoint && other) noexcept -> Breakpoint & = default;
-
- auto static create(BreakpointCondition & condition) -> Glib::RefPtr<Breakpoint>;
- auto static get_type() -> GType;
- auto static get_base_type() -> GType;
-
- auto property_condition() -> Glib::PropertyProxy<BreakpointCondition *>;
- auto property_condition() const -> Glib::PropertyProxy_ReadOnly<BreakpointCondition *>;
-
- protected:
- friend Breakpoint_Class;
-
- explicit Breakpoint(BreakpointCondition & condition);
- explicit Breakpoint(Glib::ConstructParams const & params);
- explicit Breakpoint(BaseObjectType * gobj);
- };
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwBreakpoint * object, bool copy = false) -> Glib::RefPtr<Adwaita::Breakpoint>;
-} // namespace Glib
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/comborow.hpp b/adw/include/adwaitamm/comborow.hpp
deleted file mode 100644
index 416c693..0000000
--- a/adw/include/adwaitamm/comborow.hpp
+++ /dev/null
@@ -1,116 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_COMBO_ROW_HPP
-#define LIBADWAITAMM_COMBO_ROW_HPP
-
-#include "adwaitamm/actionrow.hpp"
-#include "adwaitamm/helpers/gobj_mixin.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/refptr.h>
-#include <glibmm/ustring.h>
-
-#include <giomm/listmodel.h>
-
-#include <gtkmm/expression.h>
-#include <gtkmm/listitemfactory.h>
-#include <gtkmm/stringfilter.h>
-
-#include <glib-object.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-combo-row.h>
-#undef _ADWAITA_INSIDE
-
-using AdwComboRow = struct _AdwComboRow;
-
-namespace Adwaita
-{
- struct ComboRow : ActionRow,
- helpers::gobj_mixin<ComboRow, AdwComboRow>
- {
- using BaseObjectType = AdwComboRow;
- using BaseClassType = AdwComboRowClass;
- using CppObjectType = struct ComboRow;
- using CppClassType = struct ComboRow_Class;
-
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
-
-#pragma mark - Special Member Functions
- explicit ComboRow();
- ComboRow(ComboRow const & other) = delete;
- ComboRow(ComboRow && other) noexcept = default;
-
- auto operator=(ComboRow const & other) noexcept -> ComboRow & = delete;
- auto operator=(ComboRow && other) noexcept -> ComboRow & = default;
-
-#pragma mark - GObject Support
- auto static get_type() -> GType;
- auto static get_base_type() -> GType;
-
-#pragma mark - Getters
- auto get_enable_search() const -> bool;
- auto get_expression() const -> Glib::RefPtr<Gtk::Expression<Glib::ustring>>;
- auto get_factory() const -> Glib::RefPtr<Gtk::ListItemFactory>;
- auto get_header_factory() const -> Glib::RefPtr<Gtk::ListItemFactory>;
- auto get_list_factory() const -> Glib::RefPtr<Gtk::ListItemFactory>;
- auto get_model() const -> Glib::RefPtr<Gio::ListModel>;
- auto get_search_match_mode() const -> Gtk::StringFilter::MatchMode;
- auto get_selected() const -> unsigned int;
- auto get_selected_item() const -> Glib::RefPtr<Glib::Object>;
- auto get_use_subtitle() const -> bool;
-
-#pragma mark - Setters
- auto set_enable_search(bool value) -> void;
- auto set_expression(Glib::RefPtr<Gtk::Expression<Glib::ustring>> const & value) -> void;
- auto set_factory(Glib::RefPtr<Gtk::ListItemFactory> const & value) -> void;
- auto set_header_factory(Glib::RefPtr<Gtk::ListItemFactory> const & value) -> void;
- auto set_list_factory(Glib::RefPtr<Gtk::ListItemFactory> const & value) -> void;
- auto set_model(Glib::RefPtr<Gio::ListModel> const & value) -> void;
- auto set_search_match_mode(Gtk::StringFilter::MatchMode value) -> void;
- auto set_selected(unsigned int value) -> void;
- auto set_use_subtitle(bool value) -> void;
-
-#pragma mark - Properties
- auto property_enable_search() -> Glib::PropertyProxy<bool>;
- auto property_enable_search() const -> Glib::PropertyProxy_ReadOnly<bool>;
- auto property_expression() -> Glib::PropertyProxy<Glib::RefPtr<Gtk::Expression<Glib::ustring>>>;
- auto property_expression() const -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Gtk::Expression<Glib::ustring>>>;
- auto property_factory() -> Glib::PropertyProxy<Glib::RefPtr<Gtk::ListItemFactory>>;
- auto property_factory() const -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Gtk::ListItemFactory>>;
- auto property_header_factory() -> Glib::PropertyProxy<Glib::RefPtr<Gtk::ListItemFactory>>;
- auto property_header_factory() const -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Gtk::ListItemFactory>>;
- auto property_list_factory() -> Glib::PropertyProxy<Glib::RefPtr<Gtk::ListItemFactory>>;
- auto property_list_factory() const -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Gtk::ListItemFactory>>;
- auto property_model() -> Glib::PropertyProxy<Glib::RefPtr<Gio::ListModel>>;
- auto property_model() const -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Gio::ListModel>>;
- auto property_search_match_mode() -> Glib::PropertyProxy<Gtk::StringFilter::MatchMode>;
- auto property_search_match_mode() const -> Glib::PropertyProxy_ReadOnly<Gtk::StringFilter::MatchMode>;
- auto property_selected() -> Glib::PropertyProxy<unsigned int>;
- auto property_selected() const -> Glib::PropertyProxy_ReadOnly<unsigned int>;
- auto property_selected_item() -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Glib::Object>>;
- auto property_use_subtitle() -> Glib::PropertyProxy<bool>;
- auto property_use_subtitle() const -> Glib::PropertyProxy_ReadOnly<bool>;
-
- protected:
- friend ComboRow_Class;
-
-#pragma mark - Internal Constructors
- explicit ComboRow(Glib::ConstructParams const & params);
- explicit ComboRow(BaseObjectType * gobj);
- };
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwComboRow * object, bool copy = false) -> Adwaita::ComboRow *;
-} // namespace Glib
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/dialog.hpp b/adw/include/adwaitamm/dialog.hpp
deleted file mode 100644
index 82e1cd1..0000000
--- a/adw/include/adwaitamm/dialog.hpp
+++ /dev/null
@@ -1,128 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_DIALOG_HPP
-#define LIBADWAITAMM_DIALOG_HPP
-
-#include "adwaitamm/breakpoint.hpp"
-#include "adwaitamm/enums.hpp"
-#include "helpers/gobj_mixin.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/refptr.h>
-#include <glibmm/signalproxy.h>
-#include <glibmm/ustring.h>
-
-#include <gtkmm/shortcutmanager.h>
-#include <gtkmm/widget.h>
-
-#include <glib-object.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-dialog.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct Dialog : Gtk::Widget,
- Gtk::ShortcutManager,
- helpers::gobj_mixin<Dialog, AdwDialog>
- {
-
- using BaseObjectType = AdwDialog;
- using BaseClassType = AdwDialogClass;
- using CppObjectType = Dialog;
- using CppClassType = struct Dialog_Class;
-
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
-
-#pragma mark - Special Member Functions
- explicit Dialog();
- Dialog(Dialog const & other) = delete;
- Dialog(Dialog && other) noexcept = default;
-
- auto operator=(Dialog const & other) noexcept -> Dialog & = delete;
- auto operator=(Dialog && other) noexcept -> Dialog & = default;
-
-#pragma mark - GObject Support
- auto static get_type() -> GType;
- auto static get_base_type() -> GType;
-
-#pragma mark - Functions
- auto add_breakpoint(Glib::RefPtr<Breakpoint> const & breakpoint) -> void;
- auto close() -> void;
- auto force_close() -> void;
- auto present(Gtk::Widget * parent) -> void;
-
-#pragma mark - Getters
- [[nodiscard]] auto get_can_close() const -> bool;
- [[nodiscard]] auto get_child() const -> Gtk::Widget *;
- [[nodiscard]] auto get_content_height() const -> int;
- [[nodiscard]] auto get_content_width() const -> int;
- [[nodiscard]] auto get_current_breakpoint() const -> Glib::RefPtr<Breakpoint>;
- [[nodiscard]] auto get_default_widget() const -> Gtk::Widget *;
- [[nodiscard]] auto get_focus() const -> Gtk::Widget *;
- [[nodiscard]] auto get_follows_content_size() const -> bool;
- [[nodiscard]] auto get_presentation_mode() const -> PresentationMode;
- [[nodiscard]] auto get_title() const -> Glib::ustring;
-
-#pragma mark - Setters
- auto set_can_close(bool value) -> void;
- auto set_child(Gtk::Widget & value) -> void;
- auto set_content_height(int value) -> void;
- auto set_content_width(int value) -> void;
- auto set_default_widget(Gtk::Widget & value) -> void;
- auto set_focus(Gtk::Widget & value) -> void;
- auto set_follows_content_size(bool value) -> void;
- auto set_presentation_mode(PresentationMode value) -> void;
- auto set_title(Glib::ustring const & str) -> void;
-
-#pragma mark - Properties
- [[nodiscard]] auto property_can_close() -> Glib::PropertyProxy<bool>;
- [[nodiscard]] auto property_can_close() const -> Glib::PropertyProxy_ReadOnly<bool>;
- [[nodiscard]] auto property_child() -> Glib::PropertyProxy<Gtk::Widget *>;
- [[nodiscard]] auto property_child() const -> Glib::PropertyProxy_ReadOnly<Gtk::Widget *>;
- [[nodiscard]] auto property_content_height() -> Glib::PropertyProxy<int>;
- [[nodiscard]] auto property_content_height() const -> Glib::PropertyProxy_ReadOnly<int>;
- [[nodiscard]] auto property_content_width() -> Glib::PropertyProxy<int>;
- [[nodiscard]] auto property_content_width() const -> Glib::PropertyProxy_ReadOnly<int>;
- [[nodiscard]] auto property_current_breakpoint() const -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Breakpoint>>;
- [[nodiscard]] auto property_default_widget() -> Glib::PropertyProxy<Gtk::Widget *>;
- [[nodiscard]] auto property_default_widget() const -> Glib::PropertyProxy_ReadOnly<Gtk::Widget *>;
- [[nodiscard]] auto property_focus_widget() -> Glib::PropertyProxy<Gtk::Widget *>;
- [[nodiscard]] auto property_focus_widget() const -> Glib::PropertyProxy_ReadOnly<Gtk::Widget *>;
- [[nodiscard]] auto property_follows_content_size() -> Glib::PropertyProxy<bool>;
- [[nodiscard]] auto property_follows_content_size() const -> Glib::PropertyProxy_ReadOnly<bool>;
- [[nodiscard]] auto property_presentation_mode() -> Glib::PropertyProxy<PresentationMode>;
- [[nodiscard]] auto property_presentation_mode() const -> Glib::PropertyProxy_ReadOnly<PresentationMode>;
- [[nodiscard]] auto property_title() -> Glib::PropertyProxy<Glib::ustring>;
- [[nodiscard]] auto property_title() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
-
-#pragma mark - Signals
- [[nodiscard]] auto signal_close_attempt() -> Glib::SignalProxy<void()>;
- [[nodiscard]] auto signal_closed() -> Glib::SignalProxy<void()>;
-
- protected:
- friend Dialog_Class;
-
-#pragma mark - Default Signal Handlers
- auto virtual on_close_attempt() -> void;
- auto virtual on_closed() -> void;
-
-#pragma mark - Internal Constructors
- explicit Dialog(Glib::ConstructParams const & params);
- explicit Dialog(BaseObjectType * gobj);
- };
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwDialog * object, bool copy = false) -> Adwaita::Dialog *;
-} // namespace Glib
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/entryrow.hpp b/adw/include/adwaitamm/entryrow.hpp
deleted file mode 100644
index 16f0f3b..0000000
--- a/adw/include/adwaitamm/entryrow.hpp
+++ /dev/null
@@ -1,122 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_ENTRY_ROW_HPP
-#define LIBADWAITAMM_ENTRY_ROW_HPP
-
-#include "adwaitamm/helpers/gobj_mixin.hpp"
-#include "adwaitamm/preferencesrow.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/refptr.h>
-#include <glibmm/signalproxy.h>
-#include <glibmm/ustring.h>
-
-#include <giomm/listmodel.h>
-
-#include <gtkmm/editable.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 <pangomm/attrlist.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-entry-row.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct EntryRow : PreferencesRow,
- Gtk::Editable,
- helpers::gobj_mixin<EntryRow, AdwEntryRow>
- {
- using BaseObjectType = AdwEntryRow;
- using BaseClassType = AdwEntryRowClass;
- using CppObjectType = struct EntryRow;
- using CppClassType = struct EntryRow_Class;
-
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
-
-#pragma mark - Special Member Functions
- explicit EntryRow();
- EntryRow(EntryRow const & other) = delete;
- EntryRow(EntryRow && other) noexcept = default;
-
- auto operator=(EntryRow const & other) noexcept -> EntryRow & = delete;
- auto operator=(EntryRow && other) noexcept -> EntryRow & = default;
-
-#pragma mark - GObject Support
- auto static get_type() -> GType;
- auto static get_base_type() -> GType;
-
-#pragma mark - Functions
- auto add_prefix(Gtk::Widget & widget) -> void;
- auto add_suffix(Gtk::Widget & widget) -> void;
- auto grab_focus_without_selecting() -> bool;
- auto remove(Gtk::Widget & widget) -> void;
-
-#pragma mark - Getters
- [[nodiscard]] auto get_activates_default() const -> bool;
- [[nodiscard]] auto get_attributes() const -> Pango::AttrList;
- [[nodiscard]] auto get_enable_emoji_completion() const -> bool;
- [[nodiscard]] auto get_input_hints() const -> Gtk::InputHints;
- [[nodiscard]] auto get_input_purpose() const -> Gtk::InputPurpose;
- [[nodiscard]] auto get_max_length() const -> int;
- [[nodiscard]] auto get_show_apply_button() const -> bool;
- [[nodiscard]] auto get_text_length() const -> unsigned int;
-
-#pragma mark - Setters
- auto set_activates_default(bool value) -> void;
- auto set_attributes(Pango::AttrList & value) -> void;
- auto set_enable_emoji_completion(bool value) -> void;
- auto set_input_hints(Gtk::InputHints value) -> void;
- auto set_input_purpose(Gtk::InputPurpose value) -> void;
- auto set_max_length(int value) -> void;
- auto set_show_apply_button(bool value) -> void;
-
-#pragma mark - Properties
- [[nodiscard]] auto property_activates_default() -> Glib::PropertyProxy<bool>;
- [[nodiscard]] auto property_activates_default() const -> Glib::PropertyProxy_ReadOnly<bool>;
- [[nodiscard]] auto property_attributes() -> Glib::PropertyProxy<Pango::AttrList>;
- [[nodiscard]] auto property_attributes() const -> Glib::PropertyProxy_ReadOnly<Pango::AttrList>;
- [[nodiscard]] auto property_enable_emoji_completion() -> Glib::PropertyProxy<bool>;
- [[nodiscard]] auto property_enable_emoji_completion() const -> Glib::PropertyProxy_ReadOnly<bool>;
- [[nodiscard]] auto property_input_hints() -> Glib::PropertyProxy<Gtk::InputHints>;
- [[nodiscard]] auto property_input_hints() const -> Glib::PropertyProxy_ReadOnly<Gtk::InputHints>;
- [[nodiscard]] auto property_input_purpose() -> Glib::PropertyProxy<Gtk::InputPurpose>;
- [[nodiscard]] auto property_input_purpose() const -> Glib::PropertyProxy_ReadOnly<Gtk::InputPurpose>;
- [[nodiscard]] auto property_max_length() -> Glib::PropertyProxy<int>;
- [[nodiscard]] auto property_max_length() const -> Glib::PropertyProxy_ReadOnly<int>;
- [[nodiscard]] auto property_show_apply_button() -> Glib::PropertyProxy<bool>;
- [[nodiscard]] auto property_show_apply_button() const -> Glib::PropertyProxy_ReadOnly<bool>;
- [[nodiscard]] auto property_text_length() -> Glib::PropertyProxy_ReadOnly<unsigned int>;
-
-#pragma mark - Signals
- auto signal_apply() -> Glib::SignalProxy<void()>;
- auto signal_entry_activated() -> Glib::SignalProxy<void()>;
-
- protected:
- friend EntryRow_Class;
-
-#pragma mark - Internal Constructors
- explicit EntryRow(Glib::ConstructParams const & params);
- explicit EntryRow(BaseObjectType * gobj);
- };
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwEntryRow * object, bool copy = false) -> Adwaita::EntryRow *;
-} // namespace Glib
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/enums.hpp b/adw/include/adwaitamm/enums.hpp
deleted file mode 100644
index 0d09833..0000000
--- a/adw/include/adwaitamm/enums.hpp
+++ /dev/null
@@ -1,97 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_ENUMS_HPP
-#define LIBADWAITAMM_ENUMS_HPP
-
-#include <glibmm/value.h>
-
-#include <glib-object.h>
-
-namespace Adwaita
-{
- enum struct AccentColor
- {
- Blue,
- Teal,
- Green,
- Yellow,
- Orange,
- Red,
- Pink,
- Purple,
- Slate,
- };
-
- enum struct ColorScheme
- {
- Default,
- ForceLight,
- PreferLight,
- PreferDark,
- ForceDark,
- };
-
- enum struct LengthType
- {
- MinWidth,
- MaxWidth,
- MinHeight,
- MaxHeight,
- };
-
- enum struct PresentationMode
- {
- Auto,
- Floating,
- BottomSheet,
- };
-
- enum struct RatioType
- {
- MinAspectRatio,
- MaxAspectRatio
- };
-
- enum struct ResponseAppearance
- {
- Default,
- Suggested,
- Destructive,
- };
-
- enum class ToastPriority
- {
- Normal,
- High,
- };
-
-} // namespace Adwaita
-
-namespace Glib
-{
-
-#define VALUE_SPECIALIZATION(Enum) \
- template<> \
- class Value<Adwaita::Enum> : public Glib::Value_Enum<Adwaita::Enum> \
- { \
- public: \
- auto static value_type() -> GType; \
- }
-
- VALUE_SPECIALIZATION(AccentColor);
- VALUE_SPECIALIZATION(ColorScheme);
- VALUE_SPECIALIZATION(LengthType);
- VALUE_SPECIALIZATION(PresentationMode);
- VALUE_SPECIALIZATION(RatioType);
- VALUE_SPECIALIZATION(ResponseAppearance);
- VALUE_SPECIALIZATION(ToastPriority);
-
-#undef VALUE_SPECIALIZATION
-
-} // namespace Glib
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/helpers/async_callback.hpp b/adw/include/adwaitamm/helpers/async_callback.hpp
deleted file mode 100644
index e352359..0000000
--- a/adw/include/adwaitamm/helpers/async_callback.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-#ifndef LIBADWAITAMM_HELPERS_ASYNC_CALLBACK_HPP
-#define LIBADWAITAMM_HELPERS_ASYNC_CALLBACK_HPP
-
-#include <glibmm/object.h>
-
-#include <giomm/asyncresult.h>
-
-namespace Adwaita::helpers
-{
-
- auto async_callback(GObject *, GAsyncResult * result, void * data) noexcept -> void;
-
-} // namespace Adwaita::helpers
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/helpers/gobj_mixin.hpp b/adw/include/adwaitamm/helpers/gobj_mixin.hpp
deleted file mode 100644
index ec15996..0000000
--- a/adw/include/adwaitamm/helpers/gobj_mixin.hpp
+++ /dev/null
@@ -1,45 +0,0 @@
-#ifndef LIBADWAITAMM_HELPERS_GOBJ_MIXIN_HPP
-#define LIBADWAITAMM_HELPERS_GOBJ_MIXIN_HPP
-
-#include <glibmm/object.h>
-
-#include <type_traits>
-
-namespace Adwaita::helpers
-{
-
- template<typename SourceType, typename TargetType>
- struct copy_const
- {
- using type = TargetType;
- };
-
- template<typename SourceType, typename TargetType>
- struct copy_const<SourceType const, TargetType>
- {
- using type = std::add_const_t<TargetType>;
- };
-
- template<typename SourceType, typename TargetType>
- using copy_const_t = typename copy_const<SourceType, TargetType>::type;
-
- template<typename CppType, typename BaseType>
- struct gobj_mixin
- {
- template<typename Self>
- auto gobj(this Self && self) noexcept
- {
- using base_type = copy_const_t<std::remove_reference_t<Self>, BaseType>;
- return reinterpret_cast<base_type *>(self.::Glib::Object::gobj());
- }
-
- template<typename Self>
- auto gobj_copy(this Self && self) noexcept
- {
- return reinterpret_cast<BaseType *>(self.::Glib::Object::gobj_copy());
- }
- };
-
-} // namespace Adwaita::helpers
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/preferencesdialog.hpp b/adw/include/adwaitamm/preferencesdialog.hpp
deleted file mode 100644
index cdc1444..0000000
--- a/adw/include/adwaitamm/preferencesdialog.hpp
+++ /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
- */
-
-#ifndef LIBADWAITAMM_PREFERENCES_DIALOG_HPP
-#define LIBADWAITAMM_PREFERENCES_DIALOG_HPP
-
-#include "adwaitamm/dialog.hpp"
-#include "adwaitamm/preferencespage.hpp"
-#include "helpers/gobj_mixin.hpp"
-
-#include <glibmm/object.h>
-
-#include <glib-object.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-preferences-dialog.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct PreferencesDialog : Dialog,
- helpers::gobj_mixin<PreferencesDialog, AdwPreferencesDialog>
- {
- using BaseObjectType = AdwPreferencesDialog;
- using BaseClassType = AdwPreferencesDialogClass;
- using CppObjectType = PreferencesDialog;
- using CppClassType = struct PreferencesDialog_Class;
-
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
-
- explicit PreferencesDialog();
- PreferencesDialog(PreferencesDialog const & other) = delete;
- PreferencesDialog(PreferencesDialog && other) noexcept = default;
-
- auto operator=(PreferencesDialog const & other) noexcept -> PreferencesDialog & = delete;
- auto operator=(PreferencesDialog && other) noexcept -> PreferencesDialog & = default;
-
- auto static get_type() -> GType;
- auto static get_base_type() -> GType;
-
- auto add(PreferencesPage & page) -> void;
- auto set_visible_page(PreferencesPage & page) -> void;
-
- protected:
- friend PreferencesDialog_Class;
-
- explicit PreferencesDialog(Glib::ConstructParams const & params);
- explicit PreferencesDialog(BaseObjectType * gobj);
- };
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwPreferencesDialog * object, bool copy = false) -> Adwaita::PreferencesDialog *;
-} // namespace Glib
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/preferencespage.hpp b/adw/include/adwaitamm/preferencespage.hpp
deleted file mode 100644
index 16ef88a..0000000
--- a/adw/include/adwaitamm/preferencespage.hpp
+++ /dev/null
@@ -1,59 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_PREFERENCES_PAGE_HPP
-#define LIBADWAITAMM_PREFERENCES_PAGE_HPP
-
-#include "helpers/gobj_mixin.hpp"
-
-#include <glibmm/object.h>
-
-#include <gtkmm/widget.h>
-
-#include <glib-object.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-preferences-page.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct PreferencesPage : Gtk::Widget,
- helpers::gobj_mixin<PreferencesPage, AdwPreferencesPage>
- {
-
- using BaseObjectType = AdwPreferencesPage;
- using BaseClassType = AdwPreferencesPageClass;
- using CppObjectType = PreferencesPage;
- using CppClassType = struct PreferencesPage_Class;
-
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
-
- explicit PreferencesPage();
- PreferencesPage(PreferencesPage const & other) = delete;
- PreferencesPage(PreferencesPage && other) noexcept = default;
-
- auto operator=(PreferencesPage const & other) noexcept -> PreferencesPage & = delete;
- auto operator=(PreferencesPage && other) noexcept -> PreferencesPage & = default;
-
- auto static get_type() -> GType;
- auto static get_base_type() -> GType;
-
- protected:
- friend PreferencesPage_Class;
-
- explicit PreferencesPage(Glib::ConstructParams const & params);
- explicit PreferencesPage(BaseObjectType * gobj);
- };
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwPreferencesPage * object, bool copy = false) -> Adwaita::PreferencesPage *;
-} // namespace Glib
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/preferencesrow.hpp b/adw/include/adwaitamm/preferencesrow.hpp
deleted file mode 100644
index 523d3ae..0000000
--- a/adw/include/adwaitamm/preferencesrow.hpp
+++ /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
- */
-
-#ifndef LIBADWAITAMM_PREFERENCES_ROW_HPP
-#define LIBADWAITAMM_PREFERENCES_ROW_HPP
-
-#include "helpers/gobj_mixin.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/ustring.h>
-
-#include <gtkmm/listboxrow.h>
-
-#include <glib-object.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-preferences-row.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct PreferencesRow : Gtk::ListBoxRow,
- helpers::gobj_mixin<PreferencesRow, AdwPreferencesRow>
- {
- using BaseObjectType = AdwPreferencesRow;
- using BaseClassType = AdwPreferencesRowClass;
- using CppObjectType = PreferencesRow;
- using CppClassType = struct PreferencesRow_Class;
-
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
-
- explicit PreferencesRow();
- PreferencesRow(PreferencesRow const & other) = delete;
- PreferencesRow(PreferencesRow && other) noexcept = default;
-
- auto operator=(PreferencesRow const & other) noexcept -> PreferencesRow & = delete;
- auto operator=(PreferencesRow && other) noexcept -> PreferencesRow & = default;
-
- auto static get_type() -> GType;
- auto static get_base_type() -> GType;
-
- auto get_title() const -> Glib::ustring;
- auto get_title_selectable() const noexcept -> bool;
- auto get_use_markup() const noexcept -> bool;
- auto get_use_underline() const noexcept -> bool;
-
- auto set_title(Glib::ustring const & title) -> CppObjectType &;
- auto set_title_selectable(bool selectable) noexcept -> CppObjectType &;
- auto set_use_markup(bool use) noexcept -> CppObjectType &;
- auto set_use_underline(bool use) noexcept -> CppObjectType &;
-
- auto property_title_selectable() -> Glib::PropertyProxy<bool>;
- auto property_title_selectable() const -> Glib::PropertyProxy_ReadOnly<bool>;
- auto property_title() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_title() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_use_markup() -> Glib::PropertyProxy<bool>;
- auto property_use_markup() const -> Glib::PropertyProxy_ReadOnly<bool>;
- auto property_use_underline() -> Glib::PropertyProxy<bool>;
- auto property_use_underline() const -> Glib::PropertyProxy_ReadOnly<bool>;
-
- protected:
- friend PreferencesRow_Class;
-
- explicit PreferencesRow(Glib::ConstructParams const & params);
- explicit PreferencesRow(BaseObjectType * gobj);
- };
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwPreferencesRow * object, bool copy = false) -> Adwaita::PreferencesRow *;
-} // namespace Glib
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/private/aboutdialog_p.hpp b/adw/include/adwaitamm/private/aboutdialog_p.hpp
deleted file mode 100644
index 556bfcc..0000000
--- a/adw/include/adwaitamm/private/aboutdialog_p.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_PRIVATE_ABOUT_DIALOG_P_HPP
-#define LIBADWAITAMM_PRIVATE_ABOUT_DIALOG_P_HPP
-
-#include "adwaitamm/private/dialog_p.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-about-dialog.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct AboutDialog_Class : Glib::Class
- {
- using BaseClassParent = AdwDialogClass;
- using BaseClassType = AdwAboutDialogClass;
- using BaseObjectType = AdwAboutDialog;
- using CppClassParent = Dialog_Class;
- using CppObjectType = struct AboutDialog;
-
- auto init() -> Glib::Class const &;
- auto static class_init_function(void * gclass, void * data) -> void;
- auto static wrap_new(GObject * object) -> Glib::ObjectBase *;
- };
-} // namespace Adwaita
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/private/actionrow_p.hpp b/adw/include/adwaitamm/private/actionrow_p.hpp
deleted file mode 100644
index 2b7ddf9..0000000
--- a/adw/include/adwaitamm/private/actionrow_p.hpp
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_PRIVATE_ACTION_ROW_P_HPP
-#define LIBADWAITAMM_PRIVATE_ACTION_ROW_P_HPP
-
-#include "adwaitamm/private/preferencesrow_p.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-action-row.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct ActionRow_Class : Glib::Class
- {
- using BaseClassParent = AdwPreferencesRowClass;
- using BaseClassType = AdwActionRowClass;
- using BaseObjectType = AdwActionRow;
- using CppClassParent = struct PreferencesRow_Class;
- using CppObjectType = struct ActionRow;
-
- auto init() -> Glib::Class const &;
- auto static class_init_function(void * gclass, void * data) -> void;
- auto static wrap_new(GObject * object) -> Glib::ObjectBase *;
-
- protected:
- auto static activate_vfunc_callback(AdwActionRow * self) -> void;
- };
-} // namespace Adwaita
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/private/alertdialog_p.hpp b/adw/include/adwaitamm/private/alertdialog_p.hpp
deleted file mode 100644
index 77635f0..0000000
--- a/adw/include/adwaitamm/private/alertdialog_p.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_PRIVATE_ALERT_DIALOG_P_HPP
-#define LIBADWAITAMM_PRIVATE_ALERT_DIALOG_P_HPP
-
-#include "adwaitamm/private/dialog_p.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-alert-dialog.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct AlertDialog_Class : Glib::Class
- {
- using BaseClassParent = AdwDialogClass;
- using BaseClassType = AdwAlertDialogClass;
- using BaseObjectType = AdwAlertDialog;
- using CppClassParent = Dialog_Class;
- using CppObjectType = struct AlertDialog;
-
- auto init() -> Glib::Class const &;
- auto static class_init_function(void * gclass, void * data) -> void;
- auto static wrap_new(GObject * object) -> Glib::ObjectBase *;
- };
-} // namespace Adwaita
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/private/application_p.hpp b/adw/include/adwaitamm/private/application_p.hpp
deleted file mode 100644
index c93f6c9..0000000
--- a/adw/include/adwaitamm/private/application_p.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_PRIVATE_APPLICATION_P_HPP
-#define LIBADWAITAMM_PRIVATE_APPLICATION_P_HPP
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/application.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-application.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct Application_Class : Glib::Class
- {
- using BaseClassParent = GtkApplicationClass;
- using BaseClassType = AdwApplicationClass;
- using BaseObjectType = AdwApplication;
- using CppClassParent = Gtk::Application_Class;
- using CppObjectType = struct Application;
-
- auto init() -> Glib::Class const &;
- auto static class_init_function(void * gclass, void * data) -> void;
- auto static wrap_new(GObject * object) -> Glib::ObjectBase *;
- };
-} // namespace Adwaita
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/private/applicationwindow_p.hpp b/adw/include/adwaitamm/private/applicationwindow_p.hpp
deleted file mode 100644
index d12f3a4..0000000
--- a/adw/include/adwaitamm/private/applicationwindow_p.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_PRIVATE_APPLICATION_WINDOW_P_HPP
-#define LIBADWAITAMM_PRIVATE_APPLICATION_WINDOW_P_HPP
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/applicationwindow.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-application-window.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct ApplicationWindow_Class : Glib::Class
- {
- using BaseClassParent = GtkApplicationWindowClass;
- using BaseClassType = AdwApplicationWindowClass;
- using BaseObjectType = AdwApplicationWindow;
- using CppClassParent = Gtk::ApplicationWindow_Class;
- using CppObjectType = struct ApplicationWindow;
-
- auto init() -> Glib::Class const &;
- auto static class_init_function(void * gclass, void * data) -> void;
- auto static wrap_new(GObject * object) -> Glib::ObjectBase *;
- };
-} // namespace Adwaita
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/private/breakpoint_p.hpp b/adw/include/adwaitamm/private/breakpoint_p.hpp
deleted file mode 100644
index 37e745f..0000000
--- a/adw/include/adwaitamm/private/breakpoint_p.hpp
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_PRIVATE_BREAKPOINT_P_HPP
-#define LIBADWAITAMM_PRIVATE_BREAKPOINT_P_HPP
-
-#include <glibmm/class.h>
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-
-#include <glib-object.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-breakpoint.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct Breakpoint_Class : Glib::Class
- {
- using BaseClassParent = GObjectClass;
- using BaseClassType = AdwBreakpointClass;
- using BaseObjectType = AdwBreakpoint;
- using CppClassParent = struct Glib::Object_Class;
- using CppObjectType = struct Breakpoint;
-
- auto init() -> Glib::Class const &;
- auto static class_init_function(void * gclass, void * data) -> void;
- auto static wrap_new(GObject * object) -> Glib::ObjectBase *;
- };
-} // namespace Adwaita
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/private/comborow_p.hpp b/adw/include/adwaitamm/private/comborow_p.hpp
deleted file mode 100644
index e8c3683..0000000
--- a/adw/include/adwaitamm/private/comborow_p.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_PRIVATE_COMBO_ROW_P_HPP
-#define LIBADWAITAMM_PRIVATE_COMBO_ROW_P_HPP
-
-#include "adwaitamm/private/actionrow_p.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-combo-row.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct ComboRow_Class : Glib::Class
- {
- using BaseClassParent = AdwActionRowClass;
- using BaseClassType = AdwComboRowClass;
- using BaseObjectType = AdwComboRow;
- using CppClassParent = ActionRow_Class;
- using CppObjectType = struct ComboRow;
-
- auto init() -> Glib::Class const &;
- auto static class_init_function(void * gclass, void * data) -> void;
- auto static wrap_new(GObject * object) -> Glib::ObjectBase *;
- };
-} // namespace Adwaita
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/private/dialog_p.hpp b/adw/include/adwaitamm/private/dialog_p.hpp
deleted file mode 100644
index 814a44e..0000000
--- a/adw/include/adwaitamm/private/dialog_p.hpp
+++ /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
- */
-
-#ifndef LIBADWAITAMM_PRIVATE_DIALOG_P_HPP
-#define LIBADWAITAMM_PRIVATE_DIALOG_P_HPP
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/widget.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-dialog.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct Dialog_Class : Glib::Class
- {
- using BaseClassParent = GtkWidgetClass;
- using BaseClassType = AdwDialogClass;
- using BaseObjectType = AdwDialog;
- using CppClassParent = Gtk::Widget_Class;
- using CppObjectType = struct Dialog;
-
- auto init() -> Glib::Class const &;
- auto static class_init_function(void * gclass, void * data) -> void;
- auto static wrap_new(GObject * object) -> Glib::ObjectBase *;
-
- protected:
- auto static close_attempt(BaseObjectType * self) -> void;
- auto static closed(BaseObjectType * self) -> void;
- };
-} // namespace Adwaita
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/private/entryrow_p.hpp b/adw/include/adwaitamm/private/entryrow_p.hpp
deleted file mode 100644
index 903776f..0000000
--- a/adw/include/adwaitamm/private/entryrow_p.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_PRIVATE_ENTRY_ROW_P_HPP
-#define LIBADWAITAMM_PRIVATE_ENTRY_ROW_P_HPP
-
-#include "adwaitamm/private/preferencesrow_p.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-entry-row.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct EntryRow_Class : Glib::Class
- {
- using BaseClassParent = AdwPreferencesRowClass;
- using BaseClassType = AdwEntryRowClass;
- using BaseObjectType = AdwEntryRow;
- using CppClassParent = PreferencesRow_Class;
- using CppObjectType = struct EntryRow;
-
- auto init() -> Glib::Class const &;
- auto static class_init_function(void * gclass, void * data) -> void;
- auto static wrap_new(GObject * object) -> Glib::ObjectBase *;
- };
-} // namespace Adwaita
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/private/preferencesdialog_p.hpp b/adw/include/adwaitamm/private/preferencesdialog_p.hpp
deleted file mode 100644
index b146ea6..0000000
--- a/adw/include/adwaitamm/private/preferencesdialog_p.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_PRIVATE_PREFERENCES_DIALOG_P_HPP
-#define LIBADWAITAMM_PRIVATE_PREFERENCES_DIALOG_P_HPP
-
-#include "adwaitamm/private/dialog_p.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-preferences-dialog.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct PreferencesDialog_Class : Glib::Class
- {
- using BaseClassParent = AdwDialogClass;
- using BaseClassType = AdwPreferencesDialogClass;
- using BaseObjectType = AdwPreferencesDialog;
- using CppClassParent = Dialog_Class;
- using CppObjectType = struct PreferencesDialog;
-
- auto init() -> Glib::Class const &;
- auto static class_init_function(void * gclass, void * data) -> void;
- auto static wrap_new(GObject * object) -> Glib::ObjectBase *;
- };
-} // namespace Adwaita
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/private/preferencespage_p.hpp b/adw/include/adwaitamm/private/preferencespage_p.hpp
deleted file mode 100644
index adc297e..0000000
--- a/adw/include/adwaitamm/private/preferencespage_p.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_PRIVATE_PREFERENCES_PAGE_P_HPP
-#define LIBADWAITAMM_PRIVATE_PREFERENCES_PAGE_P_HPP
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/widget.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-preferences-page.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct PreferencesPage_Class : Glib::Class
- {
- using BaseClassParent = GtkWidgetClass;
- using BaseClassType = AdwPreferencesPageClass;
- using BaseObjectType = AdwPreferencesPage;
- using CppClassParent = Gtk::Widget_Class;
- using CppObjectType = struct PreferencesPage;
-
- auto init() -> Glib::Class const &;
- auto static class_init_function(void * gclass, void * data) -> void;
- auto static wrap_new(GObject * object) -> Glib::ObjectBase *;
- };
-} // namespace Adwaita
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/private/preferencesrow_p.hpp b/adw/include/adwaitamm/private/preferencesrow_p.hpp
deleted file mode 100644
index fd6c22b..0000000
--- a/adw/include/adwaitamm/private/preferencesrow_p.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_PRIVATE_PREFERENCES_ROW_P_HPP
-#define LIBADWAITAMM_PRIVATE_PREFERENCES_ROW_P_HPP
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/listboxrow.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-preferences-row.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct PreferencesRow_Class : Glib::Class
- {
- using BaseClassParent = GtkListBoxRowClass;
- using BaseClassType = AdwPreferencesRowClass;
- using BaseObjectType = AdwPreferencesRow;
- using CppClassParent = Gtk::ListBoxRow_Class;
- using CppObjectType = struct PreferencesRow;
-
- auto init() -> Glib::Class const &;
- auto static class_init_function(void * gclass, void * data) -> void;
- auto static wrap_new(GObject * object) -> Glib::ObjectBase *;
- };
-} // namespace Adwaita
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/private/spinrow_p.hpp b/adw/include/adwaitamm/private/spinrow_p.hpp
deleted file mode 100644
index f99c28d..0000000
--- a/adw/include/adwaitamm/private/spinrow_p.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_PRIVATE_SPIN_ROW_P_HPP
-#define LIBADWAITAMM_PRIVATE_SPIN_ROW_P_HPP
-
-#include "adwaitamm/private/actionrow_p.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-spin-row.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct SpinRow_Class : Glib::Class
- {
- using BaseClassParent = AdwActionRowClass;
- using BaseClassType = AdwSpinRowClass;
- using BaseObjectType = AdwSpinRow;
- using CppClassParent = ActionRow_Class;
- using CppObjectType = struct SpinRow;
-
- auto init() -> Glib::Class const &;
- auto static class_init_function(void * gclass, void * data) -> void;
- auto static wrap_new(GObject * object) -> Glib::ObjectBase *;
- };
-} // namespace Adwaita
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/private/stylemanager_p.hpp b/adw/include/adwaitamm/private/stylemanager_p.hpp
deleted file mode 100644
index 52bf7a5..0000000
--- a/adw/include/adwaitamm/private/stylemanager_p.hpp
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_PRIVATE_STYLE_MANAGER_P_HPP
-#define LIBADWAITAMM_PRIVATE_STYLE_MANAGER_P_HPP
-
-#include <glibmm/class.h>
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-
-#include <glib-object.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-style-manager.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct StyleManager_Class : Glib::Class
- {
- using BaseClassParent = GObjectClass;
- using BaseClassType = AdwStyleManagerClass;
- using BaseObjectType = AdwStyleManager;
- using CppClassParent = Glib::Object_Class;
- using CppObjectType = struct StyleManager;
-
- auto init() -> Glib::Class const &;
- auto static class_init_function(void * gclass, void * data) -> void;
- auto static wrap_new(GObject * object) -> Glib::ObjectBase *;
- };
-} // namespace Adwaita
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/private/switchrow_p.hpp b/adw/include/adwaitamm/private/switchrow_p.hpp
deleted file mode 100644
index b1eecc5..0000000
--- a/adw/include/adwaitamm/private/switchrow_p.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_PRIVATE_SWITCH_ROW_P_HPP
-#define LIBADWAITAMM_PRIVATE_SWITCH_ROW_P_HPP
-
-#include "adwaitamm/private/actionrow_p.hpp"
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-switch-row.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct SwitchRow_Class : Glib::Class
- {
- using BaseClassParent = AdwActionRowClass;
- using BaseClassType = AdwSwitchRowClass;
- using BaseObjectType = AdwSwitchRow;
- using CppClassParent = ActionRow_Class;
- using CppObjectType = struct SwitchRow;
-
- auto init() -> Glib::Class const &;
- auto static class_init_function(void * gclass, void * data) -> void;
- auto static wrap_new(GObject * object) -> Glib::ObjectBase *;
- };
-} // namespace Adwaita
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/private/toast_p.hpp b/adw/include/adwaitamm/private/toast_p.hpp
deleted file mode 100644
index 2f2b420..0000000
--- a/adw/include/adwaitamm/private/toast_p.hpp
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_PRIVATE_TOAST_P_HPP
-#define LIBADWAITAMM_PRIVATE_TOAST_P_HPP
-
-#include <glibmm/class.h>
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-
-#include <glib-object.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-toast.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct Toast_Class : Glib::Class
- {
- using BaseClassParent = GObjectClass;
- using BaseClassType = AdwToastClass;
- using BaseObjectType = AdwToast;
- using CppClassParent = Glib::Object_Class;
- using CppObjectType = struct Toast;
-
- auto init() -> Glib::Class const &;
- auto static class_init_function(void * gclass, void * data) -> void;
- auto static wrap_new(GObject * object) -> Glib::ObjectBase *;
- };
-} // namespace Adwaita
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/private/toastoverlay_p.hpp b/adw/include/adwaitamm/private/toastoverlay_p.hpp
deleted file mode 100644
index d19ba8e..0000000
--- a/adw/include/adwaitamm/private/toastoverlay_p.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_PRIVATE_TOAST_OVERLAY_P_HPP
-#define LIBADWAITAMM_PRIVATE_TOAST_OVERLAY_P_HPP
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/widget.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-toast-overlay.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct ToastOverlay_Class : Glib::Class
- {
- using BaseClassParent = GtkWidgetClass;
- using BaseClassType = AdwToastOverlayClass;
- using BaseObjectType = AdwToastOverlay;
- using CppClassParent = Gtk::Widget_Class;
- using CppObjectType = struct ToastOverlay;
-
- auto init() -> Glib::Class const &;
- auto static class_init_function(void * gclass, void * data) -> void;
- auto static wrap_new(GObject * object) -> Glib::ObjectBase *;
- };
-} // namespace Adwaita
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/private/windowtitle_p.hpp b/adw/include/adwaitamm/private/windowtitle_p.hpp
deleted file mode 100644
index 460505a..0000000
--- a/adw/include/adwaitamm/private/windowtitle_p.hpp
+++ /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
- */
-
-#ifndef LIBADWAITAMM_PRIVATE_WINDOW_TITLE_P_HPP
-#define LIBADWAITAMM_PRIVATE_WINDOW_TITLE_P_HPP
-
-#include <glibmm/class.h>
-#include <glibmm/objectbase.h>
-
-#include <gtkmm/widget.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-window-title.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct WindowTitle_Class : Glib::Class
- {
- using BaseClassParent = GtkWidgetClass;
- using BaseClassType = AdwWindowTitleClass;
- using BaseObjectType = AdwWindowTitle;
- using CppClassParent = Gtk::Widget_Class;
- using CppObjectType = struct WindowTitle;
-
- auto init() -> Glib::Class const &;
- auto static class_init_function(void * gclass, void * data) -> void;
- auto static wrap_new(GObject * object) -> Glib::ObjectBase *;
-
- protected:
- auto static close_attempt(BaseObjectType * self) -> void;
- auto static closed(BaseObjectType * self) -> void;
- };
-} // namespace Adwaita
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/spinrow.hpp b/adw/include/adwaitamm/spinrow.hpp
deleted file mode 100644
index f5e02b6..0000000
--- a/adw/include/adwaitamm/spinrow.hpp
+++ /dev/null
@@ -1,117 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_SPIN_ROW_HPP
-#define LIBADWAITAMM_SPIN_ROW_HPP
-
-#include "adwaitamm/actionrow.hpp"
-#include "adwaitamm/helpers/gobj_mixin.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/refptr.h>
-#include <glibmm/signalproxy.h>
-
-#include <gtkmm/adjustment.h>
-#include <gtkmm/spinbutton.h>
-
-#include <glib-object.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-spin-row.h>
-#undef _ADWAITA_INSIDE
-
-using AdwSpinRow = struct _AdwSpinRow;
-
-namespace Adwaita
-{
- struct SpinRow final : ActionRow,
- helpers::gobj_mixin<SpinRow, AdwSpinRow>
- {
- using BaseObjectType = AdwSpinRow;
- using BaseClassType = AdwSpinRowClass;
- using CppObjectType = struct SpinRow;
- using CppClassType = struct SpinRow_Class;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
-
-#pragma mark - Special Member Functions
- SpinRow(Gtk::Adjustment & adjustment, double climb_rate, unsigned int digits);
- SpinRow(double min, double max, double step);
- SpinRow(SpinRow const & other) = delete;
- SpinRow(SpinRow && other) noexcept = default;
-
- auto operator=(SpinRow const & other) noexcept -> SpinRow & = delete;
- auto operator=(SpinRow && other) noexcept -> SpinRow & = default;
-
-#pragma mark - GObject Support
- auto static get_type() -> GType;
- auto static get_base_type() -> GType;
-
-#pragma mark - Functions
- auto configure(Gtk::Adjustment & adjustment, double climb_rate, unsigned int digits) -> void;
- auto update() -> void;
-
-#pragma mark - Getters
- [[nodiscard]] auto get_adjustment() const -> Glib::RefPtr<Gtk::Adjustment>;
- [[nodiscard]] auto get_climb_rate() const -> double;
- [[nodiscard]] auto get_digits() const -> unsigned int;
- [[nodiscard]] auto get_numeric() const -> bool;
- [[nodiscard]] auto get_snap_to_ticks() const -> bool;
- [[nodiscard]] auto get_update_policy() const -> Gtk::SpinButton::UpdatePolicy;
- [[nodiscard]] auto get_value() const -> double;
- [[nodiscard]] auto get_wrap() const -> bool;
-
-#pragma mark - Setters
- auto set_adjustment(Gtk::Adjustment & value) -> void;
- auto set_climb_rate(double value) -> void;
- auto set_digits(unsigned int value) -> void;
- auto set_numeric(bool value) -> void;
- auto set_range(double min, double max) -> void;
- auto set_snap_to_ticks(bool value) -> void;
- auto set_update_policy(Gtk::SpinButton::UpdatePolicy value) -> void;
- auto set_value(double value) -> void;
- auto set_wrap(bool value) -> void;
-
-#pragma mark - Properties
- [[nodiscard]] auto property_adjustment() -> Glib::PropertyProxy<Glib::RefPtr<Gtk::Adjustment>>;
- [[nodiscard]] auto property_adjustment() const -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Gtk::Adjustment>>;
- [[nodiscard]] auto property_climb_rate() -> Glib::PropertyProxy<double>;
- [[nodiscard]] auto property_climb_rate() const -> Glib::PropertyProxy_ReadOnly<double>;
- [[nodiscard]] auto property_digits() -> Glib::PropertyProxy<unsigned int>;
- [[nodiscard]] auto property_digits() const -> Glib::PropertyProxy_ReadOnly<unsigned int>;
- [[nodiscard]] auto property_numeric() -> Glib::PropertyProxy<bool>;
- [[nodiscard]] auto property_numeric() const -> Glib::PropertyProxy_ReadOnly<bool>;
- [[nodiscard]] auto property_snap_to_ticks() -> Glib::PropertyProxy<bool>;
- [[nodiscard]] auto property_snap_to_ticks() const -> Glib::PropertyProxy_ReadOnly<bool>;
- [[nodiscard]] auto property_update_policy() -> Glib::PropertyProxy<Gtk::SpinButton::UpdatePolicy>;
- [[nodiscard]] auto property_update_policy() const -> Glib::PropertyProxy_ReadOnly<Gtk::SpinButton::UpdatePolicy>;
- [[nodiscard]] auto property_value() -> Glib::PropertyProxy<double>;
- [[nodiscard]] auto property_value() const -> Glib::PropertyProxy_ReadOnly<double>;
- [[nodiscard]] auto property_wrap() -> Glib::PropertyProxy<bool>;
- [[nodiscard]] auto property_wrap() const -> Glib::PropertyProxy_ReadOnly<bool>;
-
-#pragma mark - Signals
- auto signal_input() -> Glib::SignalProxy<int(double &)>;
- auto signal_output() -> Glib::SignalProxy<bool()>;
- auto signal_wrapped() -> Glib::SignalProxy<void()>;
-
- protected:
- friend SpinRow_Class;
-
-#pragma mark - Internal Constructors
- explicit SpinRow(Glib::ConstructParams const & params);
- explicit SpinRow(BaseObjectType * gobj);
- };
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwSpinRow * object, bool copy = false) -> Adwaita::SpinRow *;
-} // namespace Glib
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/stylemanager.hpp b/adw/include/adwaitamm/stylemanager.hpp
deleted file mode 100644
index b735cf0..0000000
--- a/adw/include/adwaitamm/stylemanager.hpp
+++ /dev/null
@@ -1,79 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_STYLE_MANAGER_HPP
-#define LIBADWAITAMM_STYLE_MANAGER_HPP
-
-#include "adwaitamm/helpers/gobj_mixin.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/refptr.h>
-#include <glibmm/ustring.h>
-
-#include <gdkmm/display.h>
-#include <gdkmm/rgba.h>
-
-#include <glib-object.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-style-manager.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- enum struct AccentColor;
- enum struct ColorScheme;
-
- struct StyleManager final : Glib::Object,
- helpers::gobj_mixin<StyleManager, AdwStyleManager>
- {
- using BaseObjectType = AdwStyleManager;
- using BaseClassType = AdwStyleManagerClass;
- using CppObjectType = StyleManager;
- using CppClassType = struct StyleManager_Class;
-
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
-
- StyleManager(StyleManager const & other) = delete;
- StyleManager(StyleManager && other) noexcept = delete;
-
- auto operator=(StyleManager const & other) noexcept -> StyleManager & = delete;
- auto operator=(StyleManager && other) noexcept -> StyleManager & = delete;
-
- auto static get_default() -> StyleManager *;
- auto static for_display(Gdk::Display & display) -> StyleManager *;
-
- auto static get_type() -> GType;
- auto static get_base_type() -> GType;
-
- auto get_accent_color() const -> AccentColor;
- auto get_accent_color_rgba() const -> Gdk::RGBA;
- auto get_color_scheme() const -> ColorScheme;
- auto get_dark() const -> bool;
- auto get_display() const -> Glib::RefPtr<Gdk::Display>;
- auto get_document_font_name() const -> Glib::ustring;
- auto get_high_contrast() const -> bool;
- auto get_monospace_font_name() const -> Glib::ustring;
- auto get_system_supports_accent_colors() const -> bool;
- auto get_system_supports_color_schemes() const -> bool;
- auto set_color_scheme(ColorScheme value) -> void;
-
- protected:
- friend StyleManager_Class;
-
- explicit StyleManager(Glib::ConstructParams const & params);
- explicit StyleManager(BaseObjectType * gobj);
- explicit StyleManager();
- };
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwStyleManager * object) -> Adwaita::StyleManager *;
-} // namespace Glib
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/switchrow.hpp b/adw/include/adwaitamm/switchrow.hpp
deleted file mode 100644
index ddcc3f5..0000000
--- a/adw/include/adwaitamm/switchrow.hpp
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_SWITCH_ROW_HPP
-#define LIBADWAITAMM_SWITCH_ROW_HPP
-
-#include "adwaitamm/actionrow.hpp"
-#include "adwaitamm/helpers/gobj_mixin.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/propertyproxy.h>
-
-#include <glib-object.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-switch-row.h>
-#undef _ADWAITA_INSIDE
-
-using AdwSwitchRow = struct _AdwSwitchRow;
-
-namespace Adwaita
-{
- struct SwitchRow final : ActionRow,
- helpers::gobj_mixin<SwitchRow, AdwSwitchRow>
- {
- using BaseObjectType = AdwSwitchRow;
- using BaseClassType = AdwSwitchRowClass;
- using CppObjectType = struct SwitchRow;
- using CppClassType = struct SwitchRow_Class;
-
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
-
- explicit SwitchRow();
- SwitchRow(SwitchRow const & other) = delete;
- SwitchRow(SwitchRow && other) noexcept = default;
-
- auto operator=(SwitchRow const & other) noexcept -> SwitchRow & = delete;
- auto operator=(SwitchRow && other) noexcept -> SwitchRow & = default;
-
- auto static get_type() -> GType;
- auto static get_base_type() -> GType;
-
- auto get_active() const noexcept -> bool;
- auto set_active(bool value) noexcept -> void;
-
- auto property_active() -> Glib::PropertyProxy<bool>;
- auto property_active() const -> Glib::PropertyProxy_ReadOnly<bool>;
-
- protected:
- friend SwitchRow_Class;
-
- explicit SwitchRow(Glib::ConstructParams const & params);
- explicit SwitchRow(BaseObjectType * gobj);
- };
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwSwitchRow * object, bool copy = false) -> Adwaita::SwitchRow *;
-} // namespace Glib
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/toast.hpp b/adw/include/adwaitamm/toast.hpp
deleted file mode 100644
index 8c84fad..0000000
--- a/adw/include/adwaitamm/toast.hpp
+++ /dev/null
@@ -1,119 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_TOAST_HPP
-#define LIBADWAITAMM_TOAST_HPP
-
-#include "adwaitamm/helpers/gobj_mixin.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/refptr.h>
-#include <glibmm/signalproxy.h>
-#include <glibmm/ustring.h>
-#include <glibmm/variant.h>
-
-#include <gtkmm/widget.h>
-
-#include <glib-object.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-toast.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct Toast_Class;
-
- enum struct ToastPriority;
-
- struct Toast final : Glib::Object,
- helpers::gobj_mixin<Toast, AdwToast>
- {
- using BaseObjectType = AdwToast;
- using BaseClassType = AdwToastClass;
- using CppObjectType = Toast;
- using CppClassType = Toast_Class;
-
-#pragma mark - Special Member Functions
- Toast(Toast const & other) = delete;
- Toast(Toast && other) noexcept = default;
-
- auto operator=(Toast const & other) noexcept -> Toast & = delete;
- auto operator=(Toast && other) noexcept -> Toast & = default;
-
-#pragma mark - GObject Support
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
- auto static get_type() -> GType;
- auto static get_base_type() -> GType;
-
-#pragma mark - Factories
- auto static create(Glib::ustring const & title) -> Glib::RefPtr<Toast>;
-
-#pragma mark - Functions
- auto dismiss() -> void;
-
-#pragma mark - Getters
- auto get_action_name() const -> Glib::ustring;
- auto get_action_target_value() const -> Glib::VariantBase;
- auto get_button_label() const -> Glib::ustring;
- auto get_custom_title() const -> Gtk::Widget *;
- auto get_priority() const -> ToastPriority;
- auto get_timeout() const -> unsigned;
- auto get_title() const -> Glib::ustring;
- auto get_use_markup() const -> bool;
-
-#pragma mark - Setters
- auto set_action_name(Glib::ustring value) -> void;
- auto set_action_target_value(Glib::VariantBase const & value) -> void;
- auto set_button_label(Glib::ustring value) -> void;
- auto set_custom_title(Gtk::Widget * value) -> void;
- auto set_detailed_action_name(Glib::ustring value) -> void;
- auto set_priority(ToastPriority value) -> void;
- auto set_timeout(unsigned value) -> void;
- auto set_title(Glib::ustring value) -> void;
- auto set_use_markup(bool value) -> void;
-
-#pragma mark - Properties
- auto property_action_name() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_action_name() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_action_target() -> Glib::PropertyProxy<Glib::VariantBase>;
- auto property_action_target() const -> Glib::PropertyProxy_ReadOnly<Glib::VariantBase>;
- auto property_button_label() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_button_label() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_custom_title() -> Glib::PropertyProxy<Gtk::Widget *>;
- auto property_custom_title() const -> Glib::PropertyProxy_ReadOnly<Gtk::Widget *>;
- auto property_priority() -> Glib::PropertyProxy<ToastPriority>;
- auto property_priority() const -> Glib::PropertyProxy_ReadOnly<ToastPriority>;
- auto property_timeout() -> Glib::PropertyProxy<unsigned>;
- auto property_timeout() const -> Glib::PropertyProxy_ReadOnly<unsigned>;
- auto property_title() -> Glib::PropertyProxy<Glib::ustring>;
- auto property_title() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- auto property_use_markup() -> Glib::PropertyProxy<bool>;
- auto property_use_markup() const -> Glib::PropertyProxy_ReadOnly<bool>;
-
-#pragma mark - Signals
- auto signal_button_clicked() -> Glib::SignalProxy<void()>;
- auto signal_dismissed() -> Glib::SignalProxy<void()>;
-
- protected:
- friend Toast_Class;
-
-#pragma mark - Constructors
- explicit Toast(Glib::ustring const & title);
- explicit Toast(Glib::ConstructParams const & params);
- explicit Toast(BaseObjectType * gobj);
- };
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwToast * object, bool copy = false) -> Glib::RefPtr<Adwaita::Toast>;
-} // namespace Glib
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/toastoverlay.hpp b/adw/include/adwaitamm/toastoverlay.hpp
deleted file mode 100644
index 2015cd8..0000000
--- a/adw/include/adwaitamm/toastoverlay.hpp
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_TOASTOVERLAY_HPP
-#define LIBADWAITAMM_TOASTOVERLAY_HPP
-
-#include "adwaitamm/helpers/gobj_mixin.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/propertyproxy.h>
-
-#include <gtkmm/widget.h>
-
-#include <glib-object.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-toast-overlay.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct ToastOverlay final : Gtk::Widget,
- helpers::gobj_mixin<ToastOverlay, AdwToastOverlay>
- {
- using BaseObjectType = AdwToastOverlay;
- using BaseClassType = AdwToastOverlayClass;
- using CppObjectType = ToastOverlay;
- using CppClassType = struct ToastOverlay_Class;
-
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
-
- explicit ToastOverlay();
- ToastOverlay(ToastOverlay const & other) = delete;
- ToastOverlay(ToastOverlay && other) noexcept = default;
-
- auto operator=(ToastOverlay const & other) noexcept -> ToastOverlay & = delete;
- auto operator=(ToastOverlay && other) noexcept -> ToastOverlay & = default;
-
- auto static get_type() -> GType;
- auto static get_base_type() -> GType;
-
- auto add_toast(struct Toast & toast) -> void;
- auto dismiss_all() -> void;
- auto get_child() const -> Gtk::Widget *;
- auto set_child(Gtk::Widget & value) -> void;
-
- auto property_child() -> Glib::PropertyProxy<Gtk::Widget *>;
- auto property_child() const -> Glib::PropertyProxy_ReadOnly<Gtk::Widget *>;
-
- protected:
- friend ToastOverlay_Class;
-
- explicit ToastOverlay(Glib::ConstructParams const & params);
- explicit ToastOverlay(BaseObjectType * gobj);
- };
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwToastOverlay * object, bool copy = false) -> Adwaita::ToastOverlay *;
-} // namespace Glib
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/windowtitle.hpp b/adw/include/adwaitamm/windowtitle.hpp
deleted file mode 100644
index d142a95..0000000
--- a/adw/include/adwaitamm/windowtitle.hpp
+++ /dev/null
@@ -1,78 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_WINDOW_TITLE_HPP
-#define LIBADWAITAMM_WINDOW_TITLE_HPP
-
-#include "helpers/gobj_mixin.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/ustring.h>
-
-#include <gtkmm/widget.h>
-
-#include <glib-object.h>
-
-#define _ADWAITA_INSIDE
-#include <adw-window-title.h>
-#undef _ADWAITA_INSIDE
-
-namespace Adwaita
-{
- struct WindowTitle final : Gtk::Widget,
- helpers::gobj_mixin<WindowTitle, AdwWindowTitle>
- {
-
- using BaseObjectType = AdwWindowTitle;
- using BaseClassType = AdwWindowTitleClass;
- using CppObjectType = WindowTitle;
- using CppClassType = struct WindowTitle_Class;
-
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
- using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
-
-#pragma mark - Special Member Functions
- WindowTitle(Glib::ustring const & title, Glib::ustring const & subtitle);
- WindowTitle(WindowTitle const & other) = delete;
- WindowTitle(WindowTitle && other) noexcept = default;
-
- auto operator=(WindowTitle const & other) noexcept -> WindowTitle & = delete;
- auto operator=(WindowTitle && other) noexcept -> WindowTitle & = default;
-
-#pragma mark - GObject Support
- auto static get_type() -> GType;
- auto static get_base_type() -> GType;
-
-#pragma mark - Getters
- [[nodiscard]] auto get_subtitle() const -> Glib::ustring;
- [[nodiscard]] auto get_title() const -> Glib::ustring;
-
-#pragma mark - Setters
- auto set_subtitle(Glib::ustring const & value) -> void;
- auto set_title(Glib::ustring const & value) -> void;
-
-#pragma mark - Properties
- [[nodiscard]] auto property_subtitle() -> Glib::PropertyProxy<Glib::ustring>;
- [[nodiscard]] auto property_subtitle() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
- [[nodiscard]] auto property_title() -> Glib::PropertyProxy<Glib::ustring>;
- [[nodiscard]] auto property_title() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>;
-
- protected:
- friend WindowTitle_Class;
-
-#pragma mark - Internal Constructors
- explicit WindowTitle(Glib::ConstructParams const & params);
- explicit WindowTitle(BaseObjectType * gobj);
- };
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwWindowTitle * object, bool copy = false) -> Adwaita::WindowTitle *;
-} // namespace Glib
-
-#endif \ No newline at end of file
diff --git a/adw/include/adwaitamm/wrap_init.hpp b/adw/include/adwaitamm/wrap_init.hpp
deleted file mode 100644
index ae7209d..0000000
--- a/adw/include/adwaitamm/wrap_init.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_WRAP_INIT_HPP
-#define LIBADWAITAMM_WRAP_INIT_HPP
-
-namespace Adwaita
-{
- auto wrap_init() -> void;
-} // namespace Adwaita
-
-#endif \ No newline at end of file
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
diff --git a/deps/libadwaitamm b/deps/libadwaitamm
new file mode 160000
+Subproject f1444607e0dd39cea4591e6bc82938abd61e38e