4
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
5
<title>GimpButton</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
7
7
<link rel="start" href="index.html" title="GIMP Widgets Library Reference Manual">
8
8
<link rel="up" href="libgimpwidgets-widgets.html" title="Part I. GIMP Widgets">
9
<link rel="prev" href="libgimpwidgets-hierarchy.html" title="Object Hierarchy">
9
<link rel="prev" href="GimpBrowser.html" title="GimpBrowser">
10
10
<link rel="next" href="GimpChainButton.html" title="GimpChainButton">
11
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="part" href="libgimpwidgets-widgets.html" title="Part I. GIMP Widgets">
14
14
<link rel="chapter" href="libgimpwidgets-hierarchy.html" title="Object Hierarchy">
15
<link rel="chapter" href="libgimpwidgets-gallery.html" title="Widget Gallery">
15
16
<link rel="chapter" href="libgimpwidgets-cell-renderers.html" title="Cell Renderers for GtkTreeView">
16
17
<link rel="part" href="libgimpwidgets-colordisplay.html" title="Part II. GIMP Display Filters">
17
18
<link rel="part" href="libgimpwidgets-colorselector.html" title="Part III. GIMP Color Selectors">
18
19
<link rel="part" href="libgimpwidgets-controller.html" title="Part IV. GIMP Controllers">
19
20
<link rel="part" href="libgimpwidgets-utils.html" title="Part V. GIMP Widgets Utilities">
20
21
<link rel="part" href="libgimpwidgets-deprecated.html" title="Part VI. Deprecated API">
22
<link rel="index" href="libgimpwidgets-index.html" title="Index">
23
<link rel="index" href="libgimpwidgets-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
24
<link rel="index" href="libgimpwidgets-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
25
<link rel="index" href="libgimpwidgets-index-deprecated.html" title="Index of deprecated symbols">
22
27
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
23
28
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
24
29
<tr valign="middle">
25
<td><a accesskey="p" href="libgimpwidgets-hierarchy.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
30
<td><a accesskey="p" href="GimpBrowser.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
26
31
<td><a accesskey="u" href="libgimpwidgets-widgets.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
27
32
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
28
33
<th width="100%" align="center">GIMP Widgets Library Reference Manual</th>
29
34
<td><a accesskey="n" href="GimpChainButton.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
31
<tr><td colspan="5" class="shortcuts"><nobr><a href="#top_of_page" class="shortcut">Top</a>
33
<a href="#desc" class="shortcut">Description</a>
35
<a href="#object_hierarchy" class="shortcut">Object Hierarchy</a>
37
<a href="#signal_proto" class="shortcut">Signals</a></nobr></td></tr>
36
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2573597" class="shortcut">Top</a>
38
<a href="#id2578029" class="shortcut">Description</a>
40
<a href="#id2558098" class="shortcut">Object Hierarchy</a>
42
<a href="#id2577983" class="shortcut">Implemented Interfaces</a>
44
<a href="#id2578004" class="shortcut">Signals</a></nobr></td></tr>
39
46
<div class="refentry" lang="en">
40
47
<a name="GimpButton"></a><div class="titlepage"></div>
41
48
<div class="refnamediv"><table width="100%"><tr>
43
<h2><span class="refentrytitle"><a name="top_of_page"></a>GimpButton</span></h2>
51
<a name="id2573597"></a><span class="refentrytitle">GimpButton</span>
44
53
<p>GimpButton — A <span class="type">GtkButton</span> with a little extra functionality.</p>
46
<td valign="top" align="right"></td>
55
<td valign="top" align="right"><img src="gimp-button.png"></td>
47
56
</tr></table></div>
48
57
<div class="refsynopsisdiv">
49
<a name="synopsis"></a><h2>Synopsis</h2>
50
59
<pre class="synopsis">
54
<a href="GimpButton.html#GimpButton-struct">GimpButton</a>;
55
GtkWidget* <a href="GimpButton.html#gimp-button-new">gimp_button_new</a> (void);
56
void <a href="GimpButton.html#gimp-button-extended-clicked">gimp_button_extended_clicked</a> (<a href="GimpButton.html" title="GimpButton">GimpButton</a> *button,
57
GdkModifierType state);
63
<a href="GimpButton.html#GimpButton-struct">GimpButton</a>;
64
GtkWidget* <a href="GimpButton.html#gimp-button-new">gimp_button_new</a> (void);
65
void <a href="GimpButton.html#gimp-button-extended-clicked">gimp_button_extended_clicked</a> (<a href="GimpButton.html" title="GimpButton">GimpButton</a> *button,
66
GdkModifierType state);
61
70
<div class="refsect1" lang="en">
62
<a name="object_hierarchy"></a><h2>Object Hierarchy</h2>
71
<a name="id2558098"></a><h2>Object Hierarchy</h2>
63
72
<pre class="synopsis">
76
85
<div class="refsect1" lang="en">
77
<a name="impl_interfaces"></a><h2>Implemented Interfaces</h2>
86
<a name="id2577983"></a><h2>Implemented Interfaces</h2>
79
88
GimpButton implements
80
89
AtkImplementorIface.</p>
82
91
<div class="refsect1" lang="en">
83
<a name="signal_proto"></a><h2>Signals</h2>
92
<a name="id2578004"></a><h2>Signals</h2>
84
93
<pre class="synopsis">
86
"<a href="GimpButton.html#GimpButton-extended-clicked">extended-clicked</a>"
87
void user_function (<a href="GimpButton.html" title="GimpButton">GimpButton</a> *gimpbutton,
88
GdkModifierType *arg1,
89
gpointer user_data) : Run first
95
"<a href="GimpButton.html#GimpButton-extended-clicked">extended-clicked</a>" : Run First
92
98
<div class="refsect1" lang="en">
93
<a name="desc"></a><h2>Description</h2>
99
<a name="id2578029"></a><h2>Description</h2>
95
101
<a href="GimpButton.html" title="GimpButton"><span class="type">GimpButton</span></a> adds an extra signal to the <span class="type">GtkButton</span> widget that allows
96
102
to distinguish a normal click from a click that was performed with
100
106
<div class="refsect1" lang="en">
101
<a name="details"></a><h2>Details</h2>
107
<a name="id2572738"></a><h2>Details</h2>
102
108
<div class="refsect2" lang="en">
103
<a name="id2548288"></a><h3>
109
<a name="id2572749"></a><h3>
104
110
<a name="GimpButton-struct"></a>GimpButton</h3>
105
<a class="indexterm" name="id2548300"></a><pre class="programlisting">typedef struct _GimpButton GimpButton;</pre>
111
<a class="indexterm" name="id2572762"></a><pre class="programlisting">typedef struct _GimpButton GimpButton;</pre>
111
117
<div class="refsect2" lang="en">
112
<a name="id2548315"></a><h3>
118
<a name="id2572777"></a><h3>
113
119
<a name="gimp-button-new"></a>gimp_button_new ()</h3>
114
<a class="indexterm" name="id2548327"></a><pre class="programlisting">GtkWidget* gimp_button_new (void);</pre>
120
<a class="indexterm" name="id2572789"></a><pre class="programlisting">GtkWidget* gimp_button_new (void);</pre>
116
122
Creates a new <a href="GimpButton.html" title="GimpButton"><span class="type">GimpButton</span></a> widget.</p>
160
163
<div class="refsect1" lang="en">
161
<a name="signals"></a><h2>Signal Details</h2>
164
<a name="id2574944"></a><h2>Signal Details</h2>
162
165
<div class="refsect2" lang="en">
163
<a name="id2538640"></a><h3>
166
<a name="id2574955"></a><h3>
164
167
<a name="GimpButton-extended-clicked"></a>The "extended-clicked" signal</h3>
165
<a class="indexterm" name="id2538648"></a><pre class="programlisting">void user_function (<a href="GimpButton.html" title="GimpButton">GimpButton</a> *gimpbutton,
166
GdkModifierType *arg1,
167
gpointer user_data) : Run first</pre>
168
<a class="indexterm" name="id2574963"></a><pre class="programlisting">void user_function (<a href="GimpButton.html" title="GimpButton">GimpButton</a> *gimpbutton,
169
GdkModifierType arg1,
170
gpointer user_data) : Run First</pre>
172
175
<col align="left" valign="top">
176
<span class="term"><em class="parameter"><code>gimpbutton</code></em> :</span></td>
178
<td><span class="term"><em class="parameter"><code>gimpbutton</code></em> :</span></td>
177
179
<td>the object which received the signal.
182
<span class="term"><em class="parameter"><code>arg1</code></em> :</span></td>
183
<td><span class="term"><em class="parameter"><code>arg1</code></em> :</span></td>
183
184
<td>the state of modifier keys when the button was clicked
189
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
189
<td><span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
190
190
<td>user data set when the signal handler was connected.</td>