1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>GimpMemsizeEntry</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Widgets Library Reference Manual"><link rel="up" href="libgimpwidgets-widgets.html" title="PartI.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.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="libgimpwidgets-widgets.html" title="PartI.GIMP Widgets"><link rel="chapter" href="libgimpwidgets-hierarchy.html" title="Object Hierarchy"><link rel="chapter" href="libgimpwidgets-cell-renderers.html" title="Cell Renderers for GtkTreeView"><link rel="part" href="libgimpwidgets-colordisplay.html" title="PartII.GIMP Display Filters"><link rel="part" href="libgimpwidgets-colorselector.html" title="PartIII.GIMP Color Selectors"><link rel="part" href="libgimpwidgets-controller.html" title="PartIV.GIMP Controllers"><link rel="part" href="libgimpwidgets-utils.html" title="PartV.GIMP Widgets Utilities"><link rel="part" href="libgimpwidgets-deprecated.html" title="PartVI.Deprecated API"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><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></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><span class="refentrytitle">GimpMemsizeEntry</span></h2><p>GimpMemsizeEntry — A composite widget that allows to enter a memory size.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
<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);
</pre></div><div class="refsect1" lang="en"><a name="id2583051"></a><h2>Object Hierarchy</h2><pre class="synopsis">
<a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</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>
+----GimpMemsizeEntry
</pre></div><div class="refsect1" lang="en"><a name="id2583093"></a><h2>Implemented Interfaces</h2><p>
GimpMemsizeEntry implements
AtkImplementorIface.</p></div><div class="refsect1" lang="en"><a name="id2583108"></a><h2>Signal Prototypes</h2><pre class="synopsis">
"<a href="GimpMemsizeEntry.html#GimpMemsizeEntry-value-changed">value-changed</a>"
void user_function (<a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">GimpMemsizeEntry</a> *gimpmemsizeentry,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data);
</pre></div><div class="refsect1" lang="en"><a name="id2583138"></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
Kilobytes, Megabytes and Gigabytes. Used in the GIMP preferences dialog.
</p></div><div class="refsect1" lang="en"><a name="id2586060"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2586065"></a><h3><a name="GimpMemsizeEntry-struct"></a>GimpMemsizeEntry</h3><a class="indexterm" name="id2586074"></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="id2586090"></a><h3><a name="gimp-memsize-entry-new"></a>gimp_memsize_entry_new ()</h3><a class="indexterm" name="id2586099"></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><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><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>value</tt></i>:</span></td><td> the initial value (in Bytes)
</td></tr><tr><td><span class="term"><i class="parameter"><tt>lower</tt></i>:</span></td><td> the lower limit for the value (in Bytes)
</td></tr><tr><td><span class="term"><i class="parameter"><tt>upper</tt></i>:</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>:</span></td><td> Pointer to the new <a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a>.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2587978"></a><h3><a name="gimp-memsize-entry-set-value"></a>gimp_memsize_entry_set_value ()</h3><a class="indexterm" name="id2587989"></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><p>
Sets the <i class="parameter"><tt>entry</tt></i>'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><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>entry</tt></i>:</span></td><td> a <a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>value</tt></i>:</span></td><td> the new value (in Bytes)
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2588060"></a><h3><a name="gimp-memsize-entry-get-value"></a>gimp_memsize_entry_get_value ()</h3><a class="indexterm" name="id2588071"></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><p>
Retrieves the current value from a <a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>entry</tt></i>:</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>:</span></td><td> the current value of <i class="parameter"><tt>entry</tt></i> (in Bytes).
</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id2588135"></a><h2>Signals</h2><div class="refsect2" lang="en"><a name="id2588140"></a><h3><a name="GimpMemsizeEntry-value-changed"></a>The "value-changed" signal</h3><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);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>gimpmemsizeentry</tt></i>:</span></td><td>the object which received the signal.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i>:</span></td><td>user data set when the signal handler was connected.</td></tr></tbody></table></div></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><<GimpIntStore</b></a></td><td align="right"><a accesskey="n" href="GimpOffsetArea.html"><b>GimpOffsetArea>></b></a></td></tr></table></body></html>
|