Graphi...:Insets(3pm)
π Graphics::Primitive::Insets π
okay bestie, this is a Perl module from the User Contributed Perl Documentation collection, and it lives at Graphics::Primitive::Insets (section 3pm if you're keeping track). pull up a chair π«Ά
β¨ NAME β¨
Graphics::Primitive::Insets β Space between things πΈ
π DESCRIPTION π
so like. Graphics::Primitive::Insets represents the amount of space that surrounds something. that's it, that's the whole vibe π
and here's the thing β this little object can be used to represent either padding or margins, in the CSS sense, where one of those is inside the bounding box and the other one is outside. iconic duality honestly π
π SYNOPSIS π
use Graphics::Primitive::Insets;
my $insets = Graphics::Primitive::Insets->new({
top => 5,
bottom => 5,
left => 5,
right => 5
});
π¦ METHODS π¦
π Constructor
newβ Creates a newGraphics::Primitive::Insets. fresh out the box, no cap β¨
π Instance Methods
as_arrayβ Return these insets as an array in the form oftop,right,bottomandleft. (yes bestie, that order specifically, don't come for me π)bottomβ Set/Get the inset from the bottom.equal_toβ Determine if these Insets are equal to another.leftβ Set/Get the inset from the left.rightβ Set/Get the inset from the right.topβ Set/Get the inset from the top.zeroβ Sets all the insets (top,left,bottom,right) to0. full reset, clean slate, main character rebirth energy π§
π AUTHOR π
Cory Watson, "<gphat@cpan.org>" π
π₯ SEE ALSO π₯
perl(1) β go read it, iykyk π
π 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.
fr fr, that's the whole page, nothing skipped, every method accounted for π«Ά
and that's a wrap, bestie!! this lil doc came to you courtesy of perl v5.34.0, dated 2022-06-14 π β¨ mwah π
π¦ where this page comes from
- debian bookworm: libgraphics-primitive-perl 0.67-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libgraphics-primitive-perl 0.67-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libgraphics-primitive-perl 0.67-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libgraphics-primitive-perl 0.67-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libgraphics-primitive-perl 0.67-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