Graphics::Primitive::Aligned(3pm)

Graphics::Primitive::Aligned3pm

Role for components that care about alignment.

Usage

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;

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

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.