1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/cursor.h
3 // Purpose: wxCursor class
4 // Author: William Osborne
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "cursor.h"
19 #include "wx/palmos/gdiimage.h"
21 class WXDLLEXPORT wxImage
;
24 class WXDLLEXPORT wxCursor
: public wxGDIImage
29 wxCursor(const wxCursor
& cursor
) { Ref(cursor
); }
30 wxCursor(const wxImage
& image
);
31 wxCursor(const char bits
[], int width
, int height
,
32 int hotSpotX
= -1, int hotSpotY
= -1,
33 const char maskBits
[] = NULL
);
34 wxCursor(const wxString
& name
,
35 long flags
= wxBITMAP_TYPE_CUR_RESOURCE
,
36 int hotSpotX
= 0, int hotSpotY
= 0);
37 wxCursor(int idCursor
);
40 wxCursor
& operator=(const wxCursor
& cursor
)
41 { if (*this == cursor
) return (*this); Ref(cursor
); return *this; }
43 bool operator==(const wxCursor
& cursor
) const;
44 bool operator!=(const wxCursor
& cursor
) const
45 { return !(*this == cursor
); }
47 // implementation only
48 void SetHCURSOR(WXHCURSOR cursor
) { SetHandle((WXHANDLE
)cursor
); }
49 WXHCURSOR
GetHCURSOR() const { return (WXHCURSOR
)GetHandle(); }
52 virtual wxGDIImageRefData
*CreateData() const;
55 DECLARE_DYNAMIC_CLASS(wxCursor
)