2 * Copyright 2001-2006, Haiku.
3 * Distributed under the terms of the MIT License.
6 * DarkWyrm <bpmagic@columbus.rr.com>
16 #include <ServerProtocol.h>
22 \brief Class to manage system cursor sets
24 class CursorSet
: public BMessage
{
26 CursorSet(const char *name
);
28 status_t
Save(const char *path
,int32 saveflags
=0);
29 status_t
Load(const char *path
);
30 status_t
AddCursor(BCursorID which
,const BBitmap
*cursor
, const BPoint
&hotspot
);
31 status_t
AddCursor(BCursorID which
, uint8
*data
);
32 void RemoveCursor(BCursorID which
);
33 status_t
FindCursor(BCursorID which
, BBitmap
**cursor
, BPoint
*hotspot
);
34 status_t
FindCursor(BCursorID which
, ServerCursor
**cursor
) const;
35 void SetName(const char *name
);
36 const char *GetName();
39 const char *_CursorWhichToString(BCursorID which
) const;
40 BBitmap
*_CursorDataToBitmap(uint8
*data
);
43 #endif // CURSOR_SET_H