Imported Upstream version 2.8.0
This commit is contained in:
@ -31,70 +31,72 @@
|
||||
<div class="refnamediv"><table width="100%"><tr>
|
||||
<td valign="top">
|
||||
<h2><span class="refentrytitle"><a name="libgimpwidgets-GimpEnumWidgets.top_of_page"></a>GimpEnumWidgets</span></h2>
|
||||
<p>GimpEnumWidgets</p>
|
||||
<p>GimpEnumWidgets — A set of utility functions to create widgets
|
||||
based on enums.</p>
|
||||
</td>
|
||||
<td valign="top" align="right"></td>
|
||||
</tr></table></div>
|
||||
<div class="refsynopsisdiv">
|
||||
<a name="libgimpwidgets-GimpEnumWidgets.synopsis"></a><h2>Synopsis</h2>
|
||||
<pre class="synopsis"><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="libgimpwidgets-GimpEnumWidgets.html#gimp-enum-radio-box-new" title="gimp_enum_radio_box_new ()">gimp_enum_radio_box_new</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> enum_type</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> callback</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> callback_data</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> **first_button</code></em>);
|
||||
<a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="libgimpwidgets-GimpEnumWidgets.html#gimp-enum-radio-box-new-with-range" title="gimp_enum_radio_box_new_with_range ()">gimp_enum_radio_box_new_with_range</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> enum_type</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> minimum</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> maximum</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> callback</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> callback_data</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> **first_button</code></em>);
|
||||
<a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="libgimpwidgets-GimpEnumWidgets.html#gimp-enum-radio-frame-new" title="gimp_enum_radio_frame_new ()">gimp_enum_radio_frame_new</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> enum_type</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> *label_widget</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> callback</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> callback_data</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> **first_button</code></em>);
|
||||
<a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="libgimpwidgets-GimpEnumWidgets.html#gimp-enum-radio-frame-new-with-range" title="gimp_enum_radio_frame_new_with_range ()">gimp_enum_radio_frame_new_with_range</a>
|
||||
(<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> enum_type</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> minimum</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> maximum</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> *label_widget</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> callback</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> callback_data</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> **first_button</code></em>);
|
||||
<a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="libgimpwidgets-GimpEnumWidgets.html#gimp-enum-stock-box-new" title="gimp_enum_stock_box_new ()">gimp_enum_stock_box_new</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> enum_type</code></em>,
|
||||
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_prefix</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/gtk-Themeable-Stock-Images.html#GtkIconSize"><span class="type">GtkIconSize</span></a> icon_size</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> callback</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> callback_data</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> **first_button</code></em>);
|
||||
<a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="libgimpwidgets-GimpEnumWidgets.html#gimp-enum-stock-box-new-with-range" title="gimp_enum_stock_box_new_with_range ()">gimp_enum_stock_box_new_with_range</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> enum_type</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> minimum</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> maximum</code></em>,
|
||||
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_prefix</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/gtk-Themeable-Stock-Images.html#GtkIconSize"><span class="type">GtkIconSize</span></a> icon_size</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> callback</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> callback_data</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> **first_button</code></em>);
|
||||
<pre class="synopsis"><span class="returnvalue">GtkWidget</span> * <a class="link" href="libgimpwidgets-GimpEnumWidgets.html#gimp-enum-radio-box-new" title="gimp_enum_radio_box_new ()">gimp_enum_radio_box_new</a> (<em class="parameter"><code><span class="type">GType</span> enum_type</code></em>,
|
||||
<em class="parameter"><code><span class="type">GCallback</span> callback</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> callback_data</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkWidget</span> **first_button</code></em>);
|
||||
<span class="returnvalue">GtkWidget</span> * <a class="link" href="libgimpwidgets-GimpEnumWidgets.html#gimp-enum-radio-box-new-with-range" title="gimp_enum_radio_box_new_with_range ()">gimp_enum_radio_box_new_with_range</a> (<em class="parameter"><code><span class="type">GType</span> enum_type</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> minimum</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> maximum</code></em>,
|
||||
<em class="parameter"><code><span class="type">GCallback</span> callback</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> callback_data</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkWidget</span> **first_button</code></em>);
|
||||
<span class="returnvalue">GtkWidget</span> * <a class="link" href="libgimpwidgets-GimpEnumWidgets.html#gimp-enum-radio-frame-new" title="gimp_enum_radio_frame_new ()">gimp_enum_radio_frame_new</a> (<em class="parameter"><code><span class="type">GType</span> enum_type</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkWidget</span> *label_widget</code></em>,
|
||||
<em class="parameter"><code><span class="type">GCallback</span> callback</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> callback_data</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkWidget</span> **first_button</code></em>);
|
||||
<span class="returnvalue">GtkWidget</span> * <a class="link" href="libgimpwidgets-GimpEnumWidgets.html#gimp-enum-radio-frame-new-with-range" title="gimp_enum_radio_frame_new_with_range ()">gimp_enum_radio_frame_new_with_range</a>
|
||||
(<em class="parameter"><code><span class="type">GType</span> enum_type</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> minimum</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> maximum</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkWidget</span> *label_widget</code></em>,
|
||||
<em class="parameter"><code><span class="type">GCallback</span> callback</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> callback_data</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkWidget</span> **first_button</code></em>);
|
||||
<span class="returnvalue">GtkWidget</span> * <a class="link" href="libgimpwidgets-GimpEnumWidgets.html#gimp-enum-stock-box-new" title="gimp_enum_stock_box_new ()">gimp_enum_stock_box_new</a> (<em class="parameter"><code><span class="type">GType</span> enum_type</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *stock_prefix</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkIconSize</span> icon_size</code></em>,
|
||||
<em class="parameter"><code><span class="type">GCallback</span> callback</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> callback_data</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkWidget</span> **first_button</code></em>);
|
||||
<span class="returnvalue">GtkWidget</span> * <a class="link" href="libgimpwidgets-GimpEnumWidgets.html#gimp-enum-stock-box-new-with-range" title="gimp_enum_stock_box_new_with_range ()">gimp_enum_stock_box_new_with_range</a> (<em class="parameter"><code><span class="type">GType</span> enum_type</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> minimum</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> maximum</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *stock_prefix</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkIconSize</span> icon_size</code></em>,
|
||||
<em class="parameter"><code><span class="type">GCallback</span> callback</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> callback_data</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkWidget</span> **first_button</code></em>);
|
||||
<span class="returnvalue">void</span> <a class="link" href="libgimpwidgets-GimpEnumWidgets.html#gimp-enum-stock-box-set-child-padding" title="gimp_enum_stock_box_set_child_padding ()">gimp_enum_stock_box_set_child_padding</a>
|
||||
(<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> *stock_box</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xpad</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ypad</code></em>);
|
||||
(<em class="parameter"><code><span class="type">GtkWidget</span> *stock_box</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> xpad</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> ypad</code></em>);
|
||||
</pre>
|
||||
</div>
|
||||
<div class="refsect1">
|
||||
<a name="libgimpwidgets-GimpEnumWidgets.description"></a><h2>Description</h2>
|
||||
<p>
|
||||
A set of utility functions to create widgets based on enums.
|
||||
</p>
|
||||
</div>
|
||||
<div class="refsect1">
|
||||
<a name="libgimpwidgets-GimpEnumWidgets.details"></a><h2>Details</h2>
|
||||
<div class="refsect2">
|
||||
<a name="gimp-enum-radio-box-new"></a><h3>gimp_enum_radio_box_new ()</h3>
|
||||
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * gimp_enum_radio_box_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> enum_type</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> callback</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> callback_data</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> **first_button</code></em>);</pre>
|
||||
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * gimp_enum_radio_box_new (<em class="parameter"><code><span class="type">GType</span> enum_type</code></em>,
|
||||
<em class="parameter"><code><span class="type">GCallback</span> callback</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> callback_data</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkWidget</span> **first_button</code></em>);</pre>
|
||||
<p>
|
||||
Creates a new group of <a href="http://library.gnome.org/devel/gtk3/GtkRadioButton.html"><span class="type">GtkRadioButtons</span></a> representing the enum
|
||||
Creates a new group of <span class="type">GtkRadioButtons</span> representing the enum
|
||||
values. A group of radiobuttons is a good way to represent enums
|
||||
with up to three or four values. Often it is better to use a
|
||||
<a class="link" href="GimpEnumComboBox.html" title="GimpEnumComboBox"><span class="type">GimpEnumComboBox</span></a> instead.
|
||||
@ -104,12 +106,12 @@ with up to three or four values. Often it is better to use a
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>enum_type</code></em> :</span></p></td>
|
||||
<td>the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of an enum.</td>
|
||||
<td>the <span class="type">GType</span> of an enum.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
|
||||
<td>a callback to connect to the "toggled" signal of each
|
||||
<a href="http://library.gnome.org/devel/gtk3/GtkRadioButton.html"><span class="type">GtkRadioButton</span></a> that is created.</td>
|
||||
<span class="type">GtkRadioButton</span> that is created.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>callback_data</code></em> :</span></p></td>
|
||||
@ -121,7 +123,7 @@ with up to three or four values. Often it is better to use a
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||||
<td>a new <a href="http://library.gnome.org/devel/gtk3/GtkVBox.html"><span class="type">GtkVBox</span></a> holding a group of <a href="http://library.gnome.org/devel/gtk3/GtkRadioButton.html"><span class="type">GtkRadioButtons</span></a>.</td>
|
||||
<td>a new <span class="type">GtkVBox</span> holding a group of <span class="type">GtkRadioButtons</span>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
@ -130,12 +132,12 @@ with up to three or four values. Often it is better to use a
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gimp-enum-radio-box-new-with-range"></a><h3>gimp_enum_radio_box_new_with_range ()</h3>
|
||||
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * gimp_enum_radio_box_new_with_range (<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> enum_type</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> minimum</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> maximum</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> callback</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> callback_data</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> **first_button</code></em>);</pre>
|
||||
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * gimp_enum_radio_box_new_with_range (<em class="parameter"><code><span class="type">GType</span> enum_type</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> minimum</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> maximum</code></em>,
|
||||
<em class="parameter"><code><span class="type">GCallback</span> callback</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> callback_data</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkWidget</span> **first_button</code></em>);</pre>
|
||||
<p>
|
||||
Just like <a class="link" href="libgimpwidgets-GimpEnumWidgets.html#gimp-enum-radio-box-new" title="gimp_enum_radio_box_new ()"><code class="function">gimp_enum_radio_box_new()</code></a>, this function creates a group
|
||||
of radio buttons, but it allows to limit the range of available
|
||||
@ -146,12 +148,20 @@ enum values.
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>enum_type</code></em> :</span></p></td>
|
||||
<td>the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of an enum.</td>
|
||||
<td>the <span class="type">GType</span> of an enum.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>minimum</code></em> :</span></p></td>
|
||||
<td>the minimum enum value</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>maximum</code></em> :</span></p></td>
|
||||
<td>the maximum enum value</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
|
||||
<td>a callback to connect to the "toggled" signal of each
|
||||
<a href="http://library.gnome.org/devel/gtk3/GtkRadioButton.html"><span class="type">GtkRadioButton</span></a> that is created.</td>
|
||||
<span class="type">GtkRadioButton</span> that is created.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>callback_data</code></em> :</span></p></td>
|
||||
@ -163,7 +173,7 @@ enum values.
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||||
<td>a new <a href="http://library.gnome.org/devel/gtk3/GtkVBox.html"><span class="type">GtkVBox</span></a> holding a group of <a href="http://library.gnome.org/devel/gtk3/GtkRadioButton.html"><span class="type">GtkRadioButtons</span></a>.</td>
|
||||
<td>a new <span class="type">GtkVBox</span> holding a group of <span class="type">GtkRadioButtons</span>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
@ -172,21 +182,21 @@ enum values.
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gimp-enum-radio-frame-new"></a><h3>gimp_enum_radio_frame_new ()</h3>
|
||||
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * gimp_enum_radio_frame_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> enum_type</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> *label_widget</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> callback</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> callback_data</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> **first_button</code></em>);</pre>
|
||||
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * gimp_enum_radio_frame_new (<em class="parameter"><code><span class="type">GType</span> enum_type</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkWidget</span> *label_widget</code></em>,
|
||||
<em class="parameter"><code><span class="type">GCallback</span> callback</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> callback_data</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkWidget</span> **first_button</code></em>);</pre>
|
||||
<p>
|
||||
Calls <a class="link" href="libgimpwidgets-GimpEnumWidgets.html#gimp-enum-radio-box-new" title="gimp_enum_radio_box_new ()"><code class="function">gimp_enum_radio_box_new()</code></a> and puts the resulting vbox into a
|
||||
<a href="http://library.gnome.org/devel/gtk3/GtkFrame.html"><span class="type">GtkFrame</span></a>.
|
||||
<span class="type">GtkFrame</span>.
|
||||
</p>
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>enum_type</code></em> :</span></p></td>
|
||||
<td>the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of an enum.</td>
|
||||
<td>the <span class="type">GType</span> of an enum.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>label_widget</code></em> :</span></p></td>
|
||||
@ -196,7 +206,7 @@ hold the radio box.</td>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
|
||||
<td>a callback to connect to the "toggled" signal of each
|
||||
<a href="http://library.gnome.org/devel/gtk3/GtkRadioButton.html"><span class="type">GtkRadioButton</span></a> that is created.</td>
|
||||
<span class="type">GtkRadioButton</span> that is created.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>callback_data</code></em> :</span></p></td>
|
||||
@ -208,7 +218,7 @@ hold the radio box.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||||
<td>a new <a href="http://library.gnome.org/devel/gtk3/GtkFrame.html"><span class="type">GtkFrame</span></a> holding a group of <a href="http://library.gnome.org/devel/gtk3/GtkRadioButton.html"><span class="type">GtkRadioButtons</span></a>.</td>
|
||||
<td>a new <span class="type">GtkFrame</span> holding a group of <span class="type">GtkRadioButtons</span>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
@ -217,24 +227,32 @@ hold the radio box.</td>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gimp-enum-radio-frame-new-with-range"></a><h3>gimp_enum_radio_frame_new_with_range ()</h3>
|
||||
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * gimp_enum_radio_frame_new_with_range
|
||||
(<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> enum_type</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> minimum</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> maximum</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> *label_widget</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> callback</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> callback_data</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> **first_button</code></em>);</pre>
|
||||
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * gimp_enum_radio_frame_new_with_range
|
||||
(<em class="parameter"><code><span class="type">GType</span> enum_type</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> minimum</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> maximum</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkWidget</span> *label_widget</code></em>,
|
||||
<em class="parameter"><code><span class="type">GCallback</span> callback</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> callback_data</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkWidget</span> **first_button</code></em>);</pre>
|
||||
<p>
|
||||
Calls <a class="link" href="libgimpwidgets-GimpEnumWidgets.html#gimp-enum-radio-box-new-with-range" title="gimp_enum_radio_box_new_with_range ()"><code class="function">gimp_enum_radio_box_new_with_range()</code></a> and puts the resulting
|
||||
vbox into a <a href="http://library.gnome.org/devel/gtk3/GtkFrame.html"><span class="type">GtkFrame</span></a>.
|
||||
vbox into a <span class="type">GtkFrame</span>.
|
||||
</p>
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>enum_type</code></em> :</span></p></td>
|
||||
<td>the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of an enum.</td>
|
||||
<td>the <span class="type">GType</span> of an enum.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>minimum</code></em> :</span></p></td>
|
||||
<td>the minimum enum value</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>maximum</code></em> :</span></p></td>
|
||||
<td>the maximum enum value</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>label_widget</code></em> :</span></p></td>
|
||||
@ -243,7 +261,7 @@ vbox into a <a href="http://library.gnome.org/devel/gtk3/GtkFrame.html"><span cl
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
|
||||
<td>a callback to connect to the "toggled" signal of each
|
||||
<a href="http://library.gnome.org/devel/gtk3/GtkRadioButton.html"><span class="type">GtkRadioButton</span></a> that is created.</td>
|
||||
<span class="type">GtkRadioButton</span> that is created.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>callback_data</code></em> :</span></p></td>
|
||||
@ -255,7 +273,7 @@ vbox into a <a href="http://library.gnome.org/devel/gtk3/GtkFrame.html"><span cl
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||||
<td>a new <a href="http://library.gnome.org/devel/gtk3/GtkFrame.html"><span class="type">GtkFrame</span></a> holding a group of <a href="http://library.gnome.org/devel/gtk3/GtkRadioButton.html"><span class="type">GtkRadioButtons</span></a>.</td>
|
||||
<td>a new <span class="type">GtkFrame</span> holding a group of <span class="type">GtkRadioButtons</span>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
@ -264,12 +282,12 @@ vbox into a <a href="http://library.gnome.org/devel/gtk3/GtkFrame.html"><span cl
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gimp-enum-stock-box-new"></a><h3>gimp_enum_stock_box_new ()</h3>
|
||||
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * gimp_enum_stock_box_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> enum_type</code></em>,
|
||||
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_prefix</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/gtk-Themeable-Stock-Images.html#GtkIconSize"><span class="type">GtkIconSize</span></a> icon_size</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> callback</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> callback_data</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> **first_button</code></em>);</pre>
|
||||
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * gimp_enum_stock_box_new (<em class="parameter"><code><span class="type">GType</span> enum_type</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *stock_prefix</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkIconSize</span> icon_size</code></em>,
|
||||
<em class="parameter"><code><span class="type">GCallback</span> callback</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> callback_data</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkWidget</span> **first_button</code></em>);</pre>
|
||||
<p>
|
||||
Creates a horizontal box of radio buttons with stock icons. The
|
||||
stock_id for each icon is created by appending the enum_value's
|
||||
@ -280,16 +298,20 @@ nick to the given <em class="parameter"><code>stock_prefix</code></em>.
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>enum_type</code></em> :</span></p></td>
|
||||
<td>the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of an enum.</td>
|
||||
<td>the <span class="type">GType</span> of an enum.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>stock_prefix</code></em> :</span></p></td>
|
||||
<td>the prefix of the group of stock ids to use.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>icon_size</code></em> :</span></p></td>
|
||||
<td>the icon size for the stock icons</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
|
||||
<td>a callback to connect to the "toggled" signal of each
|
||||
<a href="http://library.gnome.org/devel/gtk3/GtkRadioButton.html"><span class="type">GtkRadioButton</span></a> that is created.</td>
|
||||
<span class="type">GtkRadioButton</span> that is created.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>callback_data</code></em> :</span></p></td>
|
||||
@ -301,7 +323,7 @@ nick to the given <em class="parameter"><code>stock_prefix</code></em>.
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||||
<td>a new <span class="type">GtkHbox</span> holding a group of <a href="http://library.gnome.org/devel/gtk3/GtkRadioButton.html"><span class="type">GtkRadioButtons</span></a>.</td>
|
||||
<td>a new <span class="type">GtkHBox</span> holding a group of <span class="type">GtkRadioButtons</span>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
@ -310,14 +332,14 @@ nick to the given <em class="parameter"><code>stock_prefix</code></em>.
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gimp-enum-stock-box-new-with-range"></a><h3>gimp_enum_stock_box_new_with_range ()</h3>
|
||||
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * gimp_enum_stock_box_new_with_range (<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> enum_type</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> minimum</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> maximum</code></em>,
|
||||
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_prefix</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/gtk-Themeable-Stock-Images.html#GtkIconSize"><span class="type">GtkIconSize</span></a> icon_size</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> callback</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> callback_data</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> **first_button</code></em>);</pre>
|
||||
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * gimp_enum_stock_box_new_with_range (<em class="parameter"><code><span class="type">GType</span> enum_type</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> minimum</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> maximum</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *stock_prefix</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkIconSize</span> icon_size</code></em>,
|
||||
<em class="parameter"><code><span class="type">GCallback</span> callback</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> callback_data</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkWidget</span> **first_button</code></em>);</pre>
|
||||
<p>
|
||||
Just like <a class="link" href="libgimpwidgets-GimpEnumWidgets.html#gimp-enum-stock-box-new" title="gimp_enum_stock_box_new ()"><code class="function">gimp_enum_stock_box_new()</code></a>, this function creates a group
|
||||
of radio buttons, but it allows to limit the range of available
|
||||
@ -328,16 +350,28 @@ enum values.
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>enum_type</code></em> :</span></p></td>
|
||||
<td>the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of an enum.</td>
|
||||
<td>the <span class="type">GType</span> of an enum.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>minimum</code></em> :</span></p></td>
|
||||
<td>the minumim enum value</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>maximum</code></em> :</span></p></td>
|
||||
<td>the maximum enum value</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>stock_prefix</code></em> :</span></p></td>
|
||||
<td>the prefix of the group of stock ids to use.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>icon_size</code></em> :</span></p></td>
|
||||
<td>the icon size for the stock icons</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
|
||||
<td>a callback to connect to the "toggled" signal of each
|
||||
<a href="http://library.gnome.org/devel/gtk3/GtkRadioButton.html"><span class="type">GtkRadioButton</span></a> that is created.</td>
|
||||
<span class="type">GtkRadioButton</span> that is created.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>callback_data</code></em> :</span></p></td>
|
||||
@ -349,7 +383,7 @@ enum values.
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||||
<td>a new <span class="type">GtkHbox</span> holding a group of <a href="http://library.gnome.org/devel/gtk3/GtkRadioButton.html"><span class="type">GtkRadioButtons</span></a>.</td>
|
||||
<td>a new <span class="type">GtkHBox</span> holding a group of <span class="type">GtkRadioButtons</span>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
@ -359,9 +393,9 @@ enum values.
|
||||
<div class="refsect2">
|
||||
<a name="gimp-enum-stock-box-set-child-padding"></a><h3>gimp_enum_stock_box_set_child_padding ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span> gimp_enum_stock_box_set_child_padding
|
||||
(<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> *stock_box</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xpad</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ypad</code></em>);</pre>
|
||||
(<em class="parameter"><code><span class="type">GtkWidget</span> *stock_box</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> xpad</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> ypad</code></em>);</pre>
|
||||
<p>
|
||||
Sets the padding of all buttons in a box created by
|
||||
<a class="link" href="libgimpwidgets-GimpEnumWidgets.html#gimp-enum-stock-box-new" title="gimp_enum_stock_box_new ()"><code class="function">gimp_enum_stock_box_new()</code></a>.
|
||||
|
Reference in New Issue
Block a user