Vizard 8 » Command Index » Vizard objects » node3d » <node3d:canvas>.setCursorPosition
8.0

<node3d:canvas>.setCursorPosition

Set position of canvas cursor

<node3d:canvas>.setCursorPosition(  
pos # [x, y]
mode = viz.CANVAS_CURSOR_NORMALIZED  
)  
pos
The [x,y] position of the canvas cursor.
mode = viz.CANVAS_CURSOR_NORMALIZED
Can be one of the following:

Mode

Description

viz.CANVAS_CURSOR_NORMALIZED

The position is specified in normalized (0-1) canvas coordinates.

viz.CANVAS_CURSOR_PIXELS

The position is specified in canvas pixel resolution coordinates.

Remarks

This command will set the position of the virtual canvas cursor. This is typically needed when using an input device other than a mouse.

The default cursor position is the center of the canvas.

Return Value

None

See also

<node3d:canvas>.getCursorPosition
<node3d:canvas>.getMouseStyle
<node3d:canvas>.setMouseStyle