Vizard 8 » Command Index » Vizard objects » node3d » <node3d:canvas>.setCursorAlignment
8.1

<node3d:canvas>.setCursorAlignment

Set alignment of cursor quad

<node3d:canvas>.setCursorAlignment(  
mode  
)  
mode
Can be one of the following:

Mode

Description

viz.ALIGN_LEFT_TOP

Align to the top left corner.

viz.ALIGN_LEFT_CENTER

Align to the center left edge.

viz.ALIGN_LEFT_BOTTOM

Align to the bottom left corner.

viz.ALIGN_CENTER_TOP

Align to the top center edge.

viz.ALIGN_CENTER

Align to the center.

viz.ALIGN_CENTER_BOTTOM

Align to the bottom center edge.

viz.ALIGN_RIGHT_TOP

Align to the top right corner.

viz.ALIGN_RIGHT_CENTER

Align to the center right edge.

viz.ALIGN_RIGHT_BOTTOM

Align to the bottom right corner.

Remarks

This command sets the alignment of the virtual canvas cursor quad. This controls which part of the cursor quad is placed at the cursor position.

The default alignment is viz.ALIGN_LEFT_TOP.

Return Value

None

See also

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