mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:37:34 +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:
parent
25f28a54a1
commit
2334ffcbf8
13 changed files with 80 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue