Rectangle Items |
||||
|
Items of type rectangle appear as rectangular regions on the display. Each rectangle may have an outline, a fill, or both. Rectangles are created with widget commands of the following form: (#<widget> 'create 'rectangle x1 y1 x2 y2 ?option value option value ...? (#<widget> 'create 'rectangle coordList ?option value option value ...? The arguments x1, y1, x2, and y2 or coordList give the coordinates of two diagonally opposite corners of the rectangle (the rectangle will include its upper and left edges but not its lower or right edges). After the coordinates there may be any number of option-value pairs, each of which sets one of the configuration options for the item. These same option-value pairs may be used in itemconfigure widget commands to change the item's configuration. The following standard options are supported by rectangles: #:dash #:activedash #:disableddash #:dashoffset #:fill #:activefill #:disabledfill #:offset #:outline #:activeoutline #:disabledoutline #:outlinestipple #:activeoutlinestipple #:disabledoutlinestipple #:stipple #:activestipple #:disabledstipple #:state #:tags #:width #:activewidth #:disabledwidth |