Previous: Cursor Appearance, Up: Cursors


7.2 Cursor Positioning

Sawfish provides one basic command for adjusting the relative position of the cursor.

— Function: move-cursor right down

Move the cursor right pixels to the right across the screen, and down pixels down the screen. The cursor stops at the edge of the screen (although in multi-head environments, this may not be at the edge of the display).

There are also more specialized cursor movement commands.

— Function: move-cursor-left-fine
— Function: move-cursor-right-fine
— Function: move-cursor-up-fine
— Function: move-cursor-down-fine

Move the cursor 1 pixel in the indicated direction.

— Function: move-cursor-left
— Function: move-cursor-right
— Function: move-cursor-up
— Function: move-cursor-down

Move the cursor move-cursor-increment pixels in the indicated direction.

— Variable: move-cursor-increment 16

The move-cursor-DIRECTION functions move this cursor this many pixels at a time.