diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-23 11:06:04 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-23 11:06:04 +0200 |
| commit | 260df0a1158385736b2da24a2e4a14e365d1ec92 (patch) | |
| tree | e589f2941e514785a0126a7512a191009fed4569 /lib/src/turnsmm/turn-order.cpp | |
| parent | ddce5043e70de5eab3d35b0986faf9a12933dedf (diff) | |
| download | turns-260df0a1158385736b2da24a2e4a14e365d1ec92.tar.xz turns-260df0a1158385736b2da24a2e4a14e365d1ec92.zip | |
lib: add remove_at to TurnOrder
Diffstat (limited to 'lib/src/turnsmm/turn-order.cpp')
| -rw-r--r-- | lib/src/turnsmm/turn-order.cpp | 6 |
1 files changed, 6 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)); |
