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
commit 116cf92156
Notes: sideshowbarker 2024-07-19 05:43:51 +09:00
212 changed files with 1144 additions and 1144 deletions

View file

@ -31,12 +31,12 @@
namespace Gfx {
String Point::to_string() const
String IntPoint::to_string() const
{
return String::format("[%d,%d]", x(), y());
}
const LogStream& operator<<(const LogStream& stream, const Point& value)
const LogStream& operator<<(const LogStream& stream, const IntPoint& value)
{
return stream << value.to_string();
}
@ -45,13 +45,13 @@ const LogStream& operator<<(const LogStream& stream, const Point& value)
namespace IPC {
bool encode(Encoder& encoder, const Gfx::Point& point)
bool encode(Encoder& encoder, const Gfx::IntPoint& point)
{
encoder << point.x() << point.y();
return true;
}
bool decode(Decoder& decoder, Gfx::Point& point)
bool decode(Decoder& decoder, Gfx::IntPoint& point)
{
int x = 0;
int y = 0;