Graphi...:Border(3pm)

πŸ“¦
version 0.67 Β· 2 versions
  • 0.67 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.67 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 πŸ™ˆ

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 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