Graphi...extBox(3pm)

πŸ“¦
version 0.67 Β· 2 versions
  • 0.67 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.67 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 new Graphics::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. See Graphics::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. See Graphics::Primitive::Aligned. up, down, wherever β€” also your call. 🌈

🌟 AUTHOR 🌟

Cory Watson, <gphat@cpan.org> β€” shoutout to the legend 🫢


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