3
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4
<title>gimpgradientmenu</title>
5
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
6
<link rel="start" href="index.html" title="GIMP Library Reference Manual">
7
<link rel="up" href="libgimpui.html" title="Part III. GIMP User Interface Library">
8
<link rel="prev" href="libgimp-gimpfontmenu.html" title="gimpfontmenu">
9
<link rel="next" href="libgimp-gimppalettemenu.html" title="gimppalettemenu">
10
<meta name="generator" content="GTK-Doc V1.4 (XML mode)">
11
<link rel="stylesheet" href="style.css" type="text/css">
12
<link rel="part" href="gimpdefinitions.html" title="Part I. GIMP Constants">
13
<link rel="part" href="libgimp.html" title="Part II. GIMP Library">
14
<link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images">
15
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties">
16
<link rel="chapter" href="libgimp-data.html" title="Data Objects">
17
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
18
<link rel="part" href="libgimpui.html" title="Part III. GIMP User Interface Library">
19
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
21
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
22
<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
23
<td><a accesskey="p" href="libgimp-gimpfontmenu.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
24
<td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
25
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
26
<th width="100%" align="center">GIMP Library Reference Manual</th>
27
<td><a accesskey="n" href="libgimp-gimppalettemenu.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
29
<div class="refentry" lang="en">
30
<a name="libgimp-gimpgradientmenu"></a><div class="titlepage"></div>
31
<div class="refnamediv"><table width="100%"><tr>
33
<h2><span class="refentrytitle">gimpgradientmenu</span></h2>
34
<p>gimpgradientmenu — A widget for selecting gradients.</p>
36
<td valign="top" align="right"></td>
38
<div class="refsynopsisdiv">
40
<pre class="synopsis">
45
href="../gtk/GtkWidget.html"
46
>GtkWidget</a>* <a href="libgimp-gimpgradientmenu.html#gimp-gradient-select-widget-new">gimp_gradient_select_widget_new</a> (const gchar *title,
47
const gchar *gradient_name,
48
<a href="libgimp-gimpgradientselect.html#GimpRunGradientCallback">GimpRunGradientCallback</a> callback,
50
void <a href="libgimp-gimpgradientmenu.html#gimp-gradient-select-widget-close">gimp_gradient_select_widget_close</a>
52
href="../gtk/GtkWidget.html"
53
>GtkWidget</a> *widget);
54
void <a href="libgimp-gimpgradientmenu.html#gimp-gradient-select-widget-set">gimp_gradient_select_widget_set</a> (<a
55
href="../gtk/GtkWidget.html"
56
>GtkWidget</a> *widget,
57
const gchar *gradient_name);
60
<div class="refsect1" lang="en">
61
<a name="id2649226"></a><h2>Description</h2>
63
A widget for selecting gradients.
66
<div class="refsect1" lang="en">
67
<a name="id2649237"></a><h2>Details</h2>
68
<div class="refsect2" lang="en">
69
<a name="id2649243"></a><h3>
70
<a name="gimp-gradient-select-widget-new"></a>gimp_gradient_select_widget_new ()</h3>
71
<a class="indexterm" name="id2649252"></a><pre class="programlisting"><a
72
href="../gtk/GtkWidget.html"
73
>GtkWidget</a>* gimp_gradient_select_widget_new (const gchar *title,
74
const gchar *gradient_name,
75
<a href="libgimp-gimpgradientselect.html#GimpRunGradientCallback">GimpRunGradientCallback</a> callback,
79
href="../gtk/GtkWidget.html"
80
><span class="type">GtkWidget</span></a> that completely controls the selection of
81
a gradient. This widget is suitable for placement in a table in a
86
<div class="variablelist"><table border="0">
87
<col align="left" valign="top">
91
<span class="term"><em class="parameter"><code>title</code></em> :</span></td>
92
<td> Title of the dialog to use or <code class="literal">NULL</code> to use the default title.
97
<span class="term"><em class="parameter"><code>gradient_name</code></em> :</span></td>
98
<td> Initial gradient name or <code class="literal">NULL</code> to use current selection.
103
<span class="term"><em class="parameter"><code>callback</code></em> :</span></td>
104
<td> A function to call when the selected gradient changes.
109
<span class="term"><em class="parameter"><code>data</code></em> :</span></td>
110
<td> A pointer to arbitary data to be used in the call to
111
<em class="parameter"><code>callback</code></em>.
116
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
118
href="../gtk/GtkWidget.html"
119
><span class="type">GtkWidget</span></a> that you can use in your UI.
126
<div class="refsect2" lang="en">
127
<a name="id2649408"></a><h3>
128
<a name="gimp-gradient-select-widget-close"></a>gimp_gradient_select_widget_close ()</h3>
129
<a class="indexterm" name="id2649417"></a><pre class="programlisting">void gimp_gradient_select_widget_close
131
href="../gtk/GtkWidget.html"
132
>GtkWidget</a> *widget);</pre>
134
Closes the popup window associated with <em class="parameter"><code>widget</code></em>.</p>
138
<div class="variablelist"><table border="0">
139
<col align="left" valign="top">
142
<span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
143
<td> A gradient select widget.
149
<div class="refsect2" lang="en">
150
<a name="id2649472"></a><h3>
151
<a name="gimp-gradient-select-widget-set"></a>gimp_gradient_select_widget_set ()</h3>
152
<a class="indexterm" name="id2646473"></a><pre class="programlisting">void gimp_gradient_select_widget_set (<a
153
href="../gtk/GtkWidget.html"
154
>GtkWidget</a> *widget,
155
const gchar *gradient_name);</pre>
157
Sets the current gradient for the gradient select widget. Calls
158
the callback function if one was supplied in the call to
159
<a href="libgimp-gimpgradientmenu.html#gimp-gradient-select-widget-new"><code class="function">gimp_gradient_select_widget_new()</code></a>.</p>
163
<div class="variablelist"><table border="0">
164
<col align="left" valign="top">
168
<span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
169
<td> A gradient select widget.
174
<span class="term"><em class="parameter"><code>gradient_name</code></em> :</span></td>
175
<td> Gradient name to set.
183
<table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle">
184
<td align="left"><a accesskey="p" href="libgimp-gimpfontmenu.html"><b><< gimpfontmenu</b></a></td>
185
<td align="right"><a accesskey="n" href="libgimp-gimppalettemenu.html"><b>gimppalettemenu >></b></a></td>