Christophe Mertz > svg2zinc-perl > SVG:SVG2zinc::Backend::PerlScript

Download:
svg2zinc-perl_0.9.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

SVG:SVG2zinc::Backend::PerlScript - a backend class generating Perl script displaying the content of a SVG file

SYNOPSIS ^

 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();

DESCRIPTION ^

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:

-render

The render option of the Tk::Zinc widget. A value of 0 means no openGL, 1 or 2 for openGL. Defaults to 1.

SEE ALSO ^

SVG::SVG2zinc::Backend(3pm) and SVG::SVG2zinc(3pm)

AUTHORS ^

Christophe Mertz <mertz@cena.fr>

COPYRIGHT ^

CENA (C) 2003

This program is free software; you can redistribute it and/or modify it under the term of the LGPL licence.

syntax highlighting: