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/spinrow.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'include/adwaitamm/spinrow.hpp') diff --git a/include/adwaitamm/spinrow.hpp b/include/adwaitamm/spinrow.hpp index f5e02b6..15aac22 100644 --- a/include/adwaitamm/spinrow.hpp +++ b/include/adwaitamm/spinrow.hpp @@ -38,7 +38,7 @@ namespace Adwaita using helpers::gobj_mixin::gobj; using helpers::gobj_mixin::gobj_copy; -#pragma mark - Special Member Functions + SpinRow(Gtk::Adjustment & adjustment, double climb_rate, unsigned int digits); SpinRow(double min, double max, double step); SpinRow(SpinRow const & other) = delete; @@ -47,15 +47,15 @@ namespace Adwaita auto operator=(SpinRow const & other) noexcept -> SpinRow & = delete; auto operator=(SpinRow && other) noexcept -> SpinRow & = default; -#pragma mark - GObject Support + auto static get_type() -> GType; auto static get_base_type() -> GType; -#pragma mark - Functions + auto configure(Gtk::Adjustment & adjustment, double climb_rate, unsigned int digits) -> void; auto update() -> void; -#pragma mark - Getters + [[nodiscard]] auto get_adjustment() const -> Glib::RefPtr; [[nodiscard]] auto get_climb_rate() const -> double; [[nodiscard]] auto get_digits() const -> unsigned int; @@ -65,7 +65,7 @@ namespace Adwaita [[nodiscard]] auto get_value() const -> double; [[nodiscard]] auto get_wrap() const -> bool; -#pragma mark - Setters + auto set_adjustment(Gtk::Adjustment & value) -> void; auto set_climb_rate(double value) -> void; auto set_digits(unsigned int value) -> void; @@ -76,7 +76,7 @@ namespace Adwaita auto set_value(double value) -> void; auto set_wrap(bool value) -> void; -#pragma mark - Properties + [[nodiscard]] auto property_adjustment() -> Glib::PropertyProxy>; [[nodiscard]] auto property_adjustment() const -> Glib::PropertyProxy_ReadOnly>; [[nodiscard]] auto property_climb_rate() -> Glib::PropertyProxy; @@ -94,7 +94,7 @@ namespace Adwaita [[nodiscard]] auto property_wrap() -> Glib::PropertyProxy; [[nodiscard]] auto property_wrap() const -> Glib::PropertyProxy_ReadOnly; -#pragma mark - Signals + auto signal_input() -> Glib::SignalProxy; auto signal_output() -> Glib::SignalProxy; auto signal_wrapped() -> Glib::SignalProxy; @@ -102,7 +102,7 @@ namespace Adwaita protected: friend SpinRow_Class; -#pragma mark - Internal Constructors + explicit SpinRow(Glib::ConstructParams const & params); explicit SpinRow(BaseObjectType * gobj); }; -- cgit v1.2.3