1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +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

@ -26,8 +26,7 @@
#pragma once
#include <AK/LogStream.h>
#include <AK/String.h>
#include <AK/Forward.h>
#include <LibGfx/Orientation.h>
#include <LibGfx/Point.h>
#include <LibGfx/Size.h>
@ -313,7 +312,7 @@ public:
set_y(other.center().y() - height() / 2);
}
String to_string() const { return String::format("[%d,%d %dx%d]", x(), y(), width(), height()); }
String to_string() const;
private:
Point m_location;
@ -332,9 +331,6 @@ inline void Point::constrain(const Rect& rect)
set_y(rect.bottom());
}
inline const LogStream& operator<<(const LogStream& stream, const Rect& value)
{
return stream << value.to_string();
}
const LogStream& operator<<(const LogStream&, const Rect&);
}