Graphics::Primitive::Driver::TextLayout - TextLayout role
Graphics::Primitive::Driver::TextLayout is a role for Driver text layout engines.
package MyLayout; use Moose; with 'Graphics::Primitive::Driver::TextLayout'; ...
Set/Get the component from which to draw layout information.
Set/Get this layout's height
Implemented by role consumer. Given an offset and an optional size, returns a TextBox containing lines from this layout that come as close to $size without exceeding it. This method is provided to allow incremental rendering of text. For example, if you have a series of containers 80 units high, you might write code like this:
$size
for(my $i = 0; $i < 3; $i++) { $textbox = $layout->slice($i * 80, 80); # render the text }
Set/Get this layout's width. Defaults to the width of the component supplied.
Cory Watson, <gphat@cpan.org>
<gphat@cpan.org>
Infinity Interactive, http://www.iinteractive.com
Please report any bugs or feature requests to bug-geometry-primitive at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Geometry-Primitive. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-geometry-primitive at rt.cpan.org
Copyright 2008 by Infinity Interactive, Inc.
http://www.iinteractive.com
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Graphics::Primitive, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Graphics::Primitive
CPAN shell
perl -MCPAN -e shell install Graphics::Primitive
For more information on module installation, please visit the detailed CPAN module installation guide.