canvas - Create and manipulate a widget which is a generic engine for structured graphics
SYNOPSIS
canvas?-option optionVal ...?
OPTIONS
-heigth
height of canvas
type: integer default: 500
-width
width of canvas
type: integer default: 500
-antialiased
Determines if the antialiased version of the canvas
widget should be used. It seems, that only this version
can rotate items.
type: boolean default: true
DESCRIPTION
Canvas widgets implement structured graphics. A canvas
displays any number of items, which may be
rectangles, circles, lines, and text. Items may be manipulated
(e.g. moved or re-colored) and commands may be
associated with items with the bind
command. For example, a particular command may be associated
with the <button>-event so that the command is invoked
whenever
a button is pressed with the mouse cursor over an item. This
means that items in a canvas can have behaviors defined by
the Tcl scripts bound to them.
WIDGET COMMANDS
The canvas command creates a new Tcl command
whose name is an ID returned on widget creation. This command may be
used to invoke various operations on the widget. It has the following
general form:
ID option ?arg arg ...?
option and arg determine the exact behavior of the
command. The following commands are possible for canvas widgets: