René Nyffenegger

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;
      }
    );    

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