Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 76909b5763edb96a2bc7bd7fb5b301b8 > files > 29

cuiterm-0.9.9-1mdv2008.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><TITLE>CuiPixmap</TITLE><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="Cuiterm Reference Manual" HREF="index.html"><LINK REL="UP" TITLE="Cuiterm Documentation 0.5" HREF="c4.html"><LINK REL="PREVIOUS" TITLE="CuiActionArea" HREF="cuiactionarea.html"><LINK REL="NEXT" TITLE="CuiEntry" HREF="cuientry.html"><META NAME="GENERATOR" CONTENT="GTK-Doc V1.3 (SGML 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 CLASS="REFENTRY" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF"><TABLE WIDTH="100%" CLASS="navigation" SUMMARY="Navigation header" CELLPADDING="2" CELLSPACING="2"><TR VALIGN="middle"><TD><A ACCESSKEY="p" HREF="cuiactionarea.html"><IMG SRC="left.png" WIDTH="24" HEIGHT="24" BORDER="0" ALT="Prev"></A></TD><TD><A ACCESSKEY="u" HREF="c4.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">Cuiterm Reference Manual</TH><TD><A ACCESSKEY="n" HREF="cuientry.html"><IMG SRC="right.png" WIDTH="24" HEIGHT="24" BORDER="0" ALT="Next"></A></TD></TR></TABLE><H1><A NAME="CUIPIXMAP"></A>CuiPixmap</H1><DIV CLASS="REFNAMEDIV"><A NAME="AEN4779"></A><H2>Name</H2>CuiPixmap&nbsp;--&nbsp;</DIV><DIV CLASS="REFSYNOPSISDIV"><A NAME="AEN4782"></A><H2>Synopsis</H2><PRE CLASS="SYNOPSIS">&#13;#include &lt;history.h&gt;


            <A HREF="cuipixmap.html#CUIPIXMAP-STRUCT">CuiPixmap</A>;
<A HREF="cuiwidget.html">CuiWidget</A>*  <A HREF="cuipixmap.html#CUI-PIXMAP-NEW-EMPTY">cui_pixmap_new_empty</A>            (void);
<A HREF="cuiwidget.html">CuiWidget</A>*  <A HREF="cuipixmap.html#CUI-PIXMAP-NEW-FROM-PACKAGE-FILE">cui_pixmap_new_from_package_file</A>
                                            (const gchar *filename);
<A HREF="cuiwidget.html">CuiWidget</A>*  <A HREF="cuipixmap.html#CUI-PIXMAP-NEW-THUMBNAIL">cui_pixmap_new_thumbnail</A>        (<A HREF="cuifilename.html">CuiFilename</A> *file);
void        <A HREF="cuipixmap.html#CUI-PIXMAP-SET-XY">cui_pixmap_set_xy</A>               (<A HREF="cuipixmap.html">CuiPixmap</A> *cui_pixmap,
                                             gint x,
                                             gint y);
gboolean    <A HREF="cuipixmap.html#CUI-PIXMAP-REDRAW">cui_pixmap_redraw</A>               (<A HREF="cuipixmap.html">CuiPixmap</A> *pixmap,
                                             gint debug);</PRE></DIV><DIV CLASS="REFSECT1"><A NAME="AEN4803"></A><H2>Object Hierarchy</H2><PRE CLASS="SYNOPSIS">&#13;  GObject
   +----<A HREF="cuiwidget.html">CuiWidget</A>
         +----CuiPixmap</PRE></DIV><DIV CLASS="REFSECT1"><A NAME="AEN4808"></A><H2>Signal Prototypes</H2><PRE CLASS="SYNOPSIS">&#13;&quot;<A HREF="cuipixmap.html#CUIPIXMAP-EXPOSE">expose</A>&quot;    gboolean    user_function      (<A HREF="cuipixmap.html">CuiPixmap</A> *cuipixmap,
                                            gint arg1,
                                            gpointer user_data);</PRE></DIV><DIV CLASS="REFSECT1"><A NAME="AEN4816"></A><H2>Description</H2><P></P></DIV><DIV CLASS="REFSECT1"><A NAME="AEN4819"></A><H2>Details</H2><DIV CLASS="REFSECT2"><A NAME="AEN4821"></A><H3><A NAME="CUIPIXMAP-STRUCT"></A>CuiPixmap</H3><PRE CLASS="PROGRAMLISTING">typedef struct _CuiPixmap CuiPixmap;</PRE><P>A widget capaple of showing icons and other graphical elements on the CUI
area.</P><P></P></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN4829"></A><H3><A NAME="CUI-PIXMAP-NEW-EMPTY"></A>cui_pixmap_new_empty ()</H3><PRE CLASS="PROGRAMLISTING"><A HREF="cuiwidget.html">CuiWidget</A>*  cui_pixmap_new_empty            (void);</PRE><P></P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4839"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a new emty <A HREF="cuipixmap.html"><SPAN CLASS="TYPE">CuiPixmap</SPAN></A></P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN4846"></A><H3><A NAME="CUI-PIXMAP-NEW-FROM-PACKAGE-FILE"></A>cui_pixmap_new_from_package_file ()</H3><PRE CLASS="PROGRAMLISTING"><A HREF="cuiwidget.html">CuiWidget</A>*  cui_pixmap_new_from_package_file
                                            (const gchar *filename);</PRE><P>Creates a new <A HREF="cuipixmap.html"><SPAN CLASS="TYPE">CuiPixmap</SPAN></A> loading pixel and size information from a file. 
This function searches the graphic file in the application pixmap directory.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4859"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">filename</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the name of the file containing pixel information</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4864"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a new <A HREF="cuipixmap.html"><SPAN CLASS="TYPE">CuiPixmap</SPAN></A></P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN4871"></A><H3><A NAME="CUI-PIXMAP-NEW-THUMBNAIL"></A>cui_pixmap_new_thumbnail ()</H3><PRE CLASS="PROGRAMLISTING"><A HREF="cuiwidget.html">CuiWidget</A>*  cui_pixmap_new_thumbnail        (<A HREF="cuifilename.html">CuiFilename</A> *file);</PRE><P>Creates a thumbnail for the given file. The thumbnail will represent the
content of the given file if the file is local and can be opened for read.
FIXME: This function must be completed.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4882"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">file</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> we create the thumbnail for this file</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4887"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a new pixmap as a widget</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN4892"></A><H3><A NAME="CUI-PIXMAP-SET-XY"></A>cui_pixmap_set_xy ()</H3><PRE CLASS="PROGRAMLISTING">void        cui_pixmap_set_xy               (<A HREF="cuipixmap.html">CuiPixmap</A> *cui_pixmap,
                                             gint x,
                                             gint y);</PRE><P>Sets the place where the pixmap will appear without tampering with the size
of the widget.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4905"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">cui_pixmap</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuipixmap.html"><SPAN CLASS="TYPE">CuiPixmap</SPAN></A> to set the coordinates for</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4912"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">x</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the new x coordinate</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4917"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">y</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the new y coordinate</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN4922"></A><H3><A NAME="CUI-PIXMAP-REDRAW"></A>cui_pixmap_redraw ()</H3><PRE CLASS="PROGRAMLISTING">gboolean    cui_pixmap_redraw               (<A HREF="cuipixmap.html">CuiPixmap</A> *pixmap,
                                             gint debug);</PRE><P>Emits the expose event for the widget to redraw the screen.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4934"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">pixmap</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the <A HREF="cuipixmap.html"><SPAN CLASS="TYPE">CuiPixmap</SPAN></A> to redraw</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4941"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">debug</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> if this argument is not 0 the area will be highlighted</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4946"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the return value of the signal handler</P></TD></TR></TBODY></TABLE></DIV></DIV><DIV CLASS="REFSECT1"><A NAME="AEN4951"></A><H2>Signals</H2><DIV CLASS="REFSECT2"><A NAME="AEN4953"></A><H3><A NAME="CUIPIXMAP-EXPOSE"></A>The &quot;expose&quot; signal</H3><PRE CLASS="PROGRAMLISTING">gboolean    user_function                  (<A HREF="cuipixmap.html">CuiPixmap</A> *cuipixmap,
                                            gint arg1,
                                            gpointer user_data);</PRE><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4963"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">user_data</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P>user data set when the signal handler was connected.</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4968"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P></P></TD></TR></TBODY></TABLE></DIV></DIV><TABLE CLASS="navigation" WIDTH="100%" SUMMARY="Navigation footer" CELLPADDING="2" CELLSPACING="2"><TR VALIGN="middle"><TD ALIGN="left"><A ACCESSKEY="p" HREF="cuiactionarea.html"><B>&lt;&lt;&lt;&nbsp;CuiActionArea</B></A></TD><TD ALIGN="right"><A ACCESSKEY="n" HREF="cuientry.html"><B>CuiEntry&nbsp;&gt;&gt;&gt;</B></A></TD></TR></TABLE></BODY></HTML>