Graphics::Primitive::TextBox(3pm)

Graphics::Primitive::TextBox3pm

Text component

Usage

  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!'
  );

Overview

Graphics::Primitive::TextBox is a Component with text.

Warning

This component is likely to change drastically. Here be dragons.

Methods

Constructor

new

Creates a new Graphics::Primitive::TextBox.

Instance Methods

angle

The angle this text will be rotated.

font

Set this textbox's font

horizontal_alignment

Horizontal alignment. See Graphics::Primitive::Aligned.

text

Set this textbox's text.

vertical_alignment

Vertical alignment. See Graphics::Primitive::Aligned.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0
  2. 7
  3. 8
  4. 9–11
  5. 12–13

Author

Cory Watson, "<[email protected]>"

From libgraphics-primitive-perl 0.67-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.