diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-19 16:28:02 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-19 16:28:02 +0200 |
| commit | f61df0b33ea2a2de064f1fa2a9cde191b790a5ba (patch) | |
| tree | 45c5cda251be02edefde3c975b555e7c504726a6 /lib/src/turnsmm/turn-order.hpp | |
| parent | 0a5f3b25214c11556f62ce04601c06812a3464d8 (diff) | |
| download | turns-f61df0b33ea2a2de064f1fa2a9cde191b790a5ba.tar.xz turns-f61df0b33ea2a2de064f1fa2a9cde191b790a5ba.zip | |
lib: rescope enums
Diffstat (limited to 'lib/src/turnsmm/turn-order.hpp')
| -rw-r--r-- | lib/src/turnsmm/turn-order.hpp | 16 |
1 files changed, 15 insertions, 1 deletions
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 <glibmm/object.h> #include <glibmm/propertyproxy.h> #include <glibmm/refptr.h> #include <glibmm/ustring.h> +#include <glibmm/value.h> #include <giomm/listmodel.h> #include <glib-object.h> +#include <glib.h> #include <cstddef> @@ -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<Turns::TurnOrder::SortMode> : public Glib ::Value_Enum<Turns::TurnOrder::SortMode> + { + public: + auto static value_type() -> GType; + }; + auto wrap(TurnsTurnOrder * object, bool copy = false) -> Glib::RefPtr<Turns::TurnOrder>; } // namespace Glib |
