1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/cursor.h
3 // Purpose: wxCursor class
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/palmos/gdiimage.h"
17 class WXDLLEXPORT wxImage
;
20 class WXDLLEXPORT wxCursor
: public wxGDIImage
25 wxCursor(const wxCursor
& cursor
) { Ref(cursor
); }
26 wxCursor(const wxImage
& image
);
27 wxCursor(const char bits
[], int width
, int height
,
28 int hotSpotX
= -1, int hotSpotY
= -1,
29 const char maskBits
[] = NULL
);
30 wxCursor(const wxString
& name
,
31 long flags
= wxBITMAP_TYPE_CUR_RESOURCE
,
32 int hotSpotX
= 0, int hotSpotY
= 0);
33 wxCursor(int idCursor
);
36 wxCursor
& operator=(const wxCursor
& cursor
)
37 { if (*this == cursor
) return (*this); Ref(cursor
); return *this; }
39 bool operator==(const wxCursor
& cursor
) const;
40 bool operator!=(const wxCursor
& cursor
) const
41 { return !(*this == cursor
); }
43 // implementation only
44 void SetHCURSOR(WXHCURSOR cursor
) { SetHandle((WXHANDLE
)cursor
); }
45 WXHCURSOR
GetHCURSOR() const { return (WXHCURSOR
)GetHandle(); }
48 virtual wxGDIImageRefData
*CreateData() const;
51 DECLARE_DYNAMIC_CLASS(wxCursor
)