summaryrefslogtreecommitdiff
path: root/Servers/WindowServer/WSCursor.cpp
blob: 12261a5f5401a4309e252708ac8bd1270d54bf7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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));
}