From 29eb802f09da07421099238eceaee9e3b1d61ff2 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 28 Apr 2025 14:01:30 +0200 Subject: adw: extract libadwaitamm --- adw/src/enums.cpp | 80 ------------------------------------------------------- 1 file changed, 80 deletions(-) delete mode 100644 adw/src/enums.cpp (limited to 'adw/src/enums.cpp') diff --git a/adw/src/enums.cpp b/adw/src/enums.cpp deleted file mode 100644 index b93ac3d..0000000 --- a/adw/src/enums.cpp +++ /dev/null @@ -1,80 +0,0 @@ -/** - * @author Felix Morgner (felix.morgner@gmail.com) - * @copyright Copyright (c) 2025 - * SPDX-License-Identifier: LGPL-2.1-or-later - */ - -#include "adwaitamm/enums.hpp" - -#include "adwaitamm/stylemanager.hpp" - -#include -#include - -#include - -namespace -{ - template - auto constexpr matches = - static_cast>(Wrapped) == static_cast>(Unwrapped); -} // namespace - -namespace Adwaita -{ - - static_assert(matches); - static_assert(matches); - static_assert(matches); - static_assert(matches); - static_assert(matches); - static_assert(matches); - static_assert(matches); - static_assert(matches); - static_assert(matches); - - static_assert(matches); - static_assert(matches); - static_assert(matches); - static_assert(matches); - static_assert(matches); - - static_assert(matches); - static_assert(matches); - static_assert(matches); - static_assert(matches); - - static_assert(matches); - static_assert(matches); - static_assert(matches); - - static_assert(matches); - static_assert(matches); - - static_assert(matches); - static_assert(matches); - static_assert(matches); - - static_assert(matches); - static_assert(matches); - -} // namespace Adwaita - -namespace Glib -{ -#define VALUE_SPECIALIZATION(Enum, AdwEnumName) \ - auto Value::value_type() -> GType \ - { \ - return adw_##AdwEnumName##_get_type(); \ - } - - VALUE_SPECIALIZATION(AccentColor, accent_color) - VALUE_SPECIALIZATION(ColorScheme, color_scheme) - VALUE_SPECIALIZATION(LengthType, breakpoint_condition) - VALUE_SPECIALIZATION(PresentationMode, dialog_presentation_mode); - VALUE_SPECIALIZATION(RatioType, breakpoint_condition) - VALUE_SPECIALIZATION(ResponseAppearance, response_appearance) - VALUE_SPECIALIZATION(ToastPriority, toast_priority) - -#undef VALUE_SPECIALIZATION -} // namespace Glib \ No newline at end of file -- cgit v1.2.3