Graphics::Primitive::Driver::TextLayout
TextLayout role
- Provided by: libgraphics-primitive-perl (Version: 0.67-2)
- Report a bug
TextLayout role
Graphics::Primitive::Driver::TextLayout is a role for Driver text layout engines.
package MyLayout;
use Moose;
with 'Graphics::Primitive::Driver::TextLayout';
...
for(my $i = 0; $i < 3; $i++) {
$textbox = $layout->slice($i * 80, 80);
# render the text
}
Cory Watson, "<gphat@cpan.org>"
Copyright 2008-2010 by Cory G Watson.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.