blib/lib/LibUI/Draw/Brush.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package LibUI::Draw::Brush 0.02 {
2 use 5.008001;
3 use strict;
4 use warnings;
5 use Affix;
6 #
7 typedef 'LibUI::Draw::BrushType' => Enum [qw[Solid LinearGradient RadialGradient Image]];
8 typedef 'LibUI::Draw::Brush::GradientStop' =>
9 Struct [ pos => Double, r => Double, g => Double, b => Double, a => Double ];
10 #
11 typedef 'LibUI::Draw::Brush' => Struct [
12 type => LibUI::Draw::BrushType(),
13  
14 # solid brushes
15 R => Double,
16 G => Double,
17 B => Double,
18 A => Double,
19  
20 # gradient brushes
21 X0 => Double,
22 Y0 => Double,
23 X1 => Double,
24 Y1 => Double,
25 outerRadius => Double,
26 stops => Pointer [ LibUI::Draw::Brush::GradientStop() ],
27 numStops => Size_t
28 ];
29 };
30 1;
31 #
32 __END__