summaryrefslogtreecommitdiff
path: root/adw/include/adwaitamm/enums.hpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-04-28 14:01:30 +0200
committerFelix Morgner <felix.morgner@gmail.com>2025-04-28 14:01:30 +0200
commit29eb802f09da07421099238eceaee9e3b1d61ff2 (patch)
treed07784be13475237d58f65033959c1e27e6245c0 /adw/include/adwaitamm/enums.hpp
parentdff2f80ddc8f742b8181409d6feeca33e856112e (diff)
downloadturns-29eb802f09da07421099238eceaee9e3b1d61ff2.tar.xz
turns-29eb802f09da07421099238eceaee9e3b1d61ff2.zip
adw: extract libadwaitamm
Diffstat (limited to 'adw/include/adwaitamm/enums.hpp')
-rw-r--r--adw/include/adwaitamm/enums.hpp97
1 files changed, 0 insertions, 97 deletions
diff --git a/adw/include/adwaitamm/enums.hpp b/adw/include/adwaitamm/enums.hpp
deleted file mode 100644
index 0d09833..0000000
--- a/adw/include/adwaitamm/enums.hpp
+++ /dev/null
@@ -1,97 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#ifndef LIBADWAITAMM_ENUMS_HPP
-#define LIBADWAITAMM_ENUMS_HPP
-
-#include <glibmm/value.h>
-
-#include <glib-object.h>
-
-namespace Adwaita
-{
- enum struct AccentColor
- {
- Blue,
- Teal,
- Green,
- Yellow,
- Orange,
- Red,
- Pink,
- Purple,
- Slate,
- };
-
- enum struct ColorScheme
- {
- Default,
- ForceLight,
- PreferLight,
- PreferDark,
- ForceDark,
- };
-
- enum struct LengthType
- {
- MinWidth,
- MaxWidth,
- MinHeight,
- MaxHeight,
- };
-
- enum struct PresentationMode
- {
- Auto,
- Floating,
- BottomSheet,
- };
-
- enum struct RatioType
- {
- MinAspectRatio,
- MaxAspectRatio
- };
-
- enum struct ResponseAppearance
- {
- Default,
- Suggested,
- Destructive,
- };
-
- enum class ToastPriority
- {
- Normal,
- High,
- };
-
-} // namespace Adwaita
-
-namespace Glib
-{
-
-#define VALUE_SPECIALIZATION(Enum) \
- template<> \
- class Value<Adwaita::Enum> : public Glib::Value_Enum<Adwaita::Enum> \
- { \
- public: \
- auto static value_type() -> GType; \
- }
-
- VALUE_SPECIALIZATION(AccentColor);
- VALUE_SPECIALIZATION(ColorScheme);
- VALUE_SPECIALIZATION(LengthType);
- VALUE_SPECIALIZATION(PresentationMode);
- VALUE_SPECIALIZATION(RatioType);
- VALUE_SPECIALIZATION(ResponseAppearance);
- VALUE_SPECIALIZATION(ToastPriority);
-
-#undef VALUE_SPECIALIZATION
-
-} // namespace Glib
-
-#endif \ No newline at end of file