diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-28 08:24:15 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-28 09:39:16 +0200 |
| commit | 33d8a352eca90a530d560175f5406a5bde5e2861 (patch) | |
| tree | e34244ae066b8b1d206a78b8862415d41b4ef548 /adw/src/enums.cpp | |
| parent | 663ec6def00cb498eb12de363ddb721828ab8175 (diff) | |
| download | turns-33d8a352eca90a530d560175f5406a5bde5e2861.tar.xz turns-33d8a352eca90a530d560175f5406a5bde5e2861.zip | |
adw: add missing Dialog functions
Diffstat (limited to 'adw/src/enums.cpp')
| -rw-r--r-- | adw/src/enums.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/adw/src/enums.cpp b/adw/src/enums.cpp index bcc8290..b93ac3d 100644 --- a/adw/src/enums.cpp +++ b/adw/src/enums.cpp @@ -44,6 +44,10 @@ namespace Adwaita static_assert(matches<LengthType::MinHeight, ADW_BREAKPOINT_CONDITION_MIN_HEIGHT>); static_assert(matches<LengthType::MaxHeight, ADW_BREAKPOINT_CONDITION_MAX_HEIGHT>); + static_assert(matches<PresentationMode::Auto, ADW_DIALOG_AUTO>); + static_assert(matches<PresentationMode::Floating, ADW_DIALOG_FLOATING>); + static_assert(matches<PresentationMode::BottomSheet, ADW_DIALOG_BOTTOM_SHEET>); + static_assert(matches<RatioType::MinAspectRatio, ADW_BREAKPOINT_CONDITION_MIN_ASPECT_RATIO>); static_assert(matches<RatioType::MaxAspectRatio, ADW_BREAKPOINT_CONDITION_MAX_ASPECT_RATIO>); @@ -67,6 +71,7 @@ namespace Glib 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) |
