2003-02-12 01:57:20 +00:00
<Type Name= "PixbufAnimation" FullName= "Gdk.PixbufAnimation" >
2003-02-15 03:08:25 +00:00
<TypeSignature Language= "C#" Value= "public class PixbufAnimation : GLib.Object, IWrapper, IDisposable" Maintainer= "auto" />
2003-02-12 01:57:20 +00:00
<AssemblyInfo >
<AssemblyName > gdk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2003-02-12 01:57:20 +00:00
<AssemblyVersion > 0.0.0.0</AssemblyVersion>
2003-10-28 00:48:23 +00:00
<AssemblyCulture > neutral</AssemblyCulture>
2003-02-12 01:57:20 +00:00
<Attributes />
</AssemblyInfo>
2003-02-23 07:26:30 +00:00
<ThreadSafetyStatement > Gtk# is thread aware, but not thread safe; See the <link location= "node:gtk-sharp/programming/threads" > Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
2003-02-12 01:57:20 +00:00
<Docs >
2004-11-05 19:03:16 +00:00
<summary > A base class for animations that are rendered using <see cref= "T:Gdk.Pixbuf" /> </summary>
<remarks />
2003-02-12 01:57:20 +00:00
</Docs>
<Base >
<BaseTypeName > GLib.Object</BaseTypeName>
</Base>
<Interfaces >
<Interface >
<InterfaceName > GLib.IWrapper</InterfaceName>
</Interface>
<Interface >
<InterfaceName > System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes />
<Members >
<Member MemberName= "GetIter" >
<MemberSignature Language= "C#" Value= "public Gdk.PixbufAnimationIter GetIter (IntPtr start_time);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gdk.PixbufAnimationIter</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "start_time" Type= "System.IntPtr" />
</Parameters>
2003-02-12 01:57:20 +00:00
<Docs >
2004-09-25 13:52:01 +00:00
<summary >
Get an iterator for displaying an animation. The iterator provides
the frames that should be displayed at a given time.
It should be freed after use with g_object_unref().
</summary>
2004-11-05 19:03:16 +00:00
<param name= "start_time" > A <see cref= "T:IntPtr" /> </param>
<returns > A <see cref= "T:Gdk.PixbufAnimationIter" /> to move over the animation</returns>
2004-09-25 13:52:01 +00:00
<remarks >
2004-11-05 19:03:16 +00:00
<p >
<paramref name= "start_time" /> would normally come from
2004-09-25 13:52:01 +00:00
g_get_current_time() (FIXME: this function isn't bound into C#;
this needs a look), and
marks the beginning of animation playback. After creating an
iterator, you should immediately display the pixbuf returned by
2004-11-05 19:03:16 +00:00
<see cref= "P:Gdk.PixbufAnimationIter.Pixbuf" /> . Then, you should install a
2004-09-25 13:52:01 +00:00
timeout (with g_timeout_add() (FIXME)) or by some other mechanism ensure
that you'll update the image after
2004-11-05 19:03:16 +00:00
<see cref= "P:Gdk.PixbufAnimation.DelayTime" /> milliseconds. Each time
2004-09-25 13:52:01 +00:00
the image is updated, you should reinstall the timeout with the new,
possibly-changed delay time.
2004-11-05 19:03:16 +00:00
</p>
<p >
As a shortcut, if <paramref name= "start_time" /> is <see langword= "null" /> , the result of
2004-09-25 13:52:01 +00:00
g_get_current_time() will be used automatically.
2004-11-05 19:03:16 +00:00
</p>
<p >
2004-09-25 13:52:01 +00:00
To update the image (i.e. possibly change the result of
gdk_pixbuf_animation_iter_get_pixbuf() to a new frame of the animation),
call gdk_pixbuf_animation_iter_advance().
2004-11-05 19:03:16 +00:00
</p>
<p >
2004-09-25 13:52:01 +00:00
2004-11-05 19:03:16 +00:00
If you're using <see cref= "T:Gdk.PixbufLoader" /> , in addition
2004-09-25 13:52:01 +00:00
to updating the image
after the delay time, you should also update it whenever you
receive the area_updated signal and
2004-11-05 19:03:16 +00:00
<see cref= "M:Gdk.PixbufAnimationIter.OnCurrentlyLoadingFrame" /> returns
2004-09-25 13:52:01 +00:00
true. 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
2004-11-05 19:03:16 +00:00
<see cref= "E:Gdk.PixbufLoader.AreaUpdated" /> signal, for
2004-09-25 13:52:01 +00:00
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
2004-11-05 19:03:16 +00:00
<see cref= "E:Gdk.PixbufLoader.AreaUpdated" /> signal.
</p>
<p >
2004-09-25 13:52:01 +00:00
A delay time of -1 is possible, indicating "infinite."
</p>
2004-11-05 19:03:16 +00:00
</remarks>
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
<Member MemberName= "Finalize" >
2003-10-13 22:55:58 +00:00
<MemberSignature Language= "C#" Value= "protected override void Finalize ();" />
2003-02-12 01:57:20 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-02-23 07:26:30 +00:00
<summary > Disposes the resources associated with the object.</summary>
<remarks />
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public PixbufAnimation (IntPtr raw);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
2003-02-12 01:57:20 +00:00
<Docs >
2003-02-23 07:26:30 +00:00
<summary > Internal constructor</summary>
<param name= "raw" > Pointer to the C object.</param>
<returns > An instance of PixbufAnimation, wrapping the C object.</returns>
<remarks >
<para > This is an internal constructor, and should not be used by user code.</para>
</remarks>
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public PixbufAnimation (string filename);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "filename" Type= "System.String" />
</Parameters>
2003-02-12 01:57:20 +00:00
<Docs >
2004-09-25 13:52:01 +00:00
<summary > Public constructor; creates a new animation by
loading it from a file. The file format is
detected automatically. If the file's format does not support
multi-frame images, then an animation with a single frame will
be created. Possible errors are in the
2004-11-05 19:03:16 +00:00
<see cref= "T:Gdk.PixbufError" /> and <see cref= "T:Gdk.Error" /> domains.
2004-09-25 13:52:01 +00:00
</summary>
2004-11-05 19:03:16 +00:00
<param name= "filename" > A <see cref= "T:System.String" /> , the filename to load into this object.</param>
<returns > A <see cref= "T:Gdk.PixbufAnimation" /> with a reference count
of 1, or <see langword= "null" /> if an error occurred.
2004-09-25 13:52:01 +00:00
</returns>
2004-11-05 19:03:16 +00:00
<remarks />
</Docs>
2003-02-12 01:57:20 +00:00
</Member>
<Member MemberName= "Width" >
<MemberSignature Language= "C#" Value= "public int Width { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Int32</ReturnType>
</ReturnValue>
<Docs >
2004-09-25 13:52:01 +00:00
<summary > The width of the animation.</summary>
2004-11-05 19:03:16 +00:00
<returns > A <see cref= "T:System.Int32" /> </returns>
<remarks />
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
<Member MemberName= "StaticImage" >
<MemberSignature Language= "C#" Value= "public Gdk.Pixbuf StaticImage { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gdk.Pixbuf</ReturnType>
</ReturnValue>
<Docs >
2004-09-25 13:52:01 +00:00
<summary > Gets the image if this animation is actually a static,
unanimaged file.</summary>
2004-11-05 19:03:16 +00:00
<returns > A <see cref= "T:Gdk.Pixbuf" /> </returns>
<remarks />
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
<Member MemberName= "Height" >
<MemberSignature Language= "C#" Value= "public int Height { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Int32</ReturnType>
</ReturnValue>
<Docs >
2004-09-25 13:52:01 +00:00
<summary > The height of the animation.</summary>
2004-11-05 19:03:16 +00:00
<returns > A <see cref= "T:System.Int32" /> </returns>
<remarks />
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
2003-11-05 04:30:47 +00:00
<Member MemberName= "IsStaticImage" >
<MemberSignature Language= "C#" Value= "public bool IsStaticImage { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-09-25 13:52:01 +00:00
<summary >
2004-11-05 19:03:16 +00:00
If you load a file with <see cref= "M:Gdk.PixbufAnimation.ctor" />
2004-09-25 13:52:01 +00:00
and it turns out to be a plain, unanimated image, then this
function will return
2004-11-05 19:03:16 +00:00
TRUE. Use <see cref= "P:Gdk.PixbufAnimation.StaticImage" /> to
2004-09-25 13:52:01 +00:00
retrieve the image.
</summary>
2003-11-05 04:30:47 +00:00
<returns > a <see cref= "T:System.Boolean" /> </returns>
2004-11-05 19:03:16 +00:00
<remarks />
2003-11-05 04:30:47 +00:00
</Docs>
</Member>
2003-12-24 01:35:30 +00:00
<Member MemberName= "GType" >
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > GLib.GType</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-06-21 20:14:42 +00:00
<summary > GType Property.</summary>
2003-12-24 01:35:30 +00:00
<returns > a <see cref= "T:GLib.GType" /> </returns>
2004-06-21 20:14:42 +00:00
<remarks > Returns the native <see cref= "T:GLib.GType" /> value for <see cref= "T:Gdk.PixbufAnimation" /> .</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "protected PixbufAnimation (GLib.GType gtype);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
<Parameter Name= "gtype" Type= "GLib.GType" />
</Parameters>
<Docs >
<summary > Internal constructor</summary>
<param name= "gtype" > a <see cref= "T:GLib.GType" /> </param>
<returns > a <see cref= "T:Gdk.PixbufAnimation" /> </returns>
<remarks > This is a constructor used by derivative types of <see cref= "T:Gdk.PixbufAnimation" /> that would have their own GLib.GType assigned to it. This is not typically used by C# code.</remarks>
</Docs>
</Member>
2004-11-05 19:03:16 +00:00
<Member MemberName= "Ref" >
<MemberSignature Language= "C#" Value= "public Gdk.PixbufAnimation Ref ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gdk.PixbufAnimation</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > To be added</summary>
<returns > a <see cref= "T:Gdk.PixbufAnimation" /> </returns>
<remarks > To be added</remarks>
</Docs>
</Member>
<Member MemberName= "Unref" >
<MemberSignature Language= "C#" Value= "public void Unref ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > To be added</summary>
<remarks > To be added</remarks>
</Docs>
</Member>
2003-02-12 01:57:20 +00:00
</Members>
2004-11-05 19:03:16 +00:00
</Type>