From 17d4b2f4cd0b1f2f7a3fe0948995206a9c64bd00 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 4 Apr 2025 20:20:32 +0200 Subject: adw: move LengthType and RatioType --- include/adwaitamm/breakpoint.hpp | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'include/adwaitamm/breakpoint.hpp') diff --git a/include/adwaitamm/breakpoint.hpp b/include/adwaitamm/breakpoint.hpp index db17d27..529344d 100644 --- a/include/adwaitamm/breakpoint.hpp +++ b/include/adwaitamm/breakpoint.hpp @@ -21,22 +21,11 @@ namespace Adwaita { + enum struct LengthType; + enum struct RatioType; + struct BreakpointCondition { - enum struct LengthType : int - { - min_width, - max_width, - min_height, - max_height, - }; - - enum struct RatioType : int - { - min_aspect_ratio, - max_aspect_ratio - }; - BreakpointCondition(BreakpointCondition const & other); BreakpointCondition(BreakpointCondition && other); BreakpointCondition(LengthType type, double value, int unit); // FIXME: replace unit type with actual enum. -- cgit v1.2.3