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::Aligned - Role for components that care about alignment.

Author

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

Methods

horizontal_alignment
       Horizontal alignment value.  Valid values are 'center', 'left' and 'right'.

   vertical_alignment
       Vertical alignment value.  Valid values are 'bottom', 'center' and 'top'.

Name

       Graphics::Primitive::Aligned - Role for components that care about alignment.

See Also

perl(1)

Synopsis

       Some components (or things that use components) require a bit more information than origin and
       width/height.  The alignment role allows a component to specify it's horizontal and vertical alignment.

           package My::Component;

           extends 'Graphics::Primitive::Component';

           with 'Graphics::Primitive::Aligned';

           1;

See Also