diff options
Diffstat (limited to 'adw/include/adwaitamm')
40 files changed, 0 insertions, 2491 deletions
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 |
