Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > 254cc853e818c6f29f3290af5267eed6 > files > 116

graphicsmagick-doc-1.3.12-3.3.mga1.i586.rpm

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.5: http://docutils.sourceforge.net/" />
<title>widget</title>
<link rel="stylesheet" href="../docutils-api.css" type="text/css" />
</head>
<body>

<div class="banner">
<span>
<img src="../images/gm-107x76.png" alt="GraphicMagick logo" width="107" height="76" />
<span class="title">GraphicsMagick</span>
<form action="http://www.google.com/search">
    Search&nbsp;site
	<input type=hidden name="domains" value="www.graphicsmagick.org" />
	<input type=hidden name="sitesearch" value="www.graphicsmagick.org" />
    <input type=text name="q" size="25" maxlength="255" />
    <input type=submit name="sa" value="Search" />
</form>
</span>
</div>

<div class="navmenu">
<ul>
<li><a href="../index.html">Home</a></li>
<li><a href="../Copyright.html">License</a></li>
<li><a href="../mission.html">Mission</a></li>
<li><a href="../download.html">Download</a></li>
<li><a href="../README.html">Installation</a></li>
<li><a href="../FAQ.html">FAQ</a></li>
<li><a href="../NEWS.html">News</a> </li>
<li><a href="../formats.html">Formats</a></li>
</ul>
</div>
<div class="navmenu">
<ul>
<li><a href="../process.html">Process</a></li>
<li><a href="../contribute.html">Contribute</a></li>
<li><a href="../CVS.html">CVS</a></li>
<li><a href="http://sourceforge.net/mail/?group_id=73485" target="top_">Mailing Lists</a></li>
<li><a href="../Changelog.html">ChangeLog</a></li>
<li><a href="http://sourceforge.net/projects/graphicsmagick/" target="top_">Report Bugs</a></li>
<li><a href="../utilities.html">Utilities</a></li>
<li><a href="../programming.html">Programming</a></li>
<li><a href="../links.html">Links</a></li>
</ul>
</div>
<div class="document" id="widget">
<h1 class="title">widget</h1>
<h2 class="subtitle" id="x11-widgets">X11 Widgets</h2>

<div class="contents topic" id="contents">
<p class="topic-title first">Contents</p>
<ul class="simple">
<li><a class="reference internal" href="#xcolorbrowserwidget" id="id25">XColorBrowserWidget</a></li>
<li><a class="reference internal" href="#xcommandwidget" id="id26">XCommandWidget</a></li>
<li><a class="reference internal" href="#xconfirmwidget" id="id27">XConfirmWidget</a></li>
<li><a class="reference internal" href="#xdialogwidget" id="id28">XDialogWidget</a></li>
<li><a class="reference internal" href="#xfilebrowserwidget" id="id29">XFileBrowserWidget</a></li>
<li><a class="reference internal" href="#xfontbrowserwidget" id="id30">XFontBrowserWidget</a></li>
<li><a class="reference internal" href="#xinfowidget" id="id31">XInfoWidget</a></li>
<li><a class="reference internal" href="#xlistbrowserwidget" id="id32">XListBrowserWidget</a></li>
<li><a class="reference internal" href="#xmenuwidget" id="id33">XMenuWidget</a></li>
<li><a class="reference internal" href="#xmonitorwidget" id="id34">XMonitorWidget</a></li>
<li><a class="reference internal" href="#xnoticewidget" id="id35">XNoticeWidget</a></li>
<li><a class="reference internal" href="#xpreferenceswidget" id="id36">XPreferencesWidget</a></li>
<li><a class="reference internal" href="#xtextviewwidget" id="id37">XTextViewWidget</a></li>
</ul>
</div>
<div class="section" id="xcolorbrowserwidget">
<h1><a class="toc-backref" href="#id25">XColorBrowserWidget</a></h1>
<div class="section" id="synopsis">
<h2>Synopsis</h2>
<pre class="literal-block">
void MagickXColorBrowserWidget( Display *display, MagickXWindows *windows, const char *action,
                                char *reply );
</pre>
</div>
<div class="section" id="description">
<h2>Description</h2>
<p>Method MagickXColorBrowserWidget displays a Color Browser widget with a color
query to the user.  The user keys a reply and presses the Action or Cancel
button to exit.  The typed text is returned as the reply function parameter.</p>
<p>The format of the MagickXColorBrowserWidget method is:</p>
<pre class="literal-block">
void MagickXColorBrowserWidget( Display *display, MagickXWindows *windows, const char *action,
                                char *reply );
</pre>
<dl class="docutils">
<dt>display:</dt>
<dd>Specifies a connection to an X server;  returned from
XOpenDisplay.</dd>
<dt>window:</dt>
<dd>Specifies a pointer to a MagickXWindows structure.</dd>
<dt>action:</dt>
<dd>Specifies a pointer to the action of this widget.</dd>
<dt>reply:</dt>
<dd>The response from the user is returned in this parameter.</dd>
</dl>
</div>
</div>
<div class="section" id="xcommandwidget">
<h1><a class="toc-backref" href="#id26">XCommandWidget</a></h1>
<div class="section" id="id1">
<h2>Synopsis</h2>
<pre class="literal-block">
int MagickXCommandWidget( Display *display, MagickXWindows *windows,
                          const char ** selections, XEvent *event );
</pre>
</div>
<div class="section" id="id2">
<h2>Description</h2>
<p>Method MagickXCommandWidget maps a menu and returns the command pointed to by
the user when the button is released.</p>
<p>The format of the MagickXCommandWidget method is:</p>
<pre class="literal-block">
int MagickXCommandWidget( Display *display, MagickXWindows *windows,
                          const char ** selections, XEvent *event );
</pre>
<dl class="docutils">
<dt>selection_number:</dt>
<dd>Specifies the number of the selection that the
user choose.</dd>
<dt>display:</dt>
<dd>Specifies a connection to an X server;  returned from
XOpenDisplay.</dd>
<dt>window:</dt>
<dd>Specifies a pointer to a MagickXWindows structure.</dd>
<dt>selections:</dt>
<dd>Specifies a pointer to one or more strings that comprise
the choices in the menu.</dd>
<dt>event:</dt>
<dd>Specifies a pointer to a X11 XEvent structure.</dd>
</dl>
</div>
</div>
<div class="section" id="xconfirmwidget">
<h1><a class="toc-backref" href="#id27">XConfirmWidget</a></h1>
<div class="section" id="id3">
<h2>Synopsis</h2>
<pre class="literal-block">
int MagickXConfirmWidget( Display *display, MagickXWindows *windows, const char *reason,
                          const char *description );
</pre>
</div>
<div class="section" id="id4">
<h2>Description</h2>
<p>Method MagickXConfirmWidget displays a Confirm widget with a notice to the user.
The function returns -1 if Dismiss is pressed, 0 for Cancel, and 1 for
Yes.</p>
<p>The format of the MagickXConfirmWidget method is:</p>
<pre class="literal-block">
int MagickXConfirmWidget( Display *display, MagickXWindows *windows, const char *reason,
                          const char *description );
</pre>
<dl class="docutils">
<dt>status:</dt>
<dd>Method MagickXConfirmWidget returns True if the user presses Yes
otherwise False is returned.</dd>
<dt>display:</dt>
<dd>Specifies a connection to an X server;  returned from
XOpenDisplay.</dd>
<dt>window:</dt>
<dd>Specifies a pointer to a MagickXWindows structure.</dd>
<dt>reason:</dt>
<dd>Specifies the message to display before terminating the
program.</dd>
<dt>description:</dt>
<dd>Specifies any description to the message.</dd>
</dl>
</div>
</div>
<div class="section" id="xdialogwidget">
<h1><a class="toc-backref" href="#id28">XDialogWidget</a></h1>
<div class="section" id="id5">
<h2>Synopsis</h2>
<pre class="literal-block">
int MagickXDialogWidget( Display *display, MagickXWindows *windows, const char *action,
                         const char *query, char *reply );
</pre>
</div>
<div class="section" id="id6">
<h2>Description</h2>
<p>Method MagickXDialogWidget displays a Dialog widget with a query to the user.
The user keys a reply and presses the Ok or Cancel button to exit.  The
typed text is returned as the reply function parameter.</p>
<p>The format of the MagickXDialogWidget method is:</p>
<pre class="literal-block">
int MagickXDialogWidget( Display *display, MagickXWindows *windows, const char *action,
                         const char *query, char *reply );
</pre>
<dl class="docutils">
<dt>display:</dt>
<dd>Specifies a connection to an X server;  returned from
XOpenDisplay.</dd>
<dt>window:</dt>
<dd>Specifies a pointer to a MagickXWindows structure.</dd>
<dt>action:</dt>
<dd>Specifies a pointer to the action of this widget.</dd>
<dt>query:</dt>
<dd>Specifies a pointer to the query to present to the user.</dd>
<dt>reply:</dt>
<dd>The response from the user is returned in this parameter.</dd>
</dl>
</div>
</div>
<div class="section" id="xfilebrowserwidget">
<h1><a class="toc-backref" href="#id29">XFileBrowserWidget</a></h1>
<div class="section" id="id7">
<h2>Synopsis</h2>
<pre class="literal-block">
void MagickXFileBrowserWidget( Display *display, MagickXWindows *windows, const char *action,
                               char *reply );
</pre>
</div>
<div class="section" id="id8">
<h2>Description</h2>
<p>Method MagickXFileBrowserWidget displays a File Browser widget with a file query
to the user.  The user keys a reply and presses the Action or Cancel button
to exit.  The typed text is returned as the reply function parameter.</p>
<p>The format of the MagickXFileBrowserWidget method is:</p>
<pre class="literal-block">
void MagickXFileBrowserWidget( Display *display, MagickXWindows *windows, const char *action,
                               char *reply );
</pre>
<dl class="docutils">
<dt>display:</dt>
<dd>Specifies a connection to an X server;  returned from
XOpenDisplay.</dd>
<dt>window:</dt>
<dd>Specifies a pointer to a MagickXWindows structure.</dd>
<dt>action:</dt>
<dd>Specifies a pointer to the action of this widget.</dd>
<dt>reply:</dt>
<dd>The response from the user is returned in this parameter.</dd>
</dl>
</div>
</div>
<div class="section" id="xfontbrowserwidget">
<h1><a class="toc-backref" href="#id30">XFontBrowserWidget</a></h1>
<div class="section" id="id9">
<h2>Synopsis</h2>
<pre class="literal-block">
void MagickXFontBrowserWidget( Display *display, MagickXWindows *windows, const char *action,
                               char *reply );
</pre>
</div>
<div class="section" id="id10">
<h2>Description</h2>
<p>Method MagickXFontBrowserWidget displays a Font Browser widget with a font query
to the user.  The user keys a reply and presses the Action or Cancel button
to exit.  The typed text is returned as the reply function parameter.</p>
<p>The format of the MagickXFontBrowserWidget method is:</p>
<pre class="literal-block">
void MagickXFontBrowserWidget( Display *display, MagickXWindows *windows, const char *action,
                               char *reply );
</pre>
<dl class="docutils">
<dt>display:</dt>
<dd>Specifies a connection to an X server;  returned from
XOpenDisplay.</dd>
<dt>window:</dt>
<dd>Specifies a pointer to a MagickXWindows structure.</dd>
<dt>action:</dt>
<dd>Specifies a pointer to the action of this widget.</dd>
<dt>reply:</dt>
<dd>The response from the user is returned in this parameter.</dd>
</dl>
</div>
</div>
<div class="section" id="xinfowidget">
<h1><a class="toc-backref" href="#id31">XInfoWidget</a></h1>
<div class="section" id="id11">
<h2>Synopsis</h2>
<pre class="literal-block">
void MagickXInfoWidget( Display *display, MagickXWindows *windows, const char *activity );
</pre>
</div>
<div class="section" id="id12">
<h2>Description</h2>
<p>Method MagickXInfoWidget displays text in the Info widget.  The purpose is to
inform the user that what activity is currently being performed (e.g.
reading an image, rotating an image, etc.).</p>
<p>The format of the MagickXInfoWidget method is:</p>
<pre class="literal-block">
void MagickXInfoWidget( Display *display, MagickXWindows *windows, const char *activity );
</pre>
<p>A description of each parameter follows:</p>
<dl class="docutils">
<dt>display:</dt>
<dd>Specifies a connection to an X server;  returned from
XOpenDisplay.</dd>
<dt>window:</dt>
<dd>Specifies a pointer to a MagickXWindows structure.</dd>
<dt>activity:</dt>
<dd>This character string reflects the current activity and is
displayed in the Info widget.</dd>
</dl>
</div>
</div>
<div class="section" id="xlistbrowserwidget">
<h1><a class="toc-backref" href="#id32">XListBrowserWidget</a></h1>
<div class="section" id="id13">
<h2>Synopsis</h2>
<pre class="literal-block">
void MagickXListBrowserWidget( Display *display, MagickXWindows *windows,
                               MagickXWindowInfo *window_info, const char ** list,
                               const char *action, const char *query, char *reply );
</pre>
</div>
<div class="section" id="id14">
<h2>Description</h2>
<p>Method MagickXListBrowserWidget displays a List Browser widget with a query to
the user.  The user keys a reply or select a reply from the list.  Finally,
the user presses the Action or Cancel button to exit.  The typed text is
returned as the reply function parameter.</p>
<p>The format of the MagickXListBrowserWidget method is:</p>
<pre class="literal-block">
void MagickXListBrowserWidget( Display *display, MagickXWindows *windows,
                               MagickXWindowInfo *window_info, const char ** list,
                               const char *action, const char *query, char *reply );
</pre>
<dl class="docutils">
<dt>display:</dt>
<dd>Specifies a connection to an X server;  returned from
XOpenDisplay.</dd>
<dt>window:</dt>
<dd>Specifies a pointer to a MagickXWindows structure.</dd>
<dt>list:</dt>
<dd>Specifies a pointer to an array of strings.  The user can
select from these strings as a possible reply value.</dd>
<dt>action:</dt>
<dd>Specifies a pointer to the action of this widget.</dd>
<dt>query:</dt>
<dd>Specifies a pointer to the query to present to the user.</dd>
<dt>reply:</dt>
<dd>The response from the user is returned in this parameter.</dd>
</dl>
</div>
</div>
<div class="section" id="xmenuwidget">
<h1><a class="toc-backref" href="#id33">XMenuWidget</a></h1>
<div class="section" id="id15">
<h2>Synopsis</h2>
<pre class="literal-block">
int MagickXMenuWidget( Display *display, MagickXWindows *windows, const char *title,
                       const char ** selections, char *item );
</pre>
</div>
<div class="section" id="id16">
<h2>Description</h2>
<p>Method MagickXMenuWidget maps a menu and returns the command pointed to by the
user when the button is released.</p>
<p>The format of the MagickXMenuWidget method is:</p>
<pre class="literal-block">
int MagickXMenuWidget( Display *display, MagickXWindows *windows, const char *title,
                       const char ** selections, char *item );
</pre>
<dl class="docutils">
<dt>selection_number:</dt>
<dd>Specifies the number of the selection that the
user choose.</dd>
<dt>display:</dt>
<dd>Specifies a connection to an X server;  returned from
XOpenDisplay.</dd>
<dt>window:</dt>
<dd>Specifies a pointer to a MagickXWindows structure.</dd>
<dt>title:</dt>
<dd>Specifies a character string that describes the menu selections.</dd>
<dt>selections:</dt>
<dd>Specifies a pointer to one or more strings that comprise
the choices in the menu.</dd>
<dt>item:</dt>
<dd>Specifies a character array.  The item selected from the menu
is returned here.</dd>
</dl>
</div>
</div>
<div class="section" id="xmonitorwidget">
<h1><a class="toc-backref" href="#id34">XMonitorWidget</a></h1>
<div class="section" id="id17">
<h2>Synopsis</h2>
<pre class="literal-block">
void MagickXMonitorWidget( Display *display, MagickXWindows *windows, const char *task,
                           const magick_int64_t quantum, const magick_uint64_t span );
</pre>
</div>
<div class="section" id="id18">
<h2>Description</h2>
<p>Method MagickXMonitorWidget displays the progress a task is making in
completing a task.  A span of zero toggles the active status.  An inactive
state disables the progress monitor.</p>
<p>The format of the MagickXMonitorWidget method is:</p>
<pre class="literal-block">
void MagickXMonitorWidget( Display *display, MagickXWindows *windows, const char *task,
                           const magick_int64_t quantum, const magick_uint64_t span );
</pre>
<dl class="docutils">
<dt>display:</dt>
<dd>Specifies a connection to an X server;  returned from
XOpenDisplay.</dd>
<dt>window:</dt>
<dd>Specifies a pointer to a MagickXWindows structure.</dd>
<dt>task:</dt>
<dd>Identifies the task in progress.</dd>
<dt>quantum:</dt>
<dd>Specifies the quantum position within the span which represents
how much progress has been made in completing a task.</dd>
<dt>span:</dt>
<dd>Specifies the span relative to completing a task.</dd>
</dl>
</div>
</div>
<div class="section" id="xnoticewidget">
<h1><a class="toc-backref" href="#id35">XNoticeWidget</a></h1>
<div class="section" id="id19">
<h2>Synopsis</h2>
<pre class="literal-block">
void MagickXNoticeWidget( Display *display, MagickXWindows *windows, const char *reason,
                          const char *description );
</pre>
</div>
<div class="section" id="id20">
<h2>Description</h2>
<p>Method MagickXNoticeWidget displays a Notice widget with a notice to the user.
The function returns when the user presses the &quot;Dismiss&quot; button.</p>
<p>The format of the MagickXNoticeWidget method is:</p>
<pre class="literal-block">
void MagickXNoticeWidget( Display *display, MagickXWindows *windows, const char *reason,
                          const char *description );
</pre>
<dl class="docutils">
<dt>display:</dt>
<dd>Specifies a connection to an X server;  returned from
XOpenDisplay.</dd>
<dt>window:</dt>
<dd>Specifies a pointer to a MagickXWindows structure.</dd>
<dt>reason:</dt>
<dd>Specifies the message to display before terminating the
program.</dd>
<dt>description:</dt>
<dd>Specifies any description to the message.</dd>
</dl>
</div>
</div>
<div class="section" id="xpreferenceswidget">
<h1><a class="toc-backref" href="#id36">XPreferencesWidget</a></h1>
<div class="section" id="id21">
<h2>Synopsis</h2>
<pre class="literal-block">
unsigned int MagickXPreferencesWidget( Display *display,
                                       <a class="reference external" href="../api/types.html#magickxresourceinfo">MagickXResourceInfo</a> *resource_info,
                                       MagickXWindows *windows );
</pre>
</div>
<div class="section" id="id22">
<h2>Description</h2>
<p>Method MagickXPreferencesWidget displays a Preferences widget with program
preferences.  If the user presses the Apply button, the preferences are
stored in a configuration file in the users' home directory.</p>
<p>The format of the MagickXPreferencesWidget method is:</p>
<pre class="literal-block">
unsigned int MagickXPreferencesWidget( Display *display,
                                       <a class="reference external" href="../api/types.html#magickxresourceinfo">MagickXResourceInfo</a> *resource_info,
                                       MagickXWindows *windows );
</pre>
<dl class="docutils">
<dt>display:</dt>
<dd>Specifies a connection to an X server;  returned from
XOpenDisplay.</dd>
<dt>resource_info:</dt>
<dd>Specifies a pointer to a X11 MagickXResourceInfo structure.</dd>
<dt>window:</dt>
<dd>Specifies a pointer to a MagickXWindows structure.</dd>
</dl>
</div>
</div>
<div class="section" id="xtextviewwidget">
<h1><a class="toc-backref" href="#id37">XTextViewWidget</a></h1>
<div class="section" id="id23">
<h2>Synopsis</h2>
<pre class="literal-block">
void MagickXTextViewWidget( Display *display, const <a class="reference external" href="../api/types.html#magickxresourceinfo">MagickXResourceInfo</a> *resource_info,
                            MagickXWindows *windows, const unsigned int mono,
                            const char *title, const char ** textlist );
</pre>
</div>
<div class="section" id="id24">
<h2>Description</h2>
<p>Method MagickXTextViewWidget displays text in a Text View widget.</p>
<p>The format of the MagickXTextViewWidget method is:</p>
<pre class="literal-block">
void MagickXTextViewWidget( Display *display, const <a class="reference external" href="../api/types.html#magickxresourceinfo">MagickXResourceInfo</a> *resource_info,
                            MagickXWindows *windows, const unsigned int mono,
                            const char *title, const char ** textlist );
</pre>
<dl class="docutils">
<dt>display:</dt>
<dd>Specifies a connection to an X server;  returned from
XOpenDisplay.</dd>
<dt>resource_info:</dt>
<dd>Specifies a pointer to a X11 MagickXResourceInfo structure.</dd>
<dt>window:</dt>
<dd>Specifies a pointer to a MagickXWindows structure.</dd>
<dt>mono:</dt>
<dd>Use mono-spaced font when displaying text.</dd>
<dt>title:</dt>
<dd>This character string is displayed at the top of the widget
window.</dd>
<dt>textlist:</dt>
<dd>This string list is displayed within the Text View widget.</dd>
</dl>
</div>
</div>
</div>
<div class="footer">
<hr class="footer" />
Generated on: 2010-01-20 23:38 UTC.

</div>
</body>
</html>