1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/x11/cursor.h
3 // Purpose: wxCursor class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/gdiobj.h"
16 #include "wx/gdicmn.h"
17 #include "wx/colour.h"
19 class WXDLLIMPEXP_FWD_CORE wxImage
;
21 //-----------------------------------------------------------------------------
23 //-----------------------------------------------------------------------------
25 class WXDLLIMPEXP_CORE wxCursor
: public wxGDIObject
29 wxCursor(wxStockCursor id
) { InitFromStock(id
); }
30 #if WXWIN_COMPATIBILITY_2_8
31 wxCursor(int id
) { InitFromStock((wxStockCursor
)id
); }
34 wxCursor( const wxImage
& image
);
37 wxCursor(const wxString
& name
,
38 wxBitmapType type
= wxCURSOR_DEFAULT_TYPE
,
39 int hotSpotX
= 0, int hotSpotY
= 0);
44 WXCursor
GetCursor() const;
47 void InitFromStock(wxStockCursor
);
49 virtual wxGDIRefData
*CreateGDIRefData() const;
50 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
53 DECLARE_DYNAMIC_CLASS(wxCursor
)
56 #endif // _WX_CURSOR_H_