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 **bits
) ;
29 wxCursor(char **bits
) ;
30 wxCursor(const wxString
& name
, long flags
= wxBITMAP_TYPE_MACCURSOR_RESOURCE
,
31 int hotSpotX
= 0, int hotSpotY
= 0);
33 wxCursor(int cursor_type
);
36 bool CreateFromXpm(const char **bits
) ;
38 void MacInstall() const ;
40 void SetHCURSOR(WXHCURSOR cursor
);
41 WXHCURSOR
GetHCURSOR() const;
44 virtual wxGDIRefData
*CreateGDIRefData() const;
45 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
47 void CreateFromImage(const wxImage
& image
) ;
49 DECLARE_DYNAMIC_CLASS(wxCursor
)
52 extern WXDLLEXPORT
void wxSetCursor(const wxCursor
& cursor
);
54 #endif // _WX_CURSOR_H_