Ryujinx-GtkSharp/doc/en/Gdk/PixbufAnimation.xml
Mike Kestner 352fc8e849 Run the doc updater
Didn't audit any of this.
2012-03-28 22:10:46 -05:00

316 lines
13 KiB
XML

<Type Name="PixbufAnimation" FullName="Gdk.PixbufAnimation">
<TypeSignature Language="C#" Maintainer="auto" Value="public class PixbufAnimation : GLib.Object" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit PixbufAnimation extends GLib.Object" />
<AssemblyInfo>
<AssemblyName>gdk-sharp</AssemblyName>
<AssemblyPublicKey>
</AssemblyPublicKey>
</AssemblyInfo>
<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>
<Base>
<BaseTypeName>GLib.Object</BaseTypeName>
</Base>
<Interfaces>
</Interfaces>
<Docs>
<summary>A base class for animations that are rendered using <see cref="T:Gdk.Pixbuf" /></summary>
<remarks />
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public PixbufAnimation (IntPtr raw);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(native int raw) cil managed" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters>
<Parameter Name="raw" Type="System.IntPtr" />
</Parameters>
<Docs>
<param name="raw">Pointer to the C object.</param>
<summary>Internal constructor</summary>
<remarks>
<para>This is an internal constructor, and should not be used by user code.</para>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public PixbufAnimation (System.IO.Stream stream);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.IO.Stream stream) cil managed" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters>
<Parameter Name="stream" Type="System.IO.Stream" />
</Parameters>
<Docs>
<param name="stream">a <see cref="T:System.IO.Stream" /></param>
<summary>Makes a new animation object from a <see cref="T:System.IO.Stream" />.</summary>
<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>
<since version="Gtk# 2.4" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public PixbufAnimation (string filename);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string filename) cil managed" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters>
<Parameter Name="filename" Type="System.String" />
</Parameters>
<Docs>
<param name="filename">A <see cref="T:System.String" />, the filename to load into this object.</param>
<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
<see cref="T:Gdk.PixbufError" /> and <see cref="T:Gdk.Error" /> domains.
</summary>
<remarks />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public PixbufAnimation (System.Reflection.Assembly assembly, string resource);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Reflection.Assembly assembly, string resource) cil managed" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters>
<Parameter Name="assembly" Type="System.Reflection.Assembly" />
<Parameter Name="resource" Type="System.String" />
</Parameters>
<Docs>
<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>
<summary>Constructor for images embedded in an assembly</summary>
<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>
<since version="Gtk# 2.4" />
</Docs>
</Member>
<Member MemberName="GetIter">
<MemberSignature Language="C#" Value="public Gdk.PixbufAnimationIter GetIter (IntPtr start_time);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class Gdk.PixbufAnimationIter GetIter(native int start_time) cil managed" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>Gdk.PixbufAnimationIter</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="start_time" Type="System.IntPtr" />
</Parameters>
<Docs>
<param name="start_time">A <see cref="T:IntPtr" /></param>
<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>
<returns>A <see cref="T:Gdk.PixbufAnimationIter" /> to move over the animation</returns>
<remarks>
<p>
<paramref name="start_time" /> would normally come from
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
<see cref="P:Gdk.PixbufAnimationIter.Pixbuf" />. Then, you should install a
timeout (with g_timeout_add() (FIXME)) or by some other mechanism ensure
that you'll update the image after
<see cref="P:Gdk.PixbufAnimation.DelayTime" /> 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 <paramref name="start_time" /> is <see langword="null" />, the result of
g_get_current_time() will be used automatically.
</p>
<p>
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().
</p>
<p>
If you're using <see cref="T:Gdk.PixbufLoader" />, in addition
to updating the image
after the delay time, you should also update it whenever you
receive the area_updated signal and
<see cref="M:Gdk.PixbufAnimationIter.OnCurrentlyLoadingFrame" /> returns
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
<see cref="E:Gdk.PixbufLoader.AreaUpdated" /> 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
<see cref="E:Gdk.PixbufLoader.AreaUpdated" /> signal.
</p>
<p>
A delay time of -1 is possible, indicating "infinite."
</p>
</remarks>
</Docs>
</Member>
<Member MemberName="GType">
<MemberSignature Language="C#" Value="public static GLib.GType GType { get; }" />
<MemberSignature Language="ILAsm" Value=".property valuetype GLib.GType GType" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>GLib.GType</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>GType Property.</summary>
<value>a <see cref="T:GLib.GType" /></value>
<remarks>Returns the native <see cref="T:GLib.GType" /> value for <see cref="T:Gdk.PixbufAnimation" />.</remarks>
</Docs>
</Member>
<Member MemberName="Height">
<MemberSignature Language="C#" Value="public int Height { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 Height" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>The height of the animation.</summary>
<value>A <see cref="T:System.Int32" /></value>
<remarks />
</Docs>
</Member>
<Member MemberName="IsStaticImage">
<MemberSignature Language="C#" Value="public bool IsStaticImage { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsStaticImage" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>
If you load a file with <see cref="M:Gdk.PixbufAnimation.ctor" />
and it turns out to be a plain, unanimated image, then this
function will return
TRUE. Use <see cref="P:Gdk.PixbufAnimation.StaticImage" /> to
retrieve the image.
</summary>
<value>a <see cref="T:System.Boolean" /></value>
<remarks />
</Docs>
</Member>
<Member MemberName="LoadFromResource">
<MemberSignature Language="C#" Value="public static Gdk.PixbufAnimation LoadFromResource (string resource);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Gdk.PixbufAnimation LoadFromResource(string resource) cil managed" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>Gdk.PixbufAnimation</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="resource" Type="System.String" />
</Parameters>
<Docs>
<param name="resource">the name of the resource</param>
<summary>Loads a pixbuf from a resource file.</summary>
<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>
<since version="Gtk# 2.4" />
</Docs>
</Member>
<Member MemberName="Ref">
<MemberSignature Language="C#" Value="public Gdk.PixbufAnimation Ref ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class Gdk.PixbufAnimation Ref() cil managed" />
<MemberType>Method</MemberType>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete</AttributeName>
</Attribute>
</Attributes>
<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>
<since version="Gtk# 2.4" />
</Docs>
</Member>
<Member MemberName="StaticImage">
<MemberSignature Language="C#" Value="public Gdk.Pixbuf StaticImage { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Gdk.Pixbuf StaticImage" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Pixbuf</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the image if this animation is actually a static,
unanimaged file.</summary>
<value>A <see cref="T:Gdk.Pixbuf" /></value>
<remarks />
</Docs>
</Member>
<Member MemberName="Unref">
<MemberSignature Language="C#" Value="public void Unref ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Unref() cil managed" />
<MemberType>Method</MemberType>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added</summary>
<remarks>To be added</remarks>
<since version="Gtk# 2.4" />
</Docs>
</Member>
<Member MemberName="Width">
<MemberSignature Language="C#" Value="public int Width { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 Width" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>The width of the animation.</summary>
<value>A <see cref="T:System.Int32" /></value>
<remarks />
</Docs>
</Member>
</Members>
</Type>