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:
parent
3866e0d4d4
commit
34b5ff7c29
12 changed files with 162 additions and 28 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue