SYNOPSIS
DESCRIPTION
a Grid::Layout::Track
is the space between to adjacent Grid::Layout::Lines.
Usually, a horizontal track is referred to as a row, a vertical track as a column.
METHODS
new
Creates a Grid::Layout::Track
. Should not be called by the user. The constructor is called by "add_track" in Grid::Layout instead.
line_left
Returns the line to the left of the track.
Only applicable if the track is vertical ($self->{V_or_H} eq 'V'
).
line_right
Returns the line to the right of the track.
Only applicable if the track is vertical ($self->{V_or_H} eq 'V'
).
line_left
Returns the line above the track.
Only applicable if the track is vertical ($self->{V_or_H} eq 'H'
).
line_beneath
Returns the line beneath the track.
Only applicable if the track is vertical ($self->{V_or_H} eq 'H'
).
cells
my @cells = $track->cells();
Return an array of the cells in the track.
area
my $track_v = $gl->add_vertical_track(…);
my $track_h_from = $gl->add_horizontal_track(…);
my $track_h_to = $gl->add_horizontal_track(…);
my $line_h_from = $gl->add_line(…);
my $line_h_to = $gl->add_line(…);
my $area_1 = $track_v->area($track_h_from, $track_h_to);
my $area_2 = $track_v->area($line_h_from , $line_h_to );
Defines an area lying on $track_v
between $track_h_from
and $track_h_to
.
An area that is bound by four tracks can be created with "area" in Grid::Layout.
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