Graphi...extBox(3pm)
β¨ NAME β¨
Graphics::Primitive::TextBox β bestie it's a Text component, it's giving words but make it a Component π
Wait, the manual page is Graphi...extBox(3pm) (they truncate the name in the header, rude) but the real one is Graphics::Primitive::TextBox π
π DESCRIPTION π
Graphics::Primitive::TextBox is literally just a Component. With text in it. That's the whole thing. It's a box. It holds text. Iconic behaviour honestly π¦
πΈ SYNOPSIS πΈ
okay so here's the vibe:
use Graphics::Primitive::Font;
use Graphics::Primitive::TextBox;
my $tx = Graphics::Primitive::TextBox->new(
font => Graphics::Primitive::Font->new(
face => 'Myriad Pro',
size => 12
),
text => 'I am a textbox!'
);
see how you pass a font and some text and boom β textbox. no notes. β¨
π¨ WARNING π¨
This component is likely to change drastically. Here be dragons. ππ
no fr fr, they said here be dragons. it's not me being dramatic, that's a direct quote. this thing is unstable, so don't get attached to the API, bestie. π
π«Ά METHODS π«Ά
π§ Constructor
newβ Creates a newGraphics::Primitive::TextBox. fresh out the box, literally. π
π Instance Methods
angleβ The angle this text will be rotated. spin it, rotate it, make it angled β¨fontβ Set this textbox's font. pick a cute one. π₯horizontal_alignmentβ Horizontal alignment. SeeGraphics::Primitive::Aligned. left, right, center β you decide, main character. πtextβ Set this textbox's text. yes. the text. the actual words. put them in there. πvertical_alignmentβ Vertical alignment. SeeGraphics::Primitive::Aligned. up, down, wherever β also your call. π
π AUTHOR π
Cory Watson, <gphat@cpan.org> β shoutout to the legend π«Ά
π COPYRIGHT & LICENSE π
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. so like, go off, remix it, slay, just keep it under the Perl terms. periodt. π
and that's the whole page, bestie! this one was generated by perl v5.34.0 and dated 2022-06-14 β so like, it's been living its life since then and still thriving. mwah πβ¨
π¦ where this page comes from
- debian bookworm: libgraphics-primitive-perl 0.67-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libgraphics-primitive-perl 0.67-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libgraphics-primitive-perl 0.67-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libgraphics-primitive-perl 0.67-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libgraphics-primitive-perl 0.67-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms