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

WindowServer: Add a WSCursor class (a bitmap and a hotspot.)

Also import a bunch of cursors I drew. Only the default ("arrow") cursor is
ever used so far.
This commit is contained in:
Andreas Kling 2019-03-31 22:09:10 +02:00
parent 25f28a54a1
commit 2334ffcbf8
13 changed files with 80 additions and 15 deletions

View file

@ -28,6 +28,13 @@ public:
move_by(delta.x(), delta.y());
}
Point translated(const Point& delta) const
{
Point point = *this;
point.move_by(delta);
return point;
}
Point translated(int dx, int dy) const
{
Point point = *this;