Achim Bohnet > Tk-GBARR-1.0401 > Tk::Cloth

Download:
Tk-GBARR-1.0401.tar.gz

Dependencies

Annotate this POD

Related Modules

Tk::Zinc
more...
By perlmonks.org

CPAN RT

Open  2
View/Report Bugs
Module Version: 1.03   Source   Latest Release: Tk-GBARR-2.08

NAME ^

Tk::Cloth - An OO Tk Canvas

SYNOPSIS ^

    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 ^

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

SEE ALSO ^

Tk::Canvas

AUTHOR ^

Graham Barr <gbarr@pobox.com>

COPYRIGHT ^

Copyright (c) 1997-1998 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: