~ubuntu-branches/ubuntu/natty/pygtk/natty-proposed

« back to all changes in this revision

Viewing changes to docs/html/class-pangorenderer.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-01-07 11:08:47 UTC
  • mfrom: (1.2.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100107110847-f5av7e1ttudh7ra6
Tags: 2.17.0-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>pango.Renderer</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="pango-class-reference.html" title="The pango Class Reference"><link rel="prev" href="class-pangolayoutline.html" title="pango.LayoutLine"><link rel="next" href="class-pangotabarray.html" title="pango.TabArray"></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">pango.Renderer</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-pangolayoutline.html">Prev</a> </td><th width="60%" align="center">The pango Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-pangotabarray.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-pangorenderer"></a><div class="titlepage"></div><div class="refnamediv"><h2>pango.Renderer</h2><p>pango.Renderer — a base class for pango rendering (new in
2
 
PyGTK 2.8)</p></div><div class="refsect1" lang="en"><a name="id3212024"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">pango.Renderer</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
3
 
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--draw-layout" title="pango.Renderer.draw_layout">draw_layout</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>layout</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--draw-layout-line" title="pango.Renderer.draw_layout_line">draw_layout_line</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>line</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--draw-glyphs" title="pango.Renderer.draw_glyphs">draw_glyphs</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>font</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>glyphs</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--draw-rectangle" title="pango.Renderer.draw_rectangle">draw_rectangle</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--draw-error-underline" title="pango.Renderer.draw_error_underline">draw_error_underline</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--draw-trapezoid" title="pango.Renderer.draw_trapezoid">draw_trapezoid</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y1_</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x11</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x21</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y2</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x12</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x22</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--activate" title="pango.Renderer.activate">activate</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--deactivate" title="pango.Renderer.deactivate">deactivate</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--part-changed" title="pango.Renderer.part_changed">part_changed</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--set-color" title="pango.Renderer.set_color">set_color</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>color</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--get-color" title="pango.Renderer.get_color">get_color</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id2773088"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>pango.Renderer</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="pango-class-reference.html" title="The pango Class Reference"><link rel="prev" href="class-pangolayoutline.html" title="pango.LayoutLine"><link rel="next" href="class-pangotabarray.html" title="pango.TabArray"></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">pango.Renderer</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-pangolayoutline.html">Prev</a> </td><th width="60%" align="center">The pango Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-pangotabarray.html">Next</a></td></tr></table><hr></div><div class="refentry" title="pango.Renderer"><a name="class-pangorenderer"></a><div class="titlepage"></div><div class="refnamediv"><h2>pango.Renderer</h2><p>pango.Renderer — a base class for pango rendering (new in
 
2
PyGTK 2.8)</p></div><div class="refsect1" title="Synopsis"><a name="id3582430"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">pango.Renderer</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
 
3
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--draw-layout" title="pango.Renderer.draw_layout">draw_layout</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>layout</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--draw-layout-line" title="pango.Renderer.draw_layout_line">draw_layout_line</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>line</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--draw-glyphs" title="pango.Renderer.draw_glyphs">draw_glyphs</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>font</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>glyphs</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--draw-rectangle" title="pango.Renderer.draw_rectangle">draw_rectangle</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--draw-error-underline" title="pango.Renderer.draw_error_underline">draw_error_underline</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--draw-trapezoid" title="pango.Renderer.draw_trapezoid">draw_trapezoid</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y1_</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x11</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x21</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y2</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x12</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x22</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--activate" title="pango.Renderer.activate">activate</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--deactivate" title="pango.Renderer.deactivate">deactivate</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--part-changed" title="pango.Renderer.part_changed">part_changed</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--set-color" title="pango.Renderer.set_color">set_color</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>color</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangorenderer.html#method-pangorenderer--get-color" title="pango.Renderer.get_color">get_color</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Ancestry"><a name="id3378645"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
4
4
  +-- <a class="link" href="class-pangorenderer.html" title="pango.Renderer">pango.Renderer</a>
5
 
</pre></div><div class="refsect1" lang="en"><a name="id3028604"></a><h2>Description</h2><p><a class="link" href="class-pangorenderer.html" title="pango.Renderer"><code class="classname">pango.Renderer</code></a>
 
5
</pre></div><div class="refsect1" title="Description"><a name="id3481824"></a><h2>Description</h2><p><a class="link" href="class-pangorenderer.html" title="pango.Renderer"><code class="classname">pango.Renderer</code></a>
6
6
is a base class that contains the necessary logic for rendering a <a class="link" href="class-pangolayout.html" title="pango.Layout"><code class="classname">pango.Layout</code></a> or
7
7
<a class="link" href="class-pangolayoutline.html" title="pango.LayoutLine"><code class="classname">pango.LayoutLine</code></a>. By
8
8
subclassing <a class="link" href="class-pangorenderer.html" title="pango.Renderer"><code class="classname">pango.Renderer</code></a>
9
9
and overriding operations such as <a class="link" href="class-pangorenderer.html#method-pangorenderer--draw-glyphs" title="pango.Renderer.draw_glyphs"><code class="methodname">draw_glyphs</code>()</a>
10
10
and <a class="link" href="class-pangorenderer.html#method-pangorenderer--draw-rectangle" title="pango.Renderer.draw_rectangle"><code class="methodname">draw_rectangle</code>()</a>,
11
11
renderers for particular font backends and destinations can be
12
 
created.</p></div><div class="refsect1" lang="en"><a name="id3185332"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-pangorenderer--draw-layout"></a><h3>pango.Renderer.draw_layout</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">draw_layout</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>layout</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>layout</code></strong> :</span></p></td><td>a <a class="link" href="class-pangolayout.html" title="pango.Layout"><code class="classname">pango.Layout</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x position of left edge of baseline,
 
12
created.</p></div><div class="refsect1" title="Methods"><a name="id3320336"></a><h2>Methods</h2><div class="refsect2" title="pango.Renderer.draw_layout"><a name="method-pangorenderer--draw-layout"></a><h3>pango.Renderer.draw_layout</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">draw_layout</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>layout</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>layout</code></strong> :</span></p></td><td>a <a class="link" href="class-pangolayout.html" title="pango.Layout"><code class="classname">pango.Layout</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x position of left edge of baseline,
13
13
in user space coordinates in Pango units.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y position of left edge of baseline,
14
 
in user space coordinates in Pango units.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">draw_layout</code>() method draws the
 
14
in user space coordinates in Pango units.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">draw_layout</code>() method draws the
15
15
<a class="link" href="class-pangolayout.html" title="pango.Layout"><code class="classname">pango.Layout</code></a>
16
16
s[ecified by <em class="parameter"><code>layout</code></em> at the position specified by
17
 
<em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>.</p></div><div class="refsect2" lang="en"><a name="method-pangorenderer--draw-layout-line"></a><h3>pango.Renderer.draw_layout_line</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">draw_layout_line</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>line</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>line</code></strong> :</span></p></td><td>a <a class="link" href="class-pangolayoutline.html" title="pango.LayoutLine"><code class="classname">pango.LayoutLine</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x position of left edge of baseline,
 
17
<em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>.</p></div><div class="refsect2" title="pango.Renderer.draw_layout_line"><a name="method-pangorenderer--draw-layout-line"></a><h3>pango.Renderer.draw_layout_line</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">draw_layout_line</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>line</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>line</code></strong> :</span></p></td><td>a <a class="link" href="class-pangolayoutline.html" title="pango.LayoutLine"><code class="classname">pango.LayoutLine</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x position of left edge of baseline,
18
18
in user space coordinates in Pango units.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y position of left edge of baseline,
19
 
in user space coordinates in Pango units.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">draw_layout_line</code>() method draws the
 
19
in user space coordinates in Pango units.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">draw_layout_line</code>() method draws the
20
20
<a class="link" href="class-pangolayoutline.html" title="pango.LayoutLine"><code class="classname">pango.LayoutLine</code></a>
21
21
specified by <em class="parameter"><code>line</code></em> at the position specified by
22
 
<em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>.</p></div><div class="refsect2" lang="en"><a name="method-pangorenderer--draw-glyphs"></a><h3>pango.Renderer.draw_glyphs</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">draw_glyphs</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>font</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>glyphs</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>font</code></strong> :</span></p></td><td>a <a class="link" href="class-pangofont.html" title="pango.Font"><code class="classname">pango.Font</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>glyphs</code></strong> :</span></p></td><td>a <a class="link" href="class-pangoglyphstring.html" title="pango.GlyphString"><code class="classname">pango.GlyphString</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x position of left edge of baseline,
 
22
<em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>.</p></div><div class="refsect2" title="pango.Renderer.draw_glyphs"><a name="method-pangorenderer--draw-glyphs"></a><h3>pango.Renderer.draw_glyphs</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">draw_glyphs</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>font</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>glyphs</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>font</code></strong> :</span></p></td><td>a <a class="link" href="class-pangofont.html" title="pango.Font"><code class="classname">pango.Font</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>glyphs</code></strong> :</span></p></td><td>a <a class="link" href="class-pangoglyphstring.html" title="pango.GlyphString"><code class="classname">pango.GlyphString</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x position of left edge of baseline,
23
23
in user space coordinates in Pango units.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y position of left edge of baseline,
24
 
in user space coordinates in Pango units.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">draw_glyphs</code>() method draws the
 
24
in user space coordinates in Pango units.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">draw_glyphs</code>() method draws the
25
25
<a class="link" href="class-pangoglyphstring.html" title="pango.GlyphString"><code class="classname">pango.GlyphString</code></a>
26
26
specified by <em class="parameter"><code>glyphs</code></em> using the <a class="link" href="class-pangofont.html" title="pango.Font"><code class="classname">pango.Font</code></a> specified
27
27
by <em class="parameter"><code>font</code></em> at the position specified by
28
 
<em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>.</p></div><div class="refsect2" lang="en"><a name="method-pangorenderer--draw-rectangle"></a><h3>pango.Renderer.draw_rectangle</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">draw_rectangle</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>part</code></strong> :</span></p></td><td>the part where the rectangle is to be
 
28
<em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>.</p></div><div class="refsect2" title="pango.Renderer.draw_rectangle"><a name="method-pangorenderer--draw-rectangle"></a><h3>pango.Renderer.draw_rectangle</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">draw_rectangle</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>part</code></strong> :</span></p></td><td>the part where the rectangle is to be
29
29
rendered</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x position at which to draw rectangle,
30
30
in user space coordinates in Pango units</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y position at which to draw rectangle,
31
31
in user space coordinates in Pango units</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>width</code></strong> :</span></p></td><td>the width of rectangle in Pango units
32
32
in user space coordinates</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>height</code></strong> :</span></p></td><td>the height of rectangle in Pango units
33
 
in user space coordinates</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">draw_rectangle</code>() method draws an
 
33
in user space coordinates</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">draw_rectangle</code>() method draws an
34
34
axis-aligned rectangle with the size specified by
35
35
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em> at the
36
36
position specified by <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>,
37
37
all in user space coordinates. The rectangle will be drawn in the rendering
38
38
part (see the <a class="xref" href="pango-constants.html#pango-render-part-constants" title="Pango Render Part Constants">Pango Render Part Constants</a>) specified by
39
 
<em class="parameter"><code>part</code></em>.</p></div><div class="refsect2" lang="en"><a name="method-pangorenderer--draw-error-underline"></a><h3>pango.Renderer.draw_error_underline</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">draw_error_underline</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the X coordinate of the underline, in Pango units
 
39
<em class="parameter"><code>part</code></em>.</p></div><div class="refsect2" title="pango.Renderer.draw_error_underline"><a name="method-pangorenderer--draw-error-underline"></a><h3>pango.Renderer.draw_error_underline</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">draw_error_underline</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the X coordinate of the underline, in Pango units
40
40
in the user coordinate system</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the Y coordinate of the underline, in Pango units
41
41
in the user coordinate system</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>width</code></strong> :</span></p></td><td>the width of the underline, in Pango units
42
42
in the user coordinate system</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>height</code></strong> :</span></p></td><td>the height of the underline, in Pango units
43
 
in the user coordinate system</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">draw_error_underline</code>() method draws a
 
43
in the user coordinate system</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">draw_error_underline</code>() method draws a
44
44
squiggly line that approximately covers the rectangle specified by
45
45
<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>,
46
46
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em> in the style
47
47
of an underline used to indicate a spelling error. (The width of the
48
48
underline is rounded to an integer number of up/down segments and the
49
 
resulting rectangle is centered in the original rectangle).</p></div><div class="refsect2" lang="en"><a name="method-pangorenderer--draw-trapezoid"></a><h3>pango.Renderer.draw_trapezoid</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">draw_trapezoid</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y1_</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x11</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x21</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y2</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x12</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x22</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>part</code></strong> :</span></p></td><td>where the trapezoid is to be
 
49
resulting rectangle is centered in the original rectangle).</p></div><div class="refsect2" title="pango.Renderer.draw_trapezoid"><a name="method-pangorenderer--draw-trapezoid"></a><h3>pango.Renderer.draw_trapezoid</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">draw_trapezoid</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y1_</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x11</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x21</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y2</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x12</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x22</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>part</code></strong> :</span></p></td><td>where the trapezoid is to be
50
50
rendered</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y1_</code></strong> :</span></p></td><td>the Y coordinate of the top of the
51
51
trapezoid</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x11</code></strong> :</span></p></td><td>the X coordinate of the left end of the top of
52
52
the trapezoid</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x21</code></strong> :</span></p></td><td>the X coordinate of the right end of the top of
53
53
the trapezoid</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y2</code></strong> :</span></p></td><td>the Y coordinate of the bottom of the
54
54
trapezoid</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x12</code></strong> :</span></p></td><td>the X coordinate of the left end of the bottom of
55
55
the trapezoid</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x22</code></strong> :</span></p></td><td>the X coordinate of the left end of the bottom of
56
 
the trapezoid</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">draw_trapezoid</code>() method draws a
 
56
the trapezoid</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">draw_trapezoid</code>() method draws a
57
57
trapezoid with the parallel sides aligned with the X axis using the
58
58
coordinates specified by <em class="parameter"><code>y1_</code></em>,
59
59
<em class="parameter"><code>x11</code></em>, <em class="parameter"><code>x21</code></em>,
60
60
<em class="parameter"><code>y2</code></em>, <em class="parameter"><code>x12</code></em>,
61
61
<em class="parameter"><code>x22</code></em>. The coordinates are in device space. The
62
62
trapezoid is rendered in the part specified by <em class="parameter"><code>part</code></em>
63
 
which must be one of the <a class="xref" href="pango-constants.html#pango-render-part-constants" title="Pango Render Part Constants">Pango Render Part Constants</a>.</p></div><div class="refsect2" lang="en"><a name="method-pangorenderer--activate"></a><h3>pango.Renderer.activate</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">activate</span>()</code></pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">activate</code>() method does initial
 
63
which must be one of the <a class="xref" href="pango-constants.html#pango-render-part-constants" title="Pango Render Part Constants">Pango Render Part Constants</a>.</p></div><div class="refsect2" title="pango.Renderer.activate"><a name="method-pangorenderer--activate"></a><h3>pango.Renderer.activate</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">activate</span>()</code></pre><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">activate</code>() method does initial
64
64
setup before performing the rendering operations on renderer. The <a class="link" href="class-pangorenderer.html#method-pangorenderer--deactivate" title="pango.Renderer.deactivate"><code class="methodname">deactivate</code>()</a>
65
65
method should be called when drawing is complete. Calls to the <a class="link" href="class-pangorenderer.html#method-pangorenderer--draw-layout" title="pango.Renderer.draw_layout"><code class="methodname">draw_layout</code>()</a>
66
66
method automatically activate the layout before drawing on it. Calls to the
67
67
<a class="link" href="class-pangorenderer.html#method-pangorenderer--activate" title="pango.Renderer.activate"><code class="methodname">activate</code>()</a>
68
68
and <a class="link" href="class-pangorenderer.html#method-pangorenderer--deactivate" title="pango.Renderer.deactivate"><code class="methodname">deactivate</code>()</a>
69
69
methods can be nested and the renderer will only be initialized and
70
 
deinitialized once.</p></div><div class="refsect2" lang="en"><a name="method-pangorenderer--deactivate"></a><h3>pango.Renderer.deactivate</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">deactivate</span>()</code></pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">deactivate</code>() method cleans up after
 
70
deinitialized once.</p></div><div class="refsect2" title="pango.Renderer.deactivate"><a name="method-pangorenderer--deactivate"></a><h3>pango.Renderer.deactivate</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">deactivate</span>()</code></pre><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">deactivate</code>() method cleans up after
71
71
rendering operations are completed. See the <a class="link" href="class-pangorenderer.html#method-pangorenderer--activate" title="pango.Renderer.activate"><code class="methodname">activate</code>()</a>
72
 
method for more information.</p></div><div class="refsect2" lang="en"><a name="method-pangorenderer--part-changed"></a><h3>pango.Renderer.part_changed</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">part_changed</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>part</code></strong> :</span></p></td><td>the part that has its rendering
73
 
changed.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">part_changed</code>() method informs Pango
 
72
method for more information.</p></div><div class="refsect2" title="pango.Renderer.part_changed"><a name="method-pangorenderer--part-changed"></a><h3>pango.Renderer.part_changed</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">part_changed</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>part</code></strong> :</span></p></td><td>the part that has its rendering
 
73
changed.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">part_changed</code>() method informs Pango
74
74
that the way that the renderering is done for the part specified by
75
75
<em class="parameter"><code>part</code></em> has changed in a way that would prevent multiple
76
76
pieces being joined together into one drawing
81
81
</pre><p>when the stipple changes or underlines with different stipples
82
82
might be joined together. Pango automatically calls this for changes to
83
83
colors. (See the <a class="link" href="class-pangorenderer.html#method-pangorenderer--set-color" title="pango.Renderer.set_color"><code class="methodname">set_color</code>()</a>
84
 
method for more information).</p></div><div class="refsect2" lang="en"><a name="method-pangorenderer--set-color"></a><h3>pango.Renderer.set_color</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_color</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>color</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>part</code></strong> :</span></p></td><td>the part to change the color
85
 
 of</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>color</code></strong> :</span></p></td><td>a <a class="link" href="class-pangocolor.html" title="pango.Color"><code class="classname">pango.Color</code></a></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">set_color</code>() method sets the <a class="link" href="class-pangocolor.html" title="pango.Color"><code class="classname">pango.Color</code></a>
 
84
method for more information).</p></div><div class="refsect2" title="pango.Renderer.set_color"><a name="method-pangorenderer--set-color"></a><h3>pango.Renderer.set_color</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_color</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>color</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>part</code></strong> :</span></p></td><td>the part to change the color
 
85
 of</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>color</code></strong> :</span></p></td><td>a <a class="link" href="class-pangocolor.html" title="pango.Color"><code class="classname">pango.Color</code></a></td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">set_color</code>() method sets the <a class="link" href="class-pangocolor.html" title="pango.Color"><code class="classname">pango.Color</code></a>
86
86
specified by <em class="parameter"><code>color</code></em> as the color for the part
87
87
specified by <em class="parameter"><code>part</code></em>. <em class="parameter"><code>part</code></em> must
88
 
be one of the <a class="xref" href="pango-constants.html#pango-render-part-constants" title="Pango Render Part Constants">Pango Render Part Constants</a>.</p></div><div class="refsect2" lang="en"><a name="method-pangorenderer--get-color"></a><h3>pango.Renderer.get_color</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_color</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>part</code></strong> :</span></p></td><td>a part</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :, </span><span class="term"><strong class="parameter"><code></code></strong> :</span></p></td><td>a <a class="link" href="class-pangocolor.html" title="pango.Color"><code class="classname">pango.Color</code></a> or
89
 
<em class="parameter"><code>None</code></em></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">get_color</code>() method returns the
 
88
be one of the <a class="xref" href="pango-constants.html#pango-render-part-constants" title="Pango Render Part Constants">Pango Render Part Constants</a>.</p></div><div class="refsect2" title="pango.Renderer.get_color"><a name="method-pangorenderer--get-color"></a><h3>pango.Renderer.get_color</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_color</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>part</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>part</code></strong> :</span></p></td><td>a part</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :, </span><span class="term"><strong class="parameter"><code></code></strong> :</span></p></td><td>a <a class="link" href="class-pangocolor.html" title="pango.Color"><code class="classname">pango.Color</code></a> or
 
89
<em class="parameter"><code>None</code></em></td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">get_color</code>() method returns the
90
90
current rendering <a class="link" href="class-pangocolor.html" title="pango.Color"><code class="classname">pango.Color</code></a> for the
91
91
part specified by <em class="parameter"><code>part</code></em>. <em class="parameter"><code>part</code></em>
92
92
must be one of the <a class="xref" href="pango-constants.html#pango-render-part-constants" title="Pango Render Part Constants">Pango Render Part Constants</a>. If