blib/lib/Graphics/Primitive/Operation/Stroke.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 24 / 24 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Graphics/Primitive/Operation/Fill.pm ↑ Summary blib/lib/Graphics/Primitive/Paint.pm »
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.
« blib/lib/Graphics/Primitive/Operation/Fill.pm ↑ Summary blib/lib/Graphics/Primitive/Paint.pm »