Graphi...:Insets(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

πŸ’– 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 new Graphics::Primitive::Insets. fresh out the box, no cap ✨

πŸ’œ Instance Methods

  • as_array β€” Return these insets as an array in the form of top, right, bottom and left. (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) to 0. full reset, clean slate, main character rebirth energy 🧚

πŸ‘‘ AUTHOR πŸ‘‘

Cory Watson, "<gphat@cpan.org>" πŸ’Œ


πŸ”₯ SEE ALSO πŸ”₯

perl(1) β€” go read it, iykyk πŸ“–


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