1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/cursor.h
3 // Purpose: wxCursor class
4 // Author: Stefan Csomor
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
14 #include "wx/bitmap.h"
17 class WXDLLIMPEXP_CORE wxCursor
: public wxGDIObject
22 wxCursor(const wxImage
& image
) ;
23 wxCursor(const wxString
& name
,
24 wxBitmapType type
= wxCURSOR_DEFAULT_TYPE
,
25 int hotSpotX
= 0, int hotSpotY
= 0);
27 wxCursor(wxStockCursor id
) { InitFromStock(id
); }
28 #if WXWIN_COMPATIBILITY_2_8
29 wxCursor(int id
) { InitFromStock((wxStockCursor
)id
); }
33 void MacInstall() const ;
35 void SetHCURSOR(WXHCURSOR cursor
);
36 WXHCURSOR
GetHCURSOR() const;
39 virtual wxGDIRefData
*CreateGDIRefData() const;
40 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
43 void InitFromStock(wxStockCursor
);
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_