summaryrefslogtreecommitdiff
path: root/adw/src/enums.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-04-04 20:20:32 +0200
committerFelix Morgner <felix.morgner@gmail.com>2025-04-04 20:23:04 +0200
commitcfa7e877aba0dc9dcd4db9d46052d58a3c4db4b6 (patch)
tree9aff7899bee83dff38a06b5119a1b72d78187015 /adw/src/enums.cpp
parentc900e09ec994a928b88112e379d334f03175ebff (diff)
downloadturns-cfa7e877aba0dc9dcd4db9d46052d58a3c4db4b6.tar.xz
turns-cfa7e877aba0dc9dcd4db9d46052d58a3c4db4b6.zip
adw: move LengthType and RatioType
Diffstat (limited to 'adw/src/enums.cpp')
-rw-r--r--adw/src/enums.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/adw/src/enums.cpp b/adw/src/enums.cpp
index 9da6bc1..9891845 100644
--- a/adw/src/enums.cpp
+++ b/adw/src/enums.cpp
@@ -33,6 +33,14 @@ namespace Adwaita
static_assert(matches<ColorScheme::PreferDark, ADW_COLOR_SCHEME_PREFER_DARK>);
static_assert(matches<ColorScheme::ForceDark, ADW_COLOR_SCHEME_FORCE_DARK>);
+ static_assert(matches<LengthType::MinWidth, ADW_BREAKPOINT_CONDITION_MIN_WIDTH>);
+ static_assert(matches<LengthType::MaxWidth, ADW_BREAKPOINT_CONDITION_MAX_WIDTH>);
+ static_assert(matches<LengthType::MinHeight, ADW_BREAKPOINT_CONDITION_MIN_HEIGHT>);
+ static_assert(matches<LengthType::MaxHeight, ADW_BREAKPOINT_CONDITION_MAX_HEIGHT>);
+
+ static_assert(matches<RatioType::MinAspectRatio, ADW_BREAKPOINT_CONDITION_MIN_ASPECT_RATIO>);
+ static_assert(matches<RatioType::MaxAspectRatio, ADW_BREAKPOINT_CONDITION_MAX_ASPECT_RATIO>);
+
static_assert(matches<ResponseAppearance::Default, ADW_RESPONSE_DEFAULT>);
static_assert(matches<ResponseAppearance::Suggested, ADW_RESPONSE_SUGGESTED>);
static_assert(matches<ResponseAppearance::Destructive, ADW_RESPONSE_DESTRUCTIVE>);
@@ -49,6 +57,8 @@ namespace Glib
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)
#undef VALUE_SPECIALIZATION