Imported Upstream version 2.4.0~rc2

This commit is contained in:
Ari Pollak
2010-08-11 01:22:44 -04:00
parent d884b2912c
commit 4be5597e32
576 changed files with 70261 additions and 80724 deletions

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GimpMemsizeEntry</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="GIMP Widgets Library Reference Manual">
<link rel="up" href="libgimpwidgets-widgets.html" title="Part&#160;I.&#160;GIMP Widgets">
<link rel="prev" href="GimpIntStore.html" title="GimpIntStore">
@ -33,22 +33,22 @@
<th width="100%" align="center">GIMP Widgets Library Reference Manual</th>
<td><a accesskey="n" href="GimpNumberPairEntry.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2575062" class="shortcut">Top</a>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2601976" class="shortcut">Top</a>
&#160;|&#160;
<a href="#id2613226" class="shortcut">Description</a>
<a href="#id2632701" class="shortcut">Description</a>
&#160;|&#160;
<a href="#id2615440" class="shortcut">Object Hierarchy</a>
<a href="#id2633156" class="shortcut">Object Hierarchy</a>
&#160;|&#160;
<a href="#id2615501" class="shortcut">Implemented Interfaces</a>
<a href="#id2633217" class="shortcut">Implemented Interfaces</a>
&#160;|&#160;
<a href="#id2615522" class="shortcut">Signals</a></nobr></td></tr>
<a href="#id2632676" class="shortcut">Signals</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GimpMemsizeEntry"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2575062"></a><span class="refentrytitle">GimpMemsizeEntry</span>
<a name="id2601976"></a><span class="refentrytitle">GimpMemsizeEntry</span>
</h2>
<p>GimpMemsizeEntry &#8212; A composite widget that allows to enter a memory size.</p>
</td>
@ -60,111 +60,71 @@
<a href="GimpMemsizeEntry.html#GimpMemsizeEntry-struct">GimpMemsizeEntry</a>;
<a
href="../gtk/GtkWidget.html"
>GtkWidget</a>* <a href="GimpMemsizeEntry.html#gimp-memsize-entry-new">gimp_memsize_entry_new</a> (<a
href="../glib/glib-Basic-Types.html#guint64"
>guint64</a> value,
<a
href="../glib/glib-Basic-Types.html#guint64"
>guint64</a> lower,
<a
href="../glib/glib-Basic-Types.html#guint64"
>guint64</a> upper);
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,
<a
href="../glib/glib-Basic-Types.html#guint64"
>guint64</a> value);
<a
href="../glib/glib-Basic-Types.html#guint64"
>guint64</a> <a href="GimpMemsizeEntry.html#gimp-memsize-entry-get-value">gimp_memsize_entry_get_value</a> (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *entry);
<a class="link" href="GimpMemsizeEntry.html#GimpMemsizeEntry-struct">GimpMemsizeEntry</a>;
GtkWidget* <a class="link" href="GimpMemsizeEntry.html#gimp-memsize-entry-new">gimp_memsize_entry_new</a> (guint64 value,
guint64 lower,
guint64 upper);
void <a class="link" href="GimpMemsizeEntry.html#gimp-memsize-entry-set-value">gimp_memsize_entry_set_value</a> (<a class="link" href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *entry,
guint64 value);
guint64 <a class="link" href="GimpMemsizeEntry.html#gimp-memsize-entry-get-value">gimp_memsize_entry_get_value</a> (<a class="link" href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *entry);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2615440"></a><h2>Object Hierarchy</h2>
<a name="id2633156"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
+----<a
href="../gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
>GInitiallyUnowned</a>
+----<a
href="../gtk/GtkObject.html"
>GtkObject</a>
+----<a
href="../gtk/GtkWidget.html"
>GtkWidget</a>
+----<a
href="../gtk/GtkContainer.html"
>GtkContainer</a>
+----<a
href="../gtk/GtkBox.html"
>GtkBox</a>
+----<a
href="../gtk/GtkHBox.html"
>GtkHBox</a>
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBox
+----GtkHBox
+----GimpMemsizeEntry
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2615501"></a><h2>Implemented Interfaces</h2>
<a name="id2633217"></a><h2>Implemented Interfaces</h2>
<p>
GimpMemsizeEntry implements
AtkImplementorIface.</p>
AtkImplementorIface and GtkBuildable.</p>
</div>
<div class="refsect1" lang="en">
<a name="id2615522"></a><h2>Signals</h2>
<a name="id2632676"></a><h2>Signals</h2>
<pre class="synopsis">
"<a href="GimpMemsizeEntry.html#GimpMemsizeEntry-value-changed">value-changed</a>" : Run First
"<a class="link" href="GimpMemsizeEntry.html#GimpMemsizeEntry-value-changed">value-changed</a>" : Run First
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2613226"></a><h2>Description</h2>
<a name="id2632701"></a><h2>Description</h2>
<p>
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
Similar to a <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a> but instead of lengths, this widget is used to let
the user enter memory sizes. An option menu allows to switch between
Kilobytes, Megabytes and Gigabytes. Used in the GIMP preferences dialog.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2613252"></a><h2>Details</h2>
<a name="id2632727"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2613263"></a><h3>
<a name="id2632738"></a><h3>
<a name="GimpMemsizeEntry-struct"></a>GimpMemsizeEntry</h3>
<a class="indexterm" name="id2613275"></a><pre class="programlisting">typedef struct _GimpMemsizeEntry GimpMemsizeEntry;</pre>
<a class="indexterm" name="id2632750"></a><pre class="programlisting">typedef struct _GimpMemsizeEntry GimpMemsizeEntry;</pre>
<p>
The <a href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a> struct is considered private.
The <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a> struct is considered private.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2613298"></a><h3>
<a name="id2632773"></a><h3>
<a name="gimp-memsize-entry-new"></a>gimp_memsize_entry_new ()</h3>
<a class="indexterm" name="id2613310"></a><pre class="programlisting"><a
href="../gtk/GtkWidget.html"
>GtkWidget</a>* gimp_memsize_entry_new (<a
href="../glib/glib-Basic-Types.html#guint64"
>guint64</a> value,
<a
href="../glib/glib-Basic-Types.html#guint64"
>guint64</a> lower,
<a
href="../glib/glib-Basic-Types.html#guint64"
>guint64</a> upper);</pre>
<a class="indexterm" name="id2632784"></a><pre class="programlisting">GtkWidget* gimp_memsize_entry_new (guint64 value,
guint64 lower,
guint64 upper);</pre>
<p>
Creates a new <a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a> which is a <a
href="../gtk/GtkHBox.html"
><span class="type">GtkHBox</span></a> with a <a
href="../gtk/GtkSpinButton.html"
><span class="type">GtkSpinButton</span></a>
and a <a
href="../gtk/GtkOptionMenu.html"
><span class="type">GtkOptionMenu</span></a> all setup to allow the user to enter memory sizes.</p>
Creates a new <a class="link" 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>
and a <span class="type">GtkOptionMenu</span> all setup to allow the user to enter memory sizes.</p>
<p>
</p>
@ -172,23 +132,23 @@ href="../gtk/GtkOptionMenu.html"
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></td>
<td><p><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></p></td>
<td> the initial value (in Bytes)
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>lower</code></em>&#160;:</span></td>
<td><p><span class="term"><em class="parameter"><code>lower</code></em>&#160;:</span></p></td>
<td> the lower limit for the value (in Bytes)
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>upper</code></em>&#160;:</span></td>
<td><p><span class="term"><em class="parameter"><code>upper</code></em>&#160;:</span></p></td>
<td> the upper limit for the value (in Bytes)
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> Pointer to the new <a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a>.
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> Pointer to the new <a class="link" href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a>.
</td>
</tr>
</tbody>
@ -196,14 +156,12 @@ href="../gtk/GtkOptionMenu.html"
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2615772"></a><h3>
<a name="id2633384"></a><h3>
<a name="gimp-memsize-entry-set-value"></a>gimp_memsize_entry_set_value ()</h3>
<a class="indexterm" name="id2615783"></a><pre class="programlisting">void gimp_memsize_entry_set_value (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *entry,
<a
href="../glib/glib-Basic-Types.html#guint64"
>guint64</a> value);</pre>
<a class="indexterm" name="id2633395"></a><pre class="programlisting">void gimp_memsize_entry_set_value (<a class="link" href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *entry,
guint64 value);</pre>
<p>
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
Sets the <em class="parameter"><code>entry</code></em>'s value. Please note that the <a class="link" href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a> rounds
the value to full Kilobytes.</p>
<p>
@ -212,12 +170,12 @@ the value to full Kilobytes.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>entry</code></em>&#160;:</span></td>
<td> a <a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a>
<td><p><span class="term"><em class="parameter"><code>entry</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a>
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></td>
<td><p><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></p></td>
<td> the new value (in Bytes)
</td>
</tr>
@ -226,13 +184,11 @@ the value to full Kilobytes.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2612846"></a><h3>
<a name="id2634900"></a><h3>
<a name="gimp-memsize-entry-get-value"></a>gimp_memsize_entry_get_value ()</h3>
<a class="indexterm" name="id2612859"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#guint64"
>guint64</a> gimp_memsize_entry_get_value (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *entry);</pre>
<a class="indexterm" name="id2634911"></a><pre class="programlisting">guint64 gimp_memsize_entry_get_value (<a class="link" href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *entry);</pre>
<p>
Retrieves the current value from a <a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a>.</p>
Retrieves the current value from a <a class="link" href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a>.</p>
<p>
</p>
@ -240,12 +196,12 @@ Retrieves the current value from a <a href="GimpMemsizeEntry.html" title="GimpMe
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>entry</code></em>&#160;:</span></td>
<td> a <a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a>
<td><p><span class="term"><em class="parameter"><code>entry</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a>
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> the current value of <em class="parameter"><code>entry</code></em> (in Bytes).
</td>
</tr>
@ -254,14 +210,12 @@ Retrieves the current value from a <a href="GimpMemsizeEntry.html" title="GimpMe
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2612942"></a><h2>Signal Details</h2>
<a name="id2634993"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="id2612953"></a><h3>
<a name="id2635004"></a><h3>
<a name="GimpMemsizeEntry-value-changed"></a>The "value-changed" signal</h3>
<a class="indexterm" name="id2612962"></a><pre class="programlisting">void user_function (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *gimpmemsizeentry,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run First</pre>
<a class="indexterm" name="id2635011"></a><pre class="programlisting">void user_function (<a class="link" href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *gimpmemsizeentry,
gpointer user_data) : Run First</pre>
<p>
</p>
@ -269,13 +223,13 @@ href="../glib/glib-Basic-Types.html#gpointer"
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>gimpmemsizeentry</code></em>&#160;:</span></td>
<td><p><span class="term"><em class="parameter"><code>gimpmemsizeentry</code></em>&#160;:</span></p></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>