Grid::Layout::Area
SYNOPSIS
Grid::Layout::Render
iterate over an Grid::Layout and call appropriate call backs so as to render the grid on a device.
DESCRIPTION
METHODS
new
use Grid::Layout;
my $gl = Grid::Layout->new(…);
Grid::Layout::Render::top_to_bottom_left_to_right(
$gl,
sub { # call back for next horizontal L<< track|Grid::Layout::Track >>.
my vertical_track = shift;
},
sub { # call back for each L<< cell|Grid::Layout::Cell> in the horizontal track
my $cell = shift;
},
sub { # call back when a horizontal track is finished
my vertical_track = shift;
}
);