This file is indexed.

/usr/share/gtk-doc/html/pygtk/class-gdkregion.html is in python-gtk2-doc 2.24.0-5.1ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.gdk.Region</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gdk-class-reference.html" title="The gtk.gdk Class Reference"><link rel="prev" href="class-gdkrectangle.html" title="gtk.gdk.Rectangle"><link rel="next" href="class-gdkscreen.html" title="gtk.gdk.Screen"></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.Region</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gdkrectangle.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-gdkscreen.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.gdk.Region"><a name="class-gdkregion"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.gdk.Region</h2><p>gtk.gdk.Region — an object representing a set of pixels on the screen (new in
    PyGTK 2.10)</p></div><div class="refsect1" title="Synopsis"><a name="id3418262"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.gdk.Region</span></span>(<span class="ooclass"><span class="classname">gobject.GBoxed</span></span>):
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gdkregion.html#constructor-gdkregion" title="Constructor">gtk.gdk.Region</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkregion.html#method-gdkregion--get-clipbox" title="gtk.gdk.Region.get_clipbox">get_clipbox</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkregion.html#method-gdkregion--empty" title="gtk.gdk.Region.empty">empty</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkregion.html#method-gdkregion--equal" title="gtk.gdk.Region.equal">equal</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>other</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkregion.html#method-gdkregion--point-in" title="gtk.gdk.Region.point_in">point_in</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>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkregion.html#method-gdkregion--rect-in" title="gtk.gdk.Region.rect_in">rect_in</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rect</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkregion.html#method-gdkregion--copy" title="gtk.gdk.Region.copy">copy</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkregion.html#method-gdkregion--offset" title="gtk.gdk.Region.offset">offset</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>dx</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dy</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkregion.html#method-gdkregion--shrink" title="gtk.gdk.Region.shrink">shrink</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>dx</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dy</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkregion.html#method-gdkregion--union-with-rect" title="gtk.gdk.Region.union_with_rect">union_with_rect</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rect</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkregion.html#method-gdkregion--intersect" title="gtk.gdk.Region.intersect">intersect</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>source2</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkregion.html#method-gdkregion--union" title="gtk.gdk.Region.union">union</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>source2</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkregion.html#method-gdkregion--subtract" title="gtk.gdk.Region.subtract">subtract</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>source2</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkregion.html#method-gdkregion--xor" title="gtk.gdk.Region.xor">xor</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>source2</code></strong></span></span>)</code><br></pre></td></tr></table><pre class="programlisting">
<span class="bold"><strong>Functions</strong></span>

<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gdkregion.html#function-gdk--region-rectangle" title="gtk.gdk.region_rectangle">gtk.gdk.region_rectangle</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rectangle</code></strong></span></span>)</code></pre></div><div class="refsect1" title="Description"><a name="id3156858"></a><h2>Description</h2><p>A <a class="link" href="class-gdkregion.html" title="gtk.gdk.Region"><code class="classname">gtk.gdk.Region</code></a>
    is an objrect holding a set of arbitrary pixels, and is usually used for
    clipping graphical operations (see the <a class="link" href="class-gdkgc.html#method-gdkgc--set-clip-region" title="gtk.gdk.GC.set_clip_region"><code class="methodname">gtk.gdk.GC.set_clip_region</code>()</a>
    method).</p><p>
      Starting with PyGTK 2.14 <code class="classname">gtk.gdk.Region</code> objects are
      properly comparable.  By Python rules, regions (being mutable) are now
      unhashable.
    </p></div><div class="refsect1" title="Constructor"><a name="constructor-gdkregion"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.gdk.Region</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 new <a class="link" href="class-gdkregion.html" title="gtk.gdk.Region"><code class="classname">gtk.gdk.Region</code></a>
object</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 constructor is available in PyGTK 2.10 and above.</p></div><p>Creates a new <a class="link" href="class-gdkregion.html" title="gtk.gdk.Region"><code class="classname">gtk.gdk.Region</code></a>.</p></div><div class="refsect1" title="Methods"><a name="id3156964"></a><h2>Methods</h2><div class="refsect2" title="gtk.gdk.Region.get_clipbox"><a name="method-gdkregion--get-clipbox"></a><h3>gtk.gdk.Region.get_clipbox</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_clipbox</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>returns the smallest rectangle which includes all
          of the region.</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.10 and above.</p></div><p>The <code class="methodname">get_clipbox</code>() method returns the
      smallest rectangle which includes the entire region.</p></div><div class="refsect2" title="gtk.gdk.Region.empty"><a name="method-gdkregion--empty"></a><h3>gtk.gdk.Region.empty</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">empty</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>True if the region is empty.</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.10 and above.</p></div><p>The <code class="methodname">empty</code>() method returns True if the
      region is empty.</p></div><div class="refsect2" title="gtk.gdk.Region.equal"><a name="method-gdkregion--equal"></a><h3>gtk.gdk.Region.equal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">equal</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>other</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>other</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkregion.html" title="gtk.gdk.Region"><code class="classname">gtk.gdk.Region</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>True if the region is equal to
	  <em class="parameter"><code>other</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.10 and above.</p></div><p>The <code class="methodname">equal</code>() method returns True if the
      region specified by <em class="parameter"><code>other</code></em> is equal to this
      region.</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Since PyGTK 2.14 Python comparison operator (<code class="literal">==</code>) can be
	  used for the same result.</p></div></div><div class="refsect2" title="gtk.gdk.Region.point_in"><a name="method-gdkregion--point-in"></a><h3>gtk.gdk.Region.point_in</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">point_in</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>x</code></strong> :</span></p></td><td>the x coordinate of a point.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y coordinate of a point.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>True if the point (x,y) is in the
          region.</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.10 and above.</p></div><p>The <code class="methodname"></code>() method returns True if the point
      specified by the coordinates <em class="parameter"><code>x</code></em> and
      <em class="parameter"><code>y</code></em> is in a region.</p></div><div class="refsect2" title="gtk.gdk.Region.rect_in"><a name="method-gdkregion--rect-in"></a><h3>gtk.gdk.Region.rect_in</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">rect_in</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rect</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>rect</code></strong> :</span></p></td><td>a rectangle (<a class="link" href="class-gdkrectangle.html" title="gtk.gdk.Rectangle"><code class="classname">gtk.gdk.Rectangle</code></a>
	  or 4-tuple representing a rectangle) </td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a value indicating whether
	  <em class="parameter"><code>rectangle</code></em> is inside or outside the
	  region.</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.10 and above.</p></div><p>The <code class="methodname">rect_in</code>() method returns one of the
      <a class="xref" href="gdk-constants.html#gdk-overlap-type-constants" title="GDK Overlap Type Constants">GDK Overlap Type Constants</a> depending whether
      the rectangle specified by <em class="parameter"><code>rect</code></em> is inside,
      outside, or partly inside this region.</p></div><div class="refsect2" title="gtk.gdk.Region.copy"><a name="method-gdkregion--copy"></a><h3>gtk.gdk.Region.copy</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">copy</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 new <a class="link" href="class-gdkregion.html" title="gtk.gdk.Region"><code class="classname">gtk.gdk.Region</code></a>
	  identical to the region</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.10 and above.</p></div><p>The <code class="methodname">copy</code>() method returns a new <a class="link" href="class-gdkregion.html" title="gtk.gdk.Region"><code class="classname">gtk.gdk.Region</code></a>
      identical to this region.</p></div><div class="refsect2" title="gtk.gdk.Region.offset"><a name="method-gdkregion--offset"></a><h3>gtk.gdk.Region.offset</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">offset</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>dx</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dy</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>dx</code></strong> :</span></p></td><td>the distance to move this region
          horizontally.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>dy</code></strong> :</span></p></td><td>the distance to move this region
          vertically.</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.10 and above.</p></div><p>The <code class="methodname">offset</code>() method moves this region
      the distance specified by <em class="parameter"><code>dx</code></em> and
      <em class="parameter"><code>dy</code></em>.</p></div><div class="refsect2" title="gtk.gdk.Region.shrink"><a name="method-gdkregion--shrink"></a><h3>gtk.gdk.Region.shrink</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">shrink</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>dx</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dy</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>dx</code></strong> :</span></p></td><td>the number of pixels to shrink this region
          horizontally.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>dy</code></strong> :</span></p></td><td>the number of pixels to shrink this region
          vertically. </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.10 and above.</p></div><p>The <code class="methodname">shrink</code>() method resizes this region
      by the amount specified by <em class="parameter"><code>dx</code></em> and
      <em class="parameter"><code>dy</code></em>. Positive values shrink the region. Negative
      values expand it.</p></div><div class="refsect2" title="gtk.gdk.Region.union_with_rect"><a name="method-gdkregion--union-with-rect"></a><h3>gtk.gdk.Region.union_with_rect</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">union_with_rect</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rect</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>rect</code></strong> :</span></p></td><td>a rectangle</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.10 and above.</p></div><p>The <code class="methodname">union_with_rect</code>() method sets the
      area of this region to the union of the areas of this region and the
      rectangle specified by <em class="parameter"><code>rect</code></em>. The resulting area
      is the set of pixels contained in either the region or
      <em class="parameter"><code>rect</code></em>. The value of <em class="parameter"><code>rect</code></em>
      is either a <a class="link" href="class-gdkrectangle.html" title="gtk.gdk.Rectangle"><code class="classname">gtk.gdk.Rectangle</code></a>
      or a 4-tuple containing the position and size of a rectangle.</p></div><div class="refsect2" title="gtk.gdk.Region.intersect"><a name="method-gdkregion--intersect"></a><h3>gtk.gdk.Region.intersect</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">intersect</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>source2</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>source2</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkregion.html" title="gtk.gdk.Region"><code class="classname">gtk.gdk.Region</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.10 and above.</p></div><p>The <code class="methodname">intersect</code>() method sets the area of
      this region to the intersection of the areas of this region and the
      region specified by <em class="parameter"><code>source2</code></em>. The resulting area
      is the set of pixels contained in both this region and
      <em class="parameter"><code>source2</code></em>.</p></div><div class="refsect2" title="gtk.gdk.Region.union"><a name="method-gdkregion--union"></a><h3>gtk.gdk.Region.union</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">union</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>source2</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>source2</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkregion.html" title="gtk.gdk.Region"><code class="classname">gtk.gdk.Region</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.10 and above.</p></div><p>The <code class="methodname">union</code>() method sets the area of
      this region to the union of the areas of this region and the region
      specified by <em class="parameter"><code>source2</code></em>. The resulting area is the
      set of pixels contained in either this region or
      <em class="parameter"><code>source2</code></em>.</p></div><div class="refsect2" title="gtk.gdk.Region.subtract"><a name="method-gdkregion--subtract"></a><h3>gtk.gdk.Region.subtract</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">subtract</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>source2</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>source2</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkregion.html" title="gtk.gdk.Region"><code class="classname">gtk.gdk.Region</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.10 and above.</p></div><p>The <code class="methodname">subtract</code>() method sets the area of
      this region to the subtraction of the areas of this region and the
      region specified by <em class="parameter"><code>source2</code></em>. The resulting area
      is the set of pixels contained in this region but not in
      <em class="parameter"><code>source2</code></em>.</p></div><div class="refsect2" title="gtk.gdk.Region.xor"><a name="method-gdkregion--xor"></a><h3>gtk.gdk.Region.xor</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">xor</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>source2</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>source2</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkregion.html" title="gtk.gdk.Region"><code class="classname">gtk.gdk.Region</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.10 and above.</p></div><p>The <code class="methodname">xor</code>() method sets the area of this
      region to the exclusive-OR of the areas of this region and the region
      specified by <em class="parameter"><code>source2</code></em>. The resulting area is the
      set of pixels contained in either this region or
      <em class="parameter"><code>source2</code></em> but not both.</p></div></div><div class="refsect1" title="Functions"><a name="id3158268"></a><h2>Functions</h2><div class="refsect2" title="gtk.gdk.region_rectangle"><a name="function-gdk--region-rectangle"></a><h3>gtk.gdk.region_rectangle</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.gdk.region_rectangle</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rectangle</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>rectangle</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkrectangle.html" title="gtk.gdk.Rectangle"><code class="classname">gtk.gdk.Rectangle</code></a>
	  or a 4-tuple representing a rectangle.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new <a class="link" href="class-gdkregion.html" title="gtk.gdk.Region"><code class="classname">gtk.gdk.Region</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 function is available in PyGTK 2.10 and above.</p></div><p>The <code class="function">gtk.gdk.region_rectangle</code>() function
      creates a new <a class="link" href="class-gdkregion.html" title="gtk.gdk.Region"><code class="classname">gtk.gdk.Region</code></a>
      containing the area specified by
      <em class="parameter"><code>rectangle</code></em>.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gdkrectangle.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="gdk-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-gdkscreen.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.gdk.Rectangle </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.gdk.Screen</td></tr></table></div></body></html>