Imported Upstream version 2.3.6

This commit is contained in:
Ari Pollak
2010-08-11 01:18:19 -04:00
parent 7802c3a9cb
commit de5dc4f4c2
3129 changed files with 762016 additions and 525609 deletions

View File

@ -1,53 +1,44 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<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.68.1">
<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">
<link rel="next" href="GimpOffsetArea.html" title="GimpOffsetArea">
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
<meta name="generator" content="GTK-Doc V1.4 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="libgimpwidgets-widgets.html" title="Part&#160;I.&#160;GIMP Widgets">
<link rel="chapter" href="libgimpwidgets-hierarchy.html" title="Object Hierarchy">
<link rel="chapter" href="libgimpwidgets-gallery.html" title="Widget Gallery">
<link rel="chapter" href="libgimpwidgets-cell-renderers.html" title="Cell Renderers for GtkTreeView">
<link rel="part" href="libgimpwidgets-colordisplay.html" title="Part&#160;II.&#160;GIMP Display Filters">
<link rel="part" href="libgimpwidgets-colorselector.html" title="Part&#160;III.&#160;GIMP Color Selectors">
<link rel="part" href="libgimpwidgets-controller.html" title="Part&#160;IV.&#160;GIMP Controllers">
<link rel="part" href="libgimpwidgets-utils.html" title="Part&#160;V.&#160;GIMP Widgets Utilities">
<link rel="part" href="libgimpwidgets-deprecated.html" title="Part&#160;VI.&#160;Deprecated API">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of new symbols in GIMP 2.2">
<link rel="index" href="ix03.html" title="Index of new symbols in GIMP 2.4">
<link rel="index" href="ix04.html" title="Index of deprecated symbols">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
<td><a accesskey="p" href="GimpIntStore.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="libgimpwidgets-widgets.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GIMP Widgets Library Reference Manual</th>
<td><a accesskey="n" href="GimpOffsetArea.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="#id2584615" class="shortcut">Top</a>
&#160;|&#160;
<a href="#id2606219" class="shortcut">Description</a>
&#160;|&#160;
<a href="#id2600566" class="shortcut">Object Hierarchy</a>
&#160;|&#160;
<a href="#id2606173" class="shortcut">Implemented Interfaces</a>
&#160;|&#160;
<a href="#id2606194" class="shortcut">Signals</a></nobr></td></tr>
</table>
</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="id2584615"></a><span class="refentrytitle">GimpMemsizeEntry</span>
</h2>
<h2><span class="refentrytitle">GimpMemsizeEntry</span></h2>
<p>GimpMemsizeEntry &#8212; A composite widget that allows to enter a memory size.</p>
</td>
<td valign="top" align="right"></td>
<td valign="top" align="right"><img src="gimp-memsize-entry.png"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
@ -55,45 +46,58 @@
<a href="GimpMemsizeEntry.html#GimpMemsizeEntry-struct">GimpMemsizeEntry</a>;
GtkWidget* <a href="GimpMemsizeEntry.html#gimp-memsize-entry-new">gimp_memsize_entry_new</a> (guint64 value,
guint64 lower,
guint64 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,
guint64 value);
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);
<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> (guint64 value,
guint64 lower,
guint64 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,
guint64 value);
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);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2600566"></a><h2>Object Hierarchy</h2>
<a name="id2528347"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBox
+----GtkHBox
+----GimpMemsizeEntry
+----<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>
+----GimpMemsizeEntry
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2606173"></a><h2>Implemented Interfaces</h2>
<a name="id2528397"></a><h2>Implemented Interfaces</h2>
<p>
GimpMemsizeEntry implements
AtkImplementorIface.</p>
</div>
<div class="refsect1" lang="en">
<a name="id2606194"></a><h2>Signals</h2>
<a name="id2528414"></a><h2>Signal Prototypes</h2>
<pre class="synopsis">
"<a href="GimpMemsizeEntry.html#GimpMemsizeEntry-value-changed">value-changed</a>" : Run First
"<a href="GimpMemsizeEntry.html#GimpMemsizeEntry-value-changed">value-changed</a>"
void user_function (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *gimpmemsizeentry,
gpointer user_data);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2606219"></a><h2>Description</h2>
<a name="id2559877"></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
the user enter memory sizes. An option menu allows to switch between
@ -101,25 +105,33 @@ Kilobytes, Megabytes and Gigabytes. Used in the GIMP preferences dialog.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2606245"></a><h2>Details</h2>
<a name="id2559899"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2606256"></a><h3>
<a name="id2559905"></a><h3>
<a name="GimpMemsizeEntry-struct"></a>GimpMemsizeEntry</h3>
<a class="indexterm" name="id2606268"></a><pre class="programlisting">typedef struct _GimpMemsizeEntry GimpMemsizeEntry;</pre>
<a class="indexterm" name="id2559914"></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.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2607448"></a><h3>
<a name="id2559938"></a><h3>
<a name="gimp-memsize-entry-new"></a>gimp_memsize_entry_new ()</h3>
<a class="indexterm" name="id2607459"></a><pre class="programlisting">GtkWidget* gimp_memsize_entry_new (guint64 value,
guint64 lower,
guint64 upper);</pre>
<a class="indexterm" name="id2559946"></a><pre class="programlisting"><a
href="../gtk/GtkWidget.html"
>GtkWidget</a>* 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 <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>
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>
<p>
</p>
@ -127,22 +139,26 @@ and a <span class="type">GtkOptionMenu</span> all setup to allow the user to ent
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></td>
<td>
<span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></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>
<span class="term"><em class="parameter"><code>lower</code></em>&#160;:</span></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>
<span class="term"><em class="parameter"><code>upper</code></em>&#160;:</span></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>
<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>
</tr>
@ -151,10 +167,10 @@ and a <span class="type">GtkOptionMenu</span> all setup to allow the user to ent
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2607598"></a><h3>
<a name="id2571252"></a><h3>
<a name="gimp-memsize-entry-set-value"></a>gimp_memsize_entry_set_value ()</h3>
<a class="indexterm" name="id2603205"></a><pre class="programlisting">void gimp_memsize_entry_set_value (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *entry,
guint64 value);</pre>
<a class="indexterm" name="id2571260"></a><pre class="programlisting">void gimp_memsize_entry_set_value (<a 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
the value to full Kilobytes.</p>
@ -165,12 +181,14 @@ 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>
<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>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></td>
<td>
<span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></td>
<td> the new value (in Bytes)
</td>
</tr>
@ -179,9 +197,9 @@ the value to full Kilobytes.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2603296"></a><h3>
<a name="id2527913"></a><h3>
<a name="gimp-memsize-entry-get-value"></a>gimp_memsize_entry_get_value ()</h3>
<a class="indexterm" name="id2603309"></a><pre class="programlisting">guint64 gimp_memsize_entry_get_value (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *entry);</pre>
<a class="indexterm" name="id2527922"></a><pre class="programlisting">guint64 gimp_memsize_entry_get_value (<a 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>
<p>
@ -191,12 +209,14 @@ 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>
<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>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the current value of <em class="parameter"><code>entry</code></em> (in Bytes).
</td>
</tr>
@ -205,12 +225,12 @@ Retrieves the current value from a <a href="GimpMemsizeEntry.html" title="GimpMe
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2603391"></a><h2>Signal Details</h2>
<a name="id2528005"></a><h2>Signals</h2>
<div class="refsect2" lang="en">
<a name="id2603402"></a><h3>
<a name="id2528011"></a><h3>
<a name="GimpMemsizeEntry-value-changed"></a>The "value-changed" signal</h3>
<a class="indexterm" name="id2603412"></a><pre class="programlisting">void user_function (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *gimpmemsizeentry,
gpointer user_data) : Run First</pre>
<pre class="programlisting">void user_function (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *gimpmemsizeentry,
gpointer user_data);</pre>
<p>
</p>
@ -218,13 +238,15 @@ 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>gimpmemsizeentry</code></em>&#160;:</span></td>
<td>
<span class="term"><em class="parameter"><code>gimpmemsizeentry</code></em>&#160;:</span></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>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
@ -232,5 +254,9 @@ Retrieves the current value from a <a href="GimpMemsizeEntry.html" title="GimpMe
</div>
</div>
</div>
<table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle">
<td align="left"><a accesskey="p" href="GimpIntStore.html"><b>&lt;&lt;&#160;GimpIntStore</b></a></td>
<td align="right"><a accesskey="n" href="GimpOffsetArea.html"><b>GimpOffsetArea&#160;&gt;&gt;</b></a></td>
</tr></table>
</body>
</html>