beetlebug▾
/

canvas moveto

Moves the items so that their box starts at a point.

PATHNAME moveto TAGORID X Y

Description

Moves the items of TAGORID so that the top left corner of the box of their first item, as bbox gives it, is at X,Y. An empty X or Y keeps that coordinate.

Returns

An empty string.

Examples

% canvas .mt
> .mt create rectangle 0 0 10 10
> .mt moveto 1 50 50
> .mt bbox 1
50 50 62 62

Errors

% canvas .mt2; .mt2 moveto
wrong # args: should be ".mt2 moveto tagOrId x y"
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1

See also