File: Fill.pm

package info (click to toggle)
libgraphics-primitive-perl 0.67-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 372 kB
  • sloc: perl: 2,586; makefile: 2
file content (69 lines) | stat: -rw-r--r-- 1,207 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package Graphics::Primitive::Operation::Fill;
use Moose;
use MooseX::Storage;

extends 'Graphics::Primitive::Operation';

with 'MooseX::Clone';
with Storage (format => 'JSON', io => 'File');

has paint => (
    isa => 'Graphics::Primitive::Paint',
    is  => 'rw',
    required => 1,
    traits => [qw(Clone)]
);

__PACKAGE__->meta->make_immutable;

no Moose;
1;
__END__
=head1 NAME

Graphics::Primitive::Operation::Fill - Paint inside a path

=head1 DESCRIPTION

Graphics::Primitive::Operation::Fill represents a fill operation to be
performed on a path.

=head1 SYNOPSIS

  use Graphics::Primitive::Operation::Fill;

  my $fill = Graphics::Primitive::Operation::Fill->new;
  $fill->paint(Graphics::Primitive::Paint::Solid->new);

=head1 METHODS

=head2 Constructor

=over 4

=item I<new>

Creates a new Graphics::Primitive::Operation::Fill.

=back

=head2 Instance Methods

=over 4

=item I<paint>

Set/Get the L<Paint|Graphics::Primitive::Paint> to use for this fill.

=back

=head1 AUTHOR

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

=head1 COPYRIGHT & LICENSE

Copyright 2008-2010 by Cory G Watson.

This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.