1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:38:11 +00:00

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
parent 3866e0d4d4
commit 34b5ff7c29
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();
}
}