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