8
8
<link rel="up" href="SpecialObjects.html" title="Special-purpose features">
9
9
<link rel="prev" href="SpecialObjects.html" title="Special-purpose features">
10
10
<link rel="next" href="GtkGammaCurve.html" title="GtkGammaCurve">
11
<meta name="generator" content="GTK-Doc V1.17.1 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
49
49
#include <gtk/gtk.h>
51
51
struct <a class="link" href="GtkCurve.html#GtkCurve-struct" title="struct GtkCurve">GtkCurve</a>;
52
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkCurve.html#gtk-curve-new" title="gtk_curve_new ()">gtk_curve_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
52
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkCurve.html#gtk-curve-new" title="gtk_curve_new ()">gtk_curve_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
53
53
<span class="returnvalue">void</span> <a class="link" href="GtkCurve.html#gtk-curve-reset" title="gtk_curve_reset ()">gtk_curve_reset</a> (<em class="parameter"><code><a class="link" href="GtkCurve.html" title="GtkCurve"><span class="type">GtkCurve</span></a> *curve</code></em>);
54
54
<span class="returnvalue">void</span> <a class="link" href="GtkCurve.html#gtk-curve-set-gamma" title="gtk_curve_set_gamma ()">gtk_curve_set_gamma</a> (<em class="parameter"><code><a class="link" href="GtkCurve.html" title="GtkCurve"><span class="type">GtkCurve</span></a> *curve</code></em>,
55
<em class="parameter"><code><span class="type">gfloat</span> gamma_</code></em>);
55
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> gamma_</code></em>);
56
56
<span class="returnvalue">void</span> <a class="link" href="GtkCurve.html#gtk-curve-set-range" title="gtk_curve_set_range ()">gtk_curve_set_range</a> (<em class="parameter"><code><a class="link" href="GtkCurve.html" title="GtkCurve"><span class="type">GtkCurve</span></a> *curve</code></em>,
57
<em class="parameter"><code><span class="type">gfloat</span> min_x</code></em>,
58
<em class="parameter"><code><span class="type">gfloat</span> max_x</code></em>,
59
<em class="parameter"><code><span class="type">gfloat</span> min_y</code></em>,
60
<em class="parameter"><code><span class="type">gfloat</span> max_y</code></em>);
57
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> min_x</code></em>,
58
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> max_x</code></em>,
59
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> min_y</code></em>,
60
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> max_y</code></em>);
61
61
<span class="returnvalue">void</span> <a class="link" href="GtkCurve.html#gtk-curve-get-vector" title="gtk_curve_get_vector ()">gtk_curve_get_vector</a> (<em class="parameter"><code><a class="link" href="GtkCurve.html" title="GtkCurve"><span class="type">GtkCurve</span></a> *curve</code></em>,
62
62
<em class="parameter"><code><span class="type">int</span> veclen</code></em>,
63
<em class="parameter"><code><span class="type">gfloat</span> vector[]</code></em>);
63
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> vector[]</code></em>);
64
64
<span class="returnvalue">void</span> <a class="link" href="GtkCurve.html#gtk-curve-set-vector" title="gtk_curve_set_vector ()">gtk_curve_set_vector</a> (<em class="parameter"><code><a class="link" href="GtkCurve.html" title="GtkCurve"><span class="type">GtkCurve</span></a> *curve</code></em>,
65
65
<em class="parameter"><code><span class="type">int</span> veclen</code></em>,
66
<em class="parameter"><code><span class="type">gfloat</span> vector[]</code></em>);
66
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> vector[]</code></em>);
67
67
<span class="returnvalue">void</span> <a class="link" href="GtkCurve.html#gtk-curve-set-curve-type" title="gtk_curve_set_curve_type ()">gtk_curve_set_curve_type</a> (<em class="parameter"><code><a class="link" href="GtkCurve.html" title="GtkCurve"><span class="type">GtkCurve</span></a> *curve</code></em>,
68
68
<em class="parameter"><code><a class="link" href="gtk-Standard-Enumerations.html#GtkCurveType" title="enum GtkCurveType"><span class="type">GtkCurveType</span></a> type</code></em>);
71
71
<div class="refsect1">
72
72
<a name="GtkCurve.object-hierarchy"></a><h2>Object Hierarchy</h2>
73
73
<pre class="synopsis">
75
+----GInitiallyUnowned
74
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
75
+----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
76
76
+----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
77
77
+----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
78
78
+----<a class="link" href="GtkDrawingArea.html" title="GtkDrawingArea">GtkDrawingArea</a>
89
89
<a name="GtkCurve.properties"></a><h2>Properties</h2>
90
90
<pre class="synopsis">
91
91
"<a class="link" href="GtkCurve.html#GtkCurve--curve-type" title='The "curve-type" property'>curve-type</a>" <a class="link" href="gtk-Standard-Enumerations.html#GtkCurveType" title="enum GtkCurveType"><span class="type">GtkCurveType</span></a> : Read / Write
92
"<a class="link" href="GtkCurve.html#GtkCurve--max-x" title='The "max-x" property'>max-x</a>" <span class="type">gfloat</span> : Read / Write
93
"<a class="link" href="GtkCurve.html#GtkCurve--max-y" title='The "max-y" property'>max-y</a>" <span class="type">gfloat</span> : Read / Write
94
"<a class="link" href="GtkCurve.html#GtkCurve--min-x" title='The "min-x" property'>min-x</a>" <span class="type">gfloat</span> : Read / Write
95
"<a class="link" href="GtkCurve.html#GtkCurve--min-y" title='The "min-y" property'>min-y</a>" <span class="type">gfloat</span> : Read / Write
92
"<a class="link" href="GtkCurve.html#GtkCurve--max-x" title='The "max-x" property'>max-x</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> : Read / Write
93
"<a class="link" href="GtkCurve.html#GtkCurve--max-y" title='The "max-y" property'>max-y</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> : Read / Write
94
"<a class="link" href="GtkCurve.html#GtkCurve--min-x" title='The "min-x" property'>min-x</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> : Read / Write
95
"<a class="link" href="GtkCurve.html#GtkCurve--min-y" title='The "min-y" property'>min-y</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> : Read / Write
98
98
<div class="refsect1">
99
99
<a name="GtkCurve.signals"></a><h2>Signals</h2>
100
100
<pre class="synopsis">
101
"<a class="link" href="GtkCurve.html#GtkCurve-curve-type-changed" title='The "curve-type-changed" signal'>curve-type-changed</a>" : <code class="literal">Run First</code>
101
"<a class="link" href="GtkCurve.html#GtkCurve-curve-type-changed" title='The "curve-type-changed" signal'>curve-type-changed</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a>
104
104
<div class="refsect1">
137
137
<div class="refsect2">
138
138
<a name="gtk-curve-new"></a><h3>gtk_curve_new ()</h3>
139
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * gtk_curve_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
139
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * gtk_curve_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
140
140
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
141
141
<h3 class="title">Warning</h3>
142
142
<p><code class="literal">gtk_curve_new</code> has been deprecated since version 2.20 and should not be used in newly-written code. Don't use this widget anymore.</p>
177
177
<div class="refsect2">
178
178
<a name="gtk-curve-set-gamma"></a><h3>gtk_curve_set_gamma ()</h3>
179
179
<pre class="programlisting"><span class="returnvalue">void</span> gtk_curve_set_gamma (<em class="parameter"><code><a class="link" href="GtkCurve.html" title="GtkCurve"><span class="type">GtkCurve</span></a> *curve</code></em>,
180
<em class="parameter"><code><span class="type">gfloat</span> gamma_</code></em>);</pre>
180
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> gamma_</code></em>);</pre>
181
181
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
182
182
<h3 class="title">Warning</h3>
183
183
<p><code class="literal">gtk_curve_set_gamma</code> has been deprecated since version 2.20 and should not be used in newly-written code. Don't use this widget anymore.</p>
207
207
<div class="refsect2">
208
208
<a name="gtk-curve-set-range"></a><h3>gtk_curve_set_range ()</h3>
209
209
<pre class="programlisting"><span class="returnvalue">void</span> gtk_curve_set_range (<em class="parameter"><code><a class="link" href="GtkCurve.html" title="GtkCurve"><span class="type">GtkCurve</span></a> *curve</code></em>,
210
<em class="parameter"><code><span class="type">gfloat</span> min_x</code></em>,
211
<em class="parameter"><code><span class="type">gfloat</span> max_x</code></em>,
212
<em class="parameter"><code><span class="type">gfloat</span> min_y</code></em>,
213
<em class="parameter"><code><span class="type">gfloat</span> max_y</code></em>);</pre>
210
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> min_x</code></em>,
211
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> max_x</code></em>,
212
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> min_y</code></em>,
213
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> max_y</code></em>);</pre>
214
214
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
215
215
<h3 class="title">Warning</h3>
216
216
<p><code class="literal">gtk_curve_set_range</code> has been deprecated since version 2.20 and should not be used in newly-written code. Don't use this widget anymore.</p>
250
250
<a name="gtk-curve-get-vector"></a><h3>gtk_curve_get_vector ()</h3>
251
251
<pre class="programlisting"><span class="returnvalue">void</span> gtk_curve_get_vector (<em class="parameter"><code><a class="link" href="GtkCurve.html" title="GtkCurve"><span class="type">GtkCurve</span></a> *curve</code></em>,
252
252
<em class="parameter"><code><span class="type">int</span> veclen</code></em>,
253
<em class="parameter"><code><span class="type">gfloat</span> vector[]</code></em>);</pre>
253
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> vector[]</code></em>);</pre>
254
254
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
255
255
<h3 class="title">Warning</h3>
256
256
<p><code class="literal">gtk_curve_get_vector</code> has been deprecated since version 2.20 and should not be used in newly-written code. Don't use this widget anymore.</p>
281
281
<a name="gtk-curve-set-vector"></a><h3>gtk_curve_set_vector ()</h3>
282
282
<pre class="programlisting"><span class="returnvalue">void</span> gtk_curve_set_vector (<em class="parameter"><code><a class="link" href="GtkCurve.html" title="GtkCurve"><span class="type">GtkCurve</span></a> *curve</code></em>,
283
283
<em class="parameter"><code><span class="type">int</span> veclen</code></em>,
284
<em class="parameter"><code><span class="type">gfloat</span> vector[]</code></em>);</pre>
284
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> vector[]</code></em>);</pre>
285
285
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
286
286
<h3 class="title">Warning</h3>
287
287
<p><code class="literal">gtk_curve_set_vector</code> has been deprecated since version 2.20 and should not be used in newly-written code. Don't use this widget anymore.</p>
349
349
<div class="refsect2">
350
350
<a name="GtkCurve--max-x"></a><h3>The <code class="literal">"max-x"</code> property</h3>
351
<pre class="programlisting"> "max-x" <span class="type">gfloat</span> : Read / Write</pre>
351
<pre class="programlisting"> "max-x" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> : Read / Write</pre>
352
352
<p>Maximum possible X value.</p>
353
353
<p>Default value: 1</p>
356
356
<div class="refsect2">
357
357
<a name="GtkCurve--max-y"></a><h3>The <code class="literal">"max-y"</code> property</h3>
358
<pre class="programlisting"> "max-y" <span class="type">gfloat</span> : Read / Write</pre>
358
<pre class="programlisting"> "max-y" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> : Read / Write</pre>
359
359
<p>Maximum possible value for Y.</p>
360
360
<p>Default value: 1</p>
363
363
<div class="refsect2">
364
364
<a name="GtkCurve--min-x"></a><h3>The <code class="literal">"min-x"</code> property</h3>
365
<pre class="programlisting"> "min-x" <span class="type">gfloat</span> : Read / Write</pre>
365
<pre class="programlisting"> "min-x" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> : Read / Write</pre>
366
366
<p>Minimum possible value for X.</p>
367
367
<p>Default value: 0</p>
370
370
<div class="refsect2">
371
371
<a name="GtkCurve--min-y"></a><h3>The <code class="literal">"min-y"</code> property</h3>
372
<pre class="programlisting"> "min-y" <span class="type">gfloat</span> : Read / Write</pre>
372
<pre class="programlisting"> "min-y" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> : Read / Write</pre>
373
373
<p>Minimum possible value for Y.</p>
374
374
<p>Default value: 0</p>
379
379
<div class="refsect2">
380
380
<a name="GtkCurve-curve-type-changed"></a><h3>The <code class="literal">"curve-type-changed"</code> signal</h3>
381
381
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GtkCurve.html" title="GtkCurve"><span class="type">GtkCurve</span></a> *curve,
382
<span class="type">gpointer</span> user_data) : <code class="literal">Run First</code></pre>
382
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre>
384
384
Emitted when the curve type has been changed.
385
385
The curve type can be changed explicitly with a call to