| 1 | package Graphics::Primitive::Operation::Stroke; | ||
| 2 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use MooseX::Storage; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 2 | extends 'Graphics::Primitive::Operation'; | |
| 6 | |||
| 7 | 2 | with 'MooseX::Clone'; | |
| 8 | 2 | with Storage (format => 'JSON', io => 'File'); | |
| 9 | |||
| 10 | 2 | ▶ | use Graphics::Primitive::Brush; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | has brush => ( | ||
| 13 | isa => 'Graphics::Primitive::Brush', | ||
| 14 | is => 'rw', | ||
| 15 | 3 | ▶ | default => sub { Graphics::Primitive::Brush->new }, |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 16 | 2 | traits => [qw(Clone)] | |
| 17 | ); | ||
| 18 | |||
| 19 | 2 | __PACKAGE__->meta->make_immutable; | |
| 20 | |||
| 21 | 2 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | 2 | 1; | |
| 23 | __END__ | ||
| 24 | =head1 NAME | ||
| 25 | |||
| 26 | Graphics::Primitive::Operation::Stroke - Draw along a path | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | Graphics::Primitive::Operation::Stroke represents a stroke operation to be | ||
| 31 | performed on a path. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | use Graphics::Primitive::Operation::Stroke; | ||
| 36 | |||
| 37 | my $stroke = Graphics::Primitive::Operation::Stroke->new; | ||
| 38 | $stroke->brush->width(2); | ||
| 39 | |||
| 40 | =head1 METHODS | ||
| 41 | |||
| 42 | =head2 Constructor | ||
| 43 | |||
| 44 | =over 4 | ||
| 45 | |||
| 46 | =item I<new> | ||
| 47 | |||
| 48 | Creates a new Graphics::Primitive::Operation::Stroke. Uses a default | ||
| 49 | L<Brush|Graphics::Primitive::Brush>. | ||
| 50 | |||
| 51 | =back | ||
| 52 | |||
| 53 | =head2 Instance Methods | ||
| 54 | |||
| 55 | =over 4 | ||
| 56 | |||
| 57 | =item I<brush> | ||
| 58 | |||
| 59 | Set/Get this Stroke's Brush | ||
| 60 | |||
| 61 | =back | ||
| 62 | |||
| 63 | =head1 AUTHOR | ||
| 64 | |||
| 65 | Cory Watson, C<< <gphat@cpan.org> >> | ||
| 66 | |||
| 67 | =head1 COPYRIGHT & LICENSE | ||
| 68 | |||
| 69 | Copyright 2008-2010 by Cory G Watson. | ||
| 70 | |||
| 71 | This program is free software; you can redistribute it and/or modify it | ||
| 72 | under the same terms as Perl itself. | ||