This software allows you to view a preliminary version of a world or document on your screen.
This module is actually a sub-class of Tk::WorldCanvas, which means it inherits all Tk::Canvas methods. To create a Draft::TkGui object, simply use the following command: my $canvas = Draft::TkGui->new. This will show a window and display the drawing.
While using Draft::TkGui, some interaction is possible. You can use the 'i' and 'o' keys to zoom in and out. Additionally, you can use the left mouse button to drag items around the screen, and use the middle mouse button to pan around the viewport.
If you need to redraw the canvas window, you can do so using the $canvas->Draw command. This scans all drawing elements and updates the display with any changes. No files are accessed unnecessarily, so feel free to call this method as often as you like. In fact, by default, this method is called whenever a mouse pointer enters the canvas area.
Overall, if you need to display Draft worlds and interact with them, Draft::TkGui is a valuable Perl module to consider.
Version 0.06: N/A