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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-06-22 16:49:42 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090622164942-19zeltp4z0u5iw72
Tags: 2.15.2-0ubuntu1
* New upstream version:
  - Rename gtk.Statusbar.remove() to gtk.Statusbar.remove_message
  - Allow pango.Context creation 
  - Make gtk.gdk.Pixbuf.add_alpha accept integers, retaining backward
    compatibility accepting also chars 
  - Protect window obj from GC in gtk.window_get_toplevels 
  - Plug huge number of memory leaks in Pango wrappers 
  - Add gtk.gdk.WINDOWING constant 
  - Wrap gdk_pixbuf_apply_embedded_orientation 
  - Modernize constructors of seven more types 
  - Don't free a string we don't own 
  - Some docs tweaking 
* debian/control.in:
  - set vcs location
* debian/patches/02_fix_get_application_info_crash.patch:
  - the change is in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.gdk.CairoContext</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-gdkatom.html" title="gtk.gdk.Atom"><link rel="next" href="class-gdkcolor.html" title="gtk.gdk.Color"></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.CairoContext</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gdkatom.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-gdkcolor.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gdkcairocontext"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.gdk.CairoContext</h2><p>gtk.gdk.CairoContext — object providing support for drawing using Cairo (new in
2
 
PyGTK 2.8)</p></div><div class="refsect1" lang="en"><a name="id2884272"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.gdk.CairoContext</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-pangocairocairocontext.html" title="pangocairo.CairoContext">pangocairo.CairoContext</a></span></span>):
3
 
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkcairocontext.html#method-gdkcairocontext--set-source-color" title="gtk.gdk.CairoContext.set_source_color">set_source_color</a></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-gdkcairocontext.html#method-gdkcairocontext--set-source-pixbuf" title="gtk.gdk.CairoContext.set_source_pixbuf">set_source_pixbuf</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf_y</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkcairocontext.html#method-gdkcairocontext--rectangle" title="gtk.gdk.CairoContext.rectangle">rectangle</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rectangle</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkcairocontext.html#method-gdkcairocontext--region" title="gtk.gdk.CairoContext.region">region</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>region</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkcairocontext.html#method-gdkcairocontext--set-source-pixmap" title="gtk.gdk.CairoContext.set_source_pixmap">set_source_pixmap</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixmap</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixmap_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixmap_y</code></strong></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id2884092"></a><h2>Ancestry</h2><pre class="synopsis">+-- cairo.Context
 
2
PyGTK 2.8)</p></div><div class="refsect1" lang="en"><a name="id3060608"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.gdk.CairoContext</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-pangocairocairocontext.html" title="pangocairo.CairoContext">pangocairo.CairoContext</a></span></span>):
 
3
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkcairocontext.html#method-gdkcairocontext--set-source-color" title="gtk.gdk.CairoContext.set_source_color">set_source_color</a></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-gdkcairocontext.html#method-gdkcairocontext--set-source-pixbuf" title="gtk.gdk.CairoContext.set_source_pixbuf">set_source_pixbuf</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf_y</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkcairocontext.html#method-gdkcairocontext--rectangle" title="gtk.gdk.CairoContext.rectangle">rectangle</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rectangle</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkcairocontext.html#method-gdkcairocontext--region" title="gtk.gdk.CairoContext.region">region</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>region</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkcairocontext.html#method-gdkcairocontext--set-source-pixmap" title="gtk.gdk.CairoContext.set_source_pixmap">set_source_pixmap</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixmap</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixmap_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixmap_y</code></strong></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3206805"></a><h2>Ancestry</h2><pre class="synopsis">+-- cairo.Context
4
4
  +-- <a class="link" href="class-pangocairocairocontext.html" title="pangocairo.CairoContext">pangocairo.CairoContext</a>
5
5
    +-- <a class="link" href="class-gdkcairocontext.html" title="gtk.gdk.CairoContext">gtk.gdk.CairoContext</a>
6
 
</pre></div><div class="refsect1" lang="en"><a name="id2884065"></a><h2>Description</h2><p>Cairo is a graphics library that supports vector graphics and
 
6
</pre></div><div class="refsect1" lang="en"><a name="id3206778"></a><h2>Description</h2><p>Cairo is a graphics library that supports vector graphics and
7
7
image compositing that can be used with PyGTK. Since 2.8, GTK+ and Pango do
8
8
most of their drawing using Cairo. The Cairo drawing model and primitives
9
9
are similar to PostScript which uses an imaging model of painting on a two
16
16
objects. A <a class="link" href="class-gdkcairocontext.html" title="gtk.gdk.CairoContext"><code class="classname">gtk.gdk.CairoContext</code></a>
17
17
is created using the <a class="link" href="class-gdkdrawable.html#method-gdkdrawable--cairo-create" title="gtk.gdk.Drawable.cairo_create"><code class="methodname">gtk.gdk.Drawable.cairo_create</code>()</a>
18
18
method. See the <a class="link" href="class-pangocairocairocontext.html" title="pangocairo.CairoContext"><code class="classname">pangocairo.CairoContext</code></a>
19
 
and Python cairo module documentation for additional methods.</p></div><div class="refsect1" lang="en"><a name="id2884011"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gdkcairocontext--set-source-color"></a><h3>gtk.gdk.CairoContext.set_source_color</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_source_color</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>color</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.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_source_color</code>() method sets the
 
19
and Python cairo module documentation for additional methods.</p></div><div class="refsect1" lang="en"><a name="id3206724"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gdkcairocontext--set-source-color"></a><h3>gtk.gdk.CairoContext.set_source_color</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_source_color</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>color</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.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_source_color</code>() method sets the
20
20
source color of the cairo context to the <a class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></a>
21
21
specified by <em class="parameter"><code>color</code></em>. See the
22
22
cairo.Context.set_source_rgb() method for more information.</p></div><div class="refsect2" lang="en"><a name="method-gdkcairocontext--set-source-pixbuf"></a><h3>gtk.gdk.CairoContext.set_source_pixbuf</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_source_pixbuf</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf_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>pixbuf</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkpixbuf.html" title="gtk.gdk.Pixbuf"><code class="classname">gtk.gdk.Pixbuf</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>pixbuf_x</code></strong> :</span></p></td><td>the X coordinate of the location to place the