Layout...:Single(3pm)
β¨ NAME β¨
Layout::Manager::Single β it's giving one-size-fits-all, bestie π
a vertical layout manager. That's it, that's the whole job. Also hi, this is the page for it, sitting in section 3pm of the User Contributed Perl Documentation, so you know it's the real deal π«Ά
πΈ DESCRIPTION πΈ
Okay so picture this: every single component gets laid out in one position. One. Just the one. No grid, no drama, no negotiation π
Every component is set to the height and width of the container, and positioned at the offsets. That's the whole vibe.
Which basically meansβ¦ it stacks them all vertically. Like a little tower of components π§ Stacked. All of them. In a row. Vertically. Periodt π
π¦ SYNOPSIS π¦
$cont->add_component($comp1);
$cont->add_component($comp2);
my $lm = Layout::Manager::Single->new();
$lm->do_layout($cont);
Look at her go β¨ add your components, make your layout manager, call do_layout, done. Iconic behaviour, no notes.
π METHODS π
π do_layout
Size and position the components in this layout. That's the assignment. She ate and left no crumbs π
π AUTHOR π
Cory Watson, <gphat@cpan.org> β say thank you to the legend π
π COPYRIGHT & LICENSE π
Copyright 2008 - 2010 by Cory G Watson
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Slay, and legally so π
Okay bye bestie, this was perl v5.34.0, dated 2022-06-15, and yes that's the same Layout...:Single(3pm) from the top of the page β full circle, main character energy, no cap πβ¨
π¦ where this page comes from
- debian bookworm: liblayout-manager-perl 0.35-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: liblayout-manager-perl 0.35-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: liblayout-manager-perl 0.35-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: liblayout-manager-perl 0.35-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: liblayout-manager-perl 0.35-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms