public bool RemoveAsset(GES.Asset asset) { bool raw_ret = ges_project_remove_asset(Handle, asset == null ? IntPtr.Zero : asset.Handle); bool ret = raw_ret; return(ret); }
public GES.TrackElement AddAsset(GES.Asset asset) { IntPtr raw_ret = ges_clip_add_asset(Handle, asset == null ? IntPtr.Zero : asset.Handle); GES.TrackElement ret = GLib.Object.GetObject(raw_ret) as GES.TrackElement; return(ret); }
public bool Unproxy(GES.Asset proxy) { bool raw_ret = ges_asset_unproxy(Handle, proxy == null ? IntPtr.Zero : proxy.Handle); bool ret = raw_ret; return(ret); }
public GES.Clip AddAsset(GES.Asset asset, ulong start, ulong inpoint, ulong duration, GES.TrackType track_types) { IntPtr raw_ret = ges_layer_add_asset(Handle, asset == null ? IntPtr.Zero : asset.Handle, start, inpoint, duration, (int)track_types); GES.Clip ret = GLib.Object.GetObject(raw_ret) as GES.Clip; return(ret); }
public bool SetAsset(GES.Asset asset) { bool raw_ret = ges_extractable_set_asset(Handle, asset == null ? IntPtr.Zero : asset.Handle); bool ret = raw_ret; return(ret); }
public static GES.Asset FindFormatterForUri(string uri) { IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup(uri); IntPtr raw_ret = ges_find_formatter_for_uri(native_uri); GES.Asset ret = GLib.Object.GetObject(raw_ret) as GES.Asset; GLib.Marshaller.Free(native_uri); return(ret); }
public GES.Asset GetAsset(string id, GLib.GType extractable_type) { IntPtr native_id = GLib.Marshaller.StringToPtrGStrdup(id); IntPtr raw_ret = ges_project_get_asset(Handle, native_id, extractable_type.Val); GES.Asset ret = GLib.Object.GetObject(raw_ret, true) as GES.Asset; GLib.Marshaller.Free(native_id); return(ret); }
static void NotifyMeta_cb(IntPtr inst, IntPtr _object, IntPtr p0) { try { GES.Asset __obj = GLib.Object.GetObject(inst, false) as GES.Asset; __obj.OnNotifyMeta(GLib.Marshaller.Utf8PtrToString(_object), (GLib.Value)Marshal.PtrToStructure(p0, typeof(GLib.Value))); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
public unsafe GES.Clip AddAssetFull(GES.Asset asset, ulong start, ulong inpoint, ulong duration, GES.TrackType track_types) { IntPtr error = IntPtr.Zero; IntPtr raw_ret = ges_layer_add_asset_full(Handle, asset == null ? IntPtr.Zero : asset.Handle, start, inpoint, duration, (int)track_types, out error); GES.Clip ret = GLib.Object.GetObject(raw_ret) as GES.Clip; if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }
public static unsafe GES.Asset RequestFinish(GLib.IAsyncResult res) { IntPtr error = IntPtr.Zero; IntPtr raw_ret = ges_asset_request_finish(res == null ? IntPtr.Zero : ((res is GLib.Object) ? (res as GLib.Object).Handle : (res as GLib.AsyncResultAdapter).Handle), out error); GES.Asset ret = GLib.Object.GetObject(raw_ret, true) as GES.Asset; if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }
public static unsafe GES.Asset Request(GLib.GType extractable_type, string id) { IntPtr native_id = GLib.Marshaller.StringToPtrGStrdup(id); IntPtr error = IntPtr.Zero; IntPtr raw_ret = ges_asset_request(extractable_type.Val, native_id, out error); GES.Asset ret = GLib.Object.GetObject(raw_ret, true) as GES.Asset; GLib.Marshaller.Free(native_id); if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }
public unsafe bool Save(GES.Timeline timeline, string uri, GES.Asset formatter_asset, bool overwrite) { IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup(uri); IntPtr error = IntPtr.Zero; bool raw_ret = ges_project_save(Handle, timeline == null ? IntPtr.Zero : timeline.Handle, native_uri, formatter_asset == null ? IntPtr.Zero : formatter_asset.Handle, overwrite, out error); bool ret = raw_ret; GLib.Marshaller.Free(native_uri); if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }
public unsafe GES.Asset CreateAssetSync(string id, GLib.GType extractable_type) { IntPtr native_id = GLib.Marshaller.StringToPtrGStrdup(id); IntPtr error = IntPtr.Zero; IntPtr raw_ret = ges_project_create_asset_sync(Handle, native_id, extractable_type.Val, out error); GES.Asset ret = GLib.Object.GetObject(raw_ret, true) as GES.Asset; GLib.Marshaller.Free(native_id); if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }
private void InternalAssetRemoved(GES.Asset asset) { AssetRemovedNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("asset_removed")); unmanaged = (AssetRemovedNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(AssetRemovedNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle, asset == null ? IntPtr.Zero : asset.Handle); }
protected virtual void OnProxied(GES.Asset proxy) { InternalProxied(proxy); }
protected virtual void OnAssetRemoved(GES.Asset asset) { InternalAssetRemoved(asset); }
protected virtual void OnAssetLoading(GES.Asset asset) { InternalAssetLoading(asset); }