diff options
Diffstat (limited to 'lib/src/turnsmm')
| -rw-r--r-- | lib/src/turnsmm/turn-order.cpp | 6 | ||||
| -rw-r--r-- | lib/src/turnsmm/turn-order.hpp | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/src/turnsmm/turn-order.cpp b/lib/src/turnsmm/turn-order.cpp index 35694b2..3767817 100644 --- a/lib/src/turnsmm/turn-order.cpp +++ b/lib/src/turnsmm/turn-order.cpp @@ -21,6 +21,7 @@ #include <giomm/listmodel.h> #include <glib-object.h> +#include <glib.h> #include <bit> #include <cstddef> @@ -98,6 +99,11 @@ namespace Turns return turns_turn_order_clear(Glib::unwrap(this)); } + auto TurnOrder::remove_at(guint position) noexcept -> void + { + return turns_turn_order_remove_at(unwrap(this), position); + } + auto TurnOrder::get_participant_count() const noexcept -> std::size_t { return turns_turn_order_get_participant_count(unwrap(this)); diff --git a/lib/src/turnsmm/turn-order.hpp b/lib/src/turnsmm/turn-order.hpp index 64f72aa..fe8c756 100644 --- a/lib/src/turnsmm/turn-order.hpp +++ b/lib/src/turnsmm/turn-order.hpp @@ -51,6 +51,7 @@ namespace Turns auto add(Glib::RefPtr<Participant> const & participant) noexcept -> void; auto clear() noexcept -> void; + auto remove_at(guint position) noexcept -> void; [[nodiscard]] auto get_participant_count() const noexcept -> std::size_t; [[nodiscard]] auto get_running() const noexcept -> bool; |
