diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-26 18:05:40 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-26 18:05:40 +0200 |
| commit | 663ec6def00cb498eb12de363ddb721828ab8175 (patch) | |
| tree | 38355f679c8fe206f3382392dc788efa9201f91f /adw/include/adwaitamm | |
| parent | 558bfbab432caaafa324e669d0987457b5e48b80 (diff) | |
| download | turns-663ec6def00cb498eb12de363ddb721828ab8175.tar.xz turns-663ec6def00cb498eb12de363ddb721828ab8175.zip | |
adw: add missing ActionRow functions
Diffstat (limited to 'adw/include/adwaitamm')
| -rw-r--r-- | adw/include/adwaitamm/actionrow.hpp | 16 | ||||
| -rw-r--r-- | adw/include/adwaitamm/private/actionrow_p.hpp | 3 |
2 files changed, 17 insertions, 2 deletions
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 <glibmm/object.h> #include <glibmm/objectbase.h> #include <glibmm/propertyproxy.h> -#include <glibmm/refptr.h> +#include <glibmm/signalproxy.h> #include <glibmm/ustring.h> #include <gtkmm/widget.h> @@ -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<Gtk::Widget>; +#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<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>; @@ -80,9 +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/adw/include/adwaitamm/private/actionrow_p.hpp b/adw/include/adwaitamm/private/actionrow_p.hpp index b8a24eb..2b7ddf9 100644 --- a/adw/include/adwaitamm/private/actionrow_p.hpp +++ b/adw/include/adwaitamm/private/actionrow_p.hpp @@ -29,6 +29,9 @@ namespace Adwaita 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 |
