Next: , Previous: , Up: Classes   [Index]


X11Cursor

X11Cursor Class

The X11Cursor class represents cursor objects and provides wrapper methods that create X11 cursor resources. A X11Cursor object’s value is the ID of the newly created cursor resource.

To display the cursor in a X11Pane object’s window, see the useCursor method in X11Pane class. This example shows the sequence of expressions. See X11Pane.


X11Pane new xPane;        /* Create our objects. */
X11Cursor new waitCursor;

...

waitCursor watch;         /* Get the resource ID of a wait cursor
                             (normally, a watch or a spinner). */
...

xPane useCursor waitCursor;  /* Display the wait cursor on the xPane's
                                window. */

The defaultCursor method (class X11Pane) restores the window’s cursor to its parent window’s cursor, which is the default cursor for new windows. See X11Pane.


xPane defaultCursor;

Instance Methods

arrow (void)

Sets the cursor to the upward-left pointing arrow that is the default for most new windows.

grabMove (void)

Creates a grab cursor.

scrollArrow (void)

Creates a scrollbar vertical double arrow cursor.

watch (void)

Creates a cursor that displays a small watch.

xterm (void)

Creates a xterm cursor. That is, the vertical bar used for editing text.