diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-13 18:12:56 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-13 18:12:56 +0200 |
| commit | 135ce06aa89742459473829966480bbc94d4b5c6 (patch) | |
| tree | fe3e4142d8b68a7eda7227f574765b32660901e8 /lib/src/turnsmm/turn-order.hpp | |
| parent | 9513f7303ffde9fbda869e346523a23197f4ece9 (diff) | |
| download | turns-135ce06aa89742459473829966480bbc94d4b5c6.tar.xz turns-135ce06aa89742459473829966480bbc94d4b5c6.zip | |
lib: add participant-count property
Diffstat (limited to 'lib/src/turnsmm/turn-order.hpp')
| -rw-r--r-- | lib/src/turnsmm/turn-order.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/src/turnsmm/turn-order.hpp b/lib/src/turnsmm/turn-order.hpp index 822e879..25fc0b5 100644 --- a/lib/src/turnsmm/turn-order.hpp +++ b/lib/src/turnsmm/turn-order.hpp @@ -8,6 +8,8 @@ #include <glibmm/refptr.h> #include <glibmm/ustring.h> +#include <cstddef> + namespace Turns { @@ -25,8 +27,10 @@ namespace Turns [[nodiscard]] auto gobj() const -> BaseObjectType const *; [[nodiscard]] auto gobj_copy() noexcept -> BaseObjectType *; + [[nodiscard]] auto get_participant_count() const noexcept -> std::size_t; [[nodiscard]] auto get_running() const noexcept -> bool; + [[nodiscard]] auto property_participant_count() const noexcept -> Glib::PropertyProxy_ReadOnly<std::size_t>; [[nodiscard]] auto property_running() const noexcept -> Glib::PropertyProxy_ReadOnly<bool>; protected: |
