logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Graphics::Primitive::Border - Line around components

Author

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

Description

       Graphics::Primitive::Border describes the border to be rendered around a component.

Methods

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.

   bottom
       The brush representing the bottom border.

   clone
       Close this border.

   color
       Set the Color on all 4 borders to the one supplied.  Shortcut for setting it with each side.

   dash_pattern
       Set the dash pattern on all 4 borders to the one supplied. Shortcut for setting it with each side.

   equal_to($other)
       Returns 1 if this border is equal to the one provided, else returns 0.

   homogeneous
       Returns 1 if all of this border's sides are the same.  Allows for driver optimizations.

   left
       The brush representing the left border.

   not_equal_to
       Opposite of "equal_to".

   right
       The brush representing the right border.

   top
       The brush representing the top border.

   width
       Set the width on all 4 borders to the one supplied.  Shortcut for setting it with each side.

Name

       Graphics::Primitive::Border - Line around components

Synopsis

         use Graphics::Primitive::Border;

         my $border = Graphics::Primitive::Border->new;

See Also