From f1444607e0dd39cea4591e6bc82938abd61e38e2 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 28 Apr 2025 13:52:49 +0200 Subject: adw: extract libadwaitamm --- include/adwaitamm/dialog.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'include/adwaitamm/dialog.hpp') diff --git a/include/adwaitamm/dialog.hpp b/include/adwaitamm/dialog.hpp index 82e1cd1..015678a 100644 --- a/include/adwaitamm/dialog.hpp +++ b/include/adwaitamm/dialog.hpp @@ -41,7 +41,7 @@ namespace Adwaita using helpers::gobj_mixin::gobj; using helpers::gobj_mixin::gobj_copy; -#pragma mark - Special Member Functions + explicit Dialog(); Dialog(Dialog const & other) = delete; Dialog(Dialog && other) noexcept = default; @@ -49,17 +49,17 @@ namespace Adwaita auto operator=(Dialog const & other) noexcept -> Dialog & = delete; auto operator=(Dialog && other) noexcept -> Dialog & = default; -#pragma mark - GObject Support + auto static get_type() -> GType; auto static get_base_type() -> GType; -#pragma mark - Functions + auto add_breakpoint(Glib::RefPtr const & breakpoint) -> void; auto close() -> void; auto force_close() -> void; auto present(Gtk::Widget * parent) -> void; -#pragma mark - Getters + [[nodiscard]] auto get_can_close() const -> bool; [[nodiscard]] auto get_child() const -> Gtk::Widget *; [[nodiscard]] auto get_content_height() const -> int; @@ -71,7 +71,7 @@ namespace Adwaita [[nodiscard]] auto get_presentation_mode() const -> PresentationMode; [[nodiscard]] auto get_title() const -> Glib::ustring; -#pragma mark - Setters + auto set_can_close(bool value) -> void; auto set_child(Gtk::Widget & value) -> void; auto set_content_height(int value) -> void; @@ -82,7 +82,7 @@ namespace Adwaita auto set_presentation_mode(PresentationMode value) -> void; auto set_title(Glib::ustring const & str) -> void; -#pragma mark - Properties + [[nodiscard]] auto property_can_close() -> Glib::PropertyProxy; [[nodiscard]] auto property_can_close() const -> Glib::PropertyProxy_ReadOnly; [[nodiscard]] auto property_child() -> Glib::PropertyProxy; @@ -103,18 +103,18 @@ namespace Adwaita [[nodiscard]] auto property_title() -> Glib::PropertyProxy; [[nodiscard]] auto property_title() const -> Glib::PropertyProxy_ReadOnly; -#pragma mark - Signals + [[nodiscard]] auto signal_close_attempt() -> Glib::SignalProxy; [[nodiscard]] auto signal_closed() -> Glib::SignalProxy; protected: friend Dialog_Class; -#pragma mark - Default Signal Handlers + auto virtual on_close_attempt() -> void; auto virtual on_closed() -> void; -#pragma mark - Internal Constructors + explicit Dialog(Glib::ConstructParams const & params); explicit Dialog(BaseObjectType * gobj); }; -- cgit v1.2.3