Graphics::Primitive::Insets(3pm)

Graphics::Primitive::Insets3pm

Space between things

Usage

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

Overview

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)

Methods

Constructor

new

Creates a new Graphics::Primitive::Insets.

Instance Methods

as_array

Return these insets as an array in the form of top, right, bottom and left.

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.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0
  2. 7
  3. 8
  4. 9–11
  5. 12–13

Author

Cory Watson, "<[email protected]>"

From libgraphics-primitive-perl 0.67-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.