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

Move some more classes to the new coding style.

This commit is contained in:
Andreas Kling 2019-01-16 17:54:06 +01:00
parent a2ec09bc20
commit 7750e6952b
20 changed files with 113 additions and 114 deletions

View file

@ -12,18 +12,18 @@ public:
int x() const { return m_x; }
int y() const { return m_y; }
void setX(int x) { m_x = x; }
void setY(int y) { m_y = y; }
void set_x(int x) { m_x = x; }
void set_y(int y) { m_y = y; }
void moveBy(int dx, int dy)
void move_by(int dx, int dy)
{
m_x += dx;
m_y += dy;
}
void moveBy(const Point& delta)
void move_by(const Point& delta)
{
moveBy(delta.x(), delta.y());
move_by(delta.x(), delta.y());
}
void constrain(const Rect&);