LibGfx: Move a bunch of LogStream::operator<< to cpp files

This commit is contained in:
Andreas Kling 2020-02-15 00:58:14 +01:00
commit 34b5ff7c29
Notes: sideshowbarker 2024-07-19 09:19:46 +09:00
12 changed files with 162 additions and 28 deletions

View file

@ -25,6 +25,7 @@
*/
#include <AK/StdLibExtras.h>
#include <AK/String.h>
#include <AK/Vector.h>
#include <LibGfx/Rect.h>
@ -130,4 +131,14 @@ void Rect::align_within(const Rect& other, TextAlignment alignment)
}
}
String Rect::to_string() const
{
return String::format("[%d,%d %dx%d]", x(), y(), width(), height());
}
const LogStream& operator<<(const LogStream& stream, const Rect& value)
{
return stream << value.to_string();
}
}