logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Graphics::Primitive::TextBox - Text component

Author

       Cory Watson, "<gphat@cpan.org>"

Description

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

Methods

Constructornew Creates a new Graphics::Primitive::TextBox.

   InstanceMethodsangle
           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.

Name

       Graphics::Primitive::TextBox - Text component

Synopsis

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

Warning

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

See Also