mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:58:11 +00:00

Also import a bunch of cursors I drew. Only the default ("arrow") cursor is ever used so far.
21 lines
499 B
C++
21 lines
499 B
C++
#include <WindowServer/WSCursor.h>
|
|
|
|
WSCursor::WSCursor(Retained<GraphicsBitmap>&& bitmap, const Point& hotspot)
|
|
: m_bitmap(move(bitmap))
|
|
, m_hotspot(hotspot)
|
|
{
|
|
}
|
|
|
|
WSCursor::~WSCursor()
|
|
{
|
|
}
|
|
|
|
Retained<WSCursor> WSCursor::create(Retained<GraphicsBitmap>&& bitmap)
|
|
{
|
|
return adopt(*new WSCursor(move(bitmap), bitmap->rect().center()));
|
|
}
|
|
|
|
Retained<WSCursor> WSCursor::create(Retained<GraphicsBitmap>&& bitmap, const Point& hotspot)
|
|
{
|
|
return adopt(*new WSCursor(move(bitmap), hotspot));
|
|
}
|