1143 lines
51 KiB
HTML
1143 lines
51 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
<title>GimpQueryBox</title>
|
||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||
<link rel="home" href="index.html" title="GIMP Widgets Library Reference Manual">
|
||
<link rel="up" href="libgimpwidgets-utils.html" title="Part V. GIMP Widgets Utilities">
|
||
<link rel="prev" href="libgimpwidgets-GimpHelpUI.html" title="GimpHelpUI">
|
||
<link rel="next" href="libgimpwidgets-GimpStock.html" title="GimpStock">
|
||
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
|
||
<link rel="stylesheet" href="style.css" type="text/css">
|
||
<link rel="part" href="libgimpwidgets-widgets.html" title="Part I. 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 II. GIMP Display Filters">
|
||
<link rel="part" href="libgimpwidgets-colorselector.html" title="Part III. GIMP Color Selectors">
|
||
<link rel="part" href="libgimpwidgets-controller.html" title="Part IV. GIMP Controllers">
|
||
<link rel="part" href="libgimpwidgets-utils.html" title="Part V. GIMP Widgets Utilities">
|
||
<link rel="part" href="libgimpwidgets-deprecated.html" title="Part VI. Deprecated API">
|
||
<link rel="index" href="libgimpwidgets-index.html" title="Index">
|
||
<link rel="index" href="libgimpwidgets-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
|
||
<link rel="index" href="libgimpwidgets-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
|
||
<link rel="index" href="libgimpwidgets-index-new-in-2-6.html" title="Index of new symbols in GIMP 2.6">
|
||
<link rel="index" href="libgimpwidgets-index-deprecated.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">
|
||
<td><a accesskey="p" href="libgimpwidgets-GimpHelpUI.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
||
<td><a accesskey="u" href="libgimpwidgets-utils.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="libgimpwidgets-GimpStock.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
||
</tr>
|
||
<tr><td colspan="5" class="shortcuts">
|
||
<a href="#libgimpwidgets-GimpQueryBox.synopsis" class="shortcut">Top</a>
|
||
|
|
||
<a href="#libgimpwidgets-GimpQueryBox.description" class="shortcut">Description</a>
|
||
</td></tr>
|
||
</table>
|
||
<div class="refentry" title="GimpQueryBox">
|
||
<a name="libgimpwidgets-GimpQueryBox"></a><div class="titlepage"></div>
|
||
<div class="refnamediv"><table width="100%"><tr>
|
||
<td valign="top">
|
||
<h2><span class="refentrytitle"><a name="libgimpwidgets-GimpQueryBox.top_of_page"></a>GimpQueryBox</span></h2>
|
||
<p>GimpQueryBox — Some simple dialogs to enter a single int, double, string or boolean value.</p>
|
||
</td>
|
||
<td valign="top" align="right"></td>
|
||
</tr></table></div>
|
||
<div class="refsynopsisdiv" title="Synopsis">
|
||
<a name="libgimpwidgets-GimpQueryBox.synopsis"></a><h2>Synopsis</h2>
|
||
<pre class="synopsis">
|
||
void (<a class="link" href="libgimpwidgets-GimpQueryBox.html#GimpQueryStringCallback" title="GimpQueryStringCallback ()">*GimpQueryStringCallback</a>) (<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *query_box,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *string,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);
|
||
void (<a class="link" href="libgimpwidgets-GimpQueryBox.html#GimpQueryIntCallback" title="GimpQueryIntCallback ()">*GimpQueryIntCallback</a>) (<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *query_box,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
|
||
>gint</a> value,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);
|
||
void (<a class="link" href="libgimpwidgets-GimpQueryBox.html#GimpQueryDoubleCallback" title="GimpQueryDoubleCallback ()">*GimpQueryDoubleCallback</a>) (<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *query_box,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> value,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);
|
||
void (<a class="link" href="libgimpwidgets-GimpQueryBox.html#GimpQuerySizeCallback" title="GimpQuerySizeCallback ()">*GimpQuerySizeCallback</a>) (<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *query_box,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> size,
|
||
<a
|
||
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
|
||
>GimpUnit</a> unit,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);
|
||
void (<a class="link" href="libgimpwidgets-GimpQueryBox.html#GimpQueryBooleanCallback" title="GimpQueryBooleanCallback ()">*GimpQueryBooleanCallback</a>) (<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *query_box,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> value,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);
|
||
<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> * <a class="link" href="libgimpwidgets-GimpQueryBox.html#gimp-query-string-box" title="gimp_query_string_box ()">gimp_query_string_box</a> (const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *title,
|
||
<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *parent,
|
||
<a class="link" href="libgimpwidgets-GimpHelpUI.html#GimpHelpFunc" title="GimpHelpFunc ()">GimpHelpFunc</a> help_func,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *help_id,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *message,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *initial,
|
||
<a
|
||
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
|
||
>GObject</a> *object,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *signal,
|
||
<a class="link" href="libgimpwidgets-GimpQueryBox.html#GimpQueryStringCallback" title="GimpQueryStringCallback ()">GimpQueryStringCallback</a> callback,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);
|
||
<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> * <a class="link" href="libgimpwidgets-GimpQueryBox.html#gimp-query-int-box" title="gimp_query_int_box ()">gimp_query_int_box</a> (const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *title,
|
||
<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *parent,
|
||
<a class="link" href="libgimpwidgets-GimpHelpUI.html#GimpHelpFunc" title="GimpHelpFunc ()">GimpHelpFunc</a> help_func,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *help_id,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *message,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
|
||
>gint</a> initial,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
|
||
>gint</a> lower,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
|
||
>gint</a> upper,
|
||
<a
|
||
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
|
||
>GObject</a> *object,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *signal,
|
||
<a class="link" href="libgimpwidgets-GimpQueryBox.html#GimpQueryIntCallback" title="GimpQueryIntCallback ()">GimpQueryIntCallback</a> callback,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);
|
||
<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> * <a class="link" href="libgimpwidgets-GimpQueryBox.html#gimp-query-double-box" title="gimp_query_double_box ()">gimp_query_double_box</a> (const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *title,
|
||
<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *parent,
|
||
<a class="link" href="libgimpwidgets-GimpHelpUI.html#GimpHelpFunc" title="GimpHelpFunc ()">GimpHelpFunc</a> help_func,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *help_id,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *message,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> initial,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> lower,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> upper,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
|
||
>gint</a> digits,
|
||
<a
|
||
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
|
||
>GObject</a> *object,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *signal,
|
||
<a class="link" href="libgimpwidgets-GimpQueryBox.html#GimpQueryDoubleCallback" title="GimpQueryDoubleCallback ()">GimpQueryDoubleCallback</a> callback,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);
|
||
<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> * <a class="link" href="libgimpwidgets-GimpQueryBox.html#gimp-query-size-box" title="gimp_query_size_box ()">gimp_query_size_box</a> (const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *title,
|
||
<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *parent,
|
||
<a class="link" href="libgimpwidgets-GimpHelpUI.html#GimpHelpFunc" title="GimpHelpFunc ()">GimpHelpFunc</a> help_func,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *help_id,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *message,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> initial,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> lower,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> upper,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
|
||
>gint</a> digits,
|
||
<a
|
||
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
|
||
>GimpUnit</a> unit,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> resolution,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> dot_for_dot,
|
||
<a
|
||
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
|
||
>GObject</a> *object,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *signal,
|
||
<a class="link" href="libgimpwidgets-GimpQueryBox.html#GimpQuerySizeCallback" title="GimpQuerySizeCallback ()">GimpQuerySizeCallback</a> callback,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);
|
||
<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> * <a class="link" href="libgimpwidgets-GimpQueryBox.html#gimp-query-boolean-box" title="gimp_query_boolean_box ()">gimp_query_boolean_box</a> (const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *title,
|
||
<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *parent,
|
||
<a class="link" href="libgimpwidgets-GimpHelpUI.html#GimpHelpFunc" title="GimpHelpFunc ()">GimpHelpFunc</a> help_func,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *help_id,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *stock_id,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *message,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *true_button,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *false_button,
|
||
<a
|
||
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
|
||
>GObject</a> *object,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *signal,
|
||
<a class="link" href="libgimpwidgets-GimpQueryBox.html#GimpQueryBooleanCallback" title="GimpQueryBooleanCallback ()">GimpQueryBooleanCallback</a> callback,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);
|
||
#define <a class="link" href="libgimpwidgets-GimpQueryBox.html#GIMP-QUERY-BOX-VBOX--CAPS" title="GIMP_QUERY_BOX_VBOX()">GIMP_QUERY_BOX_VBOX</a> (qbox)
|
||
</pre>
|
||
</div>
|
||
<div class="refsect1" title="Description">
|
||
<a name="libgimpwidgets-GimpQueryBox.description"></a><h2>Description</h2>
|
||
<p>
|
||
These functions provide simple dialogs for entering a single string,
|
||
integer, double, boolean or pixel size value.
|
||
</p>
|
||
<p>
|
||
They return a pointer to a <a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkDialog.html"
|
||
><span class="type">GtkDialog</span></a> which has to be shown with
|
||
<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html#gtk-widget-show"
|
||
><code class="function">gtk_widget_show()</code></a> by the caller.
|
||
</p>
|
||
<p>
|
||
The dialogs contain an entry widget for the kind of value they ask for
|
||
and "OK" and "Cancel" buttons. On "Cancel", all query boxes except the
|
||
boolean one silently destroy themselves. On "OK" the user defined
|
||
callback function is called and returns the entered value.
|
||
</p>
|
||
</div>
|
||
<div class="refsect1" title="Details">
|
||
<a name="libgimpwidgets-GimpQueryBox.details"></a><h2>Details</h2>
|
||
<div class="refsect2" title="GimpQueryStringCallback ()">
|
||
<a name="GimpQueryStringCallback"></a><h3>GimpQueryStringCallback ()</h3>
|
||
<pre class="programlisting">void (*GimpQueryStringCallback) (<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *query_box,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *string,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);</pre>
|
||
<p>
|
||
Note that you have to <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"
|
||
><code class="function">g_free()</code></a> the returned string.
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>query_box</code></em> :</span></p></td>
|
||
<td>The query box.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
|
||
<td>The entered string.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
||
<td>The user data.
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="GimpQueryIntCallback ()">
|
||
<a name="GimpQueryIntCallback"></a><h3>GimpQueryIntCallback ()</h3>
|
||
<pre class="programlisting">void (*GimpQueryIntCallback) (<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *query_box,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
|
||
>gint</a> value,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);</pre>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>query_box</code></em> :</span></p></td>
|
||
<td>The query box.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
|
||
<td>The entered integer value.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
||
<td>The user data.
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="GimpQueryDoubleCallback ()">
|
||
<a name="GimpQueryDoubleCallback"></a><h3>GimpQueryDoubleCallback ()</h3>
|
||
<pre class="programlisting">void (*GimpQueryDoubleCallback) (<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *query_box,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> value,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);</pre>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>query_box</code></em> :</span></p></td>
|
||
<td>The query box.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
|
||
<td>The entered double value.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
||
<td>The user data.
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="GimpQuerySizeCallback ()">
|
||
<a name="GimpQuerySizeCallback"></a><h3>GimpQuerySizeCallback ()</h3>
|
||
<pre class="programlisting">void (*GimpQuerySizeCallback) (<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *query_box,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> size,
|
||
<a
|
||
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
|
||
>GimpUnit</a> unit,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);</pre>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>query_box</code></em> :</span></p></td>
|
||
<td>The query box.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
|
||
<td>The entered size in pixels.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>unit</code></em> :</span></p></td>
|
||
<td>The selected unit from the <a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu"><span class="type">GimpUnitMenu</span></a>.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
||
<td>The user data.
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="GimpQueryBooleanCallback ()">
|
||
<a name="GimpQueryBooleanCallback"></a><h3>GimpQueryBooleanCallback ()</h3>
|
||
<pre class="programlisting">void (*GimpQueryBooleanCallback) (<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *query_box,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> value,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);</pre>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>query_box</code></em> :</span></p></td>
|
||
<td>The query box.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
|
||
<td>The entered boolean value.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
||
<td>The user data.
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_query_string_box ()">
|
||
<a name="gimp-query-string-box"></a><h3>gimp_query_string_box ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> * gimp_query_string_box (const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *title,
|
||
<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *parent,
|
||
<a class="link" href="libgimpwidgets-GimpHelpUI.html#GimpHelpFunc" title="GimpHelpFunc ()">GimpHelpFunc</a> help_func,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *help_id,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *message,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *initial,
|
||
<a
|
||
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
|
||
>GObject</a> *object,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *signal,
|
||
<a class="link" href="libgimpwidgets-GimpQueryBox.html#GimpQueryStringCallback" title="GimpQueryStringCallback ()">GimpQueryStringCallback</a> callback,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);</pre>
|
||
<p>
|
||
Creates a new <a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkDialog.html"
|
||
><span class="type">GtkDialog</span></a> that queries the user for a string value.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
|
||
<td> The query box dialog's title.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
|
||
<td> The dialog's parent widget.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>help_func</code></em> :</span></p></td>
|
||
<td> The help function to show this dialog's help page.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>help_id</code></em> :</span></p></td>
|
||
<td> A string identifying this dialog's help page.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
|
||
<td> A string which will be shown above the dialog's entry widget.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>initial</code></em> :</span></p></td>
|
||
<td> The initial value.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
|
||
<td> The object this query box is associated with.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>signal</code></em> :</span></p></td>
|
||
<td> The object's signal which will cause the query box to be closed.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
|
||
<td> The function which will be called when the user selects "OK".
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
||
<td> The callback's user data.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> A pointer to the new <a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkDialog.html"
|
||
><span class="type">GtkDialog</span></a>.
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_query_int_box ()">
|
||
<a name="gimp-query-int-box"></a><h3>gimp_query_int_box ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> * gimp_query_int_box (const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *title,
|
||
<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *parent,
|
||
<a class="link" href="libgimpwidgets-GimpHelpUI.html#GimpHelpFunc" title="GimpHelpFunc ()">GimpHelpFunc</a> help_func,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *help_id,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *message,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
|
||
>gint</a> initial,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
|
||
>gint</a> lower,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
|
||
>gint</a> upper,
|
||
<a
|
||
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
|
||
>GObject</a> *object,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *signal,
|
||
<a class="link" href="libgimpwidgets-GimpQueryBox.html#GimpQueryIntCallback" title="GimpQueryIntCallback ()">GimpQueryIntCallback</a> callback,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);</pre>
|
||
<p>
|
||
Creates a new <a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkDialog.html"
|
||
><span class="type">GtkDialog</span></a> that queries the user for an integer value.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
|
||
<td> The query box dialog's title.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
|
||
<td> The dialog's parent widget.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>help_func</code></em> :</span></p></td>
|
||
<td> The help function to show this dialog's help page.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>help_id</code></em> :</span></p></td>
|
||
<td> A string identifying this dialog's help page.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
|
||
<td> A string which will be shown above the dialog's entry widget.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>initial</code></em> :</span></p></td>
|
||
<td> The initial value.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>lower</code></em> :</span></p></td>
|
||
<td> The lower boundary of the range of possible values.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>upper</code></em> :</span></p></td>
|
||
<td> The upper boundray of the range of possible values.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
|
||
<td> The object this query box is associated with.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>signal</code></em> :</span></p></td>
|
||
<td> The object's signal which will cause the query box to be closed.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
|
||
<td> The function which will be called when the user selects "OK".
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
||
<td> The callback's user data.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> A pointer to the new <a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkDialog.html"
|
||
><span class="type">GtkDialog</span></a>.
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_query_double_box ()">
|
||
<a name="gimp-query-double-box"></a><h3>gimp_query_double_box ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> * gimp_query_double_box (const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *title,
|
||
<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *parent,
|
||
<a class="link" href="libgimpwidgets-GimpHelpUI.html#GimpHelpFunc" title="GimpHelpFunc ()">GimpHelpFunc</a> help_func,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *help_id,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *message,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> initial,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> lower,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> upper,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
|
||
>gint</a> digits,
|
||
<a
|
||
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
|
||
>GObject</a> *object,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *signal,
|
||
<a class="link" href="libgimpwidgets-GimpQueryBox.html#GimpQueryDoubleCallback" title="GimpQueryDoubleCallback ()">GimpQueryDoubleCallback</a> callback,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);</pre>
|
||
<p>
|
||
Creates a new <a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkDialog.html"
|
||
><span class="type">GtkDialog</span></a> that queries the user for a double value.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
|
||
<td> The query box dialog's title.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
|
||
<td> The dialog's parent widget.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>help_func</code></em> :</span></p></td>
|
||
<td> The help function to show this dialog's help page.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>help_id</code></em> :</span></p></td>
|
||
<td> A string identifying this dialog's help page.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
|
||
<td> A string which will be shown above the dialog's entry widget.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>initial</code></em> :</span></p></td>
|
||
<td> The initial value.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>lower</code></em> :</span></p></td>
|
||
<td> The lower boundary of the range of possible values.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>upper</code></em> :</span></p></td>
|
||
<td> The upper boundray of the range of possible values.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>digits</code></em> :</span></p></td>
|
||
<td> The number of decimal digits the <a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkSpinButton.html"
|
||
><span class="type">GtkSpinButton</span></a> will provide.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
|
||
<td> The object this query box is associated with.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>signal</code></em> :</span></p></td>
|
||
<td> The object's signal which will cause the query box to be closed.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
|
||
<td> The function which will be called when the user selects "OK".
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
||
<td> The callback's user data.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> A pointer to the new <a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkDialog.html"
|
||
><span class="type">GtkDialog</span></a>.
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_query_size_box ()">
|
||
<a name="gimp-query-size-box"></a><h3>gimp_query_size_box ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> * gimp_query_size_box (const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *title,
|
||
<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *parent,
|
||
<a class="link" href="libgimpwidgets-GimpHelpUI.html#GimpHelpFunc" title="GimpHelpFunc ()">GimpHelpFunc</a> help_func,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *help_id,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *message,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> initial,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> lower,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> upper,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
|
||
>gint</a> digits,
|
||
<a
|
||
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
|
||
>GimpUnit</a> unit,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> resolution,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> dot_for_dot,
|
||
<a
|
||
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
|
||
>GObject</a> *object,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *signal,
|
||
<a class="link" href="libgimpwidgets-GimpQueryBox.html#GimpQuerySizeCallback" title="GimpQuerySizeCallback ()">GimpQuerySizeCallback</a> callback,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);</pre>
|
||
<p>
|
||
Creates a new <a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkDialog.html"
|
||
><span class="type">GtkDialog</span></a> that queries the user for a size using a
|
||
<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a>.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
|
||
<td> The query box dialog's title.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
|
||
<td> The dialog's parent widget.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>help_func</code></em> :</span></p></td>
|
||
<td> The help function to show this dialog's help page.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>help_id</code></em> :</span></p></td>
|
||
<td> A string identifying this dialog's help page.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
|
||
<td> A string which will be shown above the dialog's entry widget.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>initial</code></em> :</span></p></td>
|
||
<td> The initial value.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>lower</code></em> :</span></p></td>
|
||
<td> The lower boundary of the range of possible values.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>upper</code></em> :</span></p></td>
|
||
<td> The upper boundray of the range of possible values.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>digits</code></em> :</span></p></td>
|
||
<td> The number of decimal digits the <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a> provide in
|
||
"pixel" mode.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>unit</code></em> :</span></p></td>
|
||
<td> The unit initially shown by the <a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu"><span class="type">GimpUnitMenu</span></a>.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>resolution</code></em> :</span></p></td>
|
||
<td> The resolution (in dpi) which will be used for pixel/unit
|
||
calculations.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>dot_for_dot</code></em> :</span></p></td>
|
||
<td> <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE--CAPS"
|
||
><code class="literal">TRUE</code></a> if the <a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu"><span class="type">GimpUnitMenu</span></a>'s initial unit should be "pixels".
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
|
||
<td> The object this query box is associated with.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>signal</code></em> :</span></p></td>
|
||
<td> The object's signal which will cause the query box
|
||
to be closed.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
|
||
<td> The function which will be called when the user selects "OK".
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
||
<td> The callback's user data.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> A pointer to the new <a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkDialog.html"
|
||
><span class="type">GtkDialog</span></a>.
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_query_boolean_box ()">
|
||
<a name="gimp-query-boolean-box"></a><h3>gimp_query_boolean_box ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> * gimp_query_boolean_box (const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *title,
|
||
<a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
|
||
>GtkWidget</a> *parent,
|
||
<a class="link" href="libgimpwidgets-GimpHelpUI.html#GimpHelpFunc" title="GimpHelpFunc ()">GimpHelpFunc</a> help_func,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *help_id,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *stock_id,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *message,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *true_button,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *false_button,
|
||
<a
|
||
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
|
||
>GObject</a> *object,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *signal,
|
||
<a class="link" href="libgimpwidgets-GimpQueryBox.html#GimpQueryBooleanCallback" title="GimpQueryBooleanCallback ()">GimpQueryBooleanCallback</a> callback,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
|
||
>gpointer</a> data);</pre>
|
||
<p>
|
||
Creates a new <a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkDialog.html"
|
||
><span class="type">GtkDialog</span></a> that asks the user to do a boolean decision.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
|
||
<td> The query box dialog's title.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
|
||
<td> The dialog's parent widget.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>help_func</code></em> :</span></p></td>
|
||
<td> The help function to show this dialog's help page.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>help_id</code></em> :</span></p></td>
|
||
<td> A string identifying this dialog's help page.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>stock_id</code></em> :</span></p></td>
|
||
<td> A stock_id to specify an icon to appear on the left
|
||
on the dialog's message.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
|
||
<td> A string which will be shown in the query box.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>true_button</code></em> :</span></p></td>
|
||
<td> The string to be shown in the dialog's left button.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>false_button</code></em> :</span></p></td>
|
||
<td> The string to be shown in the dialog's right button.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
|
||
<td> The object this query box is associated with.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>signal</code></em> :</span></p></td>
|
||
<td> The object's signal which will cause the query box
|
||
to be closed.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
|
||
<td> The function which will be called when the user clicks one
|
||
of the buttons.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
||
<td> The callback's user data.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> A pointer to the new <a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkDialog.html"
|
||
><span class="type">GtkDialog</span></a>.
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="GIMP_QUERY_BOX_VBOX()">
|
||
<a name="GIMP-QUERY-BOX-VBOX--CAPS"></a><h3>GIMP_QUERY_BOX_VBOX()</h3>
|
||
<pre class="programlisting">#define GIMP_QUERY_BOX_VBOX(qbox)</pre>
|
||
<p>
|
||
A macro to access the <a
|
||
href="http://library.gnome.org/devel/gtk/unstable/GtkVBox.html"
|
||
><span class="type">GtkVBox</span></a> in a <span class="type">GimpQueryBox</span>. Useful if you want to add
|
||
more widgets.
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody><tr>
|
||
<td><p><span class="term"><em class="parameter"><code>qbox</code></em> :</span></p></td>
|
||
<td>
|
||
</td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<div class="refsect1" title="See Also">
|
||
<a name="libgimpwidgets-GimpQueryBox.see-also"></a><h2>See Also</h2>
|
||
<p>
|
||
GimpSizeEntry
|
||
</p>
|
||
<p>
|
||
GimpUnitMenu
|
||
</p>
|
||
</div>
|
||
</div>
|
||
<div class="footer">
|
||
<hr>
|
||
Generated by GTK-Doc V1.11</div>
|
||
</body>
|
||
</html>
|