line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Graphics::Primitive::Operation::Stroke; |
2
|
1
|
|
|
1
|
|
15893
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
use MooseX::Storage; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
extends 'Graphics::Primitive::Operation'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
with 'MooseX::Clone'; |
8
|
|
|
|
|
|
|
with Storage (format => 'JSON', io => 'File'); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
use Graphics::Primitive::Brush; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
has brush => ( |
13
|
|
|
|
|
|
|
isa => 'Graphics::Primitive::Brush', |
14
|
|
|
|
|
|
|
is => 'rw', |
15
|
|
|
|
|
|
|
default => sub { Graphics::Primitive::Brush->new }, |
16
|
|
|
|
|
|
|
traits => [qw(Clone)] |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
no Moose; |
22
|
|
|
|
|
|
|
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. |