38
38
<a name="GimpBrushSelectButton"></a><div class="titlepage"></div>
39
39
<div class="refnamediv"><table width="100%"><tr>
41
<h2><span class="refentrytitle"><a name="GimpBrushSelectButton.top_of_page"></a>GimpBrushSelectButton</span></h2>
42
<p>GimpBrushSelectButton</p>
41
<h2><span class="refentrytitle"><a name="GimpBrushSelectButton.top_of_page"></a>gimpbrushselectbutton</span></h2>
42
<p>gimpbrushselectbutton — A button that pops up a brush selection dialog.</p>
44
44
<td valign="top" align="right"></td>
45
45
</tr></table></div>
46
46
<div class="refsynopsisdiv">
47
47
<a name="GimpBrushSelectButton.synopsis"></a><h2>Synopsis</h2>
48
48
<pre class="synopsis"> <a class="link" href="GimpBrushSelectButton.html#GimpBrushSelectButton-struct" title="GimpBrushSelectButton">GimpBrushSelectButton</a>;
49
<a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GimpBrushSelectButton.html#gimp-brush-select-button-new" title="gimp_brush_select_button_new ()">gimp_brush_select_button_new</a> (<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> *title</code></em>,
50
<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> *brush_name</code></em>,
51
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> opacity</code></em>,
52
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> spacing</code></em>,
49
<span class="returnvalue">GtkWidget</span> * <a class="link" href="GimpBrushSelectButton.html#gimp-brush-select-button-new" title="gimp_brush_select_button_new ()">gimp_brush_select_button_new</a> (<em class="parameter"><code>const <span class="type">gchar</span> *title</code></em>,
50
<em class="parameter"><code>const <span class="type">gchar</span> *brush_name</code></em>,
51
<em class="parameter"><code><span class="type">gdouble</span> opacity</code></em>,
52
<em class="parameter"><code><span class="type">gint</span> spacing</code></em>,
53
53
<em class="parameter"><code><a class="link" href="libgimp-gimpenums.html#GimpLayerModeEffects" title="enum GimpLayerModeEffects"><span class="type">GimpLayerModeEffects</span></a> paint_mode</code></em>);
54
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GimpBrushSelectButton.html#gimp-brush-select-button-get-brush" title="gimp_brush_select_button_get_brush ()">gimp_brush_select_button_get_brush</a> (<em class="parameter"><code><a class="link" href="GimpBrushSelectButton.html" title="GimpBrushSelectButton"><span class="type">GimpBrushSelectButton</span></a> *button</code></em>,
55
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *opacity</code></em>,
56
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *spacing</code></em>,
54
const <span class="returnvalue">gchar</span> * <a class="link" href="GimpBrushSelectButton.html#gimp-brush-select-button-get-brush" title="gimp_brush_select_button_get_brush ()">gimp_brush_select_button_get_brush</a> (<em class="parameter"><code><a class="link" href="GimpBrushSelectButton.html" title="gimpbrushselectbutton"><span class="type">GimpBrushSelectButton</span></a> *button</code></em>,
55
<em class="parameter"><code><span class="type">gdouble</span> *opacity</code></em>,
56
<em class="parameter"><code><span class="type">gint</span> *spacing</code></em>,
57
57
<em class="parameter"><code><a class="link" href="libgimp-gimpenums.html#GimpLayerModeEffects" title="enum GimpLayerModeEffects"><span class="type">GimpLayerModeEffects</span></a> *paint_mode</code></em>);
58
<span class="returnvalue">void</span> <a class="link" href="GimpBrushSelectButton.html#gimp-brush-select-button-set-brush" title="gimp_brush_select_button_set_brush ()">gimp_brush_select_button_set_brush</a> (<em class="parameter"><code><a class="link" href="GimpBrushSelectButton.html" title="GimpBrushSelectButton"><span class="type">GimpBrushSelectButton</span></a> *button</code></em>,
59
<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> *brush_name</code></em>,
60
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> opacity</code></em>,
61
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> spacing</code></em>,
58
<span class="returnvalue">void</span> <a class="link" href="GimpBrushSelectButton.html#gimp-brush-select-button-set-brush" title="gimp_brush_select_button_set_brush ()">gimp_brush_select_button_set_brush</a> (<em class="parameter"><code><a class="link" href="GimpBrushSelectButton.html" title="gimpbrushselectbutton"><span class="type">GimpBrushSelectButton</span></a> *button</code></em>,
59
<em class="parameter"><code>const <span class="type">gchar</span> *brush_name</code></em>,
60
<em class="parameter"><code><span class="type">gdouble</span> opacity</code></em>,
61
<em class="parameter"><code><span class="type">gint</span> spacing</code></em>,
62
62
<em class="parameter"><code><a class="link" href="libgimp-gimpenums.html#GimpLayerModeEffects" title="enum GimpLayerModeEffects"><span class="type">GimpLayerModeEffects</span></a> paint_mode</code></em>);
65
65
<div class="refsect1">
66
66
<a name="GimpBrushSelectButton.object-hierarchy"></a><h2>Object Hierarchy</h2>
67
67
<pre class="synopsis">
68
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
69
+----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
70
+----<a href="http://library.gnome.org/devel/gtk3/GtkObject.html">GtkObject</a>
71
+----<a href="http://library.gnome.org/devel/gtk3/GtkWidget.html">GtkWidget</a>
72
+----<a href="http://library.gnome.org/devel/gtk3/GtkContainer.html">GtkContainer</a>
73
+----<a href="http://library.gnome.org/devel/gtk3/GtkBox.html">GtkBox</a>
74
+----<a href="http://library.gnome.org/devel/gtk3/GtkHBox.html">GtkHBox</a>
75
+----<a class="link" href="GimpSelectButton.html" title="GimpSelectButton">GimpSelectButton</a>
76
+----GimpBrushSelectButton
69
+----GInitiallyUnowned
74
+----<a class="link" href="GimpSelectButton.html" title="GimpSelectButton">GimpSelectButton</a>
75
+----GimpBrushSelectButton
79
78
<div class="refsect1">
80
79
<a name="GimpBrushSelectButton.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
82
81
GimpBrushSelectButton implements
83
AtkImplementorIface, <a href="http://library.gnome.org/devel/gtk3/GtkBuildable.html">GtkBuildable</a> and <a href="http://library.gnome.org/devel/gtk3/gtk-Orientable.html#GtkOrientable">GtkOrientable</a>.</p>
82
AtkImplementorIface, GtkBuildable and GtkOrientable.</p>
85
84
<div class="refsect1">
86
85
<a name="GimpBrushSelectButton.properties"></a><h2>Properties</h2>
87
86
<pre class="synopsis">
88
"<a class="link" href="GimpBrushSelectButton.html#GimpBrushSelectButton--brush-name" title='The "brush-name" property'>brush-name</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
89
"<a class="link" href="GimpBrushSelectButton.html#GimpBrushSelectButton--brush-opacity" title='The "brush-opacity" property'>brush-opacity</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read / Write
90
"<a class="link" href="GimpBrushSelectButton.html#GimpBrushSelectButton--brush-paint-mode" title='The "brush-paint-mode" property'>brush-paint-mode</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
91
"<a class="link" href="GimpBrushSelectButton.html#GimpBrushSelectButton--brush-spacing" title='The "brush-spacing" property'>brush-spacing</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
92
"<a class="link" href="GimpBrushSelectButton.html#GimpBrushSelectButton--title" title='The "title" property'>title</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only
87
"<a class="link" href="GimpBrushSelectButton.html#GimpBrushSelectButton--brush-name" title='The "brush-name" property'>brush-name</a>" <span class="type">gchar</span>* : Read / Write
88
"<a class="link" href="GimpBrushSelectButton.html#GimpBrushSelectButton--brush-opacity" title='The "brush-opacity" property'>brush-opacity</a>" <span class="type">gdouble</span> : Read / Write
89
"<a class="link" href="GimpBrushSelectButton.html#GimpBrushSelectButton--brush-paint-mode" title='The "brush-paint-mode" property'>brush-paint-mode</a>" <span class="type">gint</span> : Read / Write
90
"<a class="link" href="GimpBrushSelectButton.html#GimpBrushSelectButton--brush-spacing" title='The "brush-spacing" property'>brush-spacing</a>" <span class="type">gint</span> : Read / Write
91
"<a class="link" href="GimpBrushSelectButton.html#GimpBrushSelectButton--title" title='The "title" property'>title</a>" <span class="type">gchar</span>* : Read / Write / Construct Only
95
94
<div class="refsect1">
96
95
<a name="GimpBrushSelectButton.signals"></a><h2>Signals</h2>
97
96
<pre class="synopsis">
98
"<a class="link" href="GimpBrushSelectButton.html#GimpBrushSelectButton-brush-set" title='The "brush-set" signal'>brush-set</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>
97
"<a class="link" href="GimpBrushSelectButton.html#GimpBrushSelectButton-brush-set" title='The "brush-set" signal'>brush-set</a>" : <code class="literal">Run First</code>
101
100
<div class="refsect1">
102
101
<a name="GimpBrushSelectButton.description"></a><h2>Description</h2>
103
A button that pops up a brush selection dialog.
106
106
<div class="refsect1">
115
115
<div class="refsect2">
116
116
<a name="gimp-brush-select-button-new"></a><h3>gimp_brush_select_button_new ()</h3>
117
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * gimp_brush_select_button_new (<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> *title</code></em>,
118
<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> *brush_name</code></em>,
119
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> opacity</code></em>,
120
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> spacing</code></em>,
117
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * gimp_brush_select_button_new (<em class="parameter"><code>const <span class="type">gchar</span> *title</code></em>,
118
<em class="parameter"><code>const <span class="type">gchar</span> *brush_name</code></em>,
119
<em class="parameter"><code><span class="type">gdouble</span> opacity</code></em>,
120
<em class="parameter"><code><span class="type">gint</span> spacing</code></em>,
121
121
<em class="parameter"><code><a class="link" href="libgimp-gimpenums.html#GimpLayerModeEffects" title="enum GimpLayerModeEffects"><span class="type">GimpLayerModeEffects</span></a> paint_mode</code></em>);</pre>
123
Creates a new <a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> that completely controls the selection of
124
a <span class="type">GimpBrush</span>. This widget is suitable for placement in a table in
123
Creates a new <span class="type">GtkWidget</span> that completely controls the selection of
124
a <a href="/local/head/share/gtk-doc/html/app/GimpBrush.html"><span class="type">GimpBrush</span></a>. This widget is suitable for placement in a table in
125
125
a plug-in dialog.
127
127
<div class="variablelist"><table border="0">
198
198
<div class="refsect2">
199
199
<a name="gimp-brush-select-button-set-brush"></a><h3>gimp_brush_select_button_set_brush ()</h3>
200
<pre class="programlisting"><span class="returnvalue">void</span> gimp_brush_select_button_set_brush (<em class="parameter"><code><a class="link" href="GimpBrushSelectButton.html" title="GimpBrushSelectButton"><span class="type">GimpBrushSelectButton</span></a> *button</code></em>,
201
<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> *brush_name</code></em>,
202
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> opacity</code></em>,
203
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> spacing</code></em>,
200
<pre class="programlisting"><span class="returnvalue">void</span> gimp_brush_select_button_set_brush (<em class="parameter"><code><a class="link" href="GimpBrushSelectButton.html" title="gimpbrushselectbutton"><span class="type">GimpBrushSelectButton</span></a> *button</code></em>,
201
<em class="parameter"><code>const <span class="type">gchar</span> *brush_name</code></em>,
202
<em class="parameter"><code><span class="type">gdouble</span> opacity</code></em>,
203
<em class="parameter"><code><span class="type">gint</span> spacing</code></em>,
204
204
<em class="parameter"><code><a class="link" href="libgimp-gimpenums.html#GimpLayerModeEffects" title="enum GimpLayerModeEffects"><span class="type">GimpLayerModeEffects</span></a> paint_mode</code></em>);</pre>
206
206
Sets the current brush and other values for the brush select
285
285
<a name="GimpBrushSelectButton.signal-details"></a><h2>Signal Details</h2>
286
286
<div class="refsect2">
287
287
<a name="GimpBrushSelectButton-brush-set"></a><h3>The <code class="literal">"brush-set"</code> signal</h3>
288
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GimpBrushSelectButton.html" title="GimpBrushSelectButton"><span class="type">GimpBrushSelectButton</span></a> *widget,
289
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *brush_name,
290
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> opacity,
291
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> spacing,
292
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> paint_mode,
293
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width,
294
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height,
295
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> mask_data,
296
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> dialog_closing,
297
<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>
288
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GimpBrushSelectButton.html" title="gimpbrushselectbutton"><span class="type">GimpBrushSelectButton</span></a> *widget,
289
<span class="type">gchar</span> *brush_name,
290
<span class="type">gdouble</span> opacity,
291
<span class="type">gint</span> spacing,
292
<span class="type">gint</span> paint_mode,
293
<span class="type">gint</span> width,
294
<span class="type">gint</span> height,
295
<span class="type">gpointer</span> mask_data,
296
<span class="type">gboolean</span> dialog_closing,
297
<span class="type">gpointer</span> user_data) : <code class="literal">Run First</code></pre>
299
299
The ::brush-set signal is emitted when the user selects a brush.