1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/cursor.h
3 // Purpose: wxCursor class
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
14 #include "wx/msw/gdiimage.h"
16 class WXDLLIMPEXP_FWD_CORE wxImage
;
19 class WXDLLIMPEXP_CORE wxCursor
: public wxGDIImage
24 wxCursor(const wxImage
& image
);
25 wxCursor(const wxString
& name
,
26 wxBitmapType type
= wxCURSOR_DEFAULT_TYPE
,
27 int hotSpotX
= 0, int hotSpotY
= 0);
28 wxCursor(wxStockCursor id
) { InitFromStock(id
); }
29 #if WXWIN_COMPATIBILITY_2_8
30 wxCursor(int id
) { InitFromStock((wxStockCursor
)id
); }
34 // implementation only
35 void SetHCURSOR(WXHCURSOR cursor
) { SetHandle((WXHANDLE
)cursor
); }
36 WXHCURSOR
GetHCURSOR() const { return (WXHCURSOR
)GetHandle(); }
39 void InitFromStock(wxStockCursor
);
41 virtual wxGDIImageRefData
*CreateData() const;
44 DECLARE_DYNAMIC_CLASS(wxCursor
)