Graphics::Primitive::Border - Line around components
Graphics::Primitive::Border describes the border to be rendered around a component.
use Graphics::Primitive::Border; my $border = Graphics::Primitive::Border->new;
Creates a new Graphics::Primitiver::Border. Borders are composed of 4 brushes, one for each of the 4 sides. See the documentation for Graphics::Primitive::Brush for more information. Note that you can provide a width and color argument to the constructor and it will create brushes of that width for each side.
width
color
The brush representing the bottom border.
Close this border.
Set the Color on all 4 borders to the one supplied. Shortcut for setting it with each side.
Set the dash pattern on all 4 borders to the one supplied. Shortcut for setting it with each side.
Returns 1 if this border is equal to the one provided, else returns 0.
Returns 1 if all of this border's sides are the same. Allows for driver optimizations.
The brush representing the left border.
Opposite of equal_to.
equal_to
The brush representing the right border.
The brush representing the top border.
Set the width on all 4 borders to the one supplied. Shortcut for setting it with each side.
Cory Watson, <gphat@cpan.org>
<gphat@cpan.org>
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.
To install Graphics::Primitive, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Graphics::Primitive
CPAN shell
perl -MCPAN -e shell install Graphics::Primitive
For more information on module installation, please visit the detailed CPAN module installation guide.