~ubuntu-branches/ubuntu/karmic/gtkmm2.4/karmic

« back to all changes in this revision

Viewing changes to docs/reference/html/classGdk_1_1Colormap.html

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2009-09-22 10:14:59 UTC
  • mfrom: (1.2.42 upstream)
  • Revision ID: james.westby@ubuntu.com-20090922101459-pespb00fbm1mlqbd
Tags: 1:2.18.1-0ubuntu1
* New upstream release: (LP: #434355)
  - RecentManager: Undeprecate get_default().
  - Clipboard: wait_for_targets): Fix a crash.
  - Window: Added set_icon_name().
  - Require a recent pangomm.
  - Style: Fix a compiler error with the Intel C++ compiler.
  - Fix recently-introduced problems with disable-deprecated options.
* debian/control.in:
  - Bump libpangomm-1.4-dev depends and build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
 
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
2
<html xmlns="http://www.w3.org/1999/xhtml">
 
3
<head>
 
4
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
3
5
<title>gtkmm: Gdk::Colormap Class Reference</title>
4
 
<link href="tabs.css" rel="stylesheet" type="text/css">
5
 
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
 
</head><body>
7
 
<!-- Generated by Doxygen 1.5.8 -->
 
6
<link href="tabs.css" rel="stylesheet" type="text/css"/>
 
7
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
 
8
</head>
 
9
<body>
 
10
<!-- Generated by Doxygen 1.6.1 -->
8
11
<div class="navigation" id="top">
9
12
  <div class="tabs">
10
13
    <ul>
27
30
  </div>
28
31
</div>
29
32
<div class="contents">
30
 
<h1>Gdk::Colormap Class Reference</h1><!-- doxytag: class="Gdk::Colormap" --><!-- doxytag: inherits="Glib::Object" -->A <a class="el" href="classGdk_1_1Colormap.html" title="A Colormap is an object that contains the mapping between the color values stored...">Colormap</a> is an object that contains the mapping between the color values stored in memory and the RGB values that are used to display color values. <a href="#_details">More...</a>
31
 
<p>
32
 
Inherits <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html">Glib::Object</a>.
33
 
<p>
 
33
<h1>Gdk::Colormap Class Reference</h1><!-- doxytag: class="Gdk::Colormap" --><!-- doxytag: inherits="Glib::Object" -->
 
34
<p>A <a class="el" href="classGdk_1_1Colormap.html" title="A Colormap is an object that contains the mapping between the color values stored...">Colormap</a> is an object that contains the mapping between the color values stored in memory and the RGB values that are used to display color values. <a href="#_details">More...</a></p>
 
35
 
 
36
<p>Inherits <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html">Glib::Object</a>.</p>
34
37
<div class="dynheader">
35
38
Collaboration diagram for Gdk::Colormap:</div>
36
39
<div class="dynsection">
37
 
<p><center><img src="classGdk_1_1Colormap__coll__graph.png" border="0" usemap="#Gdk_1_1Colormap__coll__map" alt="Collaboration graph"></center>
38
 
<map name="Gdk_1_1Colormap__coll__map">
39
 
<area shape="rect" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="20,155,111,181"><area shape="rect" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,80,125,107"><area shape="rect" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="12,5,119,32"></map>
40
 
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
41
 
 
42
 
<p>
43
 
<a href="classGdk_1_1Colormap-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
44
 
<tr><td></td></tr>
45
 
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
46
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#527fe5eab97c19bb3d1fcedb933ecd13">~Colormap</a> ()</td></tr>
47
 
 
48
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">GdkColormap*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#8e073a91f54ca4f7443db9e1d514bb52">gobj</a> ()</td></tr>
49
 
 
50
 
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#8e073a91f54ca4f7443db9e1d514bb52"></a><br></td></tr>
51
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">const GdkColormap*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#5120e898c1cb3dfa9135d1548024da5d">gobj</a> () const </td></tr>
52
 
 
53
 
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#5120e898c1cb3dfa9135d1548024da5d"></a><br></td></tr>
54
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">GdkColormap*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#8bc022fb6ea4673159155bca8e730a39">gobj_copy</a> ()</td></tr>
55
 
 
56
 
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#8bc022fb6ea4673159155bca8e730a39"></a><br></td></tr>
57
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#572fe8fade77afbdcc7f7cf56ff489f6">alloc_colors</a> (<a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ArrayHandle.html">ArrayHandle_Color</a>&amp; colors, int ncolors, bool writeable, bool best_match, <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ArrayHandle.html">Glib::ArrayHandle</a>&lt; bool &gt;&amp; success)</td></tr>
58
 
 
59
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#79d4fec03cb95c71b64d4a0bc6282fe6">free_colors</a> (<a class="el" href="classGdk_1_1Color.html">Color</a>&amp; colors, int ncolors)</td></tr>
60
 
 
61
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#798a90a164bd95a865360b573455407c">alloc_color</a> (<a class="el" href="classGdk_1_1Color.html">Color</a>&amp; color, bool writeable=false, bool best_match=true)</td></tr>
62
 
 
63
 
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates a single color from a colormap. <a href="#798a90a164bd95a865360b573455407c"></a><br></td></tr>
64
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#abb71a757b4f69a90d0fca884a6b4c62">free_color</a> (<a class="el" href="classGdk_1_1Color.html">Color</a>&amp; color)</td></tr>
65
 
 
66
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#c3c3335c6f0ceab1ab75d3f9bd25f53f">query_color</a> (gulong pixel, <a class="el" href="classGdk_1_1Color.html">Color</a>&amp; result)</td></tr>
67
 
 
68
 
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Locates the RGB color in <em>colormap</em> corresponding to the given hardware pixel <em>pixel</em>. <a href="#c3c3335c6f0ceab1ab75d3f9bd25f53f"></a><br></td></tr>
69
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Visual.html">Visual</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#90d5e438d78992e2030832a196ac222b">get_visual</a> ()</td></tr>
70
 
 
71
 
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return value: the visual of the colormap. <a href="#90d5e438d78992e2030832a196ac222b"></a><br></td></tr>
72
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; const <a class="el" href="classGdk_1_1Visual.html">Visual</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#0056f8871c2da5e8c72a9a272de21c5c">get_visual</a> () const </td></tr>
73
 
 
74
 
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return value: the visual of the colormap. <a href="#0056f8871c2da5e8c72a9a272de21c5c"></a><br></td></tr>
75
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Screen.html">Screen</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#0de4faa551cfccf109947e9af4dee7ff">get_screen</a> ()</td></tr>
76
 
 
77
 
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the screen for which this colormap was created. <a href="#0de4faa551cfccf109947e9af4dee7ff"></a><br></td></tr>
78
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; const <a class="el" href="classGdk_1_1Screen.html">Screen</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#98526be53c38ac403790dcb2a8db55db">get_screen</a> () const </td></tr>
79
 
 
80
 
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the screen for which this colormap was created. <a href="#98526be53c38ac403790dcb2a8db55db"></a><br></td></tr>
81
 
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
82
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Colormap.html">Colormap</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#9447b914e4f6d73ff2d041350791ade1">create</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Visual.html">Visual</a> &gt;&amp; visual, bool allocate)</td></tr>
83
 
 
84
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Colormap.html">Colormap</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#78c9dfeafac5833684299e8b1b5ce016">get_system</a> ()</td></tr>
85
 
 
86
 
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the system's default colormap for the default screen. <a href="#78c9dfeafac5833684299e8b1b5ce016"></a><br></td></tr>
87
 
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
88
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#b617d305ec0582e6a762ed97016dac09">Colormap</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Visual.html">Visual</a> &gt;&amp; visual, bool allocate)</td></tr>
89
 
 
90
 
<tr><td colspan="2"><br><h2>Related Functions</h2></td></tr>
91
 
<tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr>
92
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Colormap.html">Gdk::Colormap</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#73e55bc63cbc380d36c3d382a47be80a">wrap</a> (GdkColormap* object, bool take_copy=false)</td></tr>
93
 
 
94
 
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#73e55bc63cbc380d36c3d382a47be80a"></a><br></td></tr>
 
40
<div class="center"><img src="classGdk_1_1Colormap__coll__graph.png" border="0" usemap="#Gdk_1_1Colormap_coll__map" alt="Collaboration graph"/></div>
 
41
<map name="Gdk_1_1Colormap_coll__map" id="Gdk_1_1Colormap_coll__map">
 
42
<area shape="rect" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="20,155,111,181"/><area shape="rect" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,80,125,107"/><area shape="rect" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="12,5,119,32"/></map>
 
43
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
 
44
 
 
45
<p><a href="classGdk_1_1Colormap-members.html">List of all members.</a></p>
 
46
<table border="0" cellpadding="0" cellspacing="0">
 
47
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
 
48
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#a527fe5eab97c19bb3d1fcedb933ecd13">~Colormap</a> ()</td></tr>
 
49
<tr><td class="memItemLeft" align="right" valign="top">GdkColormap*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#a8e073a91f54ca4f7443db9e1d514bb52">gobj</a> ()</td></tr>
 
50
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a8e073a91f54ca4f7443db9e1d514bb52"></a><br/></td></tr>
 
51
<tr><td class="memItemLeft" align="right" valign="top">const GdkColormap*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#a5120e898c1cb3dfa9135d1548024da5d">gobj</a> () const </td></tr>
 
52
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a5120e898c1cb3dfa9135d1548024da5d"></a><br/></td></tr>
 
53
<tr><td class="memItemLeft" align="right" valign="top">GdkColormap*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#a8bc022fb6ea4673159155bca8e730a39">gobj_copy</a> ()</td></tr>
 
54
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#a8bc022fb6ea4673159155bca8e730a39"></a><br/></td></tr>
 
55
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#a572fe8fade77afbdcc7f7cf56ff489f6">alloc_colors</a> (<a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ArrayHandle.html">ArrayHandle_Color</a>&amp; colors, int ncolors, bool writeable, bool best_match, <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ArrayHandle.html">Glib::ArrayHandle</a>&lt; bool &gt;&amp; success)</td></tr>
 
56
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#a79d4fec03cb95c71b64d4a0bc6282fe6">free_colors</a> (<a class="el" href="classGdk_1_1Color.html">Color</a>&amp; colors, int ncolors)</td></tr>
 
57
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#a798a90a164bd95a865360b573455407c">alloc_color</a> (<a class="el" href="classGdk_1_1Color.html">Color</a>&amp; color, bool writeable=false, bool best_match=true)</td></tr>
 
58
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates a single color from a colormap. <a href="#a798a90a164bd95a865360b573455407c"></a><br/></td></tr>
 
59
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#aabb71a757b4f69a90d0fca884a6b4c62">free_color</a> (<a class="el" href="classGdk_1_1Color.html">Color</a>&amp; color)</td></tr>
 
60
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#ac3c3335c6f0ceab1ab75d3f9bd25f53f">query_color</a> (gulong pixel, <a class="el" href="classGdk_1_1Color.html">Color</a>&amp; result)</td></tr>
 
61
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Locates the RGB color in <em>colormap</em> corresponding to the given hardware pixel <em>pixel</em>. <a href="#ac3c3335c6f0ceab1ab75d3f9bd25f53f"></a><br/></td></tr>
 
62
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Visual.html">Visual</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#a90d5e438d78992e2030832a196ac222b">get_visual</a> ()</td></tr>
 
63
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return value: the visual of the colormap. <a href="#a90d5e438d78992e2030832a196ac222b"></a><br/></td></tr>
 
64
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; const <a class="el" href="classGdk_1_1Visual.html">Visual</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#a0056f8871c2da5e8c72a9a272de21c5c">get_visual</a> () const </td></tr>
 
65
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return value: the visual of the colormap. <a href="#a0056f8871c2da5e8c72a9a272de21c5c"></a><br/></td></tr>
 
66
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Screen.html">Screen</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#a0de4faa551cfccf109947e9af4dee7ff">get_screen</a> ()</td></tr>
 
67
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the screen for which this colormap was created. <a href="#a0de4faa551cfccf109947e9af4dee7ff"></a><br/></td></tr>
 
68
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; const <a class="el" href="classGdk_1_1Screen.html">Screen</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#a98526be53c38ac403790dcb2a8db55db">get_screen</a> () const </td></tr>
 
69
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the screen for which this colormap was created. <a href="#a98526be53c38ac403790dcb2a8db55db"></a><br/></td></tr>
 
70
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
 
71
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Colormap.html">Colormap</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#a9447b914e4f6d73ff2d041350791ade1">create</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Visual.html">Visual</a> &gt;&amp; visual, bool allocate)</td></tr>
 
72
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Colormap.html">Colormap</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#a78c9dfeafac5833684299e8b1b5ce016">get_system</a> ()</td></tr>
 
73
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the system's default colormap for the default screen. <a href="#a78c9dfeafac5833684299e8b1b5ce016"></a><br/></td></tr>
 
74
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
 
75
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#ab617d305ec0582e6a762ed97016dac09">Colormap</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Visual.html">Visual</a> &gt;&amp; visual, bool allocate)</td></tr>
 
76
<tr><td colspan="2"><h2>Related Functions</h2></td></tr>
 
77
<tr><td colspan="2"><p>(Note that these are not member functions.) </p>
 
78
<br/><br/></td></tr>
 
79
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Colormap.html">Gdk::Colormap</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Colormap.html#a73e55bc63cbc380d36c3d382a47be80a">wrap</a> (GdkColormap* object, bool take_copy=false)</td></tr>
 
80
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a73e55bc63cbc380d36c3d382a47be80a"></a><br/></td></tr>
95
81
</table>
96
 
<hr><a name="_details"></a><h2>Detailed Description</h2>
97
 
A <a class="el" href="classGdk_1_1Colormap.html" title="A Colormap is an object that contains the mapping between the color values stored...">Colormap</a> is an object that contains the mapping between the color values stored in memory and the RGB values that are used to display color values. <p>
98
 
In general, colormaps only contain significant information for pseudo-color visuals, but even for other visual types, a colormap object is required in some circumstances.<p>
99
 
There are a couple of special colormaps that can be retrieved. The system colormap (retrieved with <a class="el" href="classGdk_1_1Colormap.html#78c9dfeafac5833684299e8b1b5ce016" title="Gets the system&#39;s default colormap for the default screen.">get_system()</a>) is the default colormap of the system. If you are using GdkRGB, there is another colormap that is important - the colormap in which GdkRGB works, retrieved with <a class="el" href="namespaceGdk.html#37e62b12aa3ddf44b4f69e05d8893b5a" title="Get the preferred colormap for rendering image data.">Gdk::rgb_get_colormap()</a>. However, when using GdkRGB, it is not generally necessary to allocate colors directly. <hr><h2>Constructor&amp; Destructor Documentation</h2>
100
 
<a class="anchor" name="527fe5eab97c19bb3d1fcedb933ecd13"></a><!-- doxytag: member="Gdk::Colormap::~Colormap" ref="527fe5eab97c19bb3d1fcedb933ecd13" args="()" -->
 
82
<hr/><a name="_details"></a><h2>Detailed Description</h2>
 
83
<p>A <a class="el" href="classGdk_1_1Colormap.html" title="A Colormap is an object that contains the mapping between the color values stored...">Colormap</a> is an object that contains the mapping between the color values stored in memory and the RGB values that are used to display color values. </p>
 
84
<p>In general, colormaps only contain significant information for pseudo-color visuals, but even for other visual types, a colormap object is required in some circumstances.</p>
 
85
<p>There are a couple of special colormaps that can be retrieved. The system colormap (retrieved with <a class="el" href="classGdk_1_1Colormap.html#a78c9dfeafac5833684299e8b1b5ce016" title="Gets the system&#39;s default colormap for the default screen.">get_system()</a>) is the default colormap of the system. If you are using GdkRGB, there is another colormap that is important - the colormap in which GdkRGB works, retrieved with <a class="el" href="namespaceGdk.html#a37e62b12aa3ddf44b4f69e05d8893b5a" title="Get the preferred colormap for rendering image data.">Gdk::rgb_get_colormap()</a>. However, when using GdkRGB, it is not generally necessary to allocate colors directly. </p>
 
86
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
 
87
<a class="anchor" id="a527fe5eab97c19bb3d1fcedb933ecd13"></a><!-- doxytag: member="Gdk::Colormap::~Colormap" ref="a527fe5eab97c19bb3d1fcedb933ecd13" args="()" -->
101
88
<div class="memitem">
102
89
<div class="memproto">
103
90
      <table class="memname">
104
91
        <tr>
105
92
          <td class="memname">virtual Gdk::Colormap::~Colormap </td>
106
93
          <td>(</td>
107
 
          <td class="paramname"> </td>
 
94
          <td class="paramname"></td>
108
95
          <td>&#160;)&#160;</td>
109
96
          <td><code> [virtual]</code></td>
110
97
        </tr>
112
99
</div>
113
100
<div class="memdoc">
114
101
 
115
 
<p>
116
 
 
117
 
</div>
118
 
</div><p>
119
 
<a class="anchor" name="b617d305ec0582e6a762ed97016dac09"></a><!-- doxytag: member="Gdk::Colormap::Colormap" ref="b617d305ec0582e6a762ed97016dac09" args="(const Glib::RefPtr&lt; Visual &gt; &amp;visual, bool allocate)" -->
 
102
</div>
 
103
</div>
 
104
<a class="anchor" id="ab617d305ec0582e6a762ed97016dac09"></a><!-- doxytag: member="Gdk::Colormap::Colormap" ref="ab617d305ec0582e6a762ed97016dac09" args="(const Glib::RefPtr&lt; Visual &gt; &amp;visual, bool allocate)" -->
120
105
<div class="memitem">
121
106
<div class="memproto">
122
107
      <table class="memname">
141
126
</div>
142
127
<div class="memdoc">
143
128
 
144
 
<p>
145
 
 
146
 
</div>
147
 
</div><p>
148
 
<hr><h2>Member Function Documentation</h2>
149
 
<a class="anchor" name="798a90a164bd95a865360b573455407c"></a><!-- doxytag: member="Gdk::Colormap::alloc_color" ref="798a90a164bd95a865360b573455407c" args="(Color &amp;color, bool writeable=false, bool best_match=true)" -->
 
129
</div>
 
130
</div>
 
131
<hr/><h2>Member Function Documentation</h2>
 
132
<a class="anchor" id="a798a90a164bd95a865360b573455407c"></a><!-- doxytag: member="Gdk::Colormap::alloc_color" ref="a798a90a164bd95a865360b573455407c" args="(Color &amp;color, bool writeable=false, bool best_match=true)" -->
150
133
<div class="memitem">
151
134
<div class="memproto">
152
135
      <table class="memname">
177
160
</div>
178
161
<div class="memdoc">
179
162
 
180
 
<p>
181
 
Allocates a single color from a colormap. <p>
182
 
<dl compact><dt><b>Parameters:</b></dt><dd>
 
163
<p>Allocates a single color from a colormap. </p>
 
164
<dl><dt><b>Parameters:</b></dt><dd>
183
165
  <table border="0" cellspacing="2" cellpadding="0">
184
166
    <tr><td valign="top"></td><td valign="top"><em>color</em>&#160;</td><td>The color to allocate. On return the &lt;structfield&gt;pixel&lt;/structfield&gt; field will be filled in if allocation succeeds. </td></tr>
185
167
    <tr><td valign="top"></td><td valign="top"><em>writeable</em>&#160;</td><td>If <code>true</code>, the color is allocated writeable (their values can later be changed using gdk_color_change()). Writeable colors cannot be shared between applications. </td></tr>
186
168
    <tr><td valign="top"></td><td valign="top"><em>best_match</em>&#160;</td><td>If <code>true</code>, GDK will attempt to do matching against existing colors if the color cannot be allocated as requested. </td></tr>
187
169
  </table>
 
170
  </dd>
188
171
</dl>
189
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the allocation succeeded. </dd></dl>
 
172
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the allocation succeeded. </dd></dl>
190
173
 
191
174
</div>
192
 
</div><p>
193
 
<a class="anchor" name="572fe8fade77afbdcc7f7cf56ff489f6"></a><!-- doxytag: member="Gdk::Colormap::alloc_colors" ref="572fe8fade77afbdcc7f7cf56ff489f6" args="(ArrayHandle_Color &amp;colors, int ncolors, bool writeable, bool best_match, Glib::ArrayHandle&lt; bool &gt; &amp;success)" -->
 
175
</div>
 
176
<a class="anchor" id="a572fe8fade77afbdcc7f7cf56ff489f6"></a><!-- doxytag: member="Gdk::Colormap::alloc_colors" ref="a572fe8fade77afbdcc7f7cf56ff489f6" args="(ArrayHandle_Color &amp;colors, int ncolors, bool writeable, bool best_match, Glib::ArrayHandle&lt; bool &gt; &amp;success)" -->
194
177
<div class="memitem">
195
178
<div class="memproto">
196
179
      <table class="memname">
232
215
      </table>
233
216
</div>
234
217
<div class="memdoc">
235
 
 
236
 
<p>
237
 
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000002">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGdk_1_1Colormap.html#798a90a164bd95a865360b573455407c" title="Allocates a single color from a colormap.">alloc_color()</a>. </dd></dl>
238
 
 
239
 
</div>
240
 
</div><p>
241
 
<a class="anchor" name="9447b914e4f6d73ff2d041350791ade1"></a><!-- doxytag: member="Gdk::Colormap::create" ref="9447b914e4f6d73ff2d041350791ade1" args="(const Glib::RefPtr&lt; Visual &gt; &amp;visual, bool allocate)" -->
 
218
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000002">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGdk_1_1Colormap.html#a798a90a164bd95a865360b573455407c" title="Allocates a single color from a colormap.">alloc_color()</a>. </dd></dl>
 
219
 
 
220
</div>
 
221
</div>
 
222
<a class="anchor" id="a9447b914e4f6d73ff2d041350791ade1"></a><!-- doxytag: member="Gdk::Colormap::create" ref="a9447b914e4f6d73ff2d041350791ade1" args="(const Glib::RefPtr&lt; Visual &gt; &amp;visual, bool allocate)" -->
242
223
<div class="memitem">
243
224
<div class="memproto">
244
225
      <table class="memname">
263
244
</div>
264
245
<div class="memdoc">
265
246
 
266
 
<p>
267
 
 
268
 
</div>
269
 
</div><p>
270
 
<a class="anchor" name="abb71a757b4f69a90d0fca884a6b4c62"></a><!-- doxytag: member="Gdk::Colormap::free_color" ref="abb71a757b4f69a90d0fca884a6b4c62" args="(Color &amp;color)" -->
 
247
</div>
 
248
</div>
 
249
<a class="anchor" id="aabb71a757b4f69a90d0fca884a6b4c62"></a><!-- doxytag: member="Gdk::Colormap::free_color" ref="aabb71a757b4f69a90d0fca884a6b4c62" args="(Color &amp;color)" -->
271
250
<div class="memitem">
272
251
<div class="memproto">
273
252
      <table class="memname">
275
254
          <td class="memname">void Gdk::Colormap::free_color </td>
276
255
          <td>(</td>
277
256
          <td class="paramtype"><a class="el" href="classGdk_1_1Color.html">Color</a>&amp;&#160;</td>
278
 
          <td class="paramname"> <em>color</em> </td>
 
257
          <td class="paramname"> <em>color</em></td>
279
258
          <td>&#160;)&#160;</td>
280
259
          <td></td>
281
260
        </tr>
283
262
</div>
284
263
<div class="memdoc">
285
264
 
286
 
<p>
287
 
 
288
 
</div>
289
 
</div><p>
290
 
<a class="anchor" name="79d4fec03cb95c71b64d4a0bc6282fe6"></a><!-- doxytag: member="Gdk::Colormap::free_colors" ref="79d4fec03cb95c71b64d4a0bc6282fe6" args="(Color &amp;colors, int ncolors)" -->
 
265
</div>
 
266
</div>
 
267
<a class="anchor" id="a79d4fec03cb95c71b64d4a0bc6282fe6"></a><!-- doxytag: member="Gdk::Colormap::free_colors" ref="a79d4fec03cb95c71b64d4a0bc6282fe6" args="(Color &amp;colors, int ncolors)" -->
291
268
<div class="memitem">
292
269
<div class="memproto">
293
270
      <table class="memname">
311
288
      </table>
312
289
</div>
313
290
<div class="memdoc">
314
 
 
315
 
<p>
316
 
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000003">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGdk_1_1Colormap.html#abb71a757b4f69a90d0fca884a6b4c62">free_color()</a> </dd></dl>
317
 
 
318
 
</div>
319
 
</div><p>
320
 
<a class="anchor" name="98526be53c38ac403790dcb2a8db55db"></a><!-- doxytag: member="Gdk::Colormap::get_screen" ref="98526be53c38ac403790dcb2a8db55db" args="() const " -->
 
291
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000003">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGdk_1_1Colormap.html#aabb71a757b4f69a90d0fca884a6b4c62">free_color()</a> </dd></dl>
 
292
 
 
293
</div>
 
294
</div>
 
295
<a class="anchor" id="a98526be53c38ac403790dcb2a8db55db"></a><!-- doxytag: member="Gdk::Colormap::get_screen" ref="a98526be53c38ac403790dcb2a8db55db" args="() const " -->
321
296
<div class="memitem">
322
297
<div class="memproto">
323
298
      <table class="memname">
324
299
        <tr>
325
300
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classGdk_1_1Screen.html">Screen</a>&gt; Gdk::Colormap::get_screen </td>
326
301
          <td>(</td>
327
 
          <td class="paramname"> </td>
 
302
          <td class="paramname"></td>
328
303
          <td>&#160;)&#160;</td>
329
304
          <td> const</td>
330
305
        </tr>
332
307
</div>
333
308
<div class="memdoc">
334
309
 
335
 
<p>
336
 
Gets the screen for which this colormap was created. <p>
337
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The screen for which this colormap was created.</dd></dl>
338
 
<dl compact><dt><b><a class="el" href="since_2_2.html#_since_2_2000002">Since gtkmm 2.2:</a></b></dt><dd></dd></dl>
 
310
<p>Gets the screen for which this colormap was created. </p>
 
311
<dl class="return"><dt><b>Returns:</b></dt><dd>The screen for which this colormap was created.</dd></dl>
 
312
<dl class="since_2_2"><dt><b><a class="el" href="since_2_2.html#_since_2_2000002">Since gtkmm 2.2:</a></b></dt><dd></dd></dl>
339
313
 
340
314
</div>
341
 
</div><p>
342
 
<a class="anchor" name="0de4faa551cfccf109947e9af4dee7ff"></a><!-- doxytag: member="Gdk::Colormap::get_screen" ref="0de4faa551cfccf109947e9af4dee7ff" args="()" -->
 
315
</div>
 
316
<a class="anchor" id="a0de4faa551cfccf109947e9af4dee7ff"></a><!-- doxytag: member="Gdk::Colormap::get_screen" ref="a0de4faa551cfccf109947e9af4dee7ff" args="()" -->
343
317
<div class="memitem">
344
318
<div class="memproto">
345
319
      <table class="memname">
346
320
        <tr>
347
321
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Screen.html">Screen</a>&gt; Gdk::Colormap::get_screen </td>
348
322
          <td>(</td>
349
 
          <td class="paramname"> </td>
 
323
          <td class="paramname"></td>
350
324
          <td>&#160;)&#160;</td>
351
325
          <td></td>
352
326
        </tr>
354
328
</div>
355
329
<div class="memdoc">
356
330
 
357
 
<p>
358
 
Gets the screen for which this colormap was created. <p>
359
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The screen for which this colormap was created.</dd></dl>
360
 
<dl compact><dt><b><a class="el" href="since_2_2.html#_since_2_2000001">Since gtkmm 2.2:</a></b></dt><dd></dd></dl>
 
331
<p>Gets the screen for which this colormap was created. </p>
 
332
<dl class="return"><dt><b>Returns:</b></dt><dd>The screen for which this colormap was created.</dd></dl>
 
333
<dl class="since_2_2"><dt><b><a class="el" href="since_2_2.html#_since_2_2000001">Since gtkmm 2.2:</a></b></dt><dd></dd></dl>
361
334
 
362
335
</div>
363
 
</div><p>
364
 
<a class="anchor" name="78c9dfeafac5833684299e8b1b5ce016"></a><!-- doxytag: member="Gdk::Colormap::get_system" ref="78c9dfeafac5833684299e8b1b5ce016" args="()" -->
 
336
</div>
 
337
<a class="anchor" id="a78c9dfeafac5833684299e8b1b5ce016"></a><!-- doxytag: member="Gdk::Colormap::get_system" ref="a78c9dfeafac5833684299e8b1b5ce016" args="()" -->
365
338
<div class="memitem">
366
339
<div class="memproto">
367
340
      <table class="memname">
368
341
        <tr>
369
342
          <td class="memname">static <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Colormap.html">Colormap</a>&gt; Gdk::Colormap::get_system </td>
370
343
          <td>(</td>
371
 
          <td class="paramname"> </td>
 
344
          <td class="paramname"></td>
372
345
          <td>&#160;)&#160;</td>
373
346
          <td><code> [static]</code></td>
374
347
        </tr>
376
349
</div>
377
350
<div class="memdoc">
378
351
 
379
 
<p>
380
 
Gets the system's default colormap for the default screen. <p>
381
 
(See gdk_colormap_get_system_for_screen()) <dl class="return" compact><dt><b>Returns:</b></dt><dd>The default colormap. </dd></dl>
 
352
<p>Gets the system's default colormap for the default screen. </p>
 
353
<p>(See gdk_colormap_get_system_for_screen()) </p>
 
354
<dl class="return"><dt><b>Returns:</b></dt><dd>The default colormap. </dd></dl>
382
355
 
383
356
</div>
384
 
</div><p>
385
 
<a class="anchor" name="0056f8871c2da5e8c72a9a272de21c5c"></a><!-- doxytag: member="Gdk::Colormap::get_visual" ref="0056f8871c2da5e8c72a9a272de21c5c" args="() const " -->
 
357
</div>
 
358
<a class="anchor" id="a0056f8871c2da5e8c72a9a272de21c5c"></a><!-- doxytag: member="Gdk::Colormap::get_visual" ref="a0056f8871c2da5e8c72a9a272de21c5c" args="() const " -->
386
359
<div class="memitem">
387
360
<div class="memproto">
388
361
      <table class="memname">
389
362
        <tr>
390
363
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classGdk_1_1Visual.html">Visual</a>&gt; Gdk::Colormap::get_visual </td>
391
364
          <td>(</td>
392
 
          <td class="paramname"> </td>
 
365
          <td class="paramname"></td>
393
366
          <td>&#160;)&#160;</td>
394
367
          <td> const</td>
395
368
        </tr>
397
370
</div>
398
371
<div class="memdoc">
399
372
 
400
 
<p>
401
 
Return value: the visual of the colormap. <p>
402
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The visual of the colormap. </dd></dl>
 
373
<p>Return value: the visual of the colormap. </p>
 
374
<dl class="return"><dt><b>Returns:</b></dt><dd>The visual of the colormap. </dd></dl>
403
375
 
404
376
</div>
405
 
</div><p>
406
 
<a class="anchor" name="90d5e438d78992e2030832a196ac222b"></a><!-- doxytag: member="Gdk::Colormap::get_visual" ref="90d5e438d78992e2030832a196ac222b" args="()" -->
 
377
</div>
 
378
<a class="anchor" id="a90d5e438d78992e2030832a196ac222b"></a><!-- doxytag: member="Gdk::Colormap::get_visual" ref="a90d5e438d78992e2030832a196ac222b" args="()" -->
407
379
<div class="memitem">
408
380
<div class="memproto">
409
381
      <table class="memname">
410
382
        <tr>
411
383
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Visual.html">Visual</a>&gt; Gdk::Colormap::get_visual </td>
412
384
          <td>(</td>
413
 
          <td class="paramname"> </td>
 
385
          <td class="paramname"></td>
414
386
          <td>&#160;)&#160;</td>
415
387
          <td></td>
416
388
        </tr>
418
390
</div>
419
391
<div class="memdoc">
420
392
 
421
 
<p>
422
 
Return value: the visual of the colormap. <p>
423
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The visual of the colormap. </dd></dl>
 
393
<p>Return value: the visual of the colormap. </p>
 
394
<dl class="return"><dt><b>Returns:</b></dt><dd>The visual of the colormap. </dd></dl>
424
395
 
425
396
</div>
426
 
</div><p>
427
 
<a class="anchor" name="5120e898c1cb3dfa9135d1548024da5d"></a><!-- doxytag: member="Gdk::Colormap::gobj" ref="5120e898c1cb3dfa9135d1548024da5d" args="() const " -->
 
397
</div>
 
398
<a class="anchor" id="a5120e898c1cb3dfa9135d1548024da5d"></a><!-- doxytag: member="Gdk::Colormap::gobj" ref="a5120e898c1cb3dfa9135d1548024da5d" args="() const " -->
428
399
<div class="memitem">
429
400
<div class="memproto">
430
401
      <table class="memname">
431
402
        <tr>
432
403
          <td class="memname">const GdkColormap* Gdk::Colormap::gobj </td>
433
404
          <td>(</td>
434
 
          <td class="paramname"> </td>
 
405
          <td class="paramname"></td>
435
406
          <td>&#160;)&#160;</td>
436
407
          <td> const<code> [inline]</code></td>
437
408
        </tr>
439
410
</div>
440
411
<div class="memdoc">
441
412
 
442
 
<p>
443
 
Provides access to the underlying C GObject. <p>
444
 
 
445
 
<p>Reimplemented from <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html#778a94181132976bbfb0519793f3b32e">Glib::ObjectBase</a>.</p>
446
 
 
447
 
</div>
448
 
</div><p>
449
 
<a class="anchor" name="8e073a91f54ca4f7443db9e1d514bb52"></a><!-- doxytag: member="Gdk::Colormap::gobj" ref="8e073a91f54ca4f7443db9e1d514bb52" args="()" -->
 
413
<p>Provides access to the underlying C GObject. </p>
 
414
 
 
415
<p>Reimplemented from <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html#a778a94181132976bbfb0519793f3b32e">Glib::ObjectBase</a>.</p>
 
416
 
 
417
</div>
 
418
</div>
 
419
<a class="anchor" id="a8e073a91f54ca4f7443db9e1d514bb52"></a><!-- doxytag: member="Gdk::Colormap::gobj" ref="a8e073a91f54ca4f7443db9e1d514bb52" args="()" -->
450
420
<div class="memitem">
451
421
<div class="memproto">
452
422
      <table class="memname">
453
423
        <tr>
454
424
          <td class="memname">GdkColormap* Gdk::Colormap::gobj </td>
455
425
          <td>(</td>
456
 
          <td class="paramname"> </td>
 
426
          <td class="paramname"></td>
457
427
          <td>&#160;)&#160;</td>
458
428
          <td><code> [inline]</code></td>
459
429
        </tr>
461
431
</div>
462
432
<div class="memdoc">
463
433
 
464
 
<p>
465
 
Provides access to the underlying C GObject. <p>
466
 
 
467
 
<p>Reimplemented from <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html#4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.</p>
468
 
 
469
 
</div>
470
 
</div><p>
471
 
<a class="anchor" name="8bc022fb6ea4673159155bca8e730a39"></a><!-- doxytag: member="Gdk::Colormap::gobj_copy" ref="8bc022fb6ea4673159155bca8e730a39" args="()" -->
 
434
<p>Provides access to the underlying C GObject. </p>
 
435
 
 
436
<p>Reimplemented from <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html#a4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.</p>
 
437
 
 
438
</div>
 
439
</div>
 
440
<a class="anchor" id="a8bc022fb6ea4673159155bca8e730a39"></a><!-- doxytag: member="Gdk::Colormap::gobj_copy" ref="a8bc022fb6ea4673159155bca8e730a39" args="()" -->
472
441
<div class="memitem">
473
442
<div class="memproto">
474
443
      <table class="memname">
475
444
        <tr>
476
445
          <td class="memname">GdkColormap* Gdk::Colormap::gobj_copy </td>
477
446
          <td>(</td>
478
 
          <td class="paramname"> </td>
 
447
          <td class="paramname"></td>
479
448
          <td>&#160;)&#160;</td>
480
449
          <td></td>
481
450
        </tr>
483
452
</div>
484
453
<div class="memdoc">
485
454
 
486
 
<p>
487
 
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <p>
 
455
<p>Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. </p>
488
456
 
489
457
</div>
490
 
</div><p>
491
 
<a class="anchor" name="c3c3335c6f0ceab1ab75d3f9bd25f53f"></a><!-- doxytag: member="Gdk::Colormap::query_color" ref="c3c3335c6f0ceab1ab75d3f9bd25f53f" args="(gulong pixel, Color &amp;result)" -->
 
458
</div>
 
459
<a class="anchor" id="ac3c3335c6f0ceab1ab75d3f9bd25f53f"></a><!-- doxytag: member="Gdk::Colormap::query_color" ref="ac3c3335c6f0ceab1ab75d3f9bd25f53f" args="(gulong pixel, Color &amp;result)" -->
492
460
<div class="memitem">
493
461
<div class="memproto">
494
462
      <table class="memname">
513
481
</div>
514
482
<div class="memdoc">
515
483
 
516
 
<p>
517
 
Locates the RGB color in <em>colormap</em> corresponding to the given hardware pixel <em>pixel</em>. <p>
518
 
<em>pixel</em> must be a valid pixel in the colormap; it's a programmer error to call this function with a pixel which is not in the colormap. Hardware pixels are normally obtained from <a class="el" href="classGdk_1_1Colormap.html#572fe8fade77afbdcc7f7cf56ff489f6">alloc_colors()</a>, or from a <a class="el" href="classGdk_1_1Image.html" title="This represents an area for drawing graphics.">Gdk::Image</a>. (A <a class="el" href="classGdk_1_1Image.html" title="This represents an area for drawing graphics.">Gdk::Image</a> contains image data in hardware format, a <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> contains image data in a canonical 24-bit RGB format.)<p>
519
 
This function is rarely useful; it's used for example to implement the eyedropper feature in <a class="el" href="classGtk_1_1ColorSelection.html" title="A widget used to select a color.">Gtk::ColorSelection</a>. <dl compact><dt><b>Parameters:</b></dt><dd>
 
484
<p>Locates the RGB color in <em>colormap</em> corresponding to the given hardware pixel <em>pixel</em>. </p>
 
485
<p><em>pixel</em> must be a valid pixel in the colormap; it's a programmer error to call this function with a pixel which is not in the colormap. Hardware pixels are normally obtained from <a class="el" href="classGdk_1_1Colormap.html#a572fe8fade77afbdcc7f7cf56ff489f6">alloc_colors()</a>, or from a <a class="el" href="classGdk_1_1Image.html" title="This represents an area for drawing graphics.">Gdk::Image</a>. (A <a class="el" href="classGdk_1_1Image.html" title="This represents an area for drawing graphics.">Gdk::Image</a> contains image data in hardware format, a <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> contains image data in a canonical 24-bit RGB format.)</p>
 
486
<p>This function is rarely useful; it's used for example to implement the eyedropper feature in <a class="el" href="classGtk_1_1ColorSelection.html" title="A widget used to select a color.">Gtk::ColorSelection</a>. </p>
 
487
<dl><dt><b>Parameters:</b></dt><dd>
520
488
  <table border="0" cellspacing="2" cellpadding="0">
521
489
    <tr><td valign="top"></td><td valign="top"><em>pixel</em>&#160;</td><td>Pixel value in hardware display format. </td></tr>
522
490
    <tr><td valign="top"></td><td valign="top"><em>result</em>&#160;</td><td><a class="el" href="classGdk_1_1Color.html" title="Gdk::Color is used to describe an allocated or unallocated color.">Gdk::Color</a> with red, green, blue fields initialized. </td></tr>
523
491
  </table>
 
492
  </dd>
524
493
</dl>
525
494
 
526
495
</div>
527
 
</div><p>
528
 
<hr><h2>Friends And Related Function Documentation</h2>
529
 
<a class="anchor" name="73e55bc63cbc380d36c3d382a47be80a"></a><!-- doxytag: member="Gdk::Colormap::wrap" ref="73e55bc63cbc380d36c3d382a47be80a" args="(GdkColormap *object, bool take_copy=false)" -->
 
496
</div>
 
497
<hr/><h2>Friends And Related Function Documentation</h2>
 
498
<a class="anchor" id="a73e55bc63cbc380d36c3d382a47be80a"></a><!-- doxytag: member="Gdk::Colormap::wrap" ref="a73e55bc63cbc380d36c3d382a47be80a" args="(GdkColormap *object, bool take_copy=false)" -->
530
499
<div class="memitem">
531
500
<div class="memproto">
532
501
      <table class="memname">
551
520
</div>
552
521
<div class="memdoc">
553
522
 
554
 
<p>
555
 
A <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <p>
556
 
<dl compact><dt><b>Parameters:</b></dt><dd>
 
523
<p>A <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
 
524
<dl><dt><b>Parameters:</b></dt><dd>
557
525
  <table border="0" cellspacing="2" cellpadding="0">
558
526
    <tr><td valign="top"></td><td valign="top"><em>object</em>&#160;</td><td>The C instance. </td></tr>
559
527
    <tr><td valign="top"></td><td valign="top"><em>take_copy</em>&#160;</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
560
528
  </table>
 
529
  </dd>
561
530
</dl>
562
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>
 
531
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>
563
532
 
564
533
</div>
565
 
</div><p>
566
 
<hr>The documentation for this class was generated from the following file:<ul>
567
 
<li>gdkmm/colormap.h</ul>
568
 
</div>
569
 
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Sep 6 18:45:22 2009 for gtkmm by&#160;
 
534
</div>
 
535
<hr/>The documentation for this class was generated from the following file:<ul>
 
536
<li>gdkmm/colormap.h</li>
 
537
</ul>
 
538
</div>
 
539
<hr size="1"/><address style="text-align: right;"><small>Generated on Mon Sep 21 16:34:30 2009 for gtkmm by&#160;
570
540
<a href="http://www.doxygen.org/index.html">
571
 
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
 
541
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
572
542
</body>
573
543
</html>