diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-19 13:42:39 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-19 13:42:39 +0200 |
| commit | 0a5f3b25214c11556f62ce04601c06812a3464d8 (patch) | |
| tree | d35ed88fc142927f6d34af7e0ddcc4bafb25145a /lib/src/turnsmm/turn-order.hpp | |
| parent | d0b647c3156b07c70e9831aa86ef76ee40413d0c (diff) | |
| download | turns-0a5f3b25214c11556f62ce04601c06812a3464d8.tar.xz turns-0a5f3b25214c11556f62ce04601c06812a3464d8.zip | |
lib: add support for different sort modes
Diffstat (limited to 'lib/src/turnsmm/turn-order.hpp')
| -rw-r--r-- | lib/src/turnsmm/turn-order.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/src/turnsmm/turn-order.hpp b/lib/src/turnsmm/turn-order.hpp index 9485275..c135ab2 100644 --- a/lib/src/turnsmm/turn-order.hpp +++ b/lib/src/turnsmm/turn-order.hpp @@ -2,6 +2,7 @@ #define TURNSMM_TURN_ORDER_HPP #include "turns-turn-order.h" +#include "turnsmm/enums.hpp" #include "turnsmm/participant.hpp" #include <glibmm/object.h> @@ -40,8 +41,13 @@ namespace Turns [[nodiscard]] auto get_participant_count() const noexcept -> std::size_t; [[nodiscard]] auto get_running() const noexcept -> bool; + [[nodiscard]] auto get_sort_mode() const noexcept -> SortMode; + + auto set_sort_mode(SortMode value) noexcept -> void; [[nodiscard]] auto property_running() const noexcept -> Glib::PropertyProxy_ReadOnly<bool>; + [[nodiscard]] auto property_sort_mode() noexcept -> Glib::PropertyProxy<SortMode>; + [[nodiscard]] auto property_sort_mode() const noexcept -> Glib::PropertyProxy_ReadOnly<SortMode>; protected: friend TurnOrder_Class; |
