static void LoadAsync_cb(IntPtr inst, int size, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data) { try { ILoadableIconImplementor __obj = GLib.Object.GetObject(inst, false) as ILoadableIconImplementor; GLibSharp.AsyncReadyCallbackInvoker cb_invoker = new GLibSharp.AsyncReadyCallbackInvoker(cb, user_data); __obj.LoadAsync(size, GLib.Object.GetObject(cancellable) as GLib.Cancellable, cb_invoker.Handler); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
public LoadableIconAdapter(ILoadableIconImplementor implementor) { if (implementor == null) { throw new ArgumentNullException("implementor"); } else if (!(implementor is GLib.Object)) { throw new ArgumentException("implementor must be a subclass of GLib.Object"); } this.implementor = implementor as GLib.Object; }
static IntPtr LoadFinish_cb(IntPtr inst, IntPtr res, IntPtr type, out IntPtr error) { error = IntPtr.Zero; try { ILoadableIconImplementor __obj = GLib.Object.GetObject(inst, false) as ILoadableIconImplementor; GLib.InputStream __result; __result = __obj.LoadFinish(GLib.AsyncResultAdapter.GetObject(res, false), GLib.Marshaller.PtrToStringGFree(type)); return(__result == null ? IntPtr.Zero : __result.Handle); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
public LoadableIconAdapter (ILoadableIconImplementor implementor) { if (implementor == null) throw new ArgumentNullException ("implementor"); else if (!(implementor is GLib.Object)) throw new ArgumentException ("implementor must be a subclass of GLib.Object"); this.implementor = implementor as GLib.Object; }