diff --git a/Libraries/LibGfx/Rect.h b/Libraries/LibGfx/Rect.h index 50a6bad661..8697587283 100644 --- a/Libraries/LibGfx/Rect.h +++ b/Libraries/LibGfx/Rect.h @@ -26,6 +26,7 @@ #pragma once +#include #include #include #include @@ -411,6 +412,18 @@ ALWAYS_INLINE IntRect enclosing_int_rect(const FloatRect& float_rect) } +namespace AK { + +template +struct Formatter> : Formatter { + void format(TypeErasedFormatParams& params, FormatBuilder& builder, const Gfx::Rect& value) + { + Formatter::format(params, builder, value.to_string()); + } +}; + +} + namespace IPC { bool decode(Decoder&, Gfx::IntRect&);