<!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"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.7"/> <title>gtkmm: Gdk::PixbufAnimation Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">gtkmm  <span id="projectnumber">3.14.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.7 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceGdk.html">Gdk</a></li><li class="navelem"><a class="el" href="classGdk_1_1PixbufAnimation.html">PixbufAnimation</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> | <a href="#related">Related Functions</a> | <a href="classGdk_1_1PixbufAnimation-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">Gdk::PixbufAnimation Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>The gdk-pixbuf library provides a simple mechanism to load and represent animations. <a href="classGdk_1_1PixbufAnimation.html#details">More...</a></p> <p><code>#include <gdkmm/pixbufanimation.h></code></p> <div class="dynheader"> Inheritance diagram for Gdk::PixbufAnimation:</div> <div class="dyncontent"> <div class="center"><img src="classGdk_1_1PixbufAnimation__inherit__graph.png" border="0" usemap="#Gdk_1_1PixbufAnimation_inherit__map" alt="Inheritance graph"/></div> <map name="Gdk_1_1PixbufAnimation_inherit__map" id="Gdk_1_1PixbufAnimation_inherit__map"> <area shape="rect" id="node2" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="37,155,131,181"/><area shape="rect" id="node3" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="21,80,147,107"/><area shape="rect" id="node4" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="27,5,141,32"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a17db13cdf6b87ed6e4ee9f2bacd685a9"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufAnimation.html#a17db13cdf6b87ed6e4ee9f2bacd685a9">~PixbufAnimation</a> ()</td></tr> <tr class="separator:a17db13cdf6b87ed6e4ee9f2bacd685a9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2bd240996977822cb78fe557fc8c07f0"><td class="memItemLeft" align="right" valign="top">GdkPixbufAnimation* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufAnimation.html#a2bd240996977822cb78fe557fc8c07f0">gobj</a> ()</td></tr> <tr class="memdesc:a2bd240996977822cb78fe557fc8c07f0"><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a2bd240996977822cb78fe557fc8c07f0">More...</a><br /></td></tr> <tr class="separator:a2bd240996977822cb78fe557fc8c07f0"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a48e7979c35a6a4482db6137d179fe10e"><td class="memItemLeft" align="right" valign="top">const GdkPixbufAnimation* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufAnimation.html#a48e7979c35a6a4482db6137d179fe10e">gobj</a> () const </td></tr> <tr class="memdesc:a48e7979c35a6a4482db6137d179fe10e"><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a48e7979c35a6a4482db6137d179fe10e">More...</a><br /></td></tr> <tr class="separator:a48e7979c35a6a4482db6137d179fe10e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4eba6a2ff85859cfc4171015861ffcbf"><td class="memItemLeft" align="right" valign="top">GdkPixbufAnimation* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufAnimation.html#a4eba6a2ff85859cfc4171015861ffcbf">gobj_copy</a> ()</td></tr> <tr class="memdesc:a4eba6a2ff85859cfc4171015861ffcbf"><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#a4eba6a2ff85859cfc4171015861ffcbf">More...</a><br /></td></tr> <tr class="separator:a4eba6a2ff85859cfc4171015861ffcbf"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a50a299f886fcad0bfed2a7c81986be39"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufAnimation.html#a50a299f886fcad0bfed2a7c81986be39">get_width</a> () const </td></tr> <tr class="memdesc:a50a299f886fcad0bfed2a7c81986be39"><td class="mdescLeft"> </td><td class="mdescRight">Queries the width of the bounding box of a pixbuf animation. <a href="#a50a299f886fcad0bfed2a7c81986be39">More...</a><br /></td></tr> <tr class="separator:a50a299f886fcad0bfed2a7c81986be39"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a5caa2145a85dbb488ca60b03c72b2782"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufAnimation.html#a5caa2145a85dbb488ca60b03c72b2782">get_height</a> () const </td></tr> <tr class="memdesc:a5caa2145a85dbb488ca60b03c72b2782"><td class="mdescLeft"> </td><td class="mdescRight">Queries the height of the bounding box of a pixbuf animation. <a href="#a5caa2145a85dbb488ca60b03c72b2782">More...</a><br /></td></tr> <tr class="separator:a5caa2145a85dbb488ca60b03c72b2782"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac80a08e196de1df9282e851e22a642e4"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufAnimation.html#ac80a08e196de1df9282e851e22a642e4">is_static_image</a> () const </td></tr> <tr class="memdesc:ac80a08e196de1df9282e851e22a642e4"><td class="mdescLeft"> </td><td class="mdescRight">If you load a file with new_from_file() and it turns out to be a plain, unanimated image, then this function will return <code>true</code>. <a href="#ac80a08e196de1df9282e851e22a642e4">More...</a><br /></td></tr> <tr class="separator:ac80a08e196de1df9282e851e22a642e4"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4efed6e73f1034242e787b454f485566"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Pixbuf.html">Pixbuf</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufAnimation.html#a4efed6e73f1034242e787b454f485566">get_static_image</a> ()</td></tr> <tr class="memdesc:a4efed6e73f1034242e787b454f485566"><td class="mdescLeft"> </td><td class="mdescRight">If an animation is really just a plain image (has only one frame), this function returns that image. <a href="#a4efed6e73f1034242e787b454f485566">More...</a><br /></td></tr> <tr class="separator:a4efed6e73f1034242e787b454f485566"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7ad528dcc330239499e0c0f6010905b7"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1PixbufAnimationIter.html">PixbufAnimationIter</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufAnimation.html#a7ad528dcc330239499e0c0f6010905b7">get_iter</a> (const GTimeVal* start_time)</td></tr> <tr class="memdesc:a7ad528dcc330239499e0c0f6010905b7"><td class="mdescLeft"> </td><td class="mdescRight">Get an iterator for displaying an animation. <a href="#a7ad528dcc330239499e0c0f6010905b7">More...</a><br /></td></tr> <tr class="separator:a7ad528dcc330239499e0c0f6010905b7"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr class="memitem:a265bac68cda7306ca04c184a58270261"><td class="memItemLeft" align="right" valign="top">static GType </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufAnimation.html#a265bac68cda7306ca04c184a58270261">get_type</a> ()</td></tr> <tr class="memdesc:a265bac68cda7306ca04c184a58270261"><td class="mdescLeft"> </td><td class="mdescRight">Get the GType for this class, for use with the underlying GObject type system. <a href="#a265bac68cda7306ca04c184a58270261">More...</a><br /></td></tr> <tr class="separator:a265bac68cda7306ca04c184a58270261"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a039f247eb93253b2242c4eadfa7f0a79"><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak" /> < <a class="el" href="classGdk_1_1PixbufAnimation.html">PixbufAnimation</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufAnimation.html#a039f247eb93253b2242c4eadfa7f0a79">create_from_file</a> (const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& filename)</td></tr> <tr class="separator:a039f247eb93253b2242c4eadfa7f0a79"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="related"></a> Related Functions</h2></td></tr> <tr><td class="ititle" colspan="2"><p>(Note that these are not member functions.) </p> </td></tr> <tr class="memitem:a2685688544b6da7582ab2eb2d4e51111"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak" /> < <a class="el" href="classGdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufAnimation.html#a2685688544b6da7582ab2eb2d4e51111">wrap</a> (GdkPixbufAnimation* object, bool take_copy=false)</td></tr> <tr class="memdesc:a2685688544b6da7582ab2eb2d4e51111"><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a2685688544b6da7582ab2eb2d4e51111">More...</a><br /></td></tr> <tr class="separator:a2685688544b6da7582ab2eb2d4e51111"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>The gdk-pixbuf library provides a simple mechanism to load and represent animations. </p> <p>An animation is conceptually a series of frames to be displayed over time. Each frame is the same size. The animation may not be represented as a series of frames internally; for example, it may be stored as a sprite and instructions for moving the sprite around a background. To display an animation you don't need to understand its representation, however; you just ask gdk-pixbuf what should be displayed at a given point in time. </p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a class="anchor" id="a17db13cdf6b87ed6e4ee9f2bacd685a9"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual Gdk::PixbufAnimation::~PixbufAnimation </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="a039f247eb93253b2242c4eadfa7f0a79"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1PixbufAnimation.html">PixbufAnimation</a>> Gdk::PixbufAnimation::create_from_file </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>filename</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> </div> </div> <a class="anchor" id="a5caa2145a85dbb488ca60b03c72b2782"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int Gdk::PixbufAnimation::get_height </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Queries the height of the bounding box of a pixbuf animation. </p> <dl class="section return"><dt>Returns</dt><dd>Height of the bounding box of the animation. </dd></dl> </div> </div> <a class="anchor" id="a7ad528dcc330239499e0c0f6010905b7"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1PixbufAnimationIter.html">PixbufAnimationIter</a>> Gdk::PixbufAnimation::get_iter </td> <td>(</td> <td class="paramtype">const GTimeVal * </td> <td class="paramname"><em>start_time</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Get an iterator for displaying an animation. </p> <p>The iterator provides the frames that should be displayed at a given time. It should be freed after use with Glib::object_unref().</p> <p><em>start_time</em> would normally come from Glib::get_current_time(), and marks the beginning of animation playback. After creating an iterator, you should immediately display the pixbuf returned by <a class="el" href="classGdk_1_1PixbufAnimationIter.html#a66d583297b87ac3f2b1424526afe962c" title="Gets the current pixbuf which should be displayed; the pixbuf will be the same size as the animation ...">Gdk::PixbufAnimationIter::get_pixbuf()</a>. Then, you should install a timeout (with Glib::timeout_add()) or by some other mechanism ensure that you'll update the image after <a class="el" href="classGdk_1_1PixbufAnimationIter.html#a59be27954e4c177236c5bebfa6c84602" title="Gets the number of milliseconds the current pixbuf should be displayed, or -1 if the current pixbuf s...">Gdk::PixbufAnimationIter::get_delay_time()</a> milliseconds. Each time the image is updated, you should reinstall the timeout with the new, possibly-changed delay time.</p> <p>As a shortcut, if <em>start_time</em> is <code>0</code>, the result of Glib::get_current_time() will be used automatically.</p> <p>To update the image (i.e. possibly change the result of <a class="el" href="classGdk_1_1PixbufAnimationIter.html#a66d583297b87ac3f2b1424526afe962c" title="Gets the current pixbuf which should be displayed; the pixbuf will be the same size as the animation ...">Gdk::PixbufAnimationIter::get_pixbuf()</a> to a new frame of the animation), call <a class="el" href="classGdk_1_1PixbufAnimationIter.html#a1bd10ac0d757e79e1d0e4fda7778d0a0" title="Possibly advances an animation to a new frame. ">Gdk::PixbufAnimationIter::advance()</a>.</p> <p>If you're using <a class="el" href="classGdk_1_1PixbufLoader.html">Gdk::PixbufLoader</a>, in addition to updating the image after the delay time, you should also update it whenever you receive the area_updated signal and <a class="el" href="classGdk_1_1PixbufAnimationIter.html#ad50a6088b03fb35fe65dea11debecd84" title="Used to determine how to respond to the area_updated signal on Gdk::PixbufLoader when loading an anim...">Gdk::PixbufAnimationIter::on_currently_loading_frame()</a> returns <code>true</code>. In this case, the frame currently being fed into the loader has received new data, so needs to be refreshed. The delay time for a frame may also be modified after an area_updated signal, for example if the delay time for a frame is encoded in the data after the frame itself. So your timeout should be reinstalled after any area_updated signal.</p> <p>A delay time of -1 is possible, indicating "infinite."</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">start_time</td><td>Time when the animation starts playing. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>An iterator to move over the animation. </dd></dl> </div> </div> <a class="anchor" id="a4efed6e73f1034242e787b454f485566"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Pixbuf.html">Pixbuf</a>> Gdk::PixbufAnimation::get_static_image </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>If an animation is really just a plain image (has only one frame), this function returns that image. </p> <p>If the animation is an animation, this function returns a reasonable thing to display as a static unanimated image, which might be the first frame, or something more sophisticated. If an animation hasn't loaded any frames yet, this function will return <code>0</code>.</p> <dl class="section return"><dt>Returns</dt><dd>Unanimated image representing the animation. </dd></dl> </div> </div> <a class="anchor" id="a265bac68cda7306ca04c184a58270261"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static GType Gdk::PixbufAnimation::get_type </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Get the GType for this class, for use with the underlying GObject type system. </p> </div> </div> <a class="anchor" id="a50a299f886fcad0bfed2a7c81986be39"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int Gdk::PixbufAnimation::get_width </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Queries the width of the bounding box of a pixbuf animation. </p> <dl class="section return"><dt>Returns</dt><dd>Width of the bounding box of the animation. </dd></dl> </div> </div> <a class="anchor" id="a2bd240996977822cb78fe557fc8c07f0"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">GdkPixbufAnimation* Gdk::PixbufAnimation::gobj </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Provides access to the underlying C GObject. </p> </div> </div> <a class="anchor" id="a48e7979c35a6a4482db6137d179fe10e"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">const GdkPixbufAnimation* Gdk::PixbufAnimation::gobj </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Provides access to the underlying C GObject. </p> </div> </div> <a class="anchor" id="a4eba6a2ff85859cfc4171015861ffcbf"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GdkPixbufAnimation* Gdk::PixbufAnimation::gobj_copy </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. </p> </div> </div> <a class="anchor" id="ac80a08e196de1df9282e851e22a642e4"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Gdk::PixbufAnimation::is_static_image </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>If you load a file with new_from_file() and it turns out to be a plain, unanimated image, then this function will return <code>true</code>. </p> <p>Use <a class="el" href="classGdk_1_1PixbufAnimation.html#a4efed6e73f1034242e787b454f485566" title="If an animation is really just a plain image (has only one frame), this function returns that image...">get_static_image()</a> to retrieve the image.</p> <dl class="section return"><dt>Returns</dt><dd><code>true</code> if the "animation" was really just an image. </dd></dl> </div> </div> <h2 class="groupheader">Friends And Related Function Documentation</h2> <a class="anchor" id="a2685688544b6da7582ab2eb2d4e51111"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a> > wrap </td> <td>(</td> <td class="paramtype">GdkPixbufAnimation * </td> <td class="paramname"><em>object</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>take_copy</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">related</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>A <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">object</td><td>The C instance. </td></tr> <tr><td class="paramname">take_copy</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>A C++ instance that wraps this C instance. </dd></dl> </div> </div> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Tue Sep 23 2014 12:59:12 for gtkmm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.7 </small></address> </body> </html>