1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/cursor.h
3 // Purpose: wxCursor class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/bitmap.h"
18 class WXDLLIMPEXP_CORE wxCursor
: public wxGDIObject
23 wxCursor(const wxImage
& image
) ;
24 wxCursor(const wxString
& name
,
25 wxBitmapType type
= wxCURSOR_DEFAULT_TYPE
,
26 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 void MacInstall() const ;
36 void SetHCURSOR(WXHCURSOR cursor
);
37 WXHCURSOR
GetHCURSOR() const;
40 void InitFromStock(wxStockCursor
);
42 virtual wxGDIRefData
*CreateGDIRefData() const;
43 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
45 void CreateFromImage(const wxImage
& image
) ;
47 DECLARE_DYNAMIC_CLASS(wxCursor
)
50 extern WXDLLIMPEXP_CORE
void wxSetCursor(const wxCursor
& cursor
);
52 #endif // _WX_CURSOR_H_