From 8b871a613647f64658bf6c098510cc3a35ba1b48 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 5 Jun 2025 15:00:34 +0200 Subject: lib: add round-progress property to TurnOrder --- lib/include/turns-turn-order.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/include/turns-turn-order.h') 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 #include +#include G_BEGIN_DECLS @@ -102,6 +103,15 @@ gsize turns_turn_order_get_participant_count(TurnsTurnOrder const * self); 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. -- cgit v1.2.3