SVG:SVG2zinc::Backend::PerlScript - a backend class generating Perl script displaying the content of a SVG file
use SVG:SVG2zinc::Backend::PerlScript; $backend = SVG:SVG2zinc::Backend::PerlScript->new( -out => filename_or_handle, -in => svgfilename, -verbose => 0|1, -render => 0|1|2, ); $backend->fileHeader(); $backend->treatLines("lineOfCode1", "lineOfCode2",...); $backend->comment("comment1", "comment2", ...); $backend->printLines("comment1", "comment2", ...); $backend->fileTail();
SVG:SVG2zinc::Backend::PerlScript is a class for generating perl script which displays the content of a SVG file. The generated script requires Tk::Zinc.
For more information, you should look at SVG::SVG2zinc::Backend(3pm).
The generated perl script uses the Tk::Zinc::Debug tool, so it is easy to inspect items created in Tk::Zinc. Use the <ESC> key to get some help when the cursor is in the Tk::Zinc window.
The new method accepts parameters described in the SVG:SVG2zinc::Backend class and the following additionnal parameter:
The render option of the Tk::Zinc widget. A value of 0 means no openGL, 1 or 2 for openGL. Defaults to 1.
SVG::SVG2zinc::Backend(3pm) and SVG::SVG2zinc(3pm)
Christophe Mertz <mertz at intuilab dot com>
CENA (C) 2003-2004 IntuiLab (C) 2004
This program is free software; you can redistribute it and/or modify it under the term of the LGPL licence.
To install SVG::SVG2zinc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SVG::SVG2zinc
CPAN shell
perl -MCPAN -e shell install SVG::SVG2zinc
For more information on module installation, please visit the detailed CPAN module installation guide.