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
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gtk.GammaCurve</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-gtkframe.html" title="gtk.Frame"><link rel="next" href="class-pygtkgenericcellrenderer.html" title="gtk.GenericCellRenderer"></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.GammaCurve</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkframe.html">Prev</a></td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"><a accesskey="n" href="class-pygtkgenericcellrenderer.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkgammacurve"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>gtk.GammaCurve</h2><p>gtk.GammaCurve — subclass of <a href="class-gtkcurve.html" title="gtk.Curve"><tt class="classname">gtk.Curve</tt></a> for editing
gamma curves.</p></div><div class="refsect1" lang="en"><a name="id3427872"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.GammaCurve</span></span>(<span class="ooclass"><span class="classname"><a href="class-gtkvbox.html" title="gtk.VBox">gtk.VBox</a></span></span>):
<code class="constructorsynopsis"> <span class="methodname"><a href="class-gtkgammacurve.html#constructor-gtkgammacurve" title="Constructor">gtk.GammaCurve</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3427909"></a><h2>Ancestry</h2><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="synopsis">+-- <a href="class-gobject.html" title="gobject.GObject">gobject.GObject</a>
+-- <a href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
+-- <a href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
+-- <a href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a>
+-- <a href="class-gtkbox.html" title="gtk.Box">gtk.Box</a>
+-- <a href="class-gtkvbox.html" title="gtk.VBox">gtk.VBox</a>
+-- <a href="class-gtkgammacurve.html" title="gtk.GammaCurve">gtk.GammaCurve</a>
</pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3427955"></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">"table"</td><td valign="top">Read</td><td valign="top">The <a href="class-gtktable.html" title="gtk.Table"><tt class="classname">gtk.Table</tt></a>
containing the <a href="class-gtkgammacurve.html" title="gtk.GammaCurve"><tt class="classname">gtk.GammaCurve</tt></a>
widgets.</td></tr><tr valign="top"><td valign="top">"curve"</td><td valign="top">Read</td><td valign="top">The <a href="class-gtkcurve.html" title="gtk.Curve"><tt class="classname">gtk.Curve</tt></a>
widget.</td></tr><tr valign="top"><td valign="top">"gamma"</td><td valign="top">Read</td><td valign="top">The gamma value (float)</td></tr><tr valign="top"><td valign="top">"gamma_dialog"</td><td valign="top">Read</td><td valign="top">The <a href="class-gtkdialog.html" title="gtk.Dialog"><tt class="classname">gtk.Dialog</tt></a>
that prompts for the gamma value.</td></tr><tr valign="top"><td valign="top">"gamma_text"</td><td valign="top">Read</td><td valign="top">The <a href="class-gtkentry.html" title="gtk.Entry"><tt class="classname">gtk.Entry</tt></a>
containing the gamma value in the gamma dialog</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="id3428109"></a><h2>Description</h2><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This widget is considered too specialized or little-used for
PyGTK, and will in the future be moved to some other package. If your
application needs this widget, feel free to use it, as the widget does work
and is useful in some applications; it's just not of general interest.
However, it will eventually move out of the PyGTK distribution.</p></div><p>The <a href="class-gtkgammacurve.html" title="gtk.GammaCurve"><tt class="classname">gtk.GammaCurve</tt></a>
widget is a variant of <a href="class-gtkcurve.html" title="gtk.Curve"><tt class="classname">gtk.Curve</tt></a>
specifically for editing gamma curves, which are used in graphics
applications such as the <span class="application">Gimp</span>. The <a href="class-gtkgammacurve.html" title="gtk.GammaCurve"><tt class="classname">gtk.GammaCurve</tt></a>
widget shows a curve which the user can edit with the mouse just like a
<a href="class-gtkcurve.html" title="gtk.Curve"><tt class="classname">gtk.Curve</tt></a>
widget. On the right of the curve it also displays 5 buttons, 3 of which
change between the 3 curve modes (spline, linear and free), and the other 2
set the curve to a particular gamma value, or reset it to a straight
line.</p></div><div class="refsect1" lang="en"><a name="constructor-gtkgammacurve"></a><h2>Constructor</h2><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">gtk.GammaCurve</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 new gammacurve widget</td></tr></tbody></table><p>Creates a new <a href="class-gtkgammacurve.html" title="gtk.GammaCurve"><tt class="classname">gtk.GammaCurve</tt></a>
widget.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gtkframe.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-pygtkgenericcellrenderer.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.Frame</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">gtk.GenericCellRenderer</td></tr></table></div></body></html>
|