1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/cursor.h
3 // Purpose: wxCursor class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/msw/gdiimage.h"
17 class WXDLLIMPEXP_FWD_CORE wxImage
;
20 class WXDLLIMPEXP_CORE wxCursor
: public wxGDIImage
25 wxCursor(const wxImage
& image
);
26 wxCursor(const char bits
[], int width
, int height
,
27 int hotSpotX
= -1, int hotSpotY
= -1,
28 const char maskBits
[] = NULL
);
29 wxCursor(const wxString
& name
,
30 long flags
= wxBITMAP_TYPE_CUR_RESOURCE
,
31 int hotSpotX
= 0, int hotSpotY
= 0);
32 wxCursor(int idCursor
);
35 // implementation only
36 void SetHCURSOR(WXHCURSOR cursor
) { SetHandle((WXHANDLE
)cursor
); }
37 WXHCURSOR
GetHCURSOR() const { return (WXHCURSOR
)GetHandle(); }
40 virtual wxGDIImageRefData
*CreateData() const;
43 DECLARE_DYNAMIC_CLASS(wxCursor
)