Tk::Cloth - An OO Tk Canvas


Tk-GBARR documentation  | view source Contained in the Tk-GBARR distribution.

Index


NAME

Top

Tk::Cloth - An OO Tk Canvas

SYNOPSIS

Top

    use Tk::Cloth;

    $cloth = $parent->Cloth;
    $cloth->pack(-fill => 'both', -expand => 1);

    $rect = $cloth->Rectangle(
	-coords => [ 0,0,100,100],
	-fill => 'red'
    );

    $tag = $cloth->tag;
    $tag->Line(
	-coords => [10,10,100,100],
	-foreground => 'black'
    );
    $tag->Line(
	-coords => [50,50,100,100],
	-foreground => 'black'
    );
    $tag->move(30,30);

    $tag->bind("<1>", [ &button1 ]);

DESCRIPTION

Top

Tk::Cloth provides an object-orientated approach to a canvas and canvas items.

SEE ALSO

Top

Tk::Canvas

AUTHOR

Top

Graham Barr <gbarr@pobox.com>

Current maintainer is Slaven Rezic <slaven@rezic.de>.

COPYRIGHT

Top


Tk-GBARR documentation  | view source Contained in the Tk-GBARR distribution.