예제 #1
0
 static void SetAsset_cb(IntPtr inst, IntPtr asset)
 {
     try {
         IExtractableImplementor __obj = GLib.Object.GetObject(inst, false) as IExtractableImplementor;
         __obj.Asset = GLib.Object.GetObject(asset) as GES.Asset;
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
예제 #2
0
 public ExtractableAdapter(IExtractableImplementor 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;
 }
예제 #3
0
 static IntPtr GetId_cb(IntPtr inst)
 {
     try {
         IExtractableImplementor __obj = GLib.Object.GetObject(inst, false) as IExtractableImplementor;
         string __result;
         __result = __obj.Id;
         return(GLib.Marshaller.StringToPtrGStrdup(__result));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }