mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:37:35 +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:
parent
656b01eb0f
commit
116cf92156
212 changed files with 1144 additions and 1144 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue