1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.gdk.Colormap</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gdk-class-reference.html" title="The gtk.gdk Class Reference"><link rel="prev" href="class-gdkcolor.html" title="gtk.gdk.Color"><link rel="next" href="class-gdkcursor.html" title="gtk.gdk.Cursor"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">gtk.gdk.Colormap</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gdkcolor.html">Prev</a> </td><th width="60%" align="center">The gtk.gdk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gdkcursor.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gdkcolormap"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.gdk.Colormap</h2><p>gtk.gdk.Colormap — a table of color display component values</p></div><div class="refsect1" lang="en"><a name="id2899836"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.gdk.Colormap</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.gdk.Colormap</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.1"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gdk-class-reference.html" title="The gtk.gdk Class Reference"><link rel="prev" href="class-gdkcolor.html" title="gtk.gdk.Color"><link rel="next" href="class-gdkcursor.html" title="gtk.gdk.Cursor"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">gtk.gdk.Colormap</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gdkcolor.html">Prev</a> </td><th width="60%" align="center">The gtk.gdk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gdkcursor.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.gdk.Colormap"><a name="class-gdkcolormap"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.gdk.Colormap</h2><p>gtk.gdk.Colormap — a table of color display component values</p></div><div class="refsect1" title="Synopsis"><a name="id3428714"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.gdk.Colormap</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
2
2
<code class="constructorsynopsis"> <span class="methodname"><a class="link" href="class-gdkcolormap.html#constructor-gdkcolormap" title="Constructor">gtk.gdk.Colormap</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>visual</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>allocate</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkcolormap.html#method-gdkcolormap--alloc-color" title="gtk.gdk.Colormap.alloc_color">alloc_color</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>color</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>writeable</code></strong></span><span class="initializer">=False</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>best_match</code></strong></span><span class="initializer">=True</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkcolormap.html#method-gdkcolormap--alloc-color2" title="gtk.gdk.Colormap.alloc_color">alloc_color</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>spec</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>writeable</code></strong></span><span class="initializer">=False</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>best_match</code></strong></span><span class="initializer">=True</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkcolormap.html#method-gdkcolormap--alloc-color3" title="gtk.gdk.Colormap.alloc_color">alloc_color</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>red</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>green</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>blue</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>writeable</code></strong></span><span class="initializer">=False</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>best_match</code></strong></span><span class="initializer">=True</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkcolormap.html#method-gdkcolormap--get-visual" title="gtk.gdk.Colormap.get_visual">get_visual</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkcolormap.html#method-gdkcolormap--get-screen" title="gtk.gdk.Colormap.get_screen">get_screen</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkcolormap.html#method-gdkcolormap--query-color" title="gtk.gdk.Colormap.query_color">query_color</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixel</code></strong></span></span>)</code><br></pre></td></tr></table><pre class="programlisting">
3
3
<span class="bold"><strong>Functions</strong></span>
5
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkcolormap.html#function-gdk--colormap-get-system" title="gtk.gdk.colormap_get_system">gtk.gdk.colormap_get_system</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect1" lang="en"><a name="id2790135"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
5
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gdkcolormap.html#function-gdk--colormap-get-system" title="gtk.gdk.colormap_get_system">gtk.gdk.colormap_get_system</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect1" title="Ancestry"><a name="id3051140"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
6
6
+-- <a class="link" href="class-gdkcolormap.html" title="gtk.gdk.Colormap">gtk.gdk.Colormap</a>
8
8
contains a table mapping index values to the RGB color component values used
9
9
to display the colors. The index value corresponds to the pixel value of a
10
10
<a class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></a>