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

« back to all changes in this revision

Viewing changes to docs/html/class-gdkdrawable.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
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.gdk.Drawable</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-gdkdragcontext.html" title="gtk.gdk.DragContext"><link rel="next" href="class-gdkevent.html" title="gtk.gdk.Event"></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.Drawable</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gdkdragcontext.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-gdkevent.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gdkdrawable"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.gdk.Drawable</h2><p>gtk.gdk.Drawable — a base class for drawing methods</p></div><div class="refsect1" lang="en"><a name="id2774163"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.gdk.Drawable</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
2
 
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--get-size" title="gtk.gdk.Drawable.get_size">get_size</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--set-colormap" title="gtk.gdk.Drawable.set_colormap">set_colormap</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>colormap</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--get-colormap" title="gtk.gdk.Drawable.get_colormap">get_colormap</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--get-visual" title="gtk.gdk.Drawable.get_visual">get_visual</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--get-depth" title="gtk.gdk.Drawable.get_depth">get_depth</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--get-screen" title="gtk.gdk.Drawable.get_screen">get_screen</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--get-display" title="gtk.gdk.Drawable.get_display">get_display</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-point" title="gtk.gdk.Drawable.draw_point">draw_point</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</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-gdkdrawable.html#method-gdkdrawable--draw-line" title="gtk.gdk.Drawable.draw_line">draw_line</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x1</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>x2</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y2</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-rectangle" title="gtk.gdk.Drawable.draw_rectangle">draw_rectangle</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>filled</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-gdkdrawable.html#method-gdkdrawable--draw-arc" title="gtk.gdk.Drawable.draw_arc">draw_arc</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>filled</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>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>angle1</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>angle2</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-polygon" title="gtk.gdk.Drawable.draw_polygon">draw_polygon</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>filled</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>points</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-drawable" title="gtk.gdk.Drawable.draw_drawable">draw_drawable</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>src</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xsrc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ysrc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xdest</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ydest</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-gdkdrawable.html#method-gdkdrawable--draw-image" title="gtk.gdk.Drawable.draw_image">draw_image</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>image</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xsrc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ysrc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xdest</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ydest</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-gdkdrawable.html#method-gdkdrawable--draw-points" title="gtk.gdk.Drawable.draw_points">draw_points</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>points</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-segments" title="gtk.gdk.Drawable.draw_segments">draw_segments</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>segs</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-lines" title="gtk.gdk.Drawable.draw_lines">draw_lines</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>points</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-pixbuf" title="gtk.gdk.Drawable.draw_pixbuf">draw_pixbuf</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></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>src_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>src_y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dest_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dest_y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span><span class="initializer">=-1</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span><span class="initializer">=-1</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dither</code></strong></span><span class="initializer">=gtk.gdk.RGB_DITHER_NORMAL</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x_dither</code></strong></span><span class="initializer">=0</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y_dither</code></strong></span><span class="initializer">=0</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-glyphs" title="gtk.gdk.Drawable.draw_glyphs">draw_glyphs</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></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>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>glyphs</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-layout-line" title="gtk.gdk.Drawable.draw_layout_line">draw_layout_line</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</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>line</code></strong></span></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>foreground</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>background</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-layout" title="gtk.gdk.Drawable.draw_layout">draw_layout</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</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>layout</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>foreground</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>background</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--get-image" title="gtk.gdk.Drawable.get_image">get_image</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-gdkdrawable.html#method-gdkdrawable--get-clip-region" title="gtk.gdk.Drawable.get_clip_region">get_clip_region</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--get-visible-region" title="gtk.gdk.Drawable.get_visible_region">get_visible_region</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--new-gc" title="gtk.gdk.Drawable.new_gc">new_gc</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>foreground</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>background</code></strong></span></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>function</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>fill</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tile</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>stipple</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>clip_mask</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>subwindow_mode</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ts_x_origin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ts_y_origin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>clip_x_origin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>clip_y_origin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>graphics_exposures</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>line_width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>line_style</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>cap_style</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>join_style</code></strong></span>&gt;</span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-rgb-image" title="gtk.gdk.Drawable.draw_rgb_image">draw_rgb_image</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</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>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dith</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>rgb_buf</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>rowstride</code></strong></span><span class="initializer">=-1</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xdith</code></strong></span><span class="initializer">=0</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ydith</code></strong></span><span class="initializer">=0</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-rgb-32-image" title="gtk.gdk.Drawable.draw_rgb_32_image">draw_rgb_32_image</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</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>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dith</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>rgb_buf</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>rowstride</code></strong></span><span class="initializer">=-1</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xdith</code></strong></span><span class="initializer">=0</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ydith</code></strong></span><span class="initializer">=0</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-gray-image" title="gtk.gdk.Drawable.draw_gray_image">draw_gray_image</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</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>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dith</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>buf</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>rowstride</code></strong></span><span class="initializer">=-1</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-indexed-image" title="gtk.gdk.Drawable.draw_indexed_image">draw_indexed_image</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</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>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dith</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>buf</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>rowstride</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>cmap</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--cairo-create" title="gtk.gdk.Drawable.cairo_create">cairo_create</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id2744493"></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>gtk.gdk.Drawable</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-gdkdragcontext.html" title="gtk.gdk.DragContext"><link rel="next" href="class-gdkevent.html" title="gtk.gdk.Event"></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.Drawable</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gdkdragcontext.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-gdkevent.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gdkdrawable"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.gdk.Drawable</h2><p>gtk.gdk.Drawable — a base class for drawing methods</p></div><div class="refsect1" lang="en"><a name="id3136658"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.gdk.Drawable</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
 
2
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--get-size" title="gtk.gdk.Drawable.get_size">get_size</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--set-colormap" title="gtk.gdk.Drawable.set_colormap">set_colormap</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>colormap</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--get-colormap" title="gtk.gdk.Drawable.get_colormap">get_colormap</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--get-visual" title="gtk.gdk.Drawable.get_visual">get_visual</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--get-depth" title="gtk.gdk.Drawable.get_depth">get_depth</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--get-screen" title="gtk.gdk.Drawable.get_screen">get_screen</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--get-display" title="gtk.gdk.Drawable.get_display">get_display</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-point" title="gtk.gdk.Drawable.draw_point">draw_point</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</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-gdkdrawable.html#method-gdkdrawable--draw-line" title="gtk.gdk.Drawable.draw_line">draw_line</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x1</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>x2</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y2</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-rectangle" title="gtk.gdk.Drawable.draw_rectangle">draw_rectangle</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>filled</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-gdkdrawable.html#method-gdkdrawable--draw-arc" title="gtk.gdk.Drawable.draw_arc">draw_arc</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>filled</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>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>angle1</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>angle2</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-polygon" title="gtk.gdk.Drawable.draw_polygon">draw_polygon</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>filled</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>points</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-drawable" title="gtk.gdk.Drawable.draw_drawable">draw_drawable</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>src</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xsrc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ysrc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xdest</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ydest</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-gdkdrawable.html#method-gdkdrawable--draw-image" title="gtk.gdk.Drawable.draw_image">draw_image</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>image</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xsrc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ysrc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xdest</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ydest</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-gdkdrawable.html#method-gdkdrawable--draw-points" title="gtk.gdk.Drawable.draw_points">draw_points</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>points</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-segments" title="gtk.gdk.Drawable.draw_segments">draw_segments</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>segs</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-lines" title="gtk.gdk.Drawable.draw_lines">draw_lines</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>points</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-pixbuf" title="gtk.gdk.Drawable.draw_pixbuf">draw_pixbuf</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></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>src_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>src_y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dest_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dest_y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span><span class="initializer">=-1</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span><span class="initializer">=-1</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dither</code></strong></span><span class="initializer">=gtk.gdk.RGB_DITHER_NORMAL</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x_dither</code></strong></span><span class="initializer">=0</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y_dither</code></strong></span><span class="initializer">=0</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-glyphs" title="gtk.gdk.Drawable.draw_glyphs">draw_glyphs</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</code></strong></span></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>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>glyphs</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-layout-line" title="gtk.gdk.Drawable.draw_layout_line">draw_layout_line</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</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>line</code></strong></span></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>foreground</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>background</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-layout" title="gtk.gdk.Drawable.draw_layout">draw_layout</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</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>layout</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>foreground</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>background</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--get-image" title="gtk.gdk.Drawable.get_image">get_image</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-gdkdrawable.html#method-gdkdrawable--get-clip-region" title="gtk.gdk.Drawable.get_clip_region">get_clip_region</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--get-visible-region" title="gtk.gdk.Drawable.get_visible_region">get_visible_region</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--new-gc" title="gtk.gdk.Drawable.new_gc">new_gc</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>foreground</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>background</code></strong></span></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>function</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>fill</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tile</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>stipple</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>clip_mask</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>subwindow_mode</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ts_x_origin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ts_y_origin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>clip_x_origin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>clip_y_origin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>graphics_exposures</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>line_width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>line_style</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>cap_style</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>join_style</code></strong></span>&gt;</span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-rgb-image" title="gtk.gdk.Drawable.draw_rgb_image">draw_rgb_image</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</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>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dith</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>rgb_buf</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>rowstride</code></strong></span><span class="initializer">=-1</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xdith</code></strong></span><span class="initializer">=0</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ydith</code></strong></span><span class="initializer">=0</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-rgb-32-image" title="gtk.gdk.Drawable.draw_rgb_32_image">draw_rgb_32_image</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</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>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dith</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>rgb_buf</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>rowstride</code></strong></span><span class="initializer">=-1</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xdith</code></strong></span><span class="initializer">=0</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>ydith</code></strong></span><span class="initializer">=0</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-gray-image" title="gtk.gdk.Drawable.draw_gray_image">draw_gray_image</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</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>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dith</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>buf</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>rowstride</code></strong></span><span class="initializer">=-1</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--draw-indexed-image" title="gtk.gdk.Drawable.draw_indexed_image">draw_indexed_image</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gc</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>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dith</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>buf</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>rowstride</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>cmap</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkdrawable.html#method-gdkdrawable--cairo-create" title="gtk.gdk.Drawable.cairo_create">cairo_create</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3021754"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
3
3
  +-- <a class="link" href="class-gdkdrawable.html" title="gtk.gdk.Drawable">gtk.gdk.Drawable</a>
4
 
</pre></div><div class="refsect1" lang="en"><a name="id2821709"></a><h2>Attributes</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table cellpadding="5" width="100%" border="0"><colgroup><col><col><col></colgroup><tbody><tr valign="top"><td valign="top">"handle"</td><td valign="top">Read</td><td valign="top">The handle of the MS Windows window associated with
 
4
</pre></div><div class="refsect1" lang="en"><a name="id2951531"></a><h2>Attributes</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table cellpadding="5" width="100%" border="0"><colgroup><col><col><col></colgroup><tbody><tr valign="top"><td valign="top">"handle"</td><td valign="top">Read</td><td valign="top">The handle of the MS Windows window associated with
5
5
the drawable. Not supported on X11.</td></tr><tr valign="top"><td valign="top">"xid"</td><td valign="top">Read</td><td valign="top">The id of the X window available with the
6
 
drawable. Not supported on MS Windows</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="id2744980"></a><h2>Description</h2><p>A <a class="link" href="class-gdkdrawable.html" title="gtk.gdk.Drawable"><code class="classname">gtk.gdk.Drawable</code></a>
 
6
drawable. Not supported on MS Windows</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="id3337229"></a><h2>Description</h2><p>A <a class="link" href="class-gdkdrawable.html" title="gtk.gdk.Drawable"><code class="classname">gtk.gdk.Drawable</code></a>
7
7
is a base class providing drawing primitives for its subclasses: <a class="link" href="class-gdkpixmap.html" title="gtk.gdk.Pixmap"><code class="classname">gtk.gdk.Pixmap</code></a> and
8
8
<a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>.</p><p>These methods provide support for drawing points, lines, arcs and
9
9
text onto what are called 'drawables'. Drawables, as the name suggests, are
18
18
<a class="link" href="class-pangolayout.html" title="pango.Layout"><code class="classname">pango.Layout</code></a>
19
19
as arguments. Use the <a class="link" href="class-gtkwidget.html#method-gtkwidget--create-pango-context" title="gtk.Widget.create_pango_context"><code class="methodname">gtk.Widget.create_pango_context</code>()</a>
20
20
or <a class="link" href="class-gtkwidget.html#method-gtkwidget--create-pango-layout" title="gtk.Widget.create_pango_layout"><code class="methodname">gtk.Widget.create_pango_layout</code>()</a>
21
 
methods to obtain these objects.</p></div><div class="refsect1" lang="en"><a name="id2833598"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gdkdrawable--get-size"></a><h3>gtk.gdk.Drawable.get_size</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_size</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a tuple containing the drawable's width and
 
21
methods to obtain these objects.</p></div><div class="refsect1" lang="en"><a name="id2896875"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gdkdrawable--get-size"></a><h3>gtk.gdk.Drawable.get_size</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_size</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a tuple containing the drawable's width and
22
22
height</td></tr></tbody></table><p>The <code class="methodname">get_size</code>() method returns a tuple
23
23
containing the width and height of the drawable.</p><p>On the X11 platform, if the drawable is a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>, the
24
24
returned size is the size reported in the most-recently-processed configure