-
-
02 Sep 2017 08:21:17 UTC
- Distribution: Grid-Layout
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (616 / 55 / 0)
- Kwalitee
Bus factor: 0- 84.85% Coverage
- License: artistic_2
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (12.45KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
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
Module Install Instructions
To install Grid::Layout, copy and paste the appropriate command in to your terminal.
cpanm Grid::Layout
perl -MCPAN -e shell install Grid::Layout
For more information on module installation, please visit the detailed CPAN module installation guide.