diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-28 13:52:49 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-28 13:52:49 +0200 |
| commit | f1444607e0dd39cea4591e6bc82938abd61e38e2 (patch) | |
| tree | d4d8e2157749624acf57f511d0988be78f8442e6 /include/adwaitamm/toast.hpp | |
| parent | 00ab9e29298ae1884591685b63e73528cb762084 (diff) | |
| download | libadwaitamm-f1444607e0dd39cea4591e6bc82938abd61e38e2.tar.xz libadwaitamm-f1444607e0dd39cea4591e6bc82938abd61e38e2.zip | |
adw: extract libadwaitamm
Diffstat (limited to 'include/adwaitamm/toast.hpp')
| -rw-r--r-- | include/adwaitamm/toast.hpp | 18 |
1 files changed, 9 insertions, 9 deletions
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); |
