| 1 | package TUI::ColorSel::Const; | ||
| 2 | # ABSTRACT: constants for the color dialog components | ||
| 3 | |||
| 4 | 9 | ▶ | use 5.010; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 9 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 9 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 9 | our $VERSION = '2.000002'; | |
| 9 | 9 | $VERSION =~ tr/_//d; | |
| 10 | 9 | our $AUTHORITY = 'cpan:BRICKPOOL'; | |
| 11 | |||
| 12 | 9 | ▶ | use Exporter 'import'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 9 | our @EXPORT_OK = qw( | |
| 15 | ); | ||
| 16 | |||
| 17 | 9 | 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 | 9 | my %seen; | |
| 37 | push | ||
| 38 | @EXPORT_OK, | ||
| 39 | 72 | grep {!$seen{$_}++} @{$EXPORT_TAGS{$_}} | |
| 40 | 9 | foreach keys %EXPORT_TAGS; | |
| 41 | push | ||
| 42 | 9 | @{$EXPORT_TAGS{all}}, | |
| 43 | @EXPORT_OK; | ||
| 44 | } | ||
| 45 | |||
| 46 | # Color command codes | ||
| 47 | 9 | ▶ | use constant { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 48 | 9 | cmColorForegroundChanged => 71, | |
| 49 | cmColorBackgroundChanged => 72, | ||
| 50 | cmColorSet => 73, | ||
| 51 | cmNewColorItem => 74, | ||
| 52 | cmNewColorIndex => 75, | ||
| 53 | cmSaveColorIndex => 76, | ||
| 54 | 9 | }; | |
| 55 | |||
| 56 | # enum ColorSel | ||
| 57 | 9 | ▶ | use constant { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 58 | 9 | csBackground => 0, | |
| 59 | csForeground => 1, | ||
| 60 | 9 | }; | |
| 61 | |||
| 62 | 9 | 1 | |
| 63 | |||
| 64 | __END__ | ||