~inkscape.dev/inkscape-devlibs/devlibs-gtk3

« back to all changes in this revision

Viewing changes to share/doc/gtkmm-2.4/reference/html/classGdk_1_1Colormap.html

  • Committer: JazzyNico
  • Date: 2013-01-21 10:11:05 UTC
  • Revision ID: nicoduf@yahoo.fr-20130121101105-i8d8slkq9ng4olx8
Adding gtk2 libraries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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"/>
 
5
<title>gtkmm: Gdk::Colormap Class Reference</title>
 
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.7.3 -->
 
11
<div id="top">
 
12
<div id="titlearea">
 
13
<table cellspacing="0" cellpadding="0">
 
14
 <tbody>
 
15
 <tr style="height: 56px;">
 
16
  <td style="padding-left: 0.5em;">
 
17
   <div id="projectname">gtkmm&#160;<span id="projectnumber">2.24.2</span></div>
 
18
  </td>
 
19
 </tr>
 
20
 </tbody>
 
21
</table>
 
22
</div>
 
23
  <div id="navrow1" class="tabs">
 
24
    <ul class="tablist">
 
25
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
 
26
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
 
27
      <li><a href="modules.html"><span>Modules</span></a></li>
 
28
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
 
29
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
 
30
    </ul>
 
31
  </div>
 
32
  <div id="navrow2" class="tabs2">
 
33
    <ul class="tablist">
 
34
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
 
35
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
 
36
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
 
37
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
 
38
    </ul>
 
39
  </div>
 
40
  <div id="nav-path" class="navpath">
 
41
    <ul>
 
42
      <li class="navelem"><a class="el" href="namespaceGdk.html">Gdk</a> </li>
 
43
      <li class="navelem"><a class="el" href="classGdk_1_1Colormap.html">Colormap</a> </li>
 
44
    </ul>
 
45
  </div>
 
46
</div>
 
47
<div class="header">
 
48
  <div class="summary">
 
49
<a href="#pub-methods">Public Member Functions</a> &#124;
 
50
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
 
51
<a href="#pro-methods">Protected Member Functions</a> &#124;
 
52
<a href="#related">Related Functions</a> </div>
 
53
  <div class="headertitle">
 
54
<h1>Gdk::Colormap Class Reference</h1> </div>
 
55
</div>
 
56
<div class="contents">
 
57
<!-- doxytag: class="Gdk::Colormap" --><!-- doxytag: inherits="Glib::Object" -->
 
58
<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 in memory and the R...">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>
 
59
<div class="dynheader">
 
60
Inheritance diagram for Gdk::Colormap:</div>
 
61
<div class="dyncontent">
 
62
<div class="center"><img src="classGdk_1_1Colormap__inherit__graph.png" border="0" usemap="#Gdk_1_1Colormap_inherit__map" alt="Inheritance graph"/></div>
 
63
<map name="Gdk_1_1Colormap_inherit__map" id="Gdk_1_1Colormap_inherit__map">
 
64
<area shape="rect" id="node2" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="20,166,111,197"/><area shape="rect" id="node4" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,86,125,117"/><area shape="rect" id="node6" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="12,6,119,37"/></map>
 
65
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
 
66
<div class="dynheader">
 
67
Collaboration diagram for Gdk::Colormap:</div>
 
68
<div class="dyncontent">
 
69
<div class="center"><img src="classGdk_1_1Colormap__coll__graph.png" border="0" usemap="#Gdk_1_1Colormap_coll__map" alt="Collaboration graph"/></div>
 
70
<map name="Gdk_1_1Colormap_coll__map" id="Gdk_1_1Colormap_coll__map">
 
71
<area shape="rect" id="node2" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="20,166,111,197"/><area shape="rect" id="node4" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,86,125,117"/><area shape="rect" id="node6" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="12,6,119,37"/></map>
 
72
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
 
73
 
 
74
<p><a href="classGdk_1_1Colormap-members.html">List of all members.</a></p>
 
75
<table class="memberdecls">
 
76
<tr><td colspan="2"><h2><a name="pub-methods"></a>
 
77
Public Member Functions</h2></td></tr>
 
78
<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>
 
79
<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>
 
80
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a8e073a91f54ca4f7443db9e1d514bb52"></a><br/></td></tr>
 
81
<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>
 
82
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a5120e898c1cb3dfa9135d1548024da5d"></a><br/></td></tr>
 
83
<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>
 
84
<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>
 
85
<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" href="../../../glibmm-2.4/reference/html/classGlib_1_1ArrayHandle.html">ArrayHandle_Color</a>&amp; colors, int ncolors, bool writeable, bool best_match, <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ArrayHandle.html">Glib::ArrayHandle</a>&lt; bool &gt;&amp; success)</td></tr>
 
86
<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>
 
87
<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>
 
88
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates a single color from a colormap. <a href="#a798a90a164bd95a865360b573455407c"></a><br/></td></tr>
 
89
<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>
 
90
<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>
 
91
<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>
 
92
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/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>
 
93
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the visual for which a given colormap was created. <a href="#a90d5e438d78992e2030832a196ac222b"></a><br/></td></tr>
 
94
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/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>
 
95
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the visual for which a given colormap was created. <a href="#a0056f8871c2da5e8c72a9a272de21c5c"></a><br/></td></tr>
 
96
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/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>
 
97
<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>
 
98
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/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>
 
99
<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>
 
100
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
 
101
Static Public Member Functions</h2></td></tr>
 
102
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="../../../glibmm-2.4/reference/html/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" href="../../../glibmm-2.4/reference/html/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>
 
103
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="../../../glibmm-2.4/reference/html/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>
 
104
<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>
 
105
<tr><td colspan="2"><h2><a name="pro-methods"></a>
 
106
Protected Member Functions</h2></td></tr>
 
107
<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" href="../../../glibmm-2.4/reference/html/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>
 
108
<tr><td colspan="2"><h2><a name="related"></a>
 
109
Related Functions</h2></td></tr>
 
110
<tr><td colspan="2">(Note that these are not member functions.) <br/></td></tr>
 
111
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/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>
 
112
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a73e55bc63cbc380d36c3d382a47be80a"></a><br/></td></tr>
 
113
</table>
 
114
<hr/><a name="_details"></a><h2>Detailed Description</h2>
 
115
<div class="textblock"><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 in memory and the R...">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>
 
116
<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>
 
117
<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>
 
118
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
 
119
<a class="anchor" id="a527fe5eab97c19bb3d1fcedb933ecd13"></a><!-- doxytag: member="Gdk::Colormap::~Colormap" ref="a527fe5eab97c19bb3d1fcedb933ecd13" args="()" -->
 
120
<div class="memitem">
 
121
<div class="memproto">
 
122
      <table class="memname">
 
123
        <tr>
 
124
          <td class="memname">virtual Gdk::Colormap::~Colormap </td>
 
125
          <td>(</td>
 
126
          <td class="paramname"></td><td>)</td>
 
127
          <td><code> [virtual]</code></td>
 
128
        </tr>
 
129
      </table>
 
130
</div>
 
131
<div class="memdoc">
 
132
 
 
133
</div>
 
134
</div>
 
135
<a class="anchor" id="ab617d305ec0582e6a762ed97016dac09"></a><!-- doxytag: member="Gdk::Colormap::Colormap" ref="ab617d305ec0582e6a762ed97016dac09" args="(const Glib::RefPtr&lt; Visual &gt; &amp;visual, bool allocate)" -->
 
136
<div class="memitem">
 
137
<div class="memproto">
 
138
      <table class="memname">
 
139
        <tr>
 
140
          <td class="memname">Gdk::Colormap::Colormap </td>
 
141
          <td>(</td>
 
142
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Visual.html">Visual</a> &gt;&amp;&#160;</td>
 
143
          <td class="paramname"><em>visual</em>, </td>
 
144
        </tr>
 
145
        <tr>
 
146
          <td class="paramkey"></td>
 
147
          <td></td>
 
148
          <td class="paramtype">bool&#160;</td>
 
149
          <td class="paramname"><em>allocate</em>&#160;</td>
 
150
        </tr>
 
151
        <tr>
 
152
          <td></td>
 
153
          <td>)</td>
 
154
          <td></td><td><code> [explicit, protected]</code></td>
 
155
        </tr>
 
156
      </table>
 
157
</div>
 
158
<div class="memdoc">
 
159
 
 
160
</div>
 
161
</div>
 
162
<hr/><h2>Member Function Documentation</h2>
 
163
<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)" -->
 
164
<div class="memitem">
 
165
<div class="memproto">
 
166
      <table class="memname">
 
167
        <tr>
 
168
          <td class="memname">bool Gdk::Colormap::alloc_color </td>
 
169
          <td>(</td>
 
170
          <td class="paramtype"><a class="el" href="classGdk_1_1Color.html">Color</a>&amp;&#160;</td>
 
171
          <td class="paramname"><em>color</em>, </td>
 
172
        </tr>
 
173
        <tr>
 
174
          <td class="paramkey"></td>
 
175
          <td></td>
 
176
          <td class="paramtype">bool&#160;</td>
 
177
          <td class="paramname"><em>writeable</em> = <code>false</code>, </td>
 
178
        </tr>
 
179
        <tr>
 
180
          <td class="paramkey"></td>
 
181
          <td></td>
 
182
          <td class="paramtype">bool&#160;</td>
 
183
          <td class="paramname"><em>best_match</em> = <code>true</code>&#160;</td>
 
184
        </tr>
 
185
        <tr>
 
186
          <td></td>
 
187
          <td>)</td>
 
188
          <td></td><td></td>
 
189
        </tr>
 
190
      </table>
 
191
</div>
 
192
<div class="memdoc">
 
193
 
 
194
<p>Allocates a single color from a colormap. </p>
 
195
<dl><dt><b>Parameters:</b></dt><dd>
 
196
  <table class="params">
 
197
    <tr><td class="paramname">color</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>
 
198
    <tr><td class="paramname">writeable</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>
 
199
    <tr><td class="paramname">best_match</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>
 
200
  </table>
 
201
  </dd>
 
202
</dl>
 
203
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the allocation succeeded. </dd></dl>
 
204
 
 
205
</div>
 
206
</div>
 
207
<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)" -->
 
208
<div class="memitem">
 
209
<div class="memproto">
 
210
      <table class="memname">
 
211
        <tr>
 
212
          <td class="memname">int Gdk::Colormap::alloc_colors </td>
 
213
          <td>(</td>
 
214
          <td class="paramtype"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ArrayHandle.html">ArrayHandle_Color</a> &amp;&#160;</td>
 
215
          <td class="paramname"><em>colors</em>, </td>
 
216
        </tr>
 
217
        <tr>
 
218
          <td class="paramkey"></td>
 
219
          <td></td>
 
220
          <td class="paramtype">int&#160;</td>
 
221
          <td class="paramname"><em>ncolors</em>, </td>
 
222
        </tr>
 
223
        <tr>
 
224
          <td class="paramkey"></td>
 
225
          <td></td>
 
226
          <td class="paramtype">bool&#160;</td>
 
227
          <td class="paramname"><em>writeable</em>, </td>
 
228
        </tr>
 
229
        <tr>
 
230
          <td class="paramkey"></td>
 
231
          <td></td>
 
232
          <td class="paramtype">bool&#160;</td>
 
233
          <td class="paramname"><em>best_match</em>, </td>
 
234
        </tr>
 
235
        <tr>
 
236
          <td class="paramkey"></td>
 
237
          <td></td>
 
238
          <td class="paramtype"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ArrayHandle.html">Glib::ArrayHandle</a>&lt; bool &gt; &amp;&#160;</td>
 
239
          <td class="paramname"><em>success</em>&#160;</td>
 
240
        </tr>
 
241
        <tr>
 
242
          <td></td>
 
243
          <td>)</td>
 
244
          <td></td><td></td>
 
245
        </tr>
 
246
      </table>
 
247
</div>
 
248
<div class="memdoc">
 
249
<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#a798a90a164bd95a865360b573455407c" title="Allocates a single color from a colormap.">alloc_color()</a>. </dd></dl>
 
250
 
 
251
</div>
 
252
</div>
 
253
<a class="anchor" id="a9447b914e4f6d73ff2d041350791ade1"></a><!-- doxytag: member="Gdk::Colormap::create" ref="a9447b914e4f6d73ff2d041350791ade1" args="(const Glib::RefPtr&lt; Visual &gt; &amp;visual, bool allocate)" -->
 
254
<div class="memitem">
 
255
<div class="memproto">
 
256
      <table class="memname">
 
257
        <tr>
 
258
          <td class="memname">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Colormap.html">Colormap</a>&gt; Gdk::Colormap::create </td>
 
259
          <td>(</td>
 
260
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Visual.html">Visual</a> &gt;&amp;&#160;</td>
 
261
          <td class="paramname"><em>visual</em>, </td>
 
262
        </tr>
 
263
        <tr>
 
264
          <td class="paramkey"></td>
 
265
          <td></td>
 
266
          <td class="paramtype">bool&#160;</td>
 
267
          <td class="paramname"><em>allocate</em>&#160;</td>
 
268
        </tr>
 
269
        <tr>
 
270
          <td></td>
 
271
          <td>)</td>
 
272
          <td></td><td><code> [static]</code></td>
 
273
        </tr>
 
274
      </table>
 
275
</div>
 
276
<div class="memdoc">
 
277
 
 
278
</div>
 
279
</div>
 
280
<a class="anchor" id="aabb71a757b4f69a90d0fca884a6b4c62"></a><!-- doxytag: member="Gdk::Colormap::free_color" ref="aabb71a757b4f69a90d0fca884a6b4c62" args="(Color &amp;color)" -->
 
281
<div class="memitem">
 
282
<div class="memproto">
 
283
      <table class="memname">
 
284
        <tr>
 
285
          <td class="memname">void Gdk::Colormap::free_color </td>
 
286
          <td>(</td>
 
287
          <td class="paramtype"><a class="el" href="classGdk_1_1Color.html">Color</a>&amp;&#160;</td>
 
288
          <td class="paramname"><em>color</em></td><td>)</td>
 
289
          <td></td>
 
290
        </tr>
 
291
      </table>
 
292
</div>
 
293
<div class="memdoc">
 
294
 
 
295
</div>
 
296
</div>
 
297
<a class="anchor" id="a79d4fec03cb95c71b64d4a0bc6282fe6"></a><!-- doxytag: member="Gdk::Colormap::free_colors" ref="a79d4fec03cb95c71b64d4a0bc6282fe6" args="(Color &amp;colors, int ncolors)" -->
 
298
<div class="memitem">
 
299
<div class="memproto">
 
300
      <table class="memname">
 
301
        <tr>
 
302
          <td class="memname">void Gdk::Colormap::free_colors </td>
 
303
          <td>(</td>
 
304
          <td class="paramtype"><a class="el" href="classGdk_1_1Color.html">Color</a>&amp;&#160;</td>
 
305
          <td class="paramname"><em>colors</em>, </td>
 
306
        </tr>
 
307
        <tr>
 
308
          <td class="paramkey"></td>
 
309
          <td></td>
 
310
          <td class="paramtype">int&#160;</td>
 
311
          <td class="paramname"><em>ncolors</em>&#160;</td>
 
312
        </tr>
 
313
        <tr>
 
314
          <td></td>
 
315
          <td>)</td>
 
316
          <td></td><td></td>
 
317
        </tr>
 
318
      </table>
 
319
</div>
 
320
<div class="memdoc">
 
321
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000004">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGdk_1_1Colormap.html#aabb71a757b4f69a90d0fca884a6b4c62">free_color()</a> </dd></dl>
 
322
 
 
323
</div>
 
324
</div>
 
325
<a class="anchor" id="a98526be53c38ac403790dcb2a8db55db"></a><!-- doxytag: member="Gdk::Colormap::get_screen" ref="a98526be53c38ac403790dcb2a8db55db" args="() const " -->
 
326
<div class="memitem">
 
327
<div class="memproto">
 
328
      <table class="memname">
 
329
        <tr>
 
330
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/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>
 
331
          <td>(</td>
 
332
          <td class="paramname"></td><td>)</td>
 
333
          <td> const</td>
 
334
        </tr>
 
335
      </table>
 
336
</div>
 
337
<div class="memdoc">
 
338
 
 
339
<p>Gets the screen for which this colormap was created. </p>
 
340
<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>
 
341
<dl class="return"><dt><b>Returns:</b></dt><dd>The screen for which this colormap was created. </dd></dl>
 
342
 
 
343
</div>
 
344
</div>
 
345
<a class="anchor" id="a0de4faa551cfccf109947e9af4dee7ff"></a><!-- doxytag: member="Gdk::Colormap::get_screen" ref="a0de4faa551cfccf109947e9af4dee7ff" args="()" -->
 
346
<div class="memitem">
 
347
<div class="memproto">
 
348
      <table class="memname">
 
349
        <tr>
 
350
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Screen.html">Screen</a>&gt; Gdk::Colormap::get_screen </td>
 
351
          <td>(</td>
 
352
          <td class="paramname"></td><td>)</td>
 
353
          <td></td>
 
354
        </tr>
 
355
      </table>
 
356
</div>
 
357
<div class="memdoc">
 
358
 
 
359
<p>Gets the screen for which this colormap was created. </p>
 
360
<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
<dl class="return"><dt><b>Returns:</b></dt><dd>The screen for which this colormap was created. </dd></dl>
 
362
 
 
363
</div>
 
364
</div>
 
365
<a class="anchor" id="a78c9dfeafac5833684299e8b1b5ce016"></a><!-- doxytag: member="Gdk::Colormap::get_system" ref="a78c9dfeafac5833684299e8b1b5ce016" args="()" -->
 
366
<div class="memitem">
 
367
<div class="memproto">
 
368
      <table class="memname">
 
369
        <tr>
 
370
          <td class="memname">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Colormap.html">Colormap</a>&gt; Gdk::Colormap::get_system </td>
 
371
          <td>(</td>
 
372
          <td class="paramname"></td><td>)</td>
 
373
          <td><code> [static]</code></td>
 
374
        </tr>
 
375
      </table>
 
376
</div>
 
377
<div class="memdoc">
 
378
 
 
379
<p>Gets the system's default colormap for the default screen. </p>
 
380
<p>(See gdk_colormap_get_system_for_screen()) </p>
 
381
<dl class="return"><dt><b>Returns:</b></dt><dd>The default colormap. </dd></dl>
 
382
 
 
383
</div>
 
384
</div>
 
385
<a class="anchor" id="a90d5e438d78992e2030832a196ac222b"></a><!-- doxytag: member="Gdk::Colormap::get_visual" ref="a90d5e438d78992e2030832a196ac222b" args="()" -->
 
386
<div class="memitem">
 
387
<div class="memproto">
 
388
      <table class="memname">
 
389
        <tr>
 
390
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Visual.html">Visual</a>&gt; Gdk::Colormap::get_visual </td>
 
391
          <td>(</td>
 
392
          <td class="paramname"></td><td>)</td>
 
393
          <td></td>
 
394
        </tr>
 
395
      </table>
 
396
</div>
 
397
<div class="memdoc">
 
398
 
 
399
<p>Returns the visual for which a given colormap was created. </p>
 
400
<dl class="return"><dt><b>Returns:</b></dt><dd>The visual of the colormap. </dd></dl>
 
401
 
 
402
</div>
 
403
</div>
 
404
<a class="anchor" id="a0056f8871c2da5e8c72a9a272de21c5c"></a><!-- doxytag: member="Gdk::Colormap::get_visual" ref="a0056f8871c2da5e8c72a9a272de21c5c" args="() const " -->
 
405
<div class="memitem">
 
406
<div class="memproto">
 
407
      <table class="memname">
 
408
        <tr>
 
409
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/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>
 
410
          <td>(</td>
 
411
          <td class="paramname"></td><td>)</td>
 
412
          <td> const</td>
 
413
        </tr>
 
414
      </table>
 
415
</div>
 
416
<div class="memdoc">
 
417
 
 
418
<p>Returns the visual for which a given colormap was created. </p>
 
419
<dl class="return"><dt><b>Returns:</b></dt><dd>The visual of the colormap. </dd></dl>
 
420
 
 
421
</div>
 
422
</div>
 
423
<a class="anchor" id="a5120e898c1cb3dfa9135d1548024da5d"></a><!-- doxytag: member="Gdk::Colormap::gobj" ref="a5120e898c1cb3dfa9135d1548024da5d" args="() const " -->
 
424
<div class="memitem">
 
425
<div class="memproto">
 
426
      <table class="memname">
 
427
        <tr>
 
428
          <td class="memname">const GdkColormap* Gdk::Colormap::gobj </td>
 
429
          <td>(</td>
 
430
          <td class="paramname"></td><td>)</td>
 
431
          <td> const<code> [inline]</code></td>
 
432
        </tr>
 
433
      </table>
 
434
</div>
 
435
<div class="memdoc">
 
436
 
 
437
<p>Provides access to the underlying C GObject. </p>
 
438
 
 
439
<p>Reimplemented from <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html#a778a94181132976bbfb0519793f3b32e">Glib::ObjectBase</a>.</p>
 
440
 
 
441
</div>
 
442
</div>
 
443
<a class="anchor" id="a8e073a91f54ca4f7443db9e1d514bb52"></a><!-- doxytag: member="Gdk::Colormap::gobj" ref="a8e073a91f54ca4f7443db9e1d514bb52" args="()" -->
 
444
<div class="memitem">
 
445
<div class="memproto">
 
446
      <table class="memname">
 
447
        <tr>
 
448
          <td class="memname">GdkColormap* Gdk::Colormap::gobj </td>
 
449
          <td>(</td>
 
450
          <td class="paramname"></td><td>)</td>
 
451
          <td><code> [inline]</code></td>
 
452
        </tr>
 
453
      </table>
 
454
</div>
 
455
<div class="memdoc">
 
456
 
 
457
<p>Provides access to the underlying C GObject. </p>
 
458
 
 
459
<p>Reimplemented from <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html#a4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.</p>
 
460
 
 
461
</div>
 
462
</div>
 
463
<a class="anchor" id="a8bc022fb6ea4673159155bca8e730a39"></a><!-- doxytag: member="Gdk::Colormap::gobj_copy" ref="a8bc022fb6ea4673159155bca8e730a39" args="()" -->
 
464
<div class="memitem">
 
465
<div class="memproto">
 
466
      <table class="memname">
 
467
        <tr>
 
468
          <td class="memname">GdkColormap* Gdk::Colormap::gobj_copy </td>
 
469
          <td>(</td>
 
470
          <td class="paramname"></td><td>)</td>
 
471
          <td></td>
 
472
        </tr>
 
473
      </table>
 
474
</div>
 
475
<div class="memdoc">
 
476
 
 
477
<p>Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. </p>
 
478
 
 
479
</div>
 
480
</div>
 
481
<a class="anchor" id="ac3c3335c6f0ceab1ab75d3f9bd25f53f"></a><!-- doxytag: member="Gdk::Colormap::query_color" ref="ac3c3335c6f0ceab1ab75d3f9bd25f53f" args="(gulong pixel, Color &amp;result)" -->
 
482
<div class="memitem">
 
483
<div class="memproto">
 
484
      <table class="memname">
 
485
        <tr>
 
486
          <td class="memname">void Gdk::Colormap::query_color </td>
 
487
          <td>(</td>
 
488
          <td class="paramtype">gulong&#160;</td>
 
489
          <td class="paramname"><em>pixel</em>, </td>
 
490
        </tr>
 
491
        <tr>
 
492
          <td class="paramkey"></td>
 
493
          <td></td>
 
494
          <td class="paramtype"><a class="el" href="classGdk_1_1Color.html">Color</a>&amp;&#160;</td>
 
495
          <td class="paramname"><em>result</em>&#160;</td>
 
496
        </tr>
 
497
        <tr>
 
498
          <td></td>
 
499
          <td>)</td>
 
500
          <td></td><td></td>
 
501
        </tr>
 
502
      </table>
 
503
</div>
 
504
<div class="memdoc">
 
505
 
 
506
<p>Locates the RGB color in <em>colormap</em> corresponding to the given hardware pixel <em>pixel</em>. </p>
 
507
<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>
 
508
<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>
 
509
<dl><dt><b>Parameters:</b></dt><dd>
 
510
  <table class="params">
 
511
    <tr><td class="paramname">pixel</td><td>Pixel value in hardware display format. </td></tr>
 
512
    <tr><td class="paramname">result</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>
 
513
  </table>
 
514
  </dd>
 
515
</dl>
 
516
 
 
517
</div>
 
518
</div>
 
519
<hr/><h2>Friends And Related Function Documentation</h2>
 
520
<a class="anchor" id="a73e55bc63cbc380d36c3d382a47be80a"></a><!-- doxytag: member="Gdk::Colormap::wrap" ref="a73e55bc63cbc380d36c3d382a47be80a" args="(GdkColormap *object, bool take_copy=false)" -->
 
521
<div class="memitem">
 
522
<div class="memproto">
 
523
      <table class="memname">
 
524
        <tr>
 
525
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Colormap.html">Gdk::Colormap</a> &gt; wrap </td>
 
526
          <td>(</td>
 
527
          <td class="paramtype">GdkColormap *&#160;</td>
 
528
          <td class="paramname"><em>object</em>, </td>
 
529
        </tr>
 
530
        <tr>
 
531
          <td class="paramkey"></td>
 
532
          <td></td>
 
533
          <td class="paramtype">bool&#160;</td>
 
534
          <td class="paramname"><em>take_copy</em> = <code>false</code>&#160;</td>
 
535
        </tr>
 
536
        <tr>
 
537
          <td></td>
 
538
          <td>)</td>
 
539
          <td></td><td><code> [related]</code></td>
 
540
        </tr>
 
541
      </table>
 
542
</div>
 
543
<div class="memdoc">
 
544
 
 
545
<p>A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
 
546
<dl><dt><b>Parameters:</b></dt><dd>
 
547
  <table class="params">
 
548
    <tr><td class="paramname">object</td><td>The C instance. </td></tr>
 
549
    <tr><td class="paramname">take_copy</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>
 
550
  </table>
 
551
  </dd>
 
552
</dl>
 
553
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>
 
554
 
 
555
</div>
 
556
</div>
 
557
<hr/>The documentation for this class was generated from the following file:<ul>
 
558
<li>gdkmm/colormap.h</li>
 
559
</ul>
 
560
</div>
 
561
<hr class="footer"/><address class="footer"><small>Generated on Fri Jul 8 2011 13:31:43 for gtkmm by&#160;
 
562
<a href="http://www.doxygen.org/index.html">
 
563
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
 
564
</body>
 
565
</html>