<html> <head><title>Gtk-- Reference: Gtk::Pixmap</title></head> <body bgcolor="#F0F0F0" text="#000000" link="#0000FF" vlink="#000077" alink="#FF0000"> <table align=center border=0 cellspacing=10> <tr> <td><a href="class_index.html">Class Index</a></td> <td><a href="cross_index.html">Cross Index</a></td> <td><a href="name_index.html">Namespace Index</a></td> </table> <h1 align=center>Class Gtk::Pixmap</h1><p> <b> A widget displaying a graphical image or icon.</b><br> Contained in: <a href="Gtk.html">Gtk</a><br> Derived from: <a href="Gtk%3A%3AMisc.html">Gtk::Misc</a> <br> Derived by: <i>none</i> <p> #include <gtk--/pixmap.h> <p> <hr noshade> <table border=0> <tr><td colspan=3><h3>public function member index:</h3></td> <tr valign=top><td align=right><tt></tt> </td><td align=right><a href="Gtk%3A%3APixmap.html#2402"><tt><font color=blue><b>Pixmap</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt></tt> </td><td align=right><a href="Gtk%3A%3APixmap.html#2403"><tt><font color=blue><b>Pixmap</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="Gtk%3A%3Anstring.html"><tt><font color=navy><b>nstring</b></font></tt></a>& <tt><font color=blue>xpmfilename</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt></tt> </td><td align=right><a href="Gtk%3A%3APixmap.html#2404"><tt><font color=blue><b>Pixmap</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=purple>gchar</font></tt>* <tt>const</tt>* <tt><font color=blue>data</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt></tt> </td><td align=right><a href="Gtk%3A%3APixmap.html#2405"><tt><font color=blue><b>Pixmap</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=navy>Gdk_Pixmap</font></tt>& <tt><font color=blue>pixmap</font></tt>, <tt>const</tt> <tt><font color=navy>Gdk_Bitmap</font></tt>& <tt><font color=blue>mask</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3APixmap.html#2409"><tt><font color=blue><b>get</b></font></tt></a></td><td><tt>(<tt><font color=navy>Gdk_Pixmap</font></tt>& <tt><font color=blue>pixmap</font></tt>, <tt><font color=navy>Gdk_Bitmap</font></tt>& <tt><font color=blue>mask</font></tt>) <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt><font color=navy>GtkPixmap</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3APixmap.html#2398"><tt><font color=blue><b>gtkobj</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt>const</tt> <tt><font color=navy>GtkPixmap</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3APixmap.html#2399"><tt><font color=blue><b>gtkobj</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt>static</tt> <tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="Gtk%3A%3APixmap.html#2400"><tt><font color=blue><b>isA</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3AObject.html"><tt><font color=navy><b>Object</b></font></tt></a>* <tt><font color=blue>object</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3APixmap.html#2406"><tt><font color=blue><b>set</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=navy>Gdk_Pixmap</font></tt>& <tt><font color=blue>pixmap</font></tt>, <tt>const</tt> <tt><font color=navy>Gdk_Bitmap</font></tt>& <tt><font color=blue>mask</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3APixmap.html#2407"><tt><font color=blue><b>set</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=purple>gchar</font></tt>* <tt>const</tt>* <tt><font color=blue>data</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3APixmap.html#2408"><tt><font color=blue><b>set</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=navy>string</font></tt>& <tt><font color=blue>xpmfilename</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3APixmap.html#2410"><tt><font color=blue><b>set_build_insensitive</b></font></tt></a></td><td><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>build</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="Gtk%3A%3APixmap.html#2401"><tt><font color=blue><b>~Pixmap</b></font></tt></a></td><td><tt>()</tt>;</td> <tr><td> </td><tr><td colspan=3><h3>protected function member index:</h3></td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3APixmap.html#2412"><tt><font color=blue><b>load_xpm</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3APixmap.html#2411"><tt><font color=blue><b>realize_impl</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3APixmap.html#2413"><tt><font color=blue><b>unset</b></font></tt></a></td><td><tt>()</tt>;</td> <tr><td> </td></table> <hr noshade> <h2>Description:</h2> The <tt><font color=navy><b>Gtk::Pixmap</b></font></tt> widget displays a graphical image or icon. <P> The pixels in a <tt><font color=navy><b>Gtk::Pixmap</b></font></tt> cannot be manipulated by the application after creation, since under the X Window system the pixel data is stored on the X server and so is not available to the client application. If you want to create graphical images which can be manipulated by the application, look at <tt><font color=navy><b>Gtk::Image</b></font></tt> and <tt><font color=navy><b>Gdk::RGB</b></font></tt>.<br> <p> <hr noshade> <h2>Function Member Descriptions:</h2> <a name="2402"><font size=+1><b>Gtk::Pixmap::Pixmap</b></font></a> - Construct an empty pixmap.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt></tt> <a href="Gtk%3A%3APixmap.html#2402"><tt><font color=blue><b>Pixmap</b></font></tt></a><tt>()</tt>;<br><blockquote> Note that default constructor puts Pixmap objects to invalid state and you should not show it or add it to containers before you've set() the pixmap and mask for it.</blockquote> <br><br> <a name="2403"><font size=+1><b>Gtk::Pixmap::Pixmap</b></font></a> - Load a pixmap form file.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt></tt> <a href="Gtk%3A%3APixmap.html#2403"><tt><font color=blue><b>Pixmap</b></font></tt></a><tt>(<tt>const</tt> <a href="Gtk%3A%3Anstring.html"><tt><font color=navy><b>nstring</b></font></tt></a>& <tt><font color=blue>xpmfilename</font></tt>)</tt>;<br><br> <a name="2404"><font size=+1><b>Gtk::Pixmap::Pixmap</b></font></a> - Create a pixmap from data.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt></tt> <a href="Gtk%3A%3APixmap.html#2404"><tt><font color=blue><b>Pixmap</b></font></tt></a><tt>(<tt>const</tt> <tt><font color=purple>gchar</font></tt>* <tt>const</tt>* <tt><font color=blue>data</font></tt>)</tt>;<br><blockquote> data must live until Pixmap is realized</blockquote> <br><br> <a name="2405"><font size=+1><b>Gtk::Pixmap::Pixmap</b></font></a> - Create using specified <tt><tt><font color=blue>pixmap</font></tt></tt> and <tt><tt><font color=blue>mask</font></tt></tt>.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt></tt> <a href="Gtk%3A%3APixmap.html#2405"><tt><font color=blue><b>Pixmap</b></font></tt></a><tt>(<tt>const</tt> <tt><font color=navy>Gdk_Pixmap</font></tt>& <tt><font color=blue>pixmap</font></tt>, <tt>const</tt> <tt><font color=navy>Gdk_Bitmap</font></tt>& <tt><font color=blue>mask</font></tt>)</tt>;<br><br> <a name="2409"><font size=+1><b>Gtk::Pixmap::get</b></font></a> - Get the <tt><tt><font color=blue>pixmap</font></tt></tt> and border <tt><tt><font color=blue>mask</font></tt></tt>.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3APixmap.html#2409"><tt><font color=blue><b>get</b></font></tt></a><tt>(<tt><font color=navy>Gdk_Pixmap</font></tt>& <tt><font color=blue>pixmap</font></tt>, <tt><font color=navy>Gdk_Bitmap</font></tt>& <tt><font color=blue>mask</font></tt>) <tt>const</tt></tt>;<br><blockquote> works only following realization.</blockquote> <br><br> <a name="2398"><font size=+1><b>Gtk::Pixmap::gtkobj</b></font></a> - Returns the underlaying gtk+ object.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>GtkPixmap</font></tt>*</tt> <a href="Gtk%3A%3APixmap.html#2398"><tt><font color=blue><b>gtkobj</b></font></tt></a><tt>()</tt>;<br><br> <a name="2400"><font size=+1><b>Gtk::Pixmap::isA</b></font></a> - Returns true if object is this type.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt>static</tt> <tt><font color=purple>bool</font></tt></tt> <a href="Gtk%3A%3APixmap.html#2400"><tt><font color=blue><b>isA</b></font></tt></a><tt>(<a href="Gtk%3A%3AObject.html"><tt><font color=navy><b>Object</b></font></tt></a>* <tt><font color=blue>object</font></tt>)</tt>;<br><br> <a name="2406"><font size=+1><b>Gtk::Pixmap::set</b></font></a> - Set the <tt><tt><font color=blue>pixmap</font></tt></tt> and border <tt><tt><font color=blue>mask</font></tt></tt>.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3APixmap.html#2406"><tt><font color=blue><b>set</b></font></tt></a><tt>(<tt>const</tt> <tt><font color=navy>Gdk_Pixmap</font></tt>& <tt><font color=blue>pixmap</font></tt>, <tt>const</tt> <tt><font color=navy>Gdk_Bitmap</font></tt>& <tt><font color=blue>mask</font></tt>)</tt>;<br><br> <a name="2410"><font size=+1><b>Gtk::Pixmap::set_build_insensitive</b></font></a> - (Gtk 1.1) Build an special pixmap for insensitive states.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3APixmap.html#2410"><tt><font color=blue><b>set_build_insensitive</b></font></tt></a><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>build</font></tt>)</tt>;<br><blockquote> Setting this switch will cause Gtk to build a greyed out version on the specified <tt><tt><font color=blue>pixmap</font></tt></tt>.</blockquote> <br><br> <hr noshade> <h2>Variable Member Descriptions:</h2> <hr noshade> </html>