|
|
| |
 |
 |
 |
 |
|  |
 |
FVWM - Perl library - FVWM::Tracker::Colorsets
|
|
 |
 |
 |
 |
|
FVWM::Tracker::Colorsets
Section: FVWM Perl library (3)
Updated: 2005-08-24
Source: FVWM/Tracker/Colorsets.pm
This page contents
- Return to main index
DESCRIPTION
This is a subclass of FVWM::Tracker that enables to read the colorset
definitions.
This tracker defines the following observable:
"colorset changed"
that is notified using 2 additional parameters: colorset number and
old colorset data hash ref.
SYNOPSYS
Using FVWM::Module $module object:
my $csTracker = $module->track("Colorsets");
my $csHash = $csTracker->data;
my $cs2_fg = $csHash->{2}->{fg} || 'black';
my $cs5_bg = $csTracker->data(5)->{bg} || 'gray';
$csTracker->observe(sub {
my ($module, $tracker, $data, $num, $oldHash) = @_;
my $newHash = $data->{$num};
if ($oldHash->{pixmap} == 0 && $newHash->{pixmap}) {
my $pixmapType = $newHash->{pixmap_type};
my $pixmapName = ($tracker->PIXMAP_TYPES)[$pixmapType];
$module->debug("Colorset: $num, Pixmap type: $pixmapName");
}
};
OVERRIDDEN METHODS
- data [colorset-num]
-
Returns either array ref of colorset hash refs, or one hash ref if
colorset-num is given. The hash keys are listed in CS_FIELDS, the
constant of this class.
- dump [colorset-num]
-
Works similarly to data, but returns debug line(s) for one or all colorsets.
AUTHOR
Mikhael Goikhman <migo@homemail.com>.
SEE ALSO
For more information, see FVWM::Module and FVWM::Tracker.
Index
- DESCRIPTION
-
- SYNOPSYS
-
- OVERRIDDEN METHODS
-
- AUTHOR
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 00:51:32 GMT, August 27, 2005
Last modified on April 26, 2010