Imported Upstream version 2.2.4
This commit is contained in:
92
devel-docs/libgimpwidgets/html/GimpMemsizeEntry.html
Normal file
92
devel-docs/libgimpwidgets/html/GimpMemsizeEntry.html
Normal file
@ -0,0 +1,92 @@
|
||||
<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="Part<72>I.<2E>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.2 (XML mode)"><style type="text/css">
|
||||
.synopsis, .classsynopsis {
|
||||
background: #eeeeee;
|
||||
border: solid 1px #aaaaaa;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.programlisting {
|
||||
background: #eeeeff;
|
||||
border: solid 1px #aaaaff;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.variablelist {
|
||||
padding: 4px;
|
||||
margin-left: 3em;
|
||||
}
|
||||
.navigation {
|
||||
background: #ffeeee;
|
||||
border: solid 1px #ffaaaa;
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.navigation a {
|
||||
color: #770000;
|
||||
}
|
||||
.navigation a:visited {
|
||||
color: #550000;
|
||||
}
|
||||
.navigation .title {
|
||||
font-size: 200%;
|
||||
}
|
||||
</style></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"><h2><span class="refentrytitle">GimpMemsizeEntry</span></h2><p>GimpMemsizeEntry — A composite widget that allows to enter a memory size.</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
|
||||
|
||||
|
||||
|
||||
struct <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);
|
||||
|
||||
</pre></div><div class="refsect1" lang="en"><a name="id2588738"></a><h2>Object Hierarchy</h2><pre class="synopsis">
|
||||
|
||||
GObject
|
||||
+----GtkObject
|
||||
+----GtkWidget
|
||||
+----GtkContainer
|
||||
+----GtkBox
|
||||
+----GtkHBox
|
||||
+----GimpMemsizeEntry
|
||||
</pre></div><div class="refsect1" lang="en"><a name="id2588780"></a><h2>Implemented Interfaces</h2><p>
|
||||
GimpMemsizeEntry implements
|
||||
AtkImplementorIface.</p></div><div class="refsect1" lang="en"><a name="id2588795"></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,
|
||||
gpointer user_data);
|
||||
</pre></div><div class="refsect1" lang="en"><a name="id2582744"></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="id2582764"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2582769"></a><h3><a name="GimpMemsizeEntry-struct"></a>struct GimpMemsizeEntry</h3><a class="indexterm" name="id2582777"></a><pre class="programlisting">struct 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="id2582794"></a><h3><a name="gimp-memsize-entry-new"></a>gimp_memsize_entry_new ()</h3><a class="indexterm" name="id2582802"></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 <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><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>value</tt></i><EFBFBD>:</span></td><td> the initial value (in Bytes)
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>lower</tt></i><EFBFBD>:</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><EFBFBD>:</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="id2589711"></a><h3><a name="gimp-memsize-entry-set-value"></a>gimp_memsize_entry_set_value ()</h3><a class="indexterm" name="id2589722"></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 <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><EFBFBD>:</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><EFBFBD>:</span></td><td> the new value (in Bytes)
|
||||
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2589793"></a><h3><a name="gimp-memsize-entry-get-value"></a>gimp_memsize_entry_get_value ()</h3><a class="indexterm" name="id2589804"></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>
|
||||
|
||||
</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><EFBFBD>:</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="id2590507"></a><h2>Signals</h2><div class="refsect2" lang="en"><a name="id2590513"></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,
|
||||
gpointer 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><EFBFBD>:</span></td><td>the object which received the signal.
|
||||
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i><EFBFBD>:</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><<<EFBFBD>GimpIntStore</b></a></td><td align="right"><a accesskey="n" href="GimpOffsetArea.html"><b>GimpOffsetArea<EFBFBD>>></b></a></td></tr></table></body></html>
|
||||
Reference in New Issue
Block a user