#include "adwaitamm/enums.hpp" #include #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); } // 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(RatioType, breakpoint_condition) VALUE_SPECIALIZATION(ResponseAppearance, response_appearance) VALUE_SPECIALIZATION(ToastPriority, toast_priority) #undef VALUE_SPECIALIZATION } // namespace Glib