Lines Matching defs:cursor
2 // Name: src/motif/cursor.cpp
7 // RCS-ID: $Id: cursor.cpp 41751 2006-10-08 21:56:55Z VZ $
19 #include "wx/cursor.h"
60 wxStockCursor m_cursorId; // wxWidgets standard cursor id
222 Cursor cursor = XCreatePixmapCursor (dpy,
230 if (cursor)
234 c->m_cursor = (WXCursor) cursor;
301 // Motif-specific: create/get a cursor for the current display
315 // No cursor for this display, so let's see if we're an id-type cursor.
319 WXCursor cursor = MakeCursor(display, M_CURSORDATA->m_cursorId);
320 if (cursor)
323 c->m_cursor = cursor;
326 return cursor;
332 // Not an id-type cursor, so we don't know how to create it.
336 // Make a cursor from standard id
340 Cursor cursor = (Cursor) 0;
345 case wxCURSOR_CHAR: return (WXCursor)cursor;
398 cursor = XCreatePixmapCursor (dpy,
412 return (WXCursor)cursor;
414 cursor = XCreateFontCursor (dpy, x_cur);
415 return (WXCursor) cursor;
418 // Global cursor setting
419 void wxSetCursor(const wxCursor& WXUNUSED(cursor))
421 // Nothing to do for Motif (no global cursor)
426 // busy cursor stuff
433 wxXSetBusyCursor (wxWindow * win, const wxCursor * cursor)
443 if (cursor)
445 attrs.cursor = (Cursor) cursor->GetXCursor(display);
449 // Restore old cursor
451 attrs.cursor = (Cursor) win->GetCursor().GetXCursor(display);
453 attrs.cursor = None;
464 wxXSetBusyCursor (child, cursor);
468 // Set the cursor to the busy cursor for all windows
469 void wxBeginBusyCursor(const wxCursor *cursor)
478 wxXSetBusyCursor (win, cursor);
483 // Restore cursor to normal