lib/TUI/ColorSel/Const.pm

filter: Statementstmt 100% 30 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 36 / 36 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/TUI/App/Const.pm ↑ Summary lib/TUI/Const.pm »
1 package TUI::ColorSel::Const;
2 # ABSTRACT: constants for the color dialog components
3
4 10 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 10 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7
8 10 our $VERSION = '2.000003';
9 10 $VERSION =~ tr/_//d;
10 10 our $AUTHORITY = 'cpan:BRICKPOOL';
11
12 10 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
13
14 10 our @EXPORT_OK = qw(
15 );
16
17 10 our %EXPORT_TAGS = (
18 cmXXXX => [qw(
19 cmColorForegroundChanged
20 cmColorBackgroundChanged
21 cmColorSet
22 cmNewColorItem
23 cmNewColorIndex
24 cmSaveColorIndex
25 )],
26
27 csXXXX => [qw(
28 csBackground
29 csForeground
30 )],
31 );
32
33 # add all the other %EXPORT_TAGS ":class" tags to the ":all" class and
34 # @EXPORT_OK, deleting duplicates
35 {
36 10 my %seen;
37 push
38 @EXPORT_OK,
39 80 grep {!$seen{$_}++} @{$EXPORT_TAGS{$_}}
40 10 foreach keys %EXPORT_TAGS;
41 push
42 10 @{$EXPORT_TAGS{all}},
43 @EXPORT_OK;
44 }
45
46 # Color command codes
47 10 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
48 10 cmColorForegroundChanged => 71,
49 cmColorBackgroundChanged => 72,
50 cmColorSet => 73,
51 cmNewColorItem => 74,
52 cmNewColorIndex => 75,
53 cmSaveColorIndex => 76,
54 10 };
55
56 # enum ColorSel
57 10 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
58 10 csBackground => 0,
59 csForeground => 1,
60 10 };
61
62 10 1
63
64 __END__
« lib/TUI/App/Const.pm ↑ Summary lib/TUI/Const.pm »