NAME
Layout::Manager::Compass
DESCRIPTION
Layout::Manager::Compass is a layout manager that takes hints based on the four cardinal directions (north, east, south and west) plus a center area that takes up all possible space.
In other words, the center area will expand to take up all space that is NOT used by components placed at the edges.
Components are placed in the order they are added. If two items are added to the 'north' position then the first item will be rendered on top of the second.
SYNOPSIS
my $lm = Layout::Manager::Compass->new();
$lm->add_component($comp1, 'north');
$lm->add_component($comp2, 'east');
$lm->do_layout($container);
POSITIONING
When you add a component with add_component the second argument should be one of: north, south, east, west or center. Case doesn't matter. You can also just provide the first letter of the word and it will do the same thing.
METHODS
Constructor
- new
-
Creates a new Layout::Manager::Compass.
Instance Methods
- do_layout
-
Size and position the components in this layout.
AUTHOR
Cory Watson, <gphat@cpan.org>
Infinity Interactive, http://www.iinteractive.com
COPYRIGHT & LICENSE
Copyright 2008 by Infinity Interactive, Inc.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.