1 2 3 4 5 6 7 8 9 10
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gtk.Border</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="previous" href="class-gtkbin.html" title="gtk.Bin"><link rel="next" href="class-gtkbox.html" title="gtk.Box"></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.Border</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkbin.html">Prev</a></td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"><a accesskey="n" href="class-gtkbox.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkborder"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>gtk.Border</h2><p>gtk.Border — an object containing data for a border (new in PyGTK 2.4)</p></div><div class="refsect1" lang="en"><a name="id3065016"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.Border</span></span>(<span class="ooclass"><span class="classname">gobject.GBoxed</span></span>):
<code class="methodsynopsis"> def <span class="methodname"><a href="class-gtkborder.html#method-gtkborder--copy" title="gtk.Border.copy">copy</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a href="class-gtkborder.html#method-gtkborder--free" title="gtk.Border.free">free</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3192373"></a><h2>Description</h2><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This object is available in PyGTK 2.4 and above.</p></div><p>A <a href="class-gtkborder.html" title="gtk.Border"><tt class="classname">gtk.Border</tt></a> object
contains the integer values for the left, right, top and bottom values of a
border. <a href="class-gtkborder.html" title="gtk.Border"><tt class="classname">gtk.Border</tt></a> is used
in <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a>
specifications. <a href="class-gtkborder.html" title="gtk.Border"><tt class="classname">gtk.Border</tt></a> has two
methods: <a href="class-gtkborder.html#method-gtkborder--copy" title="gtk.Border.copy"><tt class="methodname">copy</tt>()</a> and
<a href="class-gtkborder.html#method-gtkborder--free" title="gtk.Border.free"><tt class="methodname">free</tt>()</a>.</p></div><div class="refsect1" lang="en"><a name="id3305691"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkborder--copy"></a><h3>gtk.Border.copy</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">copy</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a copy of the border.</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.4 and above.</p></div><p>The <tt class="methodname">copy</tt>() method returns a copy of the
border object.</p></div><div class="refsect2" lang="en"><a name="method-gtkborder--free"></a><h3>gtk.Border.free</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">free</span>(<span class="methodparam"></span>)</code></pre></td></tr></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.4 and above.</p></div><p>The <tt class="methodname">free</tt>() method frees the memory used
by the border.</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-gtkbin.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="gtk-class-reference.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="class-gtkbox.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.Bin</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">gtk.Box</td></tr></table></div></body></html>
|