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