1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:27:44 +00:00

LibGfx: Rename Rect,Point,Size => IntRect,IntPoint,IntSize

This fits nicer with FloatRect,FloatPoint,FloatSize and gives a much
better visual clue about what type of metric is being used.
This commit is contained in:
Andreas Kling 2020-06-10 10:57:59 +02:00
parent 656b01eb0f
commit 116cf92156
212 changed files with 1144 additions and 1144 deletions

View file

@ -31,12 +31,12 @@
namespace Gfx {
String Size::to_string() const
String IntSize::to_string() const
{
return String::format("[%dx%d]", m_width, m_height);
}
const LogStream& operator<<(const LogStream& stream, const Size& value)
const LogStream& operator<<(const LogStream& stream, const IntSize& value)
{
return stream << value.to_string();
}
@ -45,13 +45,13 @@ const LogStream& operator<<(const LogStream& stream, const Size& value)
namespace IPC {
bool encode(Encoder& encoder, const Gfx::Size& size)
bool encode(Encoder& encoder, const Gfx::IntSize& size)
{
encoder << size.width() << size.height();
return true;
}
bool decode(Decoder& decoder, Gfx::Size& size)
bool decode(Decoder& decoder, Gfx::IntSize& size)
{
int width = 0;
int height = 0;