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/dialog.hpp | |
| parent | 00ab9e29298ae1884591685b63e73528cb762084 (diff) | |
| download | libadwaitamm-f1444607e0dd39cea4591e6bc82938abd61e38e2.tar.xz libadwaitamm-f1444607e0dd39cea4591e6bc82938abd61e38e2.zip | |
adw: extract libadwaitamm
Diffstat (limited to 'include/adwaitamm/dialog.hpp')
| -rw-r--r-- | include/adwaitamm/dialog.hpp | 18 |
1 files changed, 9 insertions, 9 deletions
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<CppObjectType, BaseObjectType>::gobj; using helpers::gobj_mixin<CppObjectType, BaseObjectType>::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<Breakpoint> 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<bool>; [[nodiscard]] auto property_can_close() const -> Glib::PropertyProxy_ReadOnly<bool>; [[nodiscard]] auto property_child() -> Glib::PropertyProxy<Gtk::Widget *>; @@ -103,18 +103,18 @@ namespace Adwaita [[nodiscard]] auto property_title() -> Glib::PropertyProxy<Glib::ustring>; [[nodiscard]] auto property_title() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>; -#pragma mark - Signals + [[nodiscard]] auto signal_close_attempt() -> Glib::SignalProxy<void()>; [[nodiscard]] auto signal_closed() -> Glib::SignalProxy<void()>; 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); }; |
