1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mac/carbon/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 WXDLLEXPORT wxCursor
: public wxGDIObject
23 wxCursor(const char bits
[], int width
, int height
,
24 int hotSpotX
= -1, int hotSpotY
= -1,
25 const char maskBits
[] = NULL
);
27 wxCursor(const wxImage
& image
) ;
28 wxCursor(const char* const* bits
);
29 wxCursor(const wxString
& name
, long flags
= wxBITMAP_TYPE_MACCURSOR_RESOURCE
,
30 int hotSpotX
= 0, int hotSpotY
= 0);
32 wxCursor(int cursor_type
);
35 bool CreateFromXpm(const char* const* bits
);
37 void MacInstall() const ;
39 void SetHCURSOR(WXHCURSOR cursor
);
40 WXHCURSOR
GetHCURSOR() const;
43 virtual wxGDIRefData
*CreateGDIRefData() const;
44 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
46 void CreateFromImage(const wxImage
& image
) ;
48 DECLARE_DYNAMIC_CLASS(wxCursor
)
51 extern WXDLLEXPORT
void wxSetCursor(const wxCursor
& cursor
);
53 #endif // _WX_CURSOR_H_