2003-02-12 01:57:20 +00:00
<Type Name= "PixbufAnimation" FullName= "Gdk.PixbufAnimation" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "auto" Value= "public class PixbufAnimation : GLib.Object" />
2003-02-12 01:57:20 +00:00
<AssemblyInfo >
<AssemblyName > gdk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2005-12-09 23:12:49 +00:00
<AssemblyVersion > 2.8.0.0</AssemblyVersion>
2003-02-12 01:57:20 +00:00
</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 >
</Interfaces>
<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= ".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>
<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>
<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>
2005-05-23 20:41:51 +00:00
<value > A <see cref= "T:System.Int32" /> </value>
2004-11-05 19:03:16 +00:00
<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>
2005-05-23 20:41:51 +00:00
<value > A <see cref= "T:Gdk.Pixbuf" /> </value>
2004-11-05 19:03:16 +00:00
<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>
2005-05-23 20:41:51 +00:00
<value > A <see cref= "T:System.Int32" /> </value>
2004-11-05 19:03:16 +00:00
<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>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:System.Boolean" /> </value>
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>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:GLib.GType" /> </value>
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>
<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>
2005-06-16 18:56:42 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > System.Obsolete(Message=null, IsError=False)</AttributeName>
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
</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>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2004-11-05 19:03:16 +00:00
</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>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2004-11-05 19:03:16 +00:00
</Docs>
</Member>
2005-04-01 14:54:12 +00:00
<Member MemberName= "LoadFromResource" >
<MemberSignature Language= "C#" Value= "public static Gdk.PixbufAnimation LoadFromResource (string resource);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gdk.PixbufAnimation</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "resource" Type= "System.String" />
</Parameters>
<Docs >
<summary > Loads a pixbuf from a resource file.</summary>
<param name= "resource" > the name of the resource</param>
<returns > a <see cref= "T:Gdk.PixbufAnimation" /> </returns>
<remarks >
This loads an animation from a resource in the calling assembly. This is equivalent to
using the <see cref= "C:Gdk.PixbufAnimation(System.Reflection.Assembly, System.String)" />
constructor with a <see langword= "null" /> assembly.
</remarks>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2005-04-01 14:54:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public PixbufAnimation (System.IO.Stream stream);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
<Parameter Name= "stream" Type= "System.IO.Stream" />
</Parameters>
<Docs >
<summary > Makes a new animation object from a <see cref= "T:System.IO.Stream" /> .</summary>
<param name= "stream" > a <see cref= "T:System.IO.Stream" /> </param>
<remarks > Useful for creating an animation from an image file that resides in memory.
<example >
<code lang= "C#" >
/* buffer containing an image */
System.Byte[] buffer = new System.Byte[256];
/* create a memory stream to the buffer */
System.IO.MemoryStream memorystream = new System.IO.MemoryStream(buffer);
/* create an animation from the stream as if it was a file */
Gdk.PixbufAnimation pba = new Gdk.PixbufAnimation(memorystream);
</code>
</example> </remarks>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2005-04-01 14:54:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public PixbufAnimation (System.Reflection.Assembly assembly, string resource);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
<Parameter Name= "assembly" Type= "System.Reflection.Assembly" />
<Parameter Name= "resource" Type= "System.String" />
</Parameters>
<Docs >
<summary > Constructor for images embedded in an assembly</summary>
<param name= "assembly" > The <see cref= "T:System.Reflection.Assembly" /> that contains the image.
<para >
If the value is <see langword= "null" /> , the image will be looked up on the calling assembly.</para> </param>
<param name= "resource" > The name given as the resource in the assembly</param>
<remarks >
<para >
This method is used to construct a <see cref= "T:Gdk.PixbufAnimation" /> from an embedded resource in an assembly.
</para>
<para >
Typically this is used when application developers want to distribute images in a single executable.
</para>
If the assembly parameter is <see langword= "null" /> , the image will be looked up on the calling assembly.
<para >
For example:
</para> <example >
<code lang= "C#" >
Gdk.PixbufAnimation p = new PixbufAnimation (null, "anim.gif");
</code>
</example> <para > Compile with:</para> <example >
<code lang= "Compilation" >
mcs -resource:anim.gif sample.cs
</code>
</example> </remarks>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2005-04-01 14:54:12 +00:00
</Docs>
</Member>
2003-02-12 01:57:20 +00:00
</Members>
2005-06-17 18:43:30 +00:00
</Type>