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 wxBitmap
20 DECLARE_DYNAMIC_CLASS(wxCursor
)
25 wxCursor(const char bits
[], int width
, int height
, int hotSpotX
= -1, int hotSpotY
= -1,
26 const char maskBits
[] = NULL
);
28 wxCursor(const wxImage
& image
) ;
29 wxCursor(const char **bits
) ;
30 wxCursor(char **bits
) ;
31 wxCursor(const wxString
& name
, long flags
= wxBITMAP_TYPE_MACCURSOR_RESOURCE
,
32 int hotSpotX
= 0, int hotSpotY
= 0);
34 wxCursor(int cursor_type
);
37 bool CreateFromXpm(const char **bits
) ;
38 virtual bool Ok() const { return IsOk(); }
39 virtual bool IsOk() const ;
41 inline bool operator == (const wxCursor
& cursor
) const { return m_refData
== cursor
.m_refData
; }
42 inline bool operator != (const wxCursor
& cursor
) const { return m_refData
!= cursor
.m_refData
; }
44 void MacInstall() const ;
46 void SetHCURSOR(WXHCURSOR cursor
);
47 inline WXHCURSOR
GetHCURSOR() const ;
49 void CreateFromImage(const wxImage
& image
) ;
52 extern WXDLLEXPORT
void wxSetCursor(const wxCursor
& cursor
);