~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to devel-docs/libgimpwidgets/html/GimpMemsizeEntry.html

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<head>
4
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
5
<title>GimpMemsizeEntry</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&#160;I.&#160;GIMP Widgets">
9
9
<link rel="prev" href="GimpIntStore.html" title="GimpIntStore">
10
10
<link rel="next" href="GimpOffsetArea.html" title="GimpOffsetArea">
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&#160;I.&#160;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&#160;II.&#160;GIMP Display Filters">
17
18
<link rel="part" href="libgimpwidgets-colorselector.html" title="Part&#160;III.&#160;GIMP Color Selectors">
18
19
<link rel="part" href="libgimpwidgets-controller.html" title="Part&#160;IV.&#160;GIMP Controllers">
19
20
<link rel="part" href="libgimpwidgets-utils.html" title="Part&#160;V.&#160;GIMP Widgets Utilities">
20
21
<link rel="part" href="libgimpwidgets-deprecated.html" title="Part&#160;VI.&#160;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">
21
26
</head>
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">
28
33
<th width="100%" align="center">GIMP Widgets Library Reference Manual</th>
29
34
<td><a accesskey="n" href="GimpOffsetArea.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
30
35
</tr>
31
 
<tr><td colspan="5" class="shortcuts"><nobr><a href="#top_of_page" class="shortcut">Top</a>
32
 
                  &#160;|&#160;
33
 
                  <a href="#desc" class="shortcut">Description</a>
34
 
                  &#160;|&#160;
35
 
                  <a href="#object_hierarchy" class="shortcut">Object Hierarchy</a>
36
 
                  &#160;|&#160;
37
 
                  <a href="#signal_proto" class="shortcut">Signals</a></nobr></td></tr>
 
36
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2557702" class="shortcut">Top</a>
 
37
                  &#160;|&#160;
 
38
                  <a href="#id2615519" class="shortcut">Description</a>
 
39
                  &#160;|&#160;
 
40
                  <a href="#id2615412" class="shortcut">Object Hierarchy</a>
 
41
                  &#160;|&#160;
 
42
                  <a href="#id2615473" class="shortcut">Implemented Interfaces</a>
 
43
                  &#160;|&#160;
 
44
                  <a href="#id2615494" class="shortcut">Signals</a></nobr></td></tr>
38
45
</table>
39
46
<div class="refentry" lang="en">
40
47
<a name="GimpMemsizeEntry"></a><div class="titlepage"></div>
41
48
<div class="refnamediv"><table width="100%"><tr>
42
49
<td valign="top">
43
 
<h2><span class="refentrytitle"><a name="top_of_page"></a>GimpMemsizeEntry</span></h2>
 
50
<h2>
 
51
<a name="id2557702"></a><span class="refentrytitle">GimpMemsizeEntry</span>
 
52
</h2>
44
53
<p>GimpMemsizeEntry &#8212; A composite widget that allows to enter a memory size.</p>
45
54
</td>
46
 
<td valign="top" align="right"></td>
 
55
<td valign="top" align="right"><img src="gimp-memsize-entry.png"></td>
47
56
</tr></table></div>
48
57
<div class="refsynopsisdiv">
49
 
<a name="synopsis"></a><h2>Synopsis</h2>
 
58
<h2>Synopsis</h2>
50
59
<pre class="synopsis">
51
60
 
52
61
 
53
62
 
54
 
            <a href="GimpMemsizeEntry.html#GimpMemsizeEntry-struct">GimpMemsizeEntry</a>;
55
 
GtkWidget*  <a href="GimpMemsizeEntry.html#gimp-memsize-entry-new">gimp_memsize_entry_new</a>          (guint64 value,
56
 
                                             guint64 lower,
57
 
                                             guint64 upper);
58
 
void        <a href="GimpMemsizeEntry.html#gimp-memsize-entry-set-value">gimp_memsize_entry_set_value</a>    (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *entry,
59
 
                                             guint64 value);
60
 
guint64     <a href="GimpMemsizeEntry.html#gimp-memsize-entry-get-value">gimp_memsize_entry_get_value</a>    (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *entry);
 
63
                    <a href="GimpMemsizeEntry.html#GimpMemsizeEntry-struct">GimpMemsizeEntry</a>;
 
64
GtkWidget*          <a href="GimpMemsizeEntry.html#gimp-memsize-entry-new">gimp_memsize_entry_new</a>              (guint64 value,
 
65
                                                         guint64 lower,
 
66
                                                         guint64 upper);
 
67
void                <a href="GimpMemsizeEntry.html#gimp-memsize-entry-set-value">gimp_memsize_entry_set_value</a>        (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *entry,
 
68
                                                         guint64 value);
 
69
guint64             <a href="GimpMemsizeEntry.html#gimp-memsize-entry-get-value">gimp_memsize_entry_get_value</a>        (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *entry);
61
70
 
62
71
</pre>
63
72
</div>
64
73
<div class="refsect1" lang="en">
65
 
<a name="object_hierarchy"></a><h2>Object Hierarchy</h2>
 
74
<a name="id2615412"></a><h2>Object Hierarchy</h2>
66
75
<pre class="synopsis">
67
76
 
68
77
  GObject
76
85
</pre>
77
86
</div>
78
87
<div class="refsect1" lang="en">
79
 
<a name="impl_interfaces"></a><h2>Implemented Interfaces</h2>
 
88
<a name="id2615473"></a><h2>Implemented Interfaces</h2>
80
89
<p>
81
90
GimpMemsizeEntry implements
82
91
 AtkImplementorIface.</p>
83
92
</div>
84
93
<div class="refsect1" lang="en">
85
 
<a name="signal_proto"></a><h2>Signals</h2>
 
94
<a name="id2615494"></a><h2>Signals</h2>
86
95
<pre class="synopsis">
87
96
 
88
 
"<a href="GimpMemsizeEntry.html#GimpMemsizeEntry-value-changed">value-changed</a>"
89
 
            void        user_function      (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *gimpmemsizeentry,
90
 
                                            gpointer          user_data)             : Run first
 
97
  "<a href="GimpMemsizeEntry.html#GimpMemsizeEntry-value-changed">value-changed</a>"                                  : Run First
91
98
</pre>
92
99
</div>
93
100
<div class="refsect1" lang="en">
94
 
<a name="desc"></a><h2>Description</h2>
 
101
<a name="id2615519"></a><h2>Description</h2>
95
102
<p>
96
103
Similar to a <a href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a> but instead of lengths, this widget is used to let
97
104
the user enter memory sizes. An option menu allows to switch between
99
106
</p>
100
107
</div>
101
108
<div class="refsect1" lang="en">
102
 
<a name="details"></a><h2>Details</h2>
 
109
<a name="id2615545"></a><h2>Details</h2>
103
110
<div class="refsect2" lang="en">
104
 
<a name="id2568456"></a><h3>
 
111
<a name="id2615556"></a><h3>
105
112
<a name="GimpMemsizeEntry-struct"></a>GimpMemsizeEntry</h3>
106
 
<a class="indexterm" name="id2568468"></a><pre class="programlisting">typedef struct _GimpMemsizeEntry GimpMemsizeEntry;</pre>
 
113
<a class="indexterm" name="id2615568"></a><pre class="programlisting">typedef struct _GimpMemsizeEntry GimpMemsizeEntry;</pre>
107
114
<p>
108
115
The <a href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a> struct is considered private.
109
116
</p>
110
117
</div>
111
118
<hr>
112
119
<div class="refsect2" lang="en">
113
 
<a name="id2568491"></a><h3>
 
120
<a name="id2615591"></a><h3>
114
121
<a name="gimp-memsize-entry-new"></a>gimp_memsize_entry_new ()</h3>
115
 
<a class="indexterm" name="id2568502"></a><pre class="programlisting">GtkWidget*  gimp_memsize_entry_new          (guint64 value,
116
 
                                             guint64 lower,
117
 
                                             guint64 upper);</pre>
 
122
<a class="indexterm" name="id2615602"></a><pre class="programlisting">GtkWidget*          gimp_memsize_entry_new              (guint64 value,
 
123
                                                         guint64 lower,
 
124
                                                         guint64 upper);</pre>
118
125
<p>
119
126
Creates a new <a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a> which is a <span class="type">GtkHBox</span> with a <span class="type">GtkSpinButton</span>
120
127
and a <span class="type">GtkOptionMenu</span> all setup to allow the user to enter memory sizes.</p>
125
132
<col align="left" valign="top">
126
133
<tbody>
127
134
<tr>
128
 
<td>
129
 
<span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></td>
 
135
<td><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></td>
130
136
<td> the initial value (in Bytes)
131
137
</td>
132
138
</tr>
133
139
<tr>
134
 
<td>
135
 
<span class="term"><em class="parameter"><code>lower</code></em>&#160;:</span></td>
 
140
<td><span class="term"><em class="parameter"><code>lower</code></em>&#160;:</span></td>
136
141
<td> the lower limit for the value (in Bytes)
137
142
</td>
138
143
</tr>
139
144
<tr>
140
 
<td>
141
 
<span class="term"><em class="parameter"><code>upper</code></em>&#160;:</span></td>
 
145
<td><span class="term"><em class="parameter"><code>upper</code></em>&#160;:</span></td>
142
146
<td> the upper limit for the value (in Bytes)
143
147
</td>
144
148
</tr>
145
149
<tr>
146
 
<td>
147
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
150
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
148
151
<td> Pointer to the new <a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a>.
149
152
</td>
150
153
</tr>
153
156
</div>
154
157
<hr>
155
158
<div class="refsect2" lang="en">
156
 
<a name="id2574898"></a><h3>
 
159
<a name="id2613325"></a><h3>
157
160
<a name="gimp-memsize-entry-set-value"></a>gimp_memsize_entry_set_value ()</h3>
158
 
<a class="indexterm" name="id2574910"></a><pre class="programlisting">void        gimp_memsize_entry_set_value    (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *entry,
159
 
                                             guint64 value);</pre>
 
161
<a class="indexterm" name="id2613336"></a><pre class="programlisting">void                gimp_memsize_entry_set_value        (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *entry,
 
162
                                                         guint64 value);</pre>
160
163
<p>
161
164
Sets the <em class="parameter"><code>entry</code></em>'s value. Please note that the <a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a> rounds
162
165
the value to full Kilobytes.</p>
167
170
<col align="left" valign="top">
168
171
<tbody>
169
172
<tr>
170
 
<td>
171
 
<span class="term"><em class="parameter"><code>entry</code></em>&#160;:</span></td>
 
173
<td><span class="term"><em class="parameter"><code>entry</code></em>&#160;:</span></td>
172
174
<td> a <a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a>
173
175
</td>
174
176
</tr>
175
177
<tr>
176
 
<td>
177
 
<span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></td>
 
178
<td><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></td>
178
179
<td> the new value (in Bytes)
179
180
</td>
180
181
</tr>
183
184
</div>
184
185
<hr>
185
186
<div class="refsect2" lang="en">
186
 
<a name="id2575001"></a><h3>
 
187
<a name="id2613427"></a><h3>
187
188
<a name="gimp-memsize-entry-get-value"></a>gimp_memsize_entry_get_value ()</h3>
188
 
<a class="indexterm" name="id2575013"></a><pre class="programlisting">guint64     gimp_memsize_entry_get_value    (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *entry);</pre>
 
189
<a class="indexterm" name="id2613438"></a><pre class="programlisting">guint64             gimp_memsize_entry_get_value        (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *entry);</pre>
189
190
<p>
190
191
Retrieves the current value from a <a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a>.</p>
191
192
<p>
195
196
<col align="left" valign="top">
196
197
<tbody>
197
198
<tr>
198
 
<td>
199
 
<span class="term"><em class="parameter"><code>entry</code></em>&#160;:</span></td>
 
199
<td><span class="term"><em class="parameter"><code>entry</code></em>&#160;:</span></td>
200
200
<td> a <a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a>
201
201
</td>
202
202
</tr>
203
203
<tr>
204
 
<td>
205
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
204
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
206
205
<td> the current value of <em class="parameter"><code>entry</code></em> (in Bytes).
207
206
</td>
208
207
</tr>
211
210
</div>
212
211
</div>
213
212
<div class="refsect1" lang="en">
214
 
<a name="signals"></a><h2>Signal Details</h2>
 
213
<a name="id2610383"></a><h2>Signal Details</h2>
215
214
<div class="refsect2" lang="en">
216
 
<a name="id2575108"></a><h3>
 
215
<a name="id2610394"></a><h3>
217
216
<a name="GimpMemsizeEntry-value-changed"></a>The "value-changed" signal</h3>
218
 
<a class="indexterm" name="id2571551"></a><pre class="programlisting">void        user_function                  (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *gimpmemsizeentry,
219
 
                                            gpointer          user_data)             : Run first</pre>
 
217
<a class="indexterm" name="id2610402"></a><pre class="programlisting">void                user_function                      (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *gimpmemsizeentry,
 
218
                                                        gpointer          user_data)             : Run First</pre>
220
219
<p>
221
220
 
222
221
</p>
224
223
<col align="left" valign="top">
225
224
<tbody>
226
225
<tr>
227
 
<td>
228
 
<span class="term"><em class="parameter"><code>gimpmemsizeentry</code></em>&#160;:</span></td>
 
226
<td><span class="term"><em class="parameter"><code>gimpmemsizeentry</code></em>&#160;:</span></td>
229
227
<td>the object which received the signal.
230
228
 
231
229
</td>
232
230
</tr>
233
231
<tr>
234
 
<td>
235
 
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
 
232
<td><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
236
233
<td>user data set when the signal handler was connected.</td>
237
234
</tr>
238
235
</tbody>