1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/x11/cursor.h
3 // Purpose: wxCursor class
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
14 #include "wx/gdiobj.h"
15 #include "wx/gdicmn.h"
16 #include "wx/colour.h"
18 class WXDLLIMPEXP_FWD_CORE wxImage
;
20 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
24 class WXDLLIMPEXP_CORE wxCursor
: public wxGDIObject
28 wxCursor(wxStockCursor id
) { InitFromStock(id
); }
29 #if WXWIN_COMPATIBILITY_2_8
30 wxCursor(int id
) { InitFromStock((wxStockCursor
)id
); }
33 wxCursor( const wxImage
& image
);
36 wxCursor(const wxString
& name
,
37 wxBitmapType type
= wxCURSOR_DEFAULT_TYPE
,
38 int hotSpotX
= 0, int hotSpotY
= 0);
43 WXCursor
GetCursor() const;
46 void InitFromStock(wxStockCursor
);
48 virtual wxGDIRefData
*CreateGDIRefData() const;
49 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
52 DECLARE_DYNAMIC_CLASS(wxCursor
)
55 #endif // _WX_CURSOR_H_