1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:27:44 +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>
namespace Gfx {
@ -102,16 +101,13 @@ public:
set_height(value);
}
String to_string() const { return String::format("[%dx%d]", m_width, m_height); }
String to_string() const;
private:
int m_width { 0 };
int m_height { 0 };
};
inline const LogStream& operator<<(const LogStream& stream, const Size& value)
{
return stream << value.to_string();
}
const LogStream& operator<<(const LogStream&, const Size&);
}