aboutsummaryrefslogtreecommitdiff
path: root/include/adwaitamm/actionrow.hpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-04-26 18:05:40 +0200
committerFelix Morgner <felix.morgner@gmail.com>2025-04-26 18:05:40 +0200
commitafe4ebed3fc618ee42f1e2705c8ff6c7b38f4913 (patch)
tree367564b3712071a87f89a02ffcb1abd907b0142b /include/adwaitamm/actionrow.hpp
parent7b4dc02aaabc64cb8480d897feaa93673c422a21 (diff)
downloadlibadwaitamm-afe4ebed3fc618ee42f1e2705c8ff6c7b38f4913.tar.xz
libadwaitamm-afe4ebed3fc618ee42f1e2705c8ff6c7b38f4913.zip
adw: add missing ActionRow functions
Diffstat (limited to 'include/adwaitamm/actionrow.hpp')
-rw-r--r--include/adwaitamm/actionrow.hpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/include/adwaitamm/actionrow.hpp b/include/adwaitamm/actionrow.hpp
index b6507b7..8b5db03 100644
--- a/include/adwaitamm/actionrow.hpp
+++ b/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);
};