diff options
Diffstat (limited to 'lib/src/turnsmm/turn-order.cpp')
| -rw-r--r-- | lib/src/turnsmm/turn-order.cpp | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/lib/src/turnsmm/turn-order.cpp b/lib/src/turnsmm/turn-order.cpp index 3767817..5f38ded 100644 --- a/lib/src/turnsmm/turn-order.cpp +++ b/lib/src/turnsmm/turn-order.cpp @@ -104,6 +104,11 @@ namespace Turns return turns_turn_order_remove_at(unwrap(this), position); } + auto TurnOrder::get_empty() const noexcept -> bool + { + return turns_turn_order_get_empty(Glib::unwrap(this)); + } + auto TurnOrder::get_participant_count() const noexcept -> std::size_t { return turns_turn_order_get_participant_count(unwrap(this)); @@ -114,11 +119,6 @@ namespace Turns return turns_turn_order_get_running(unwrap(this)); } - auto TurnOrder::property_running() const noexcept -> Glib::PropertyProxy_ReadOnly<bool> - { - return {this, "running"}; - } - auto TurnOrder::get_sort_mode() const noexcept -> SortMode { return static_cast<SortMode>(turns_turn_order_get_sort_mode(unwrap(this))); @@ -129,6 +129,16 @@ namespace Turns turns_turn_order_set_sort_mode(unwrap(this), static_cast<TurnsTurnOrderSortMode>(value)); } + auto TurnOrder::property_empty() const noexcept -> Glib::PropertyProxy_ReadOnly<bool> + { + return {this, "empty"}; + } + + auto TurnOrder::property_running() const noexcept -> Glib::PropertyProxy_ReadOnly<bool> + { + return {this, "running"}; + } + auto TurnOrder::property_sort_mode() noexcept -> Glib::PropertyProxy<SortMode> { return {this, "sort_mode"}; |
