From f61df0b33ea2a2de064f1fa2a9cde191b790a5ba Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 19 May 2025 16:28:02 +0200 Subject: lib: rescope enums --- lib/src/turnsmm/turn-order.hpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'lib/src/turnsmm/turn-order.hpp') diff --git a/lib/src/turnsmm/turn-order.hpp b/lib/src/turnsmm/turn-order.hpp index c135ab2..0283cb3 100644 --- a/lib/src/turnsmm/turn-order.hpp +++ b/lib/src/turnsmm/turn-order.hpp @@ -2,17 +2,18 @@ #define TURNSMM_TURN_ORDER_HPP #include "turns-turn-order.h" -#include "turnsmm/enums.hpp" #include "turnsmm/participant.hpp" #include #include #include #include +#include #include #include +#include #include @@ -28,6 +29,12 @@ namespace Turns using CppClassType = class TurnOrder_Class; using CppObjectType = TurnOrder; + enum struct SortMode : guint + { + Descending, + Ascending, + }; + auto static get_base_type() -> GType; auto static get_type() -> GType; @@ -59,6 +66,13 @@ namespace Turns namespace Glib { + template<> + class Value : public Glib ::Value_Enum + { + public: + auto static value_type() -> GType; + }; + auto wrap(TurnsTurnOrder * object, bool copy = false) -> Glib::RefPtr; } // namespace Glib -- cgit v1.2.3