// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation "cursor.h"
-#endif
-
#include "wx/cursor.h"
#include "wx/gdicmn.h"
#include "wx/icon.h"
#include "wx/utils.h"
#include "wx/x11/private.h"
+
+#if !wxUSE_NANOX
#include <X11/cursorfont.h>
+#endif
//-----------------------------------------------------------------------------
// wxCursor
{
m_refData = new wxCursorRefData();
+#if wxUSE_NANOX
+ // TODO Create some standard cursors from bitmaps.
+
+
+#else
+ // !wxUSE_NANOX
+
M_CURSORDATA->m_display = wxGlobalDisplay();
wxASSERT_MSG( M_CURSORDATA->m_display, wxT("No display") );
}
M_CURSORDATA->m_cursor = (WXCursor) XCreateFontCursor( (Display*) M_CURSORDATA->m_display, x_cur );
+#endif
}
wxCursor::wxCursor(const char bits[], int width, int height,
int hotSpotX, int hotSpotY,
const char maskBits[], wxColour *fg, wxColour *bg)
{
- wxFAIL_MSG( "wxCursor creation from bits not yet implemented" );
-}
-
-
-wxCursor::wxCursor( const wxCursor &cursor )
-{
- Ref( cursor );
+ wxFAIL_MSG( wxT("wxCursor creation from bits not yet implemented") );
}
#if wxUSE_IMAGE
wxCursor::wxCursor( const wxImage & image )
{
- wxFAIL_MSG( "wxCursor creation from wxImage not yet implemented" );
+ wxFAIL_MSG( wxT("wxCursor creation from wxImage not yet implemented") );
}
#endif
{
}
-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;
gs_savedCursor = wxNullCursor;
if (wxTheApp)
- wxTheApp->SendIdleEvents();
+ wxTheApp->ProcessIdle();
}
void wxBeginBusyCursor( wxCursor *WXUNUSED(cursor) )
wxSetCursor( wxCursor(wxCURSOR_WATCH) );
if (wxTheApp)
- wxTheApp->SendIdleEvents();
+ wxTheApp->ProcessIdle();
}
bool wxIsBusy()