1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
|
// 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;
#region Autogenerated code
public partial class PixbufAnimation : GLib.Object {
public PixbufAnimation (IntPtr raw) : base(raw) {}
[DllImport("gdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe IntPtr gdk_pixbuf_animation_new_from_file(IntPtr filename, out IntPtr error);
public unsafe PixbufAnimation (string filename) : base (IntPtr.Zero)
{
if (GetType () != typeof (PixbufAnimation)) {
var vals = new List<GLib.Value> ();
var names = new List<string> ();
CreateNativeObject (names.ToArray (), vals.ToArray ());
return;
}
IntPtr native_filename = GLib.Marshaller.StringToPtrGStrdup (filename);
IntPtr error = IntPtr.Zero;
Raw = gdk_pixbuf_animation_new_from_file(native_filename, out error);
GLib.Marshaller.Free (native_filename);
if (error != IntPtr.Zero) throw new GLib.GException (error);
}
[DllImport("gdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe IntPtr gdk_pixbuf_animation_new_from_file_utf8(IntPtr filename, out IntPtr error);
public static unsafe PixbufAnimation NewFromFileUtf8(string filename)
{
IntPtr native_filename = GLib.Marshaller.StringToPtrGStrdup (filename);
IntPtr error = IntPtr.Zero;
PixbufAnimation result = new PixbufAnimation (gdk_pixbuf_animation_new_from_file_utf8(native_filename, out error));
GLib.Marshaller.Free (native_filename);
if (error != IntPtr.Zero) throw new GLib.GException (error);
return result;
}
[DllImport("gdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe IntPtr gdk_pixbuf_animation_new_from_resource(IntPtr resource_path, out IntPtr error);
public static unsafe PixbufAnimation NewFromResource(string resource_path)
{
IntPtr native_resource_path = GLib.Marshaller.StringToPtrGStrdup (resource_path);
IntPtr error = IntPtr.Zero;
PixbufAnimation result = new PixbufAnimation (gdk_pixbuf_animation_new_from_resource(native_resource_path, out error));
GLib.Marshaller.Free (native_resource_path);
if (error != IntPtr.Zero) throw new GLib.GException (error);
return result;
}
[DllImport("gdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe IntPtr gdk_pixbuf_animation_new_from_stream(IntPtr stream, IntPtr cancellable, out IntPtr error);
public unsafe PixbufAnimation (GLib.InputStream stream, GLib.Cancellable cancellable) : base (IntPtr.Zero)
{
if (GetType () != typeof (PixbufAnimation)) {
var vals = new List<GLib.Value> ();
var names = new List<string> ();
CreateNativeObject (names.ToArray (), vals.ToArray ());
return;
}
IntPtr error = IntPtr.Zero;
Raw = gdk_pixbuf_animation_new_from_stream(stream == null ? IntPtr.Zero : stream.Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, out error);
if (error != IntPtr.Zero) throw new GLib.GException (error);
}
[DllImport("gdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gdk_pixbuf_animation_new_from_stream_async(IntPtr stream, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data);
public PixbufAnimation (GLib.InputStream stream, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) : base (IntPtr.Zero)
{
if (GetType () != typeof (PixbufAnimation)) {
var vals = new List<GLib.Value> ();
var names = new List<string> ();
CreateNativeObject (names.ToArray (), vals.ToArray ());
return;
}
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
Raw = gdk_pixbuf_animation_new_from_stream_async(stream == null ? IntPtr.Zero : stream.Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
}
[DllImport("gdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe IntPtr gdk_pixbuf_animation_new_from_stream_finish(IntPtr async_result, out IntPtr error);
public unsafe PixbufAnimation (GLib.IAsyncResult async_result) : base (IntPtr.Zero)
{
if (GetType () != typeof (PixbufAnimation)) {
var vals = new List<GLib.Value> ();
var names = new List<string> ();
CreateNativeObject (names.ToArray (), vals.ToArray ());
return;
}
IntPtr error = IntPtr.Zero;
Raw = gdk_pixbuf_animation_new_from_stream_finish(async_result == null ? IntPtr.Zero : ((async_result is GLib.Object) ? (async_result as GLib.Object).Handle : (async_result as GLib.AsyncResultAdapter).Handle), out error);
if (error != IntPtr.Zero) throw new GLib.GException (error);
}
[DllImport("gdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gdk_pixbuf_animation_get_height(IntPtr raw);
public int Height {
get {
int raw_ret = gdk_pixbuf_animation_get_height(Handle);
int ret = raw_ret;
return ret;
}
}
[DllImport("gdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gdk_pixbuf_animation_get_iter(IntPtr raw, IntPtr start_time);
public Gdk.PixbufAnimationIter GetIter(IntPtr start_time) {
IntPtr raw_ret = gdk_pixbuf_animation_get_iter(Handle, start_time);
Gdk.PixbufAnimationIter ret = GLib.Object.GetObject(raw_ret) as Gdk.PixbufAnimationIter;
return ret;
}
[DllImport("gdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gdk_pixbuf_animation_get_static_image(IntPtr raw);
public Gdk.Pixbuf StaticImage {
get {
IntPtr raw_ret = gdk_pixbuf_animation_get_static_image(Handle);
Gdk.Pixbuf ret = GLib.Object.GetObject(raw_ret) as Gdk.Pixbuf;
return ret;
}
}
[DllImport("gdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gdk_pixbuf_animation_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gdk_pixbuf_animation_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("gdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gdk_pixbuf_animation_get_width(IntPtr raw);
public int Width {
get {
int raw_ret = gdk_pixbuf_animation_get_width(Handle);
int ret = raw_ret;
return ret;
}
}
[DllImport("gdk_pixbuf-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gdk_pixbuf_animation_is_static_image(IntPtr raw);
public bool IsStaticImage {
get {
bool raw_ret = gdk_pixbuf_animation_is_static_image(Handle);
bool ret = raw_ret;
return ret;
}
}
#endregion
}
}
|