aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-04-28 13:52:49 +0200
committerFelix Morgner <felix.morgner@gmail.com>2025-04-28 13:52:49 +0200
commitf1444607e0dd39cea4591e6bc82938abd61e38e2 (patch)
treed4d8e2157749624acf57f511d0988be78f8442e6 /include
parent00ab9e29298ae1884591685b63e73528cb762084 (diff)
downloadlibadwaitamm-f1444607e0dd39cea4591e6bc82938abd61e38e2.tar.xz
libadwaitamm-f1444607e0dd39cea4591e6bc82938abd61e38e2.zip
adw: extract libadwaitamm
Diffstat (limited to 'include')
-rw-r--r--include/adwaitamm/aboutdialog.hpp16
-rw-r--r--include/adwaitamm/actionrow.hpp14
-rw-r--r--include/adwaitamm/comborow.hpp12
-rw-r--r--include/adwaitamm/dialog.hpp18
-rw-r--r--include/adwaitamm/entryrow.hpp16
-rw-r--r--include/adwaitamm/spinrow.hpp16
-rw-r--r--include/adwaitamm/toast.hpp18
-rw-r--r--include/adwaitamm/windowtitle.hpp12
8 files changed, 61 insertions, 61 deletions
diff --git a/include/adwaitamm/aboutdialog.hpp b/include/adwaitamm/aboutdialog.hpp
index 86f6751..02c61cd 100644
--- a/include/adwaitamm/aboutdialog.hpp
+++ b/include/adwaitamm/aboutdialog.hpp
@@ -42,7 +42,7 @@ namespace Adwaita
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;
@@ -51,11 +51,11 @@ namespace Adwaita
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
@@ -64,7 +64,7 @@ namespace Adwaita
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>;
@@ -86,7 +86,7 @@ namespace Adwaita
[[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;
@@ -108,7 +108,7 @@ namespace Adwaita
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>;
@@ -150,13 +150,13 @@ namespace Adwaita
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);
};
diff --git a/include/adwaitamm/actionrow.hpp b/include/adwaitamm/actionrow.hpp
index 8b5db03..fb002fd 100644
--- a/include/adwaitamm/actionrow.hpp
+++ b/include/adwaitamm/actionrow.hpp
@@ -49,13 +49,13 @@ namespace Adwaita
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;
@@ -63,7 +63,7 @@ namespace Adwaita
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;
@@ -71,7 +71,7 @@ namespace Adwaita
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>;
@@ -85,16 +85,16 @@ namespace Adwaita
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);
};
diff --git a/include/adwaitamm/comborow.hpp b/include/adwaitamm/comborow.hpp
index 416c693..71bf518 100644
--- a/include/adwaitamm/comborow.hpp
+++ b/include/adwaitamm/comborow.hpp
@@ -42,7 +42,7 @@ namespace Adwaita
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;
@@ -50,11 +50,11 @@ namespace Adwaita
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>;
@@ -66,7 +66,7 @@ namespace Adwaita
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;
@@ -77,7 +77,7 @@ namespace Adwaita
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>>>;
@@ -101,7 +101,7 @@ namespace Adwaita
protected:
friend ComboRow_Class;
-#pragma mark - Internal Constructors
+
explicit ComboRow(Glib::ConstructParams const & params);
explicit ComboRow(BaseObjectType * gobj);
};
diff --git a/include/adwaitamm/dialog.hpp b/include/adwaitamm/dialog.hpp
index 82e1cd1..015678a 100644
--- a/include/adwaitamm/dialog.hpp
+++ b/include/adwaitamm/dialog.hpp
@@ -41,7 +41,7 @@ namespace Adwaita
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;
@@ -49,17 +49,17 @@ namespace Adwaita
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;
@@ -71,7 +71,7 @@ namespace Adwaita
[[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;
@@ -82,7 +82,7 @@ namespace Adwaita
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 *>;
@@ -103,18 +103,18 @@ namespace Adwaita
[[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);
};
diff --git a/include/adwaitamm/entryrow.hpp b/include/adwaitamm/entryrow.hpp
index 16f0f3b..416323c 100644
--- a/include/adwaitamm/entryrow.hpp
+++ b/include/adwaitamm/entryrow.hpp
@@ -46,7 +46,7 @@ namespace Adwaita
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;
@@ -54,17 +54,17 @@ namespace Adwaita
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;
@@ -74,7 +74,7 @@ namespace Adwaita
[[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;
@@ -83,7 +83,7 @@ namespace Adwaita
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>;
@@ -100,14 +100,14 @@ namespace Adwaita
[[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);
};
diff --git a/include/adwaitamm/spinrow.hpp b/include/adwaitamm/spinrow.hpp
index f5e02b6..15aac22 100644
--- a/include/adwaitamm/spinrow.hpp
+++ b/include/adwaitamm/spinrow.hpp
@@ -38,7 +38,7 @@ namespace Adwaita
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;
@@ -47,15 +47,15 @@ namespace Adwaita
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;
@@ -65,7 +65,7 @@ namespace Adwaita
[[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;
@@ -76,7 +76,7 @@ namespace Adwaita
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>;
@@ -94,7 +94,7 @@ namespace Adwaita
[[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()>;
@@ -102,7 +102,7 @@ namespace Adwaita
protected:
friend SpinRow_Class;
-#pragma mark - Internal Constructors
+
explicit SpinRow(Glib::ConstructParams const & params);
explicit SpinRow(BaseObjectType * gobj);
};
diff --git a/include/adwaitamm/toast.hpp b/include/adwaitamm/toast.hpp
index 8c84fad..af29df3 100644
--- a/include/adwaitamm/toast.hpp
+++ b/include/adwaitamm/toast.hpp
@@ -38,26 +38,26 @@ namespace Adwaita
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;
@@ -67,7 +67,7 @@ namespace Adwaita
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;
@@ -78,7 +78,7 @@ namespace Adwaita
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>;
@@ -96,14 +96,14 @@ namespace Adwaita
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);
diff --git a/include/adwaitamm/windowtitle.hpp b/include/adwaitamm/windowtitle.hpp
index d142a95..e84fa06 100644
--- a/include/adwaitamm/windowtitle.hpp
+++ b/include/adwaitamm/windowtitle.hpp
@@ -35,7 +35,7 @@ namespace Adwaita
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;
@@ -43,19 +43,19 @@ namespace Adwaita
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>;
@@ -64,7 +64,7 @@ namespace Adwaita
protected:
friend WindowTitle_Class;
-#pragma mark - Internal Constructors
+
explicit WindowTitle(Glib::ConstructParams const & params);
explicit WindowTitle(BaseObjectType * gobj);
};