1Gtk2::Gdk::Colormap(3)User Contributed Perl DocumentationGtk2::Gdk::Colormap(3)
2
3
4

NAME

6       Gtk2::Gdk::Colormap - wrapper for GdkColormap
7

DESCRIPTION

9       Colormaps are used to store the mappings between the RGB values you ask
10       for and the actual, hardware-dependent values used to display those
11       colors.  The "$colormap->alloc_color" and "$colormap->alloc_colors"
12       methods do the necessary work to allocate a color within the visual;
13       this actually has nothing to do with memory management, so it is
14       important that you call "$colormap->free_colors" to release those spots
15       in the colormap allocated by "alloc_color" and "alloc_colors".
16

HIERARCHY

18         Glib::Object
19         +----Gtk2::Gdk::Colormap
20

METHODS

22   colormap = Gtk2::Gdk::Colormap->new ($visual, $allocate)
23       •   $visual (Gtk2::Gdk::Visual)
24
25       •   $allocate (boolean)
26
27   boolean = $colormap->alloc_color ($color, $writeable, $best_match)
28       •   $color (Gtk2::Gdk::Color)
29
30       •   $writeable (boolean)
31
32       •   $best_match (boolean)
33
34   list = $colormap->alloc_colors ($writeable, $best_match, ...)
35       •   $writeable (boolean)
36
37       •   $best_match (boolean)
38
39       •   ... (list) of Gtk2::Gdk::Color's to be allocated
40
41       Returns a list of boolean values, telling whether the color at the
42       corresponding spot in ... could be allocated.
43
44   $colormap->free_colors (...)
45       •   ... (list) of Gtk2::Gdk::Color's to be freed
46
47   color = $colormap->query_color ($pixel)
48       •   $pixel (unsigned)
49
50   $colormap->rgb_find_color ($color)
51       •   $color (Gtk2::Gdk::Color)
52
53   screen = $cmap->get_screen
54       Since: gtk+ 2.2
55
56   colormap = Gtk2::Gdk::Colormap->get_system
57   visual = $colormap->get_visual

SEE ALSO

59       Gtk2, Glib::Object
60
62       Copyright (C) 2003-2011 by the gtk2-perl team.
63
64       This software is licensed under the LGPL.  See Gtk2 for a full notice.
65
66
67
68perl v5.32.1                      2021-01-27            Gtk2::Gdk::Colormap(3)
Impressum