NAME
Graphics::Primitive::Insets
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
- new
-
Creates a new Graphics::Primitive::Insets.
Instance Methods
- 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.
AUTHOR
Cory Watson, <gphat@cpan.org>
Infinity Interactive, http://www.iinteractive.com
SEE ALSO
perl(1), Wikipedia
COPYRIGHT & LICENSE
Copyright 2008 by Infinity Interactive, Inc.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.