/////////////////////////////////////////////////////////////////////////////
-// Name: cursor.h
+// Name: wx/mac/classic/cursor.h
// Purpose: wxCursor class
// Author: Stefan Csomor
// Modified by:
class WXDLLEXPORT wxCursorRefData: public wxBitmapRefData
{
DECLARE_NO_COPY_CLASS(wxCursorRefData)
-
+
friend class WXDLLEXPORT wxBitmap;
friend class WXDLLEXPORT wxCursor;
public:
wxCursorRefData();
- ~wxCursorRefData();
+ virtual ~wxCursorRefData();
protected:
WXHCURSOR m_hCursor;
int hotSpotX = 0, int hotSpotY = 0);
wxCursor(int cursor_type);
- ~wxCursor();
+ virtual ~wxCursor();
- bool CreateFromXpm(const char **bits) ;
- virtual bool Ok() const { return (m_refData != NULL && ( M_CURSORDATA->m_hCursor != NULL || M_CURSORDATA->m_themeCursor != -1 ) ) ; }
+ bool CreateFromXpm(const char **bits) ;
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return (m_refData != NULL && ( M_CURSORDATA->m_hCursor != NULL || M_CURSORDATA->m_themeCursor != -1 ) ) ; }
inline bool operator == (const wxCursor& cursor) const { return m_refData == cursor.m_refData; }
inline bool operator != (const wxCursor& cursor) const { return m_refData != cursor.m_refData; }