blib/lib/Gapp/Paned.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 34 CC 3 SCAR 20.8
CC
3
Cov
0%
BUILDARGS
12.0
BEGIN
2.0
BEGIN
2.0
CRAP 8.0
1 package Gapp::Paned;
2 {
3 $Gapp::Paned::VERSION = '0.60';
4 }
5  
6 use Moose;
7 use MooseX::SemiAffordanceAccessor;
8  
9 extends 'Gapp::Container';
10  
11 has '+gclass' => (
12 default => 'Gtk2::Paned',
13 );
14  
15 has 'resize1' => (
16 is => 'rw',
17 isa => 'Bool',
18 default => 0,
19 );
20  
21 has 'shrink1' => (
22 is => 'rw',
23 isa => 'Bool',
24 default => 1,
25 );
26  
27 has 'resize2' => (
28 is => 'rw',
29 isa => 'Bool',
30 default => 1,
31 );
32  
33 has 'shrink2' => (
34 is => 'rw',
35 isa => 'Bool',
36 default => 1,
37 );
38  
39  
40 sub BUILDARGS {
41 my $class = shift;
42 my %args = @_ == 1 && is_HashRef( $_[0] ) ? %{$_[0]} : @_;
43
44 for my $att ( qw(max_position min_position position position_set) ) {
45 $args{properties}{$att} = delete $args{$att} if exists $args{$att};
46 }
47
48 __PACKAGE__->SUPER::BUILDARGS( %args );
49 }
50  
51 1;
52  
53  
54 __END__