diff options
Diffstat (limited to 'lib/include')
| -rw-r--r-- | lib/include/turns-turn-order.h | 10 | ||||
| -rw-r--r-- | lib/include/turnsmm/turn-order.hpp | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/include/turns-turn-order.h b/lib/include/turns-turn-order.h index 5e34405..0f42369 100644 --- a/lib/include/turns-turn-order.h +++ b/lib/include/turns-turn-order.h @@ -10,6 +10,7 @@ #include <glib-object.h> #include <glib.h> +#include <glibconfig.h> G_BEGIN_DECLS @@ -103,6 +104,15 @@ G_GNUC_WARN_UNUSED_RESULT gboolean turns_turn_order_get_running(TurnsTurnOrder const * self); /** + * turns_turn_order_get_round_progress: (get-property round-progress): + * @self: a turn order. + * + * Gets the progress of the current round. + */ +G_GNUC_WARN_UNUSED_RESULT +gfloat turns_turn_order_get_round_progress(TurnsTurnOrder const * self); + +/** * turns_turn_order_get_sort_mode: (get-property sort-mode): * @self: a turn order. * diff --git a/lib/include/turnsmm/turn-order.hpp b/lib/include/turnsmm/turn-order.hpp index ebe09f7..759eedb 100644 --- a/lib/include/turnsmm/turn-order.hpp +++ b/lib/include/turnsmm/turn-order.hpp @@ -55,6 +55,7 @@ namespace Turns [[nodiscard]] auto get_empty() const noexcept -> bool; [[nodiscard]] auto get_participant_count() const noexcept -> std::size_t; [[nodiscard]] auto get_running() const noexcept -> bool; + [[nodiscard]] auto get_round_progress() const noexcept -> float; [[nodiscard]] auto get_sort_mode() const noexcept -> SortMode; auto set_sort_mode(SortMode value) noexcept -> void; @@ -62,6 +63,7 @@ namespace Turns [[nodiscard]] auto property_empty() const noexcept -> Glib::PropertyProxy_ReadOnly<bool>; [[nodiscard]] auto property_participant_count() const noexcept -> Glib::PropertyProxy_ReadOnly<std::size_t>; [[nodiscard]] auto property_running() const noexcept -> Glib::PropertyProxy_ReadOnly<bool>; + [[nodiscard]] auto property_round_progress() const noexcept -> Glib::PropertyProxy_ReadOnly<float>; [[nodiscard]] auto property_sort_mode() noexcept -> Glib::PropertyProxy<SortMode>; [[nodiscard]] auto property_sort_mode() const noexcept -> Glib::PropertyProxy_ReadOnly<SortMode>; |
