#endif
#include "wx/cursor.h"
-#include "wx/module.h"
-#include "wx/utils.h"
-#include "wx/log.h"
-#include "wx/intl.h"
-#include "wx/hashmap.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/intl.h"
+ #include "wx/log.h"
+ #include "wx/utils.h"
+ #include "wx/hashmap.h"
+ #include "wx/module.h"
+#endif
#include "wx/mgl/private.h"
public:
wxCursorRefData();
- ~wxCursorRefData();
+ virtual ~wxCursorRefData();
MGLCursor *m_cursor;
};
}
}
-wxCursor::wxCursor(const wxCursor &cursor)
-{
- Ref(cursor);
-}
-
wxCursor::~wxCursor()
{
// wxObject unrefs data
}
-wxCursor& wxCursor::operator = (const wxCursor& cursor)
-{
- if ( *this == cursor )
- return (*this);
- Ref(cursor);
- return *this;
-}
-
-bool wxCursor::operator == (const wxCursor& cursor) const
-{
- return (m_refData == cursor.m_refData);
-}
-
-bool wxCursor::operator != (const wxCursor& cursor) const
-{
- return (m_refData != cursor.m_refData);
-}
-
-bool wxCursor::Ok() const
+bool wxCursor::IsOk() const
{
return (m_refData != NULL);
}
gs_savedCursor = wxNullCursor;
}
-void wxBeginBusyCursor(wxCursor *cursor)
+void wxBeginBusyCursor(const wxCursor *cursor)
{
if ( gs_busyCount++ > 0 ) return;