1Gtk2::Gdk::Colormap(3)User Contributed Perl DocumentationGtk2::Gdk::Colormap(3)
2
3
4
6 Gtk2::Gdk::Colormap
7
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 impor‐
14 tant that you call "$colormap->free_colors" to release those spots in
15 the colormap allocated by "alloc_color" and "alloc_colors".
16
18 Glib::Object
19 +----Gtk2::Gdk::Colormap
20
22 colormap = Gtk2::Gdk::Colormap->new ($visual, $allocate)
23
24 * $visual (Gtk2::Gdk::Visual)
25 * $allocate (boolean)
26
27 boolean = $colormap->alloc_color ($color, $writeable, $best_match)
28
29 * $color (Gtk2::Gdk::Color)
30 * $writeable (boolean)
31 * $best_match (boolean)
32
33 list = $colormap->alloc_colors ($writeable, $best_match, ...)
34
35 * $writeable (boolean)
36 * $best_match (boolean)
37 * ... (list) of Gtk2::Gdk::Color's to be allocated
38
39 Returns a list of boolean values, telling whether the color at the
40 corresponding spot in ... could be allocated.
41
42 $colormap->free_colors (...)
43
44 * ... (list) of Gtk2::Gdk::Color's to be freed
45
46 color = $colormap->query_color ($pixel)
47
48 * $pixel (unsigned)
49
50 $colormap->rgb_find_color ($color)
51
52 * $color (Gtk2::Gdk::Color)
53
54 screen = $cmap->get_screen
55
56 colormap = Gtk2::Gdk::Colormap->get_system
57
58 visual = $colormap->get_visual
59
61 Gtk2, Glib::Object
62
64 Copyright (C) 2003-2007 by the gtk2-perl team.
65
66 This software is licensed under the LGPL. See Gtk2 for a full notice.
67
68
69
70perl v5.8.8 2007-03-18 Gtk2::Gdk::Colormap(3)