lib/Draft/TkGui/Drawing.pm

filter: Statementstmt 43.7% 7 / 16 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 1 totaltotal 37.5% 9 / 24 CC 4 SCAR 26.1
CC
4
Cov
35%
Draw
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 13.7
« lib/Draft/Drawing.pm ↑ Summary lib/Draft/Protozoa/Eml.pm »
1 package Draft::TkGui::Drawing;
2  
3 =head1 NAME
4  
5 Draft::TkGui::Drawing - Tk drawing type
6  
7 =head1 SYNOPSIS
8  
9 A container for multiple drawing entities.
10  
11 =head1 DESCRIPTION
12  
13 Code for displaying a drawing on screen.
14  
15 =cut
16  
17 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 # FIXME should subclass Draft::Drawing, not the other way around
21  
22 #use vars qw(@ISA);
23 #@ISA = qw(Draft::Drawing);
24  
25 sub Draw
26 0 ▶{
Subroutine Draw: not called CC=4 SCAR=30.0
Pod undocumented
27 0 my $self = shift;
28 0 my ($canvas, $offset, $parents, $ignore) = @_;
29  
30 0 $self->Read;
31  
32 0 foreach my $key (keys %{$self})
33 {
34 0 ▶ next if ($key =~ /^_/);
Branch: 1 branch
BranchTrueFalseTotal
if $key =~ /^_/ 0 0 0
35 0 ▶ next if grep (/^$key$/, @{$ignore});
Branch: 1 branch
BranchTrueFalseTotal
if grep /^$key$/, @{$ignore;} 0 0 0
36  
37 0 $self->{$key}->Draw ($canvas, $offset, $parents, $ignore);
38 }
39 }
40  
41 1 1;
« lib/Draft/Drawing.pm ↑ Summary lib/Draft/Protozoa/Eml.pm »