Scroll to navigation

Graphics::Primitive::Insets(3pm) User Contributed Perl Documentation Graphics::Primitive::Insets(3pm)

NAME

Graphics::Primitive::Insets - Space between things

DESCRIPTION

Graphics::Primitive::Insets represents the amount of space that surrounds something. This object can be used to represent either padding or margins (in the CSS sense, one being inside the bounding box, the other being outside)

SYNOPSIS

  use Graphics::Primitive::Insets;
  my $insets = Graphics::Primitive::Insets->new({
    top     => 5,
    bottom  => 5,
    left    => 5,
    right   => 5
  });

METHODS

Constructor

Creates a new Graphics::Primitive::Insets.

Instance Methods

Return these insets as an array in the form of top, right, bottom and left.
Set/Get the inset from the bottom.
Determine if these Insets are equal to another.
Set/Get the inset from the left.
Set/Get the inset from the right.
Set/Get the inset from the top.
Sets all the insets (top, left, bottom, right) to 0.

AUTHOR

Cory Watson, "<gphat@cpan.org>"

SEE ALSO

perl(1)

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.

2022-06-14 perl v5.34.0