From 663ec6def00cb498eb12de363ddb721828ab8175 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 26 Apr 2025 18:05:40 +0200 Subject: adw: add missing ActionRow functions --- adw/include/adwaitamm/actionrow.hpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'adw/include/adwaitamm/actionrow.hpp') diff --git a/adw/include/adwaitamm/actionrow.hpp b/adw/include/adwaitamm/actionrow.hpp index b6507b7..8b5db03 100644 --- a/adw/include/adwaitamm/actionrow.hpp +++ b/adw/include/adwaitamm/actionrow.hpp @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include @@ -49,17 +49,21 @@ 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; - auto get_activatable_widget() const noexcept -> Glib::RefPtr; +#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; @@ -67,6 +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; auto property_activatable_widget() const noexcept -> Glib::PropertyProxy_ReadOnly; [[deprecated("replaced by add_prefix")]] auto property_icon_name() noexcept -> Glib::PropertyProxy; @@ -80,9 +85,16 @@ namespace Adwaita auto property_title_lines() noexcept -> Glib::PropertyProxy; auto property_title_lines() const noexcept -> Glib::PropertyProxy_ReadOnly; +#pragma mark - Signals + auto signal_activated() -> Glib::SignalProxy; + 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); }; -- cgit v1.2.3