diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-04 22:15:41 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-04 22:15:41 +0200 |
| commit | b95258f419c62f7f38ec6128568df5897e4f5696 (patch) | |
| tree | cb8a0820980b624a1e502a7a7500583242b536e7 /adw/include/adwaitamm/actionrow.hpp | |
| parent | c563d8c5b0a4d46676ea21920381c32dbdd66159 (diff) | |
| download | turns-b95258f419c62f7f38ec6128568df5897e4f5696.tar.xz turns-b95258f419c62f7f38ec6128568df5897e4f5696.zip | |
adw: clean up property definitions
Diffstat (limited to 'adw/include/adwaitamm/actionrow.hpp')
| -rw-r--r-- | adw/include/adwaitamm/actionrow.hpp | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/adw/include/adwaitamm/actionrow.hpp b/adw/include/adwaitamm/actionrow.hpp index c7ff6c2..5b99ab7 100644 --- a/adw/include/adwaitamm/actionrow.hpp +++ b/adw/include/adwaitamm/actionrow.hpp @@ -1,8 +1,8 @@ #ifndef LIBADWAITAMM_ACTION_ROW_HPP #define LIBADWAITAMM_ACTION_ROW_HPP -#include "helpers/gobj_mixin.hpp" #include "adwaitamm/preferencesrow.hpp" +#include "helpers/gobj_mixin.hpp" #include <glibmm/class.h> #include <glibmm/object.h> @@ -55,9 +55,9 @@ namespace Adwaita auto static get_type() -> GType; auto static get_base_type() -> GType; - auto add_prefix(Gtk::Widget & widget) -> ActionRow &; - auto add_suffix(Gtk::Widget & widget) -> ActionRow &; - auto remove(Gtk::Widget & widget) -> ActionRow &; + 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>; [[deprecated("replaced by add_prefix")]] auto get_icon_name() const -> Glib::ustring; @@ -66,19 +66,25 @@ namespace Adwaita auto get_subtitle_selectable() const noexcept -> bool; auto get_title_lines() const noexcept -> int; + 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; + 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 set_activatable_widget(Gtk::Widget & widget) noexcept -> CppObjectType &; - [[deprecated("replaced by add_prefix")]] auto set_icon_name(Glib::ustring const & name) -> CppObjectType &; - auto set_subtitle(Glib::ustring const & subtitle) -> CppObjectType &; - auto set_subtitle_lines(int subtitle_lines) noexcept -> CppObjectType &; - auto set_subtitle_selectable(bool subtitle_selectable) noexcept -> CppObjectType &; - auto set_title_lines(int title_lines) noexcept -> CppObjectType &; + auto property_title_lines() const noexcept -> Glib::PropertyProxy_ReadOnly<int>; protected: explicit ActionRow(Glib::ConstructParams const & params); |
