1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/cursor.h
3 // Purpose: wxCursor class
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/palmos/gdiimage.h"
17 class WXDLLIMPEXP_FWD_CORE wxImage
;
20 class WXDLLIMPEXP_CORE wxCursor
: public wxGDIImage
25 wxCursor(const wxImage
& image
);
26 wxCursor(const wxString
& name
,
27 wxBitmapType type
= wxCURSOR_DEFAULT_TYPE
,
28 int hotSpotX
= 0, int hotSpotY
= 0);
29 wxCursor(wxStockCursor id
) { InitFromStock(id
); }
30 #if WXWIN_COMPATIBILITY_2_8
31 wxCursor(int id
) { InitFromStock((wxStockCursor
)id
); }
35 // implementation only
36 void SetHCURSOR(WXHCURSOR cursor
) { SetHandle((WXHANDLE
)cursor
); }
37 WXHCURSOR
GetHCURSOR() const { return (WXHCURSOR
)GetHandle(); }
40 void InitFromStock(wxStockCursor
);
41 virtual wxGDIImageRefData
*CreateData() const;
44 DECLARE_DYNAMIC_CLASS(wxCursor
)