75 lines
3.1 KiB
C#
75 lines
3.1 KiB
C#
|
|
// This file was generated by the Gtk# code generator.
|
||
|
|
// Any changes made will be lost if regenerated.
|
||
|
|
|
||
|
|
namespace Gdk {
|
||
|
|
|
||
|
|
using System;
|
||
|
|
using System.Collections;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using System.Runtime.InteropServices;
|
||
|
|
using static GLib.AbiStructExtension;
|
||
|
|
|
||
|
|
#region Autogenerated code
|
||
|
|
public partial class PixbufSimpleAnim : Gdk.PixbufAnimation {
|
||
|
|
|
||
|
|
public PixbufSimpleAnim (IntPtr raw) : base(raw) {}
|
||
|
|
|
||
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||
|
|
delegate IntPtr d_gdk_pixbuf_simple_anim_new(int width, int height, float rate);
|
||
|
|
static d_gdk_pixbuf_simple_anim_new gdk_pixbuf_simple_anim_new = FuncLoader.LoadFunction<d_gdk_pixbuf_simple_anim_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GdkPixbuf), "gdk_pixbuf_simple_anim_new"));
|
||
|
|
|
||
|
|
public PixbufSimpleAnim (int width, int height, float rate) : base (IntPtr.Zero)
|
||
|
|
{
|
||
|
|
if (GetType () != typeof (PixbufSimpleAnim)) {
|
||
|
|
var vals = new List<GLib.Value> ();
|
||
|
|
var names = new List<string> ();
|
||
|
|
CreateNativeObject (names.ToArray (), vals.ToArray ());
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
Raw = gdk_pixbuf_simple_anim_new(width, height, rate);
|
||
|
|
}
|
||
|
|
|
||
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||
|
|
delegate bool d_gdk_pixbuf_simple_anim_get_loop(IntPtr raw);
|
||
|
|
static d_gdk_pixbuf_simple_anim_get_loop gdk_pixbuf_simple_anim_get_loop = FuncLoader.LoadFunction<d_gdk_pixbuf_simple_anim_get_loop>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GdkPixbuf), "gdk_pixbuf_simple_anim_get_loop"));
|
||
|
|
|
||
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||
|
|
delegate void d_gdk_pixbuf_simple_anim_set_loop(IntPtr raw, bool loop);
|
||
|
|
static d_gdk_pixbuf_simple_anim_set_loop gdk_pixbuf_simple_anim_set_loop = FuncLoader.LoadFunction<d_gdk_pixbuf_simple_anim_set_loop>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GdkPixbuf), "gdk_pixbuf_simple_anim_set_loop"));
|
||
|
|
|
||
|
|
[GLib.Property ("loop")]
|
||
|
|
public bool Loop {
|
||
|
|
get {
|
||
|
|
bool raw_ret = gdk_pixbuf_simple_anim_get_loop(Handle);
|
||
|
|
bool ret = raw_ret;
|
||
|
|
return ret;
|
||
|
|
}
|
||
|
|
set {
|
||
|
|
gdk_pixbuf_simple_anim_set_loop(Handle, value);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||
|
|
delegate void d_gdk_pixbuf_simple_anim_add_frame(IntPtr raw, IntPtr pixbuf);
|
||
|
|
static d_gdk_pixbuf_simple_anim_add_frame gdk_pixbuf_simple_anim_add_frame = FuncLoader.LoadFunction<d_gdk_pixbuf_simple_anim_add_frame>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GdkPixbuf), "gdk_pixbuf_simple_anim_add_frame"));
|
||
|
|
|
||
|
|
public void AddFrame(Gdk.Pixbuf pixbuf) {
|
||
|
|
gdk_pixbuf_simple_anim_add_frame(Handle, pixbuf == null ? IntPtr.Zero : pixbuf.Handle);
|
||
|
|
}
|
||
|
|
|
||
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||
|
|
delegate IntPtr d_gdk_pixbuf_simple_anim_get_type();
|
||
|
|
static d_gdk_pixbuf_simple_anim_get_type gdk_pixbuf_simple_anim_get_type = FuncLoader.LoadFunction<d_gdk_pixbuf_simple_anim_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GdkPixbuf), "gdk_pixbuf_simple_anim_get_type"));
|
||
|
|
|
||
|
|
public static new GLib.GType GType {
|
||
|
|
get {
|
||
|
|
IntPtr raw_ret = gdk_pixbuf_simple_anim_get_type();
|
||
|
|
GLib.GType ret = new GLib.GType(raw_ret);
|
||
|
|
return ret;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
}
|
||
|
|
}
|