Grid::Layout::LineSection
Except for those Grid::Layout::LineSections that make up the border of the entire Grid, each LineSection lies between two adjacent Grid::Layout::Cells.
A Grid::Layout::Line is made up of Grid::Layout::Lines
Grid::Layout::Line
$self->_init_V_or_H('V'); $self->_init_V_or_H('H');
This method is called by "new" twice to initialize the vertical and the horizontal components of the layout.
The parameter 'V' or 'H' indiciates which componenents to initialize.
'V'
'H'
$self->_add_line($V_or_H);
Internal function, called by "_add_track", to add a vertical or horizontal Grid::Layout::Line.
my $x = $gl->size_x();
Returns the horizontal size (x axis) in logical cell units.
my $y = $gl->size_y();
Returns the vertical size (y axis) in logical cell units.
Returns size of grid (nof vertical tracks x nof horizontal tracks);
my ($v, $h) = $gl -> size();
Internal use.
my $cell = $gl->cell($v, $x);
Return the Grid::Layout::Cell at horizontal position $x and vertical position $y.
$x
$y
my $line = $gl->line_x($postition);
Returns the $positionth line in horizontal direction.
$position
my $line = $gl->line_y($postition);
Returns the $positionth line in vertical direction.
my $line = $gl->_line($V_or_H, $position)
Returns the $positionth line in vertical or horizontal direction.
To install Grid::Layout, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Grid::Layout
CPAN shell
perl -MCPAN -e shell install Grid::Layout
For more information on module installation, please visit the detailed CPAN module installation guide.