Graphi...:Border(3pm)
π Graphi...:Border β the perl manual page, but make it cute β¨
okay so bestie, we're looking at Graphi...:Border from the User Contributed Perl Documentation and honestly? it's a little icon and it deserves a proper intro. let's get into it π
πΈ NAME πΈ
Graphics::Primitive::Border β literally just the line around components. that's it. that's the whole job. and it slays at it π
π¦ DESCRIPTION π¦
Graphics::Primitive::Border describes the border that gets rendered around a component. so when you're like "bestie, this box needs an outline," this is the thing that knows what that outline looks like. no cap π«Ά
β¨ SYNOPSIS β¨
the vibe check, in code form:
use Graphics::Primitive::Border;
my $border = Graphics::Primitive::Border->new;
that's it. two lines. main character energy β
π METHODS π
π· new
Creates a new Graphics::Primitiver::Border. (yes, that's spelled exactly like that in the original β we don't fix, we respect π)
so here's the tea: Borders are composed of 4 brushes, one for each of the 4 sides. if you want the full lore on brushes, go read the documentation for Graphics::Primitive::Brush. π
also, lowkey important: you can hand the constructor a "width" and "color" argument, and it will create brushes of that width for each side. convenient much? π
πΈ bottom
The brush representing the bottom border. the underdog. literally. π
π clone
Close this border. that's what it does bestie, I don't make the rules β¨
π color
Set the Color on all 4 borders to the one supplied. it's a shortcut for setting it with each side, because who has time to do it four times π
π§ dash_pattern
Set the dash pattern on all 4 borders to the one supplied. again β shortcut for setting it with each side. dashes on every side, no favorites π
π«Ά equal_to ($other)
Returns 1 if this border is equal to the one provided, else returns 0. yes/no, slay/not slay, iconic/not iconic π₯
π
Returns 1 if all of this border's sides are the same. and the reason this exists? it Allows for driver optimizations. so it's not just cute, it's useful π
π left
The brush representing the left border.
π not_equal_to
Opposite of "equal_to". the hater of the family. but like, respectfully π
β right
The brush representing the right border.
π top
The brush representing the top border. the main character of the four, arguably π
π¦ width
Set the width on all 4 borders to the one supplied. Shortcut for setting it with each side. four borders, one width, zero drama π
πΈ AUTHOR πΈ
Cory Watson, "<gphat@cpan.org>" β shoutout to the legend, we stan π«Ά
π 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. so go forth and remix, bestie, legally β¨
and that's the whole page!! π written up as perl v5.34.0, dated 2022-06-14, and delivered to you with love. periodt ππ
π¦ 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