| 1 | package Graphics::Primitive::Operation; | ||
| 2 | 3 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | has 'preserve' => ( | ||
| 5 | isa => 'Bool', | ||
| 6 | is => 'rw', | ||
| 7 | 4 | ▶ | default => sub { 0 }, |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 8 | 3 | ); | |
| 9 | |||
| 10 | 3 | __PACKAGE__->meta->make_immutable; | |
| 11 | |||
| 12 | 3 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 3 | 1; | |
| 14 | =head1 NAME | ||
| 15 | |||
| 16 | Graphics::Primitive::Operation - A drawing instruction | ||
| 17 | |||
| 18 | =head1 DESCRIPTION | ||
| 19 | |||
| 20 | Graphics::Primitive::Operation is the base class for operations. An operation | ||
| 21 | is an action that is performed on a path such as a | ||
| 22 | L<Fill|Graphics::Primitive::Operation::Fill> or | ||
| 23 | L<Fill|Graphics::Primitive::Operation::Stroke>. | ||
| 24 | |||
| 25 | =head1 METHODS | ||
| 26 | |||
| 27 | =over 4 | ||
| 28 | |||
| 29 | =item I<preserve> | ||
| 30 | |||
| 31 | Informs the canvas to not clear the current path when performing this | ||
| 32 | operation. Also provides a hint to the driver. | ||
| 33 | |||
| 34 | =back | ||
| 35 | |||
| 36 | =head1 AUTHOR | ||
| 37 | |||
| 38 | Cory Watson <gphat@cpan.org> | ||
| 39 | |||
| 40 | =head1 COPYRIGHT & LICENSE | ||
| 41 | |||
| 42 | Copyright 2008-2010 by Cory G Watson. | ||
| 43 | |||
| 44 | You can redistribute and/or modify this code under the same terms as Perl | ||
| 45 | itself. | ||