Tk::WorldCanvas

Tk::WorldCanvas is an autoscaling Canvas widget with zoom, viewAll, viewArea, viewFit, and center.
Download

Tk::WorldCanvas Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Joseph Skrovan
  • Publisher web site:
  • http://search.cpan.org/~skrovan/Tk-WorldCanvas-1.2.7/WorldCanvas.pm

Tk::WorldCanvas Tags


Tk::WorldCanvas Description

Tk::WorldCanvas is an autoscaling Canvas widget with zoom, viewAll, viewArea, viewFit, and center. Tk::WorldCanvas is an autoscaling Canvas widget with zoom, viewAll, viewArea, viewFit, and center.SYNOPSIS $worldcanvas = $parent->WorldCanvas(?options?);This module is a wrapper around the Canvas widget that maps the user's coordinate system to the now mostly hidden coordinate system of the Canvas widget. In world coordinates the y-axis increases in the upward direction.WorldCanvas is meant to be a replacement for Canvas. It's not quite a "drop in" replacement though because the y-axis is inverted compared to Canvas. Usually to convert you will have to invert all y-coordinates used to create objects. Typically, you should call $worldcanvas->viewAll (or $worldcanvas->viewArea(@box)) before calling MainLoop.Most of the WorldCanvas methods are the same as the Canvas methods except that they accept and return world coordinates instead of widget coordinates. Requirements: · Perl


Tk::WorldCanvas Related Software