The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Chart::Clicker::Drawing::Stroke

DESCRIPTION

Chart::Clicker::Drawing::Stroke represents the decorative outline around a component. Since a line is infinitely small, we need some sort of outline to be able to see it!

SYNOPSIS

  use Chart::Clicker::Drawing::Stroke qw(:line_caps :line_joins);

  my $stroke = new Chart::Clicker::Drawing::Stroke({
    line_cap => $CC_LINE_CAP_ROUND,
    line_join => $CC_LINE_JOIN_MITER,
    width => 2
  });

EXPORTS

$CC_LINE_CAP_BUTT $CC_LINE_CAP_ROUND $CC_LINE_CAP_SQUARE

$CC_LINE_JOIN_MITER $CC_LINE_JOIN_ROUND $CC_LINE_JOIN_BEVEL

METHODS

Constructor

new

Creates a new Chart::Clicker::Decoration::Stroke. If no options are provided the width defaults to 1, the line_cap defaults to $CC_LINE_CAP_BUTT and the line_join defaults to $CC_LINE_JOIN_MITER.

Class Methods

line_cap

Set/Get the line_cap of this stroke.

line_join

Set/Get the line_join of this stroke.

width

Set/Get the width of this stroke.

AUTHOR

Cory 'G' Watson <gphat@cpan.org>

SEE ALSO

perl(1)

LICENSE

You can redistribute and/or modify this code under the same terms as Perl itself.