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/enums.hpp | |
| parent | 0a5f3b25214c11556f62ce04601c06812a3464d8 (diff) | |
| download | turns-f61df0b33ea2a2de064f1fa2a9cde191b790a5ba.tar.xz turns-f61df0b33ea2a2de064f1fa2a9cde191b790a5ba.zip | |
lib: rescope enums
Diffstat (limited to 'lib/src/turnsmm/enums.hpp')
| -rw-r--r-- | lib/src/turnsmm/enums.hpp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/lib/src/turnsmm/enums.hpp b/lib/src/turnsmm/enums.hpp deleted file mode 100644 index b866b33..0000000 --- a/lib/src/turnsmm/enums.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef TURNSMM_ENUMS_HPP -#define TURNSMM_ENUMS_HPP - -#include <glibmm/value.h> - -#include <glib-object.h> - -namespace Turns -{ - enum struct Disposition - { - Neutral, - Friendly, - Hostile, - Secret, - }; - - enum struct SortMode - { - Descending, - Ascending, - }; - -} // namespace Turns - -namespace Glib -{ - -#define VALUE_SPECIALIZATION(Enum) \ - template<> \ - class Value<Turns::Enum> : public Glib::Value_Enum<Turns::Enum> \ - { \ - public: \ - auto static value_type() -> GType; \ - } - - VALUE_SPECIALIZATION(Disposition); - VALUE_SPECIALIZATION(SortMode); - -#undef VALUE_SPECIALIZATION - -} // namespace Glib - -#endif
\ No newline at end of file |
