SYNOPSIS
Grid::Layout::LineSection
DESCRIPTION
Except for those Grid::Layout::LineSection
s 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::Line
s
METHODS
new
_init_V_or_H
$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.
add_vertical_track
add_horizontal_track
_add_track
_add_line
$self
->_add_line(
$V_or_H
);
Internal function, called by "_add_track", to add a vertical or horizontal Grid::Layout::Line.
size_x
my
$x
=
$gl
->size_x();
Returns the horizontal size (x axis) in logical cell units.
size_y
my
$y
=
$gl
->size_y();
Returns the vertical size (y axis) in logical cell units.
size
Returns size of grid (nof vertical tracks x nof horizontal tracks);
my
(
$v
,
$h
) =
$gl
-> size();
_size
Internal use.
cell
my
$cell
=
$gl
->cell(
$v
,
$x
);
Return the Grid::Layout::Cell at horizontal position $x
and vertical position $y
.
_add_cell
Internal use.
line_x
my
$line
=
$gl
->line_x(
$postition
);
Returns the $position
th line in horizontal direction.
line_y
my
$line
=
$gl
->line_y(
$postition
);
Returns the $position
th line in vertical direction.
_line
my
$line
=
$gl
->_line(
$V_or_H
,
$position
)
Returns the $position
th line in vertical or horizontal direction.
Copyright
Copyright © 2017 René Nyffenegger, Switzerland. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). You may obtain a copy of the full license at: http://www.perlfoundation.org/artistic_license_2_0