summaryrefslogtreecommitdiff
path: root/ges/generated/GES
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2018-03-11 21:39:46 -0300
committerThibault Saunier <tsaunier@igalia.com>2018-03-11 21:47:35 -0300
commit2d00f898fb3af62a4e2972a9ad87f5250e38f3f9 (patch)
tree6fde51e02865a62e3d72b1ad3cbd191244b66063 /ges/generated/GES
parentf9044e93e160b0f9a0cf86d8bc93a58665ec60cd (diff)
Move generated files to dedicated folders named by namespace
Making it cleaner and simpler to navigate and removing previous ugly and now useless hack where we were renaming files ourself to make meson happy.
Diffstat (limited to 'ges/generated/GES')
-rw-r--r--ges/generated/GES/Asset.cs1004
-rw-r--r--ges/generated/GES/AssetAddedHandler.cs18
-rw-r--r--ges/generated/GES/AssetLoadingHandler.cs18
-rw-r--r--ges/generated/GES/AssetLoadingReturn.cs17
-rw-r--r--ges/generated/GES/AssetRemovedHandler.cs18
-rw-r--r--ges/generated/GES/AudioSource.cs103
-rw-r--r--ges/generated/GES/AudioTestSource.cs129
-rw-r--r--ges/generated/GES/AudioTrack.cs102
-rw-r--r--ges/generated/GES/AudioTransition.cs102
-rw-r--r--ges/generated/GES/AudioUriSource.cs113
-rw-r--r--ges/generated/GES/BaseEffect.cs95
-rw-r--r--ges/generated/GES/BaseEffectClip.cs95
-rw-r--r--ges/generated/GES/BaseTransitionClip.cs95
-rw-r--r--ges/generated/GES/BaseXmlFormatter.cs118
-rw-r--r--ges/generated/GES/ChildAddedHandler.cs18
-rw-r--r--ges/generated/GES/ChildRemovedHandler.cs18
-rw-r--r--ges/generated/GES/ChildrenControlMode.cs19
-rw-r--r--ges/generated/GES/Clip.cs241
-rw-r--r--ges/generated/GES/ClipAddedHandler.cs18
-rw-r--r--ges/generated/GES/ClipAsset.cs113
-rw-r--r--ges/generated/GES/ClipRemovedHandler.cs18
-rw-r--r--ges/generated/GES/CommandLineFormatter.cs89
-rw-r--r--ges/generated/GES/Constants.cs28
-rw-r--r--ges/generated/GES/Container.cs674
-rw-r--r--ges/generated/GES/ControlBindingAddedHandler.cs18
-rw-r--r--ges/generated/GES/ControlBindingRemovedHandler.cs18
-rw-r--r--ges/generated/GES/CreateElementForGapFunc.cs10
-rw-r--r--ges/generated/GES/CreateTrackElementFunc.cs10
-rw-r--r--ges/generated/GES/CreateTrackElementsFunc.cs10
-rw-r--r--ges/generated/GES/DeepNotifyHandler.cs24
-rw-r--r--ges/generated/GES/Edge.cs29
-rw-r--r--ges/generated/GES/EditMode.cs31
-rw-r--r--ges/generated/GES/Effect.cs139
-rw-r--r--ges/generated/GES/EffectAsset.cs39
-rw-r--r--ges/generated/GES/EffectClip.cs132
-rw-r--r--ges/generated/GES/Error.cs17
-rw-r--r--ges/generated/GES/ExtractableAdapter.cs191
-rw-r--r--ges/generated/GES/ExtractableCheckId.cs10
-rw-r--r--ges/generated/GES/FillTrackElementFunc.cs10
-rw-r--r--ges/generated/GES/Formatter.cs306
-rw-r--r--ges/generated/GES/FormatterCanLoadURIMethod.cs10
-rw-r--r--ges/generated/GES/FormatterLoadFromURIMethod.cs10
-rw-r--r--ges/generated/GES/FormatterSaveToURIMethod.cs10
-rw-r--r--ges/generated/GES/GESSharp.CreateElementForGapFuncNative.cs96
-rw-r--r--ges/generated/GES/GESSharp.CreateTrackElementFuncNative.cs96
-rw-r--r--ges/generated/GES/GESSharp.CreateTrackElementsFuncNative.cs96
-rw-r--r--ges/generated/GES/GESSharp.ExtractableCheckIdNative.cs101
-rw-r--r--ges/generated/GES/GESSharp.FillTrackElementFuncNative.cs95
-rw-r--r--ges/generated/GES/GESSharp.FormatterCanLoadURIMethodNative.cs100
-rw-r--r--ges/generated/GES/GESSharp.FormatterLoadFromURIMethodNative.cs100
-rw-r--r--ges/generated/GES/GESSharp.FormatterSaveToURIMethodNative.cs100
-rw-r--r--ges/generated/GES/GESSharp.MetaForeachFuncNative.cs96
-rw-r--r--ges/generated/GES/Global.cs112
-rw-r--r--ges/generated/GES/Group.cs177
-rw-r--r--ges/generated/GES/GroupAddedHandler.cs18
-rw-r--r--ges/generated/GES/IExtractable.cs27
-rw-r--r--ges/generated/GES/IMetaContainer.cs53
-rw-r--r--ges/generated/GES/ImageSource.cs113
-rw-r--r--ges/generated/GES/Layer.cs1017
-rw-r--r--ges/generated/GES/LayerAddedHandler.cs18
-rw-r--r--ges/generated/GES/LayerRemovedHandler.cs18
-rw-r--r--ges/generated/GES/LoadedHandler.cs18
-rw-r--r--ges/generated/GES/MetaContainerAdapter.cs508
-rw-r--r--ges/generated/GES/MetaFlag.cs30
-rw-r--r--ges/generated/GES/MetaForeachFunc.cs10
-rw-r--r--ges/generated/GES/MultiFileSource.cs126
-rw-r--r--ges/generated/GES/NotifyMetaHandler.cs24
-rw-r--r--ges/generated/GES/Operation.cs95
-rw-r--r--ges/generated/GES/OperationClip.cs95
-rw-r--r--ges/generated/GES/OverlayClip.cs95
-rw-r--r--ges/generated/GES/Pipeline.cs334
-rw-r--r--ges/generated/GES/PipelineFlags.cs32
-rw-r--r--ges/generated/GES/PitiviFormatter.cs102
-rw-r--r--ges/generated/GES/Project.cs538
-rw-r--r--ges/generated/GES/SnappingEndedHandler.cs30
-rw-r--r--ges/generated/GES/SnappingStartedHandler.cs30
-rw-r--r--ges/generated/GES/Source.cs95
-rw-r--r--ges/generated/GES/SourceClip.cs95
-rw-r--r--ges/generated/GES/TestClip.cs213
-rw-r--r--ges/generated/GES/TextHAlign.cs31
-rw-r--r--ges/generated/GES/TextOverlay.cs225
-rw-r--r--ges/generated/GES/TextOverlayClip.cs248
-rw-r--r--ges/generated/GES/TextVAlign.cs32
-rw-r--r--ges/generated/GES/Timeline.cs1412
-rw-r--r--ges/generated/GES/TimelineElement.cs2113
-rw-r--r--ges/generated/GES/TitleClip.cs278
-rw-r--r--ges/generated/GES/TitleSource.cs235
-rw-r--r--ges/generated/GES/Track.cs902
-rw-r--r--ges/generated/GES/TrackAddedHandler.cs18
-rw-r--r--ges/generated/GES/TrackElement.cs672
-rw-r--r--ges/generated/GES/TrackElementAddedHandler.cs18
-rw-r--r--ges/generated/GES/TrackElementAsset.cs113
-rw-r--r--ges/generated/GES/TrackElementRemovedHandler.cs18
-rw-r--r--ges/generated/GES/TrackRemovedHandler.cs18
-rw-r--r--ges/generated/GES/TrackType.cs32
-rw-r--r--ges/generated/GES/Transition.cs95
-rw-r--r--ges/generated/GES/TransitionClip.cs161
-rw-r--r--ges/generated/GES/UriClip.cs178
-rw-r--r--ges/generated/GES/UriClipAsset.cs187
-rw-r--r--ges/generated/GES/UriSourceAsset.cs128
-rw-r--r--ges/generated/GES/VideoSource.cs134
-rw-r--r--ges/generated/GES/VideoStandardTransitionType.cs98
-rw-r--r--ges/generated/GES/VideoTestPattern.cs44
-rw-r--r--ges/generated/GES/VideoTestSource.cs112
-rw-r--r--ges/generated/GES/VideoTrack.cs102
-rw-r--r--ges/generated/GES/VideoTransition.cs180
-rw-r--r--ges/generated/GES/VideoUriSource.cs113
-rw-r--r--ges/generated/GES/XmlFormatter.cs95
108 files changed, 17182 insertions, 0 deletions
diff --git a/ges/generated/GES/Asset.cs b/ges/generated/GES/Asset.cs
new file mode 100644
index 0000000..cf53fdb
--- /dev/null
+++ b/ges/generated/GES/Asset.cs
@@ -0,0 +1,1004 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class Asset : GLib.Object, GES.IMetaContainer, GLib.IAsyncInitable, GLib.IInitable {
+
+ public Asset (IntPtr raw) : base(raw) {}
+
+ protected Asset() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_asset_get_extractable_type(IntPtr raw);
+
+ [GLib.Property ("extractable-type")]
+ public GLib.GType ExtractableType {
+ get {
+ IntPtr raw_ret = ges_asset_get_extractable_type(Handle);
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_asset_get_id(IntPtr raw);
+
+ [GLib.Property ("id")]
+ public string Id {
+ get {
+ IntPtr raw_ret = ges_asset_get_id(Handle);
+ string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_asset_get_proxy(IntPtr raw);
+
+ [GLib.Property ("proxy")]
+ public GES.Asset Proxy {
+ get {
+ IntPtr raw_ret = ges_asset_get_proxy(Handle);
+ GES.Asset ret = GLib.Object.GetObject(raw_ret) as GES.Asset;
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("proxy", val);
+ val.Dispose ();
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_asset_get_proxy_target(IntPtr raw);
+
+ [GLib.Property ("proxy-target")]
+ public GES.Asset ProxyTarget {
+ get {
+ IntPtr raw_ret = ges_asset_get_proxy_target(Handle);
+ GES.Asset ret = GLib.Object.GetObject(raw_ret) as GES.Asset;
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("proxy-target", val);
+ val.Dispose ();
+ }
+ }
+
+ static StartLoadingNativeDelegate StartLoading_cb_delegate;
+ static StartLoadingNativeDelegate StartLoadingVMCallback {
+ get {
+ if (StartLoading_cb_delegate == null)
+ StartLoading_cb_delegate = new StartLoadingNativeDelegate (StartLoading_cb);
+ return StartLoading_cb_delegate;
+ }
+ }
+
+ static void OverrideStartLoading (GLib.GType gtype)
+ {
+ OverrideStartLoading (gtype, StartLoadingVMCallback);
+ }
+
+ static void OverrideStartLoading (GLib.GType gtype, StartLoadingNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("start_loading"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate int StartLoadingNativeDelegate (IntPtr inst, out IntPtr error);
+
+ static int StartLoading_cb (IntPtr inst, out IntPtr error)
+ {
+ error = IntPtr.Zero;
+
+ try {
+ Asset __obj = GLib.Object.GetObject (inst, false) as Asset;
+ GES.AssetLoadingReturn __result;
+ __result = __obj.OnStartLoading ();
+ return (int) __result;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Asset), ConnectionMethod="OverrideStartLoading")]
+ protected virtual GES.AssetLoadingReturn OnStartLoading ()
+ {
+ return InternalStartLoading ();
+ }
+
+ private GES.AssetLoadingReturn InternalStartLoading ()
+ {
+ StartLoadingNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("start_loading"));
+ unmanaged = (StartLoadingNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(StartLoadingNativeDelegate));
+ }
+ if (unmanaged == null) throw new InvalidOperationException ("No base method to invoke");
+
+ IntPtr error = IntPtr.Zero;
+ int __result = unmanaged (this.Handle, out error);
+ return (GES.AssetLoadingReturn) __result;
+ }
+
+ static ExtractNativeDelegate Extract_cb_delegate;
+ static ExtractNativeDelegate ExtractVMCallback {
+ get {
+ if (Extract_cb_delegate == null)
+ Extract_cb_delegate = new ExtractNativeDelegate (Extract_cb);
+ return Extract_cb_delegate;
+ }
+ }
+
+ static void OverrideExtract (GLib.GType gtype)
+ {
+ OverrideExtract (gtype, ExtractVMCallback);
+ }
+
+ static void OverrideExtract (GLib.GType gtype, ExtractNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("extract"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate IntPtr ExtractNativeDelegate (IntPtr inst, out IntPtr error);
+
+ static IntPtr Extract_cb (IntPtr inst, out IntPtr error)
+ {
+ error = IntPtr.Zero;
+
+ try {
+ Asset __obj = GLib.Object.GetObject (inst, false) as Asset;
+ GES.IExtractable __result;
+ __result = __obj.OnExtract ();
+ return __result == null ? IntPtr.Zero : ((__result is GLib.Object) ? (__result as GLib.Object).Handle : (__result as GES.ExtractableAdapter).Handle);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Asset), ConnectionMethod="OverrideExtract")]
+ protected virtual GES.IExtractable OnExtract ()
+ {
+ return InternalExtract ();
+ }
+
+ private GES.IExtractable InternalExtract ()
+ {
+ ExtractNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("extract"));
+ unmanaged = (ExtractNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ExtractNativeDelegate));
+ }
+ if (unmanaged == null) throw new InvalidOperationException ("No base method to invoke");
+
+ IntPtr error = IntPtr.Zero;
+ IntPtr __result = unmanaged (this.Handle, out error);
+ return GES.ExtractableAdapter.GetObject (__result, false);
+ }
+
+ static InformProxyNativeDelegate InformProxy_cb_delegate;
+ static InformProxyNativeDelegate InformProxyVMCallback {
+ get {
+ if (InformProxy_cb_delegate == null)
+ InformProxy_cb_delegate = new InformProxyNativeDelegate (InformProxy_cb);
+ return InformProxy_cb_delegate;
+ }
+ }
+
+ static void OverrideInformProxy (GLib.GType gtype)
+ {
+ OverrideInformProxy (gtype, InformProxyVMCallback);
+ }
+
+ static void OverrideInformProxy (GLib.GType gtype, InformProxyNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("inform_proxy"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void InformProxyNativeDelegate (IntPtr inst, IntPtr proxy_id);
+
+ static void InformProxy_cb (IntPtr inst, IntPtr proxy_id)
+ {
+ try {
+ Asset __obj = GLib.Object.GetObject (inst, false) as Asset;
+ __obj.OnInformProxy (GLib.Marshaller.Utf8PtrToString (proxy_id));
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Asset), ConnectionMethod="OverrideInformProxy")]
+ protected virtual void OnInformProxy (string proxy_id)
+ {
+ InternalInformProxy (proxy_id);
+ }
+
+ private void InternalInformProxy (string proxy_id)
+ {
+ InformProxyNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("inform_proxy"));
+ unmanaged = (InformProxyNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(InformProxyNativeDelegate));
+ }
+ if (unmanaged == null) return;
+
+ IntPtr native_proxy_id = GLib.Marshaller.StringToPtrGStrdup (proxy_id);
+ unmanaged (this.Handle, native_proxy_id);
+ GLib.Marshaller.Free (native_proxy_id);
+ }
+
+ static ProxiedNativeDelegate Proxied_cb_delegate;
+ static ProxiedNativeDelegate ProxiedVMCallback {
+ get {
+ if (Proxied_cb_delegate == null)
+ Proxied_cb_delegate = new ProxiedNativeDelegate (Proxied_cb);
+ return Proxied_cb_delegate;
+ }
+ }
+
+ static void OverrideProxied (GLib.GType gtype)
+ {
+ OverrideProxied (gtype, ProxiedVMCallback);
+ }
+
+ static void OverrideProxied (GLib.GType gtype, ProxiedNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("proxied"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void ProxiedNativeDelegate (IntPtr inst, IntPtr proxy);
+
+ static void Proxied_cb (IntPtr inst, IntPtr proxy)
+ {
+ try {
+ Asset __obj = GLib.Object.GetObject (inst, false) as Asset;
+ __obj.OnProxied (GLib.Object.GetObject(proxy) as GES.Asset);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Asset), ConnectionMethod="OverrideProxied")]
+ protected virtual void OnProxied (GES.Asset proxy)
+ {
+ InternalProxied (proxy);
+ }
+
+ private void InternalProxied (GES.Asset proxy)
+ {
+ ProxiedNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("proxied"));
+ unmanaged = (ProxiedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ProxiedNativeDelegate));
+ }
+ if (unmanaged == null) return;
+
+ unmanaged (this.Handle, proxy == null ? IntPtr.Zero : proxy.Handle);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("start_loading"
+ , GLib.Object.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // start_loading
+ , null
+ , "extract"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("extract"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // extract
+ , "start_loading"
+ , "inform_proxy"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("inform_proxy"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // inform_proxy
+ , "extract"
+ , "proxied"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("proxied"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // proxied
+ , "inform_proxy"
+ , "request_id_update"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("request_id_update"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // request_id_update
+ , "proxied"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "request_id_update"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_asset_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_asset_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_asset_needs_reload(IntPtr extractable_type, IntPtr id);
+
+ public static bool NeedsReload(GLib.GType extractable_type, string id) {
+ IntPtr native_id = GLib.Marshaller.StringToPtrGStrdup (id);
+ bool raw_ret = ges_asset_needs_reload(extractable_type.Val, native_id);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_id);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern unsafe IntPtr ges_asset_request(IntPtr extractable_type, IntPtr id, out IntPtr error);
+
+ 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 static GES.Asset Request(GLib.GType extractable_type) {
+ return Request (extractable_type, null);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_asset_request_async(IntPtr extractable_type, IntPtr id, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data);
+
+ public static void RequestAsync(GLib.GType extractable_type, string id, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) {
+ IntPtr native_id = GLib.Marshaller.StringToPtrGStrdup (id);
+ GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
+ cb_wrapper.PersistUntilCalled ();
+ ges_asset_request_async(extractable_type.Val, native_id, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
+ GLib.Marshaller.Free (native_id);
+ }
+
+ public static void RequestAsync(GLib.GType extractable_type, string id) {
+ RequestAsync (extractable_type, id, null, null);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern unsafe IntPtr ges_asset_request_finish(IntPtr res, out IntPtr error);
+
+ 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;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern unsafe IntPtr ges_asset_extract(IntPtr raw, out IntPtr error);
+
+ public unsafe GES.IExtractable Extract() {
+ IntPtr error = IntPtr.Zero;
+ IntPtr raw_ret = ges_asset_extract(Handle, out error);
+ GES.IExtractable ret = GES.ExtractableAdapter.GetObject (raw_ret, false);
+ if (error != IntPtr.Zero) throw new GLib.GException (error);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_asset_list_proxies(IntPtr raw);
+
+ public GES.Asset[] ListProxies() {
+ IntPtr raw_ret = ges_asset_list_proxies(Handle);
+ GES.Asset[] ret = (GES.Asset[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), false, false, typeof(GES.Asset));
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_asset_set_proxy(IntPtr raw, IntPtr proxy);
+
+ public bool SetProxy(GES.Asset proxy) {
+ bool raw_ret = ges_asset_set_proxy(Handle, proxy == null ? IntPtr.Zero : proxy.Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ public bool SetProxy() {
+ return SetProxy (null);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_asset_unproxy(IntPtr raw, IntPtr proxy);
+
+ 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;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_add_metas_from_string(IntPtr raw, IntPtr str);
+
+ public bool AddMetasFromString(string str) {
+ IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (str);
+ bool raw_ret = ges_meta_container_add_metas_from_string(Handle, native_str);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_str);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_check_meta_registered(IntPtr raw, IntPtr meta_item, int flags, IntPtr type);
+
+ public bool CheckMetaRegistered(string meta_item, GES.MetaFlag flags, GLib.GType type) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_check_meta_registered(Handle, native_meta_item, (int) flags, type.Val);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_meta_container_foreach(IntPtr raw, GESSharp.MetaForeachFuncNative func, IntPtr user_data);
+
+ public void Foreach(GES.MetaForeachFunc func) {
+ GESSharp.MetaForeachFuncWrapper func_wrapper = new GESSharp.MetaForeachFuncWrapper (func);
+ ges_meta_container_foreach(Handle, func_wrapper.NativeDelegate, IntPtr.Zero);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_boolean(IntPtr raw, IntPtr meta_item, out bool dest);
+
+ public bool GetBoolean(string meta_item, out bool dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_boolean(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_date_time(IntPtr raw, IntPtr meta_item, out IntPtr dest);
+
+ public bool GetDateTime(string meta_item, out Gst.DateTime dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_dest;
+ bool raw_ret = ges_meta_container_get_date_time(Handle, native_meta_item, out native_dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ dest = native_dest == IntPtr.Zero ? null : (Gst.DateTime) GLib.Opaque.GetOpaque (native_dest, typeof (Gst.DateTime), true);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_double(IntPtr raw, IntPtr meta_item, out double dest);
+
+ public bool GetDouble(string meta_item, out double dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_double(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_float(IntPtr raw, IntPtr meta_item, out float dest);
+
+ public bool GetFloat(string meta_item, out float dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_float(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_int(IntPtr raw, IntPtr meta_item, out int dest);
+
+ public bool GetInt(string meta_item, out int dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_int(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_int64(IntPtr raw, IntPtr meta_item, out long dest);
+
+ public bool GetInt64(string meta_item, out long dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_int64(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_container_get_meta(IntPtr raw, IntPtr key);
+
+ public GLib.Value GetMeta(string key) {
+ IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup (key);
+ IntPtr raw_ret = ges_meta_container_get_meta(Handle, native_key);
+ GLib.Value ret = (GLib.Value) Marshal.PtrToStructure (raw_ret, typeof (GLib.Value));
+ GLib.Marshaller.Free (native_key);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_container_get_string(IntPtr raw, IntPtr meta_item);
+
+ public string GetString(string meta_item) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr raw_ret = ges_meta_container_get_string(Handle, native_meta_item);
+ string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_uint(IntPtr raw, IntPtr meta_item, out uint dest);
+
+ public bool GetUint(string meta_item, out uint dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_uint(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_uint64(IntPtr raw, IntPtr meta_item, out ulong dest);
+
+ public bool GetUint64(string meta_item, out ulong dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_uint64(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_container_metas_to_string(IntPtr raw);
+
+ public string MetasToString() {
+ IntPtr raw_ret = ges_meta_container_metas_to_string(Handle);
+ string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
+
+ public bool RegisterMeta(GES.MetaFlag flags, string meta_item, GLib.Value value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
+ bool raw_ret = ges_meta_container_register_meta(Handle, (int) flags, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ Marshal.FreeHGlobal (native_value);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_boolean(IntPtr raw, int flags, IntPtr meta_item, bool value);
+
+ public bool RegisterMetaBoolean(GES.MetaFlag flags, string meta_item, bool value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_boolean(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_date_time(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
+
+ public bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item, Gst.DateTime value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_date_time(Handle, (int) flags, native_meta_item, value == null ? IntPtr.Zero : value.Handle);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ public bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item) {
+ return RegisterMetaDateTime (flags, meta_item, null);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_double(IntPtr raw, int flags, IntPtr meta_item, double value);
+
+ public bool RegisterMetaDouble(GES.MetaFlag flags, string meta_item, double value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_double(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_float(IntPtr raw, int flags, IntPtr meta_item, float value);
+
+ public bool RegisterMetaFloat(GES.MetaFlag flags, string meta_item, float value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_float(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_int(IntPtr raw, int flags, IntPtr meta_item, int value);
+
+ public bool RegisterMetaInt(GES.MetaFlag flags, string meta_item, int value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_int(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_int64(IntPtr raw, int flags, IntPtr meta_item, long value);
+
+ public bool RegisterMetaInt64(GES.MetaFlag flags, string meta_item, long value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_int64(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_string(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
+
+ public bool RegisterMetaString(GES.MetaFlag flags, string meta_item, string value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ bool raw_ret = ges_meta_container_register_meta_string(Handle, (int) flags, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ GLib.Marshaller.Free (native_value);
+ return ret;
+ }
+
+ public bool RegisterMetaString(GES.MetaFlag flags, string meta_item) {
+ return RegisterMetaString (flags, meta_item, null);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_uint(IntPtr raw, int flags, IntPtr meta_item, uint value);
+
+ public bool RegisterMetaUint(GES.MetaFlag flags, string meta_item, uint value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_uint(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_uint64(IntPtr raw, int flags, IntPtr meta_item, ulong value);
+
+ public bool RegisterMetaUint64(GES.MetaFlag flags, string meta_item, ulong value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_uint64(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_boolean(IntPtr raw, IntPtr meta_item, bool value);
+
+ public bool SetBoolean(string meta_item, bool value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_boolean(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_date_time(IntPtr raw, IntPtr meta_item, IntPtr value);
+
+ public bool SetDateTime(string meta_item, Gst.DateTime value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_date_time(Handle, native_meta_item, value == null ? IntPtr.Zero : value.Handle);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_double(IntPtr raw, IntPtr meta_item, double value);
+
+ public bool SetDouble(string meta_item, double value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_double(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_float(IntPtr raw, IntPtr meta_item, float value);
+
+ public bool SetFloat(string meta_item, float value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_float(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_int(IntPtr raw, IntPtr meta_item, int value);
+
+ public bool SetInt(string meta_item, int value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_int(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_int64(IntPtr raw, IntPtr meta_item, long value);
+
+ public bool SetInt64(string meta_item, long value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_int64(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_meta(IntPtr raw, IntPtr meta_item, IntPtr value);
+
+ public bool SetMeta(string meta_item, GLib.Value value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
+ bool raw_ret = ges_meta_container_set_meta(Handle, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ Marshal.FreeHGlobal (native_value);
+ return ret;
+ }
+
+ public bool SetMeta(string meta_item) {
+ return SetMeta (meta_item, GLib.Value.Empty);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_string(IntPtr raw, IntPtr meta_item, IntPtr value);
+
+ public bool SetString(string meta_item, string value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ bool raw_ret = ges_meta_container_set_string(Handle, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ GLib.Marshaller.Free (native_value);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_uint(IntPtr raw, IntPtr meta_item, uint value);
+
+ public bool SetUint(string meta_item, uint value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_uint(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_uint64(IntPtr raw, IntPtr meta_item, ulong value);
+
+ public bool SetUint64(string meta_item, ulong value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_uint64(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [GLib.Signal("notify-meta")]
+ public event GES.NotifyMetaHandler NotifyMeta {
+ add {
+ this.AddSignalHandler ("notify-meta", value, typeof (GES.NotifyMetaArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("notify-meta", value);
+ }
+ }
+
+ static NotifyMetaNativeDelegate NotifyMeta_cb_delegate;
+ static NotifyMetaNativeDelegate NotifyMetaVMCallback {
+ get {
+ if (NotifyMeta_cb_delegate == null)
+ NotifyMeta_cb_delegate = new NotifyMetaNativeDelegate (NotifyMeta_cb);
+ return NotifyMeta_cb_delegate;
+ }
+ }
+
+ static void OverrideNotifyMeta (GLib.GType gtype)
+ {
+ OverrideNotifyMeta (gtype, NotifyMetaVMCallback);
+ }
+
+ static void OverrideNotifyMeta (GLib.GType gtype, NotifyMetaNativeDelegate callback)
+ {
+ OverrideVirtualMethod (gtype, "notify-meta", callback);
+ }
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void NotifyMetaNativeDelegate (IntPtr inst, IntPtr _object, IntPtr p0);
+
+ 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);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Asset), ConnectionMethod="OverrideNotifyMeta")]
+ protected virtual void OnNotifyMeta (string _object, GLib.Value p0)
+ {
+ InternalNotifyMeta (_object, p0);
+ }
+
+ private void InternalNotifyMeta (string _object, GLib.Value p0)
+ {
+ GLib.Value ret = GLib.Value.Empty;
+ GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
+ GLib.Value[] vals = new GLib.Value [3];
+ vals [0] = new GLib.Value (this);
+ inst_and_params.Append (vals [0]);
+ vals [1] = new GLib.Value (_object);
+ inst_and_params.Append (vals [1]);
+ vals [2] = new GLib.Value (p0);
+ inst_and_params.Append (vals [2]);
+ g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
+ foreach (GLib.Value v in vals)
+ v.Dispose ();
+ }
+
+ [DllImport("libgio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern void g_async_initable_init_async(IntPtr raw, int io_priority, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data);
+
+ public void InitAsync(int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) {
+ GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
+ cb_wrapper.PersistUntilCalled ();
+ g_async_initable_init_async(Handle, io_priority, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
+ }
+
+ [DllImport("libgio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool g_async_initable_init_finish(IntPtr raw, IntPtr res, out IntPtr error);
+
+ public bool InitFinish(GLib.IAsyncResult res) {
+ IntPtr error = IntPtr.Zero;
+ bool raw_ret = g_async_initable_init_finish(Handle, res == null ? IntPtr.Zero : ((res is GLib.Object) ? (res as GLib.Object).Handle : (res as GLib.AsyncResultAdapter).Handle), out error);
+ bool ret = raw_ret;
+ if (error != IntPtr.Zero) throw new GLib.GException (error);
+ return ret;
+ }
+
+ [DllImport("libgio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool g_initable_init(IntPtr raw, IntPtr cancellable, out IntPtr error);
+
+ public bool Init(GLib.Cancellable cancellable) {
+ IntPtr error = IntPtr.Zero;
+ bool raw_ret = g_initable_init(Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, out error);
+ bool ret = raw_ret;
+ if (error != IntPtr.Zero) throw new GLib.GException (error);
+ return ret;
+ }
+
+
+ static Asset ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GLib.Object.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/AssetAddedHandler.cs b/ges/generated/GES/AssetAddedHandler.cs
new file mode 100644
index 0000000..bebc548
--- /dev/null
+++ b/ges/generated/GES/AssetAddedHandler.cs
@@ -0,0 +1,18 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void AssetAddedHandler(object o, AssetAddedArgs args);
+
+ public class AssetAddedArgs : GLib.SignalArgs {
+ public GES.Asset Asset{
+ get {
+ return (GES.Asset) Args [0];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/AssetLoadingHandler.cs b/ges/generated/GES/AssetLoadingHandler.cs
new file mode 100644
index 0000000..61f8ad7
--- /dev/null
+++ b/ges/generated/GES/AssetLoadingHandler.cs
@@ -0,0 +1,18 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void AssetLoadingHandler(object o, AssetLoadingArgs args);
+
+ public class AssetLoadingArgs : GLib.SignalArgs {
+ public GES.Asset Asset{
+ get {
+ return (GES.Asset) Args [0];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/AssetLoadingReturn.cs b/ges/generated/GES/AssetLoadingReturn.cs
new file mode 100644
index 0000000..71d0ff5
--- /dev/null
+++ b/ges/generated/GES/AssetLoadingReturn.cs
@@ -0,0 +1,17 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public enum AssetLoadingReturn {
+
+ Error = 0,
+ Async = 1,
+ Ok = 2,
+ }
+#endregion
+}
diff --git a/ges/generated/GES/AssetRemovedHandler.cs b/ges/generated/GES/AssetRemovedHandler.cs
new file mode 100644
index 0000000..b3c0277
--- /dev/null
+++ b/ges/generated/GES/AssetRemovedHandler.cs
@@ -0,0 +1,18 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void AssetRemovedHandler(object o, AssetRemovedArgs args);
+
+ public class AssetRemovedArgs : GLib.SignalArgs {
+ public GES.Asset Asset{
+ get {
+ return (GES.Asset) Args [0];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/AudioSource.cs b/ges/generated/GES/AudioSource.cs
new file mode 100644
index 0000000..c564906
--- /dev/null
+++ b/ges/generated/GES/AudioSource.cs
@@ -0,0 +1,103 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class AudioSource : GES.Source {
+
+ protected AudioSource (IntPtr raw) : base(raw) {}
+
+ protected AudioSource() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("create_source"
+ , GES.Source.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // create_source
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "create_source"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_audio_source_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_audio_source_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static AudioSource ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.Source.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/AudioTestSource.cs b/ges/generated/GES/AudioTestSource.cs
new file mode 100644
index 0000000..3b58e63
--- /dev/null
+++ b/ges/generated/GES/AudioTestSource.cs
@@ -0,0 +1,129 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class AudioTestSource : GES.AudioSource {
+
+ public AudioTestSource (IntPtr raw) : base(raw) {}
+
+ protected AudioTestSource() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.AudioSource.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_audio_test_source_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_audio_test_source_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern double ges_audio_test_source_get_freq(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_audio_test_source_set_freq(IntPtr raw, double freq);
+
+ public double Freq {
+ get {
+ double raw_ret = ges_audio_test_source_get_freq(Handle);
+ double ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_audio_test_source_set_freq(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern double ges_audio_test_source_get_volume(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_audio_test_source_set_volume(IntPtr raw, double volume);
+
+ public double Volume {
+ get {
+ double raw_ret = ges_audio_test_source_get_volume(Handle);
+ double ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_audio_test_source_set_volume(Handle, value);
+ }
+ }
+
+
+ static AudioTestSource ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.AudioSource.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/AudioTrack.cs b/ges/generated/GES/AudioTrack.cs
new file mode 100644
index 0000000..3ed84c5
--- /dev/null
+++ b/ges/generated/GES/AudioTrack.cs
@@ -0,0 +1,102 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class AudioTrack : GES.Track {
+
+ public AudioTrack (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_audio_track_new();
+
+ public AudioTrack () : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (AudioTrack)) {
+ CreateNativeObject (new string [0], new GLib.Value[0]);
+ return;
+ }
+ Raw = ges_audio_track_new();
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.Track.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_audio_track_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_audio_track_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static AudioTrack ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.Track.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/AudioTransition.cs b/ges/generated/GES/AudioTransition.cs
new file mode 100644
index 0000000..bdef0fb
--- /dev/null
+++ b/ges/generated/GES/AudioTransition.cs
@@ -0,0 +1,102 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class AudioTransition : GES.Transition {
+
+ public AudioTransition (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_audio_transition_new();
+
+ public AudioTransition () : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (AudioTransition)) {
+ CreateNativeObject (new string [0], new GLib.Value[0]);
+ return;
+ }
+ Raw = ges_audio_transition_new();
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.Transition.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_audio_transition_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_audio_transition_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static AudioTransition ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.Transition.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/AudioUriSource.cs b/ges/generated/GES/AudioUriSource.cs
new file mode 100644
index 0000000..050b6b4
--- /dev/null
+++ b/ges/generated/GES/AudioUriSource.cs
@@ -0,0 +1,113 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class AudioUriSource : GES.AudioSource {
+
+ public AudioUriSource (IntPtr raw) : base(raw) {}
+
+ protected AudioUriSource() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+ [GLib.Property ("uri")]
+ public string Uri {
+ get {
+ GLib.Value val = GetProperty ("uri");
+ string ret = (string) val;
+ val.Dispose ();
+ return ret;
+ }
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.AudioSource.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_audio_uri_source_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_audio_uri_source_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static AudioUriSource ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("uri"
+ , GES.AudioSource.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // uri
+ , null
+ , "priv"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("priv"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , "uri"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/BaseEffect.cs b/ges/generated/GES/BaseEffect.cs
new file mode 100644
index 0000000..53dd7fd
--- /dev/null
+++ b/ges/generated/GES/BaseEffect.cs
@@ -0,0 +1,95 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class BaseEffect : GES.Operation {
+
+ protected BaseEffect (IntPtr raw) : base(raw) {}
+
+ protected BaseEffect() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.Operation.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_base_effect_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_base_effect_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static BaseEffect ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.Operation.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/BaseEffectClip.cs b/ges/generated/GES/BaseEffectClip.cs
new file mode 100644
index 0000000..dded254
--- /dev/null
+++ b/ges/generated/GES/BaseEffectClip.cs
@@ -0,0 +1,95 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class BaseEffectClip : GES.OperationClip {
+
+ protected BaseEffectClip (IntPtr raw) : base(raw) {}
+
+ protected BaseEffectClip() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.OperationClip.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_base_effect_clip_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_base_effect_clip_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static BaseEffectClip ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.OperationClip.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/BaseTransitionClip.cs b/ges/generated/GES/BaseTransitionClip.cs
new file mode 100644
index 0000000..b955112
--- /dev/null
+++ b/ges/generated/GES/BaseTransitionClip.cs
@@ -0,0 +1,95 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class BaseTransitionClip : GES.OperationClip {
+
+ protected BaseTransitionClip (IntPtr raw) : base(raw) {}
+
+ protected BaseTransitionClip() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.OperationClip.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_base_transition_clip_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_base_transition_clip_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static BaseTransitionClip ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.OperationClip.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/BaseXmlFormatter.cs b/ges/generated/GES/BaseXmlFormatter.cs
new file mode 100644
index 0000000..6bbda6b
--- /dev/null
+++ b/ges/generated/GES/BaseXmlFormatter.cs
@@ -0,0 +1,118 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class BaseXmlFormatter : GES.Formatter {
+
+ protected BaseXmlFormatter (IntPtr raw) : base(raw) {}
+
+ protected BaseXmlFormatter() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("content_parser"
+ , GES.Formatter.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(GLib.MarkupParser)) // content_parser
+ , null
+ , "save"
+ , (long) Marshal.OffsetOf(typeof(GESBaseXmlFormatter_content_parserAlign), "content_parser")
+ , 0
+ ),
+ new GLib.AbiField("save"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // save
+ , "content_parser"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "save"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct GESBaseXmlFormatter_content_parserAlign
+ {
+ sbyte f1;
+ private GLib.MarkupParser content_parser;
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_base_xml_formatter_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_base_xml_formatter_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static BaseXmlFormatter ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.Formatter.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/ChildAddedHandler.cs b/ges/generated/GES/ChildAddedHandler.cs
new file mode 100644
index 0000000..58aef20
--- /dev/null
+++ b/ges/generated/GES/ChildAddedHandler.cs
@@ -0,0 +1,18 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void ChildAddedHandler(object o, ChildAddedArgs args);
+
+ public class ChildAddedArgs : GLib.SignalArgs {
+ public GES.TimelineElement Element{
+ get {
+ return (GES.TimelineElement) Args [0];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/ChildRemovedHandler.cs b/ges/generated/GES/ChildRemovedHandler.cs
new file mode 100644
index 0000000..a5e9a05
--- /dev/null
+++ b/ges/generated/GES/ChildRemovedHandler.cs
@@ -0,0 +1,18 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void ChildRemovedHandler(object o, ChildRemovedArgs args);
+
+ public class ChildRemovedArgs : GLib.SignalArgs {
+ public GES.TimelineElement Element{
+ get {
+ return (GES.TimelineElement) Args [0];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/ChildrenControlMode.cs b/ges/generated/GES/ChildrenControlMode.cs
new file mode 100644
index 0000000..387b6d3
--- /dev/null
+++ b/ges/generated/GES/ChildrenControlMode.cs
@@ -0,0 +1,19 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public enum ChildrenControlMode {
+
+ Update = 0,
+ IgnoreNotifies = 1,
+ UpdateOffsets = 2,
+ UpdateAllValues = 3,
+ Last = 4,
+ }
+#endregion
+}
diff --git a/ges/generated/GES/Clip.cs b/ges/generated/GES/Clip.cs
new file mode 100644
index 0000000..8871361
--- /dev/null
+++ b/ges/generated/GES/Clip.cs
@@ -0,0 +1,241 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class Clip : GES.Container {
+
+ protected Clip (IntPtr raw) : base(raw) {}
+
+ protected Clip() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_clip_get_layer(IntPtr raw);
+
+ [GLib.Property ("layer")]
+ public GES.Layer Layer {
+ get {
+ IntPtr raw_ret = ges_clip_get_layer(Handle);
+ GES.Layer ret = GLib.Object.GetObject(raw_ret, true) as GES.Layer;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_clip_get_supported_formats(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_clip_set_supported_formats(IntPtr raw, int supportedformats);
+
+ [GLib.Property ("supported-formats")]
+ public GES.TrackType SupportedFormats {
+ get {
+ int raw_ret = ges_clip_get_supported_formats(Handle);
+ GES.TrackType ret = (GES.TrackType) raw_ret;
+ return ret;
+ }
+ set {
+ ges_clip_set_supported_formats(Handle, (int) value);
+ }
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("create_track_element"
+ , GES.Container.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // create_track_element
+ , null
+ , "create_track_elements"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("create_track_elements"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // create_track_elements
+ , "create_track_element"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 20 // _ges_reserved
+ , "create_track_elements"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_clip_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_clip_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_clip_add_asset(IntPtr raw, IntPtr asset);
+
+ 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;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_clip_find_track_element(IntPtr raw, IntPtr track, IntPtr type);
+
+ public GES.TrackElement FindTrackElement(GES.Track track, GLib.GType type) {
+ IntPtr raw_ret = ges_clip_find_track_element(Handle, track == null ? IntPtr.Zero : track.Handle, type.Val);
+ GES.TrackElement ret = GLib.Object.GetObject(raw_ret, true) as GES.TrackElement;
+ return ret;
+ }
+
+ public GES.TrackElement FindTrackElement(GLib.GType type) {
+ return FindTrackElement (null, type);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_clip_find_track_elements(IntPtr raw, IntPtr track, int track_type, IntPtr type);
+
+ public GES.TrackElement[] FindTrackElements(GES.Track track, GES.TrackType track_type, GLib.GType type) {
+ IntPtr raw_ret = ges_clip_find_track_elements(Handle, track == null ? IntPtr.Zero : track.Handle, (int) track_type, type.Val);
+ GES.TrackElement[] ret = (GES.TrackElement[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(GES.TrackElement));
+ return ret;
+ }
+
+ public GES.TrackElement[] FindTrackElements(GES.TrackType track_type, GLib.GType type) {
+ return FindTrackElements (null, track_type, type);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_clip_get_top_effect_index(IntPtr raw, IntPtr effect);
+
+ public int GetTopEffectIndex(GES.BaseEffect effect) {
+ int raw_ret = ges_clip_get_top_effect_index(Handle, effect == null ? IntPtr.Zero : effect.Handle);
+ int ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_clip_get_top_effect_position(IntPtr raw, IntPtr effect);
+
+ public int GetTopEffectPosition(GES.BaseEffect effect) {
+ int raw_ret = ges_clip_get_top_effect_position(Handle, effect == null ? IntPtr.Zero : effect.Handle);
+ int ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_clip_get_top_effects(IntPtr raw);
+
+ public GES.TrackElement[] TopEffects {
+ get {
+ IntPtr raw_ret = ges_clip_get_top_effects(Handle);
+ GES.TrackElement[] ret = (GES.TrackElement[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(GES.TrackElement));
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_clip_move_to_layer(IntPtr raw, IntPtr layer);
+
+ public bool MoveToLayer(GES.Layer layer) {
+ bool raw_ret = ges_clip_move_to_layer(Handle, layer == null ? IntPtr.Zero : layer.Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_clip_set_top_effect_index(IntPtr raw, IntPtr effect, uint newindex);
+
+ public bool SetTopEffectIndex(GES.BaseEffect effect, uint newindex) {
+ bool raw_ret = ges_clip_set_top_effect_index(Handle, effect == null ? IntPtr.Zero : effect.Handle, newindex);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_clip_set_top_effect_priority(IntPtr raw, IntPtr effect, uint newpriority);
+
+ public bool SetTopEffectPriority(GES.BaseEffect effect, uint newpriority) {
+ bool raw_ret = ges_clip_set_top_effect_priority(Handle, effect == null ? IntPtr.Zero : effect.Handle, newpriority);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_clip_split(IntPtr raw, ulong position);
+
+ public GES.Clip Split(ulong position) {
+ IntPtr raw_ret = ges_clip_split(Handle, position);
+ GES.Clip ret = GLib.Object.GetObject(raw_ret) as GES.Clip;
+ return ret;
+ }
+
+
+ static Clip ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.Container.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 20 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/ClipAddedHandler.cs b/ges/generated/GES/ClipAddedHandler.cs
new file mode 100644
index 0000000..194c382
--- /dev/null
+++ b/ges/generated/GES/ClipAddedHandler.cs
@@ -0,0 +1,18 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void ClipAddedHandler(object o, ClipAddedArgs args);
+
+ public class ClipAddedArgs : GLib.SignalArgs {
+ public GES.Clip Clip{
+ get {
+ return (GES.Clip) Args [0];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/ClipAsset.cs b/ges/generated/GES/ClipAsset.cs
new file mode 100644
index 0000000..cacd3f9
--- /dev/null
+++ b/ges/generated/GES/ClipAsset.cs
@@ -0,0 +1,113 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class ClipAsset : GES.Asset {
+
+ public ClipAsset (IntPtr raw) : base(raw) {}
+
+ protected ClipAsset() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_clip_asset_get_supported_formats(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_clip_asset_set_supported_formats(IntPtr raw, int supportedformats);
+
+ [GLib.Property ("supported-formats")]
+ public GES.TrackType SupportedFormats {
+ get {
+ int raw_ret = ges_clip_asset_get_supported_formats(Handle);
+ GES.TrackType ret = (GES.TrackType) raw_ret;
+ return ret;
+ }
+ set {
+ ges_clip_asset_set_supported_formats(Handle, (int) value);
+ }
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.Asset.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_clip_asset_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_clip_asset_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static ClipAsset ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.Asset.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/ClipRemovedHandler.cs b/ges/generated/GES/ClipRemovedHandler.cs
new file mode 100644
index 0000000..77253bb
--- /dev/null
+++ b/ges/generated/GES/ClipRemovedHandler.cs
@@ -0,0 +1,18 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void ClipRemovedHandler(object o, ClipRemovedArgs args);
+
+ public class ClipRemovedArgs : GLib.SignalArgs {
+ public GES.Clip Clip{
+ get {
+ return (GES.Clip) Args [0];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/CommandLineFormatter.cs b/ges/generated/GES/CommandLineFormatter.cs
new file mode 100644
index 0000000..409e04f
--- /dev/null
+++ b/ges/generated/GES/CommandLineFormatter.cs
@@ -0,0 +1,89 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class CommandLineFormatter : GES.Formatter {
+
+ public CommandLineFormatter (IntPtr raw) : base(raw) {}
+
+ protected CommandLineFormatter() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (GES.Formatter.class_abi.Fields);
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_command_line_formatter_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_command_line_formatter_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_command_line_formatter_get_help(int nargs, IntPtr commands);
+
+ public static string GetHelp(int nargs, string commands) {
+ IntPtr native_commands = GLib.Marshaller.StringToPtrGStrdup (commands);
+ IntPtr raw_ret = ges_command_line_formatter_get_help(nargs, native_commands);
+ string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
+ GLib.Marshaller.Free (native_commands);
+ return ret;
+ }
+
+
+ static CommandLineFormatter ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.Formatter.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/Constants.cs b/ges/generated/GES/Constants.cs
new file mode 100644
index 0000000..ca2f0cd
--- /dev/null
+++ b/ges/generated/GES/Constants.cs
@@ -0,0 +1,28 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class Constants {
+
+ public const string META_DESCRIPTION = @"description";
+ public const string META_FORMATTER_EXTENSION = @"extension";
+ public const string META_FORMATTER_MIMETYPE = @"mimetype";
+ public const string META_FORMATTER_NAME = @"name";
+ public const string META_FORMATTER_RANK = @"rank";
+ public const string META_FORMATTER_VERSION = @"version";
+ public const string META_FORMAT_VERSION = @"format-version";
+ public const string META_VOLUME = @"volume";
+ public const double META_VOLUME_DEFAULT = 1.000000;
+ public const string MULTI_FILE_URI_PREFIX = @"multifile://";
+ public const int PADDING = 4;
+ public const int PADDING_LARGE = 20;
+#endregion
+ }
+}
diff --git a/ges/generated/GES/Container.cs b/ges/generated/GES/Container.cs
new file mode 100644
index 0000000..138870d
--- /dev/null
+++ b/ges/generated/GES/Container.cs
@@ -0,0 +1,674 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class Container : GES.TimelineElement {
+
+ protected Container (IntPtr raw) : base(raw) {}
+
+ protected Container() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+ [GLib.Property ("height")]
+ public uint Height {
+ get {
+ GLib.Value val = GetProperty ("height");
+ uint ret = (uint) val;
+ val.Dispose ();
+ return ret;
+ }
+ }
+
+ public GLib.List Children {
+ get {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("children"));
+ return new GLib.List((*raw_ptr));
+ }
+ }
+ }
+
+ public uint HeightField {
+ get {
+ unsafe {
+ uint* raw_ptr = (uint*)(((byte*)Handle) + abi_info.GetFieldOffset("height"));
+ return (*raw_ptr);
+ }
+ }
+ }
+
+ public GES.ChildrenControlMode ChildrenControlMode {
+ get {
+ unsafe {
+ int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("children_control_mode"));
+ return (GES.ChildrenControlMode) (*raw_ptr);
+ }
+ }
+ }
+
+ public GES.TimelineElement InitiatedMove {
+ get {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("initiated_move"));
+ return GLib.Object.GetObject((*raw_ptr)) as GES.TimelineElement;
+ }
+ }
+ }
+
+ [GLib.Signal("child-added")]
+ public event GES.ChildAddedHandler ChildAdded {
+ add {
+ this.AddSignalHandler ("child-added", value, typeof (GES.ChildAddedArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("child-added", value);
+ }
+ }
+
+ [GLib.Signal("child-removed")]
+ public event GES.ChildRemovedHandler ChildRemoved {
+ add {
+ this.AddSignalHandler ("child-removed", value, typeof (GES.ChildRemovedArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("child-removed", value);
+ }
+ }
+
+ static ChildAddedNativeDelegate ChildAdded_cb_delegate;
+ static ChildAddedNativeDelegate ChildAddedVMCallback {
+ get {
+ if (ChildAdded_cb_delegate == null)
+ ChildAdded_cb_delegate = new ChildAddedNativeDelegate (ChildAdded_cb);
+ return ChildAdded_cb_delegate;
+ }
+ }
+
+ static void OverrideChildAdded (GLib.GType gtype)
+ {
+ OverrideChildAdded (gtype, ChildAddedVMCallback);
+ }
+
+ static void OverrideChildAdded (GLib.GType gtype, ChildAddedNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("child_added"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void ChildAddedNativeDelegate (IntPtr inst, IntPtr element);
+
+ static void ChildAdded_cb (IntPtr inst, IntPtr element)
+ {
+ try {
+ Container __obj = GLib.Object.GetObject (inst, false) as Container;
+ __obj.OnChildAdded (GLib.Object.GetObject(element) as GES.TimelineElement);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Container), ConnectionMethod="OverrideChildAdded")]
+ protected virtual void OnChildAdded (GES.TimelineElement element)
+ {
+ InternalChildAdded (element);
+ }
+
+ private void InternalChildAdded (GES.TimelineElement element)
+ {
+ ChildAddedNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("child_added"));
+ unmanaged = (ChildAddedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ChildAddedNativeDelegate));
+ }
+ if (unmanaged == null) return;
+
+ unmanaged (this.Handle, element == null ? IntPtr.Zero : element.Handle);
+ }
+
+ static ChildRemovedNativeDelegate ChildRemoved_cb_delegate;
+ static ChildRemovedNativeDelegate ChildRemovedVMCallback {
+ get {
+ if (ChildRemoved_cb_delegate == null)
+ ChildRemoved_cb_delegate = new ChildRemovedNativeDelegate (ChildRemoved_cb);
+ return ChildRemoved_cb_delegate;
+ }
+ }
+
+ static void OverrideChildRemoved (GLib.GType gtype)
+ {
+ OverrideChildRemoved (gtype, ChildRemovedVMCallback);
+ }
+
+ static void OverrideChildRemoved (GLib.GType gtype, ChildRemovedNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("child_removed"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void ChildRemovedNativeDelegate (IntPtr inst, IntPtr element);
+
+ static void ChildRemoved_cb (IntPtr inst, IntPtr element)
+ {
+ try {
+ Container __obj = GLib.Object.GetObject (inst, false) as Container;
+ __obj.OnChildRemoved (GLib.Object.GetObject(element) as GES.TimelineElement);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Container), ConnectionMethod="OverrideChildRemoved")]
+ protected virtual void OnChildRemoved (GES.TimelineElement element)
+ {
+ InternalChildRemoved (element);
+ }
+
+ private void InternalChildRemoved (GES.TimelineElement element)
+ {
+ ChildRemovedNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("child_removed"));
+ unmanaged = (ChildRemovedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ChildRemovedNativeDelegate));
+ }
+ if (unmanaged == null) return;
+
+ unmanaged (this.Handle, element == null ? IntPtr.Zero : element.Handle);
+ }
+
+ static AddChildNativeDelegate AddChild_cb_delegate;
+ static AddChildNativeDelegate AddChildVMCallback {
+ get {
+ if (AddChild_cb_delegate == null)
+ AddChild_cb_delegate = new AddChildNativeDelegate (AddChild_cb);
+ return AddChild_cb_delegate;
+ }
+ }
+
+ static void OverrideAddChild (GLib.GType gtype)
+ {
+ OverrideAddChild (gtype, AddChildVMCallback);
+ }
+
+ static void OverrideAddChild (GLib.GType gtype, AddChildNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("add_child"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate bool AddChildNativeDelegate (IntPtr inst, IntPtr element);
+
+ static bool AddChild_cb (IntPtr inst, IntPtr element)
+ {
+ try {
+ Container __obj = GLib.Object.GetObject (inst, false) as Container;
+ bool __result;
+ __result = __obj.OnAddChild (GLib.Object.GetObject(element) as GES.TimelineElement);
+ return __result;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Container), ConnectionMethod="OverrideAddChild")]
+ protected virtual bool OnAddChild (GES.TimelineElement element)
+ {
+ return InternalAddChild (element);
+ }
+
+ private bool InternalAddChild (GES.TimelineElement element)
+ {
+ AddChildNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("add_child"));
+ unmanaged = (AddChildNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(AddChildNativeDelegate));
+ }
+ if (unmanaged == null) return false;
+
+ bool __result = unmanaged (this.Handle, element == null ? IntPtr.Zero : element.Handle);
+ return __result;
+ }
+
+ static RemoveChildNativeDelegate RemoveChild_cb_delegate;
+ static RemoveChildNativeDelegate RemoveChildVMCallback {
+ get {
+ if (RemoveChild_cb_delegate == null)
+ RemoveChild_cb_delegate = new RemoveChildNativeDelegate (RemoveChild_cb);
+ return RemoveChild_cb_delegate;
+ }
+ }
+
+ static void OverrideRemoveChild (GLib.GType gtype)
+ {
+ OverrideRemoveChild (gtype, RemoveChildVMCallback);
+ }
+
+ static void OverrideRemoveChild (GLib.GType gtype, RemoveChildNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("remove_child"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate bool RemoveChildNativeDelegate (IntPtr inst, IntPtr element);
+
+ static bool RemoveChild_cb (IntPtr inst, IntPtr element)
+ {
+ try {
+ Container __obj = GLib.Object.GetObject (inst, false) as Container;
+ bool __result;
+ __result = __obj.OnRemoveChild (GLib.Object.GetObject(element) as GES.TimelineElement);
+ return __result;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Container), ConnectionMethod="OverrideRemoveChild")]
+ protected virtual bool OnRemoveChild (GES.TimelineElement element)
+ {
+ return InternalRemoveChild (element);
+ }
+
+ private bool InternalRemoveChild (GES.TimelineElement element)
+ {
+ RemoveChildNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("remove_child"));
+ unmanaged = (RemoveChildNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(RemoveChildNativeDelegate));
+ }
+ if (unmanaged == null) return false;
+
+ bool __result = unmanaged (this.Handle, element == null ? IntPtr.Zero : element.Handle);
+ return __result;
+ }
+
+ static UngroupNativeDelegate Ungroup_cb_delegate;
+ static UngroupNativeDelegate UngroupVMCallback {
+ get {
+ if (Ungroup_cb_delegate == null)
+ Ungroup_cb_delegate = new UngroupNativeDelegate (Ungroup_cb);
+ return Ungroup_cb_delegate;
+ }
+ }
+
+ static void OverrideUngroup (GLib.GType gtype)
+ {
+ OverrideUngroup (gtype, UngroupVMCallback);
+ }
+
+ static void OverrideUngroup (GLib.GType gtype, UngroupNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("ungroup"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate IntPtr UngroupNativeDelegate (IntPtr inst, bool recursive);
+
+ static IntPtr Ungroup_cb (IntPtr inst, bool recursive)
+ {
+ try {
+ Container __obj = GLib.Object.GetObject (inst, false) as Container;
+ GES.Container[] __result;
+ __result = __obj.OnUngroup (recursive);
+ return new GLib.List(__result, typeof (GES.Container), true, true) == null ? IntPtr.Zero : new GLib.List(__result, typeof (GES.Container), true, true).Handle;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Container), ConnectionMethod="OverrideUngroup")]
+ protected virtual GES.Container[] OnUngroup (bool recursive)
+ {
+ return InternalUngroup (recursive);
+ }
+
+ private GES.Container[] InternalUngroup (bool recursive)
+ {
+ UngroupNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("ungroup"));
+ unmanaged = (UngroupNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(UngroupNativeDelegate));
+ }
+ if (unmanaged == null) return null;
+
+ IntPtr __result = unmanaged (this.Handle, recursive);
+ return (GES.Container[]) GLib.Marshaller.ListPtrToArray (__result, typeof(GLib.List), true, true, typeof(GES.Container));
+ }
+
+ static EditNativeDelegate Edit_cb_delegate;
+ static EditNativeDelegate EditVMCallback {
+ get {
+ if (Edit_cb_delegate == null)
+ Edit_cb_delegate = new EditNativeDelegate (Edit_cb);
+ return Edit_cb_delegate;
+ }
+ }
+
+ static void OverrideEdit (GLib.GType gtype)
+ {
+ OverrideEdit (gtype, EditVMCallback);
+ }
+
+ static void OverrideEdit (GLib.GType gtype, EditNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("edit"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate bool EditNativeDelegate (IntPtr inst, IntPtr layers, int new_layer_priority, int mode, int edge, ulong position);
+
+ static bool Edit_cb (IntPtr inst, IntPtr layers, int new_layer_priority, int mode, int edge, ulong position)
+ {
+ try {
+ Container __obj = GLib.Object.GetObject (inst, false) as Container;
+ bool __result;
+ __result = __obj.OnEdit (new GLib.List(layers), new_layer_priority, (GES.EditMode) mode, (GES.Edge) edge, position);
+ return __result;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Container), ConnectionMethod="OverrideEdit")]
+ protected virtual bool OnEdit (GLib.List layers, int new_layer_priority, GES.EditMode mode, GES.Edge edge, ulong position)
+ {
+ return InternalEdit (layers, new_layer_priority, mode, edge, position);
+ }
+
+ private bool InternalEdit (GLib.List layers, int new_layer_priority, GES.EditMode mode, GES.Edge edge, ulong position)
+ {
+ EditNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("edit"));
+ unmanaged = (EditNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(EditNativeDelegate));
+ }
+ if (unmanaged == null) return false;
+
+ bool __result = unmanaged (this.Handle, layers == null ? IntPtr.Zero : layers.Handle, new_layer_priority, (int) mode, (int) edge, position);
+ return __result;
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("child_added"
+ , GES.TimelineElement.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // child_added
+ , null
+ , "child_removed"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("child_removed"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // child_removed
+ , "child_added"
+ , "add_child"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("add_child"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // add_child
+ , "child_removed"
+ , "remove_child"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("remove_child"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // remove_child
+ , "add_child"
+ , "ungroup"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("ungroup"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // ungroup
+ , "remove_child"
+ , "group"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("group"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // group
+ , "ungroup"
+ , "edit"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("edit"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // edit
+ , "group"
+ , "grouping_priority"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("grouping_priority"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(uint)) // grouping_priority
+ , "edit"
+ , "_ges_reserved"
+ , (long) Marshal.OffsetOf(typeof(GESContainer_grouping_priorityAlign), "grouping_priority")
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 20 // _ges_reserved
+ , "grouping_priority"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct GESContainer_grouping_priorityAlign
+ {
+ sbyte f1;
+ private uint grouping_priority;
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_container_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_container_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_container_group(IntPtr containers);
+
+ public static GES.Container Group(GLib.List containers) {
+ IntPtr raw_ret = ges_container_group(containers == null ? IntPtr.Zero : containers.Handle);
+ GES.Container ret = GLib.Object.GetObject(raw_ret) as GES.Container;
+ return ret;
+ }
+
+ public static GES.Container Group() {
+ return Group (null);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_container_add(IntPtr raw, IntPtr child);
+
+ public bool Add(GES.TimelineElement child) {
+ bool raw_ret = ges_container_add(Handle, child == null ? IntPtr.Zero : child.Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_container_edit(IntPtr raw, IntPtr layers, int new_layer_priority, int mode, int edge, ulong position);
+
+ public bool Edit(GLib.List layers, int new_layer_priority, GES.EditMode mode, GES.Edge edge, ulong position) {
+ bool raw_ret = ges_container_edit(Handle, layers == null ? IntPtr.Zero : layers.Handle, new_layer_priority, (int) mode, (int) edge, position);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_container_get_children(IntPtr raw, bool recursive);
+
+ public GES.TimelineElement[] GetChildren(bool recursive) {
+ IntPtr raw_ret = ges_container_get_children(Handle, recursive);
+ GES.TimelineElement[] ret = (GES.TimelineElement[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(GES.TimelineElement));
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_container_remove(IntPtr raw, IntPtr child);
+
+ public bool Remove(GES.TimelineElement child) {
+ bool raw_ret = ges_container_remove(Handle, child == null ? IntPtr.Zero : child.Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_container_ungroup(IntPtr raw, bool recursive);
+
+ public GES.Container[] Ungroup(bool recursive) {
+ IntPtr raw_ret = ges_container_ungroup(Handle, recursive);
+ GES.Container[] ret = (GES.Container[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(GES.Container));
+ return ret;
+ }
+
+
+ static Container ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("children"
+ , GES.TimelineElement.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // children
+ , null
+ , "height"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("height"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(uint)) // height
+ , "children"
+ , "children_control_mode"
+ , (long) Marshal.OffsetOf(typeof(GESContainer_heightAlign), "height")
+ , 0
+ ),
+ new GLib.AbiField("children_control_mode"
+ , -1
+ , (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(GES.ChildrenControlMode))) // children_control_mode
+ , "height"
+ , "initiated_move"
+ , (long) Marshal.OffsetOf(typeof(GESContainer_children_control_modeAlign), "children_control_mode")
+ , 0
+ ),
+ new GLib.AbiField("initiated_move"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // initiated_move
+ , "children_control_mode"
+ , "priv"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("priv"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , "initiated_move"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 20 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct GESContainer_heightAlign
+ {
+ sbyte f1;
+ private uint height;
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct GESContainer_children_control_modeAlign
+ {
+ sbyte f1;
+ private GES.ChildrenControlMode children_control_mode;
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/ControlBindingAddedHandler.cs b/ges/generated/GES/ControlBindingAddedHandler.cs
new file mode 100644
index 0000000..2e25793
--- /dev/null
+++ b/ges/generated/GES/ControlBindingAddedHandler.cs
@@ -0,0 +1,18 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void ControlBindingAddedHandler(object o, ControlBindingAddedArgs args);
+
+ public class ControlBindingAddedArgs : GLib.SignalArgs {
+ public Gst.ControlBinding ControlBinding{
+ get {
+ return (Gst.ControlBinding) Args [0];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/ControlBindingRemovedHandler.cs b/ges/generated/GES/ControlBindingRemovedHandler.cs
new file mode 100644
index 0000000..c94381a
--- /dev/null
+++ b/ges/generated/GES/ControlBindingRemovedHandler.cs
@@ -0,0 +1,18 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void ControlBindingRemovedHandler(object o, ControlBindingRemovedArgs args);
+
+ public class ControlBindingRemovedArgs : GLib.SignalArgs {
+ public Gst.ControlBinding ControlBinding{
+ get {
+ return (Gst.ControlBinding) Args [0];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/CreateElementForGapFunc.cs b/ges/generated/GES/CreateElementForGapFunc.cs
new file mode 100644
index 0000000..4b5a903
--- /dev/null
+++ b/ges/generated/GES/CreateElementForGapFunc.cs
@@ -0,0 +1,10 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate Gst.Element CreateElementForGapFunc(GES.Track track);
+
+}
diff --git a/ges/generated/GES/CreateTrackElementFunc.cs b/ges/generated/GES/CreateTrackElementFunc.cs
new file mode 100644
index 0000000..0de1565
--- /dev/null
+++ b/ges/generated/GES/CreateTrackElementFunc.cs
@@ -0,0 +1,10 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate GES.TrackElement CreateTrackElementFunc(GES.Clip clip, GES.TrackType type);
+
+}
diff --git a/ges/generated/GES/CreateTrackElementsFunc.cs b/ges/generated/GES/CreateTrackElementsFunc.cs
new file mode 100644
index 0000000..dc46182
--- /dev/null
+++ b/ges/generated/GES/CreateTrackElementsFunc.cs
@@ -0,0 +1,10 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate IntPtr[] CreateTrackElementsFunc(GES.Clip clip, GES.TrackType type);
+
+}
diff --git a/ges/generated/GES/DeepNotifyHandler.cs b/ges/generated/GES/DeepNotifyHandler.cs
new file mode 100644
index 0000000..81f48b5
--- /dev/null
+++ b/ges/generated/GES/DeepNotifyHandler.cs
@@ -0,0 +1,24 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void DeepNotifyHandler(object o, DeepNotifyArgs args);
+
+ public class DeepNotifyArgs : GLib.SignalArgs {
+ public GLib.Object PropObject{
+ get {
+ return (GLib.Object) Args [0];
+ }
+ }
+
+ public IntPtr Prop{
+ get {
+ return (IntPtr) Args [1];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/Edge.cs b/ges/generated/GES/Edge.cs
new file mode 100644
index 0000000..e655e15
--- /dev/null
+++ b/ges/generated/GES/Edge.cs
@@ -0,0 +1,29 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ [GLib.GType (typeof (GES.EdgeGType))]
+ public enum Edge {
+
+ EdgeStart = 0,
+ EdgeEnd = 1,
+ EdgeNone = 2,
+ }
+
+ internal class EdgeGType {
+ [DllImport ("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_edge_get_type ();
+
+ public static GLib.GType GType {
+ get {
+ return new GLib.GType (ges_edge_get_type ());
+ }
+ }
+ }
+#endregion
+}
diff --git a/ges/generated/GES/EditMode.cs b/ges/generated/GES/EditMode.cs
new file mode 100644
index 0000000..590efe5
--- /dev/null
+++ b/ges/generated/GES/EditMode.cs
@@ -0,0 +1,31 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ [GLib.GType (typeof (GES.EditModeGType))]
+ public enum EditMode {
+
+ EditNormal = 0,
+ EditRipple = 1,
+ EditRoll = 2,
+ EditTrim = 3,
+ EditSlide = 4,
+ }
+
+ internal class EditModeGType {
+ [DllImport ("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_edit_mode_get_type ();
+
+ public static GLib.GType GType {
+ get {
+ return new GLib.GType (ges_edit_mode_get_type ());
+ }
+ }
+ }
+#endregion
+}
diff --git a/ges/generated/GES/Effect.cs b/ges/generated/GES/Effect.cs
new file mode 100644
index 0000000..9d0a225
--- /dev/null
+++ b/ges/generated/GES/Effect.cs
@@ -0,0 +1,139 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class Effect : GES.BaseEffect {
+
+ public Effect (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_effect_new(IntPtr bin_description);
+
+ public Effect (string bin_description) : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (Effect)) {
+ var vals = new List<GLib.Value> ();
+ var names = new List<string> ();
+ names.Add ("bin_description");
+ vals.Add (new GLib.Value (bin_description));
+ CreateNativeObject (names.ToArray (), vals.ToArray ());
+ return;
+ }
+ IntPtr native_bin_description = GLib.Marshaller.StringToPtrGStrdup (bin_description);
+ Raw = ges_effect_new(native_bin_description);
+ GLib.Marshaller.Free (native_bin_description);
+ }
+
+ [GLib.Property ("bin-description")]
+ public string BinDescription {
+ get {
+ GLib.Value val = GetProperty ("bin-description");
+ string ret = (string) val;
+ val.Dispose ();
+ return ret;
+ }
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("rate_properties"
+ , GES.BaseEffect.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // rate_properties
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "rate_properties"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_effect_class_register_rate_property(IntPtr element_name, IntPtr property_name);
+
+ public static bool RegisterRateProperty(string element_name, string property_name) {
+ IntPtr native_element_name = GLib.Marshaller.StringToPtrGStrdup (element_name);
+ IntPtr native_property_name = GLib.Marshaller.StringToPtrGStrdup (property_name);
+ bool raw_ret = ges_effect_class_register_rate_property(native_element_name, native_property_name);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_element_name);
+ GLib.Marshaller.Free (native_property_name);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_effect_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_effect_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static Effect ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.BaseEffect.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/EffectAsset.cs b/ges/generated/GES/EffectAsset.cs
new file mode 100644
index 0000000..4aa0a5b
--- /dev/null
+++ b/ges/generated/GES/EffectAsset.cs
@@ -0,0 +1,39 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class EffectAsset : GES.TrackElementAsset {
+
+ public EffectAsset (IntPtr raw) : base(raw) {}
+
+ protected EffectAsset() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_effect_asset_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_effect_asset_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static EffectAsset ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+#endregion
+ }
+}
diff --git a/ges/generated/GES/EffectClip.cs b/ges/generated/GES/EffectClip.cs
new file mode 100644
index 0000000..6c254a2
--- /dev/null
+++ b/ges/generated/GES/EffectClip.cs
@@ -0,0 +1,132 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class EffectClip : GES.BaseEffectClip {
+
+ public EffectClip (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_effect_clip_new(IntPtr video_bin_description, IntPtr audio_bin_description);
+
+ public EffectClip (string video_bin_description, string audio_bin_description) : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (EffectClip)) {
+ var vals = new List<GLib.Value> ();
+ var names = new List<string> ();
+ names.Add ("video_bin_description");
+ vals.Add (new GLib.Value (video_bin_description));
+ names.Add ("audio_bin_description");
+ vals.Add (new GLib.Value (audio_bin_description));
+ CreateNativeObject (names.ToArray (), vals.ToArray ());
+ return;
+ }
+ IntPtr native_video_bin_description = GLib.Marshaller.StringToPtrGStrdup (video_bin_description);
+ IntPtr native_audio_bin_description = GLib.Marshaller.StringToPtrGStrdup (audio_bin_description);
+ Raw = ges_effect_clip_new(native_video_bin_description, native_audio_bin_description);
+ GLib.Marshaller.Free (native_video_bin_description);
+ GLib.Marshaller.Free (native_audio_bin_description);
+ }
+
+ [GLib.Property ("audio-bin-description")]
+ public string AudioBinDescription {
+ get {
+ GLib.Value val = GetProperty ("audio-bin-description");
+ string ret = (string) val;
+ val.Dispose ();
+ return ret;
+ }
+ }
+
+ [GLib.Property ("video-bin-description")]
+ public string VideoBinDescription {
+ get {
+ GLib.Value val = GetProperty ("video-bin-description");
+ string ret = (string) val;
+ val.Dispose ();
+ return ret;
+ }
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.BaseEffectClip.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_effect_clip_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_effect_clip_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static EffectClip ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.BaseEffectClip.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/Error.cs b/ges/generated/GES/Error.cs
new file mode 100644
index 0000000..4bb96c6
--- /dev/null
+++ b/ges/generated/GES/Error.cs
@@ -0,0 +1,17 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public enum Error {
+
+ AssetWrongId = 0,
+ AssetLoading = 1,
+ FormatterMalformedInputFile = 2,
+ }
+#endregion
+}
diff --git a/ges/generated/GES/ExtractableAdapter.cs b/ges/generated/GES/ExtractableAdapter.cs
new file mode 100644
index 0000000..62838aa
--- /dev/null
+++ b/ges/generated/GES/ExtractableAdapter.cs
@@ -0,0 +1,191 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class ExtractableAdapter : GLib.GInterfaceAdapter, GES.IExtractable {
+
+ [StructLayout (LayoutKind.Sequential)]
+ struct GESExtractableInterface {
+ public GLib.GType AssetType;
+ private GESSharp.ExtractableCheckIdNative _check_id;
+ public GES.ExtractableCheckId CheckId {
+ get {
+ return GESSharp.ExtractableCheckIdWrapper.GetManagedDelegate (_check_id);
+ }
+ }
+ public bool CanUpdateAsset;
+ public SetAssetNativeDelegate SetAsset;
+ IntPtr SetAssetFull;
+ IntPtr GetParametersFromId;
+ public GetIdNativeDelegate GetId;
+ IntPtr GetRealExtractableType;
+ IntPtr RegisterMetas;
+ [MarshalAs (UnmanagedType.ByValArray, SizeConst=4)]
+ public IntPtr[] _gesGesReserved;
+ }
+
+ static GESExtractableInterface iface;
+
+ static ExtractableAdapter ()
+ {
+ GLib.GType.Register (_gtype, typeof (ExtractableAdapter));
+ iface.SetAsset = new SetAssetNativeDelegate (SetAsset_cb);
+ iface.GetId = new GetIdNativeDelegate (GetId_cb);
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void SetAssetNativeDelegate (IntPtr inst, IntPtr asset);
+
+ 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);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate IntPtr GetIdNativeDelegate (IntPtr inst);
+
+ 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;
+ }
+ }
+
+ static int class_offset = 2 * IntPtr.Size;
+
+ static void Initialize (IntPtr ptr, IntPtr data)
+ {
+ IntPtr ifaceptr = new IntPtr (ptr.ToInt64 () + class_offset);
+ GESExtractableInterface native_iface = (GESExtractableInterface) Marshal.PtrToStructure (ifaceptr, typeof (GESExtractableInterface));
+ native_iface.SetAsset = iface.SetAsset;
+ native_iface.GetId = iface.GetId;
+ Marshal.StructureToPtr (native_iface, ifaceptr, false);
+ }
+
+ GLib.Object implementor;
+
+ public ExtractableAdapter ()
+ {
+ InitHandler = new GLib.GInterfaceInitHandler (Initialize);
+ }
+
+ 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;
+ }
+
+ public ExtractableAdapter (IntPtr handle)
+ {
+ if (!_gtype.IsInstance (handle))
+ throw new ArgumentException ("The gobject doesn't implement the GInterface of this adapter", "handle");
+ implementor = GLib.Object.GetObject (handle);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_extractable_get_type();
+
+ private static GLib.GType _gtype = new GLib.GType (ges_extractable_get_type ());
+
+ public static GLib.GType GType {
+ get {
+ return _gtype;
+ }
+ }
+
+ public override GLib.GType GInterfaceGType {
+ get {
+ return _gtype;
+ }
+ }
+
+ public override IntPtr Handle {
+ get {
+ return implementor.Handle;
+ }
+ }
+
+ public IntPtr OwnedHandle {
+ get {
+ return implementor.OwnedHandle;
+ }
+ }
+
+ public static IExtractable GetObject (IntPtr handle, bool owned)
+ {
+ GLib.Object obj = GLib.Object.GetObject (handle, owned);
+ return GetObject (obj);
+ }
+
+ public static IExtractable GetObject (GLib.Object obj)
+ {
+ if (obj == null)
+ return null;
+ else if (obj is IExtractableImplementor)
+ return new ExtractableAdapter (obj as IExtractableImplementor);
+ else if (obj as IExtractable == null)
+ return new ExtractableAdapter (obj.Handle);
+ else
+ return obj as IExtractable;
+ }
+
+ public IExtractableImplementor Implementor {
+ get {
+ return implementor as IExtractableImplementor;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_extractable_get_asset(IntPtr raw);
+
+ public GES.Asset Asset {
+ get {
+ IntPtr raw_ret = ges_extractable_get_asset(Handle);
+ GES.Asset ret = GLib.Object.GetObject(raw_ret) as GES.Asset;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_extractable_get_id(IntPtr raw);
+
+ public string Id {
+ get {
+ IntPtr raw_ret = ges_extractable_get_id(Handle);
+ string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_extractable_set_asset(IntPtr raw, IntPtr asset);
+
+ 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;
+ }
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/ExtractableCheckId.cs b/ges/generated/GES/ExtractableCheckId.cs
new file mode 100644
index 0000000..59529e4
--- /dev/null
+++ b/ges/generated/GES/ExtractableCheckId.cs
@@ -0,0 +1,10 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate string ExtractableCheckId(GLib.GType type, string id);
+
+}
diff --git a/ges/generated/GES/FillTrackElementFunc.cs b/ges/generated/GES/FillTrackElementFunc.cs
new file mode 100644
index 0000000..bfa1237
--- /dev/null
+++ b/ges/generated/GES/FillTrackElementFunc.cs
@@ -0,0 +1,10 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate bool FillTrackElementFunc(GES.Clip clip, GES.TrackElement track_element, Gst.Element nleobj);
+
+}
diff --git a/ges/generated/GES/Formatter.cs b/ges/generated/GES/Formatter.cs
new file mode 100644
index 0000000..29acdc0
--- /dev/null
+++ b/ges/generated/GES/Formatter.cs
@@ -0,0 +1,306 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class Formatter : GLib.InitiallyUnowned, GES.IExtractable {
+
+ protected Formatter (IntPtr raw) : base(raw) {}
+
+ protected Formatter() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("can_load_uri"
+ , GLib.Object.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // can_load_uri
+ , null
+ , "load_from_uri"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("load_from_uri"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // load_from_uri
+ , "can_load_uri"
+ , "save_to_uri"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("save_to_uri"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // save_to_uri
+ , "load_from_uri"
+ , "name"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("name"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // name
+ , "save_to_uri"
+ , "description"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("description"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // description
+ , "name"
+ , "extension"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("extension"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // extension
+ , "description"
+ , "mimetype"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("mimetype"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // mimetype
+ , "extension"
+ , "version"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("version"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(double)) // version
+ , "mimetype"
+ , "rank"
+ , (long) Marshal.OffsetOf(typeof(GESFormatter_versionAlign), "version")
+ , 0
+ ),
+ new GLib.AbiField("rank"
+ , -1
+ , (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.Rank))) // rank
+ , "version"
+ , "_ges_reserved"
+ , (long) Marshal.OffsetOf(typeof(GESFormatter_rankAlign), "rank")
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "rank"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct GESFormatter_versionAlign
+ {
+ sbyte f1;
+ private double version;
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct GESFormatter_rankAlign
+ {
+ sbyte f1;
+ private Gst.Rank rank;
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_formatter_class_register_metas(IntPtr name, IntPtr description, IntPtr extension, IntPtr mimetype, double version, int rank);
+
+ public static void RegisterMetas(string name, string description, string extension, string mimetype, double version, Gst.Rank rank) {
+ IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
+ IntPtr native_description = GLib.Marshaller.StringToPtrGStrdup (description);
+ IntPtr native_extension = GLib.Marshaller.StringToPtrGStrdup (extension);
+ IntPtr native_mimetype = GLib.Marshaller.StringToPtrGStrdup (mimetype);
+ ges_formatter_class_register_metas(native_name, native_description, native_extension, native_mimetype, version, (int) rank);
+ GLib.Marshaller.Free (native_name);
+ GLib.Marshaller.Free (native_description);
+ GLib.Marshaller.Free (native_extension);
+ GLib.Marshaller.Free (native_mimetype);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_formatter_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_formatter_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern unsafe bool ges_formatter_can_load_uri(IntPtr uri, out IntPtr error);
+
+ public static unsafe bool CanLoadUri(string uri) {
+ IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
+ IntPtr error = IntPtr.Zero;
+ bool raw_ret = ges_formatter_can_load_uri(native_uri, out error);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_uri);
+ if (error != IntPtr.Zero) throw new GLib.GException (error);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern unsafe bool ges_formatter_can_save_uri(IntPtr uri, out IntPtr error);
+
+ public static unsafe bool CanSaveUri(string uri) {
+ IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
+ IntPtr error = IntPtr.Zero;
+ bool raw_ret = ges_formatter_can_save_uri(native_uri, out error);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_uri);
+ if (error != IntPtr.Zero) throw new GLib.GException (error);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_formatter_get_default();
+
+ public static GES.Asset Default {
+ get {
+ IntPtr raw_ret = ges_formatter_get_default();
+ GES.Asset ret = GLib.Object.GetObject(raw_ret) as GES.Asset;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern unsafe bool ges_formatter_load_from_uri(IntPtr raw, IntPtr timeline, IntPtr uri, out IntPtr error);
+
+ public unsafe bool LoadFromUri(GES.Timeline timeline, string uri) {
+ IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
+ IntPtr error = IntPtr.Zero;
+ bool raw_ret = ges_formatter_load_from_uri(Handle, timeline == null ? IntPtr.Zero : timeline.Handle, native_uri, out error);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_uri);
+ if (error != IntPtr.Zero) throw new GLib.GException (error);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern unsafe bool ges_formatter_save_to_uri(IntPtr raw, IntPtr timeline, IntPtr uri, bool overwrite, out IntPtr error);
+
+ public unsafe bool SaveToUri(GES.Timeline timeline, string uri, bool overwrite) {
+ IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
+ IntPtr error = IntPtr.Zero;
+ bool raw_ret = ges_formatter_save_to_uri(Handle, timeline == null ? IntPtr.Zero : timeline.Handle, native_uri, overwrite, out error);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_uri);
+ if (error != IntPtr.Zero) throw new GLib.GException (error);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_extractable_get_asset(IntPtr raw);
+
+ public GES.Asset Asset {
+ get {
+ IntPtr raw_ret = ges_extractable_get_asset(Handle);
+ GES.Asset ret = GLib.Object.GetObject(raw_ret) as GES.Asset;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_extractable_get_id(IntPtr raw);
+
+ public string Id {
+ get {
+ IntPtr raw_ret = ges_extractable_get_id(Handle);
+ string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_extractable_set_asset(IntPtr raw, IntPtr asset);
+
+ 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;
+ }
+
+
+ static Formatter ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GLib.Object.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "project"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("project"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // project
+ , "priv"
+ , "timeline"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("timeline"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // timeline
+ , "project"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "timeline"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/FormatterCanLoadURIMethod.cs b/ges/generated/GES/FormatterCanLoadURIMethod.cs
new file mode 100644
index 0000000..617d104
--- /dev/null
+++ b/ges/generated/GES/FormatterCanLoadURIMethod.cs
@@ -0,0 +1,10 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate bool FormatterCanLoadURIMethod(GES.Formatter dummy_instance, string uri);
+
+}
diff --git a/ges/generated/GES/FormatterLoadFromURIMethod.cs b/ges/generated/GES/FormatterLoadFromURIMethod.cs
new file mode 100644
index 0000000..ef142af
--- /dev/null
+++ b/ges/generated/GES/FormatterLoadFromURIMethod.cs
@@ -0,0 +1,10 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate bool FormatterLoadFromURIMethod(GES.Formatter formatter, GES.Timeline timeline, string uri);
+
+}
diff --git a/ges/generated/GES/FormatterSaveToURIMethod.cs b/ges/generated/GES/FormatterSaveToURIMethod.cs
new file mode 100644
index 0000000..8601227
--- /dev/null
+++ b/ges/generated/GES/FormatterSaveToURIMethod.cs
@@ -0,0 +1,10 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate bool FormatterSaveToURIMethod(GES.Formatter formatter, GES.Timeline timeline, string uri, bool overwrite);
+
+}
diff --git a/ges/generated/GES/GESSharp.CreateElementForGapFuncNative.cs b/ges/generated/GES/GESSharp.CreateElementForGapFuncNative.cs
new file mode 100644
index 0000000..5e6613f
--- /dev/null
+++ b/ges/generated/GES/GESSharp.CreateElementForGapFuncNative.cs
@@ -0,0 +1,96 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GESSharp {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ internal delegate IntPtr CreateElementForGapFuncNative(IntPtr track);
+
+ internal class CreateElementForGapFuncInvoker {
+
+ CreateElementForGapFuncNative native_cb;
+ IntPtr __data;
+ GLib.DestroyNotify __notify;
+
+ ~CreateElementForGapFuncInvoker ()
+ {
+ if (__notify == null)
+ return;
+ __notify (__data);
+ }
+
+ internal CreateElementForGapFuncInvoker (CreateElementForGapFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
+
+ internal CreateElementForGapFuncInvoker (CreateElementForGapFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
+
+ internal CreateElementForGapFuncInvoker (CreateElementForGapFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
+ {
+ this.native_cb = native_cb;
+ __data = data;
+ __notify = notify;
+ }
+
+ internal GES.CreateElementForGapFunc Handler {
+ get {
+ return new GES.CreateElementForGapFunc(InvokeNative);
+ }
+ }
+
+ Gst.Element InvokeNative (GES.Track track)
+ {
+ Gst.Element __result = GLib.Object.GetObject(native_cb (track == null ? IntPtr.Zero : track.Handle)) as Gst.Element;
+ return __result;
+ }
+ }
+
+ internal class CreateElementForGapFuncWrapper {
+
+ public IntPtr NativeCallback (IntPtr track)
+ {
+ try {
+ Gst.Element __ret = managed (GLib.Object.GetObject(track) as GES.Track);
+ if (release_on_call)
+ gch.Free ();
+ return __ret == null ? IntPtr.Zero : __ret.Handle;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: Above call does not return.
+ throw e;
+ }
+ }
+
+ bool release_on_call = false;
+ GCHandle gch;
+
+ public void PersistUntilCalled ()
+ {
+ release_on_call = true;
+ gch = GCHandle.Alloc (this);
+ }
+
+ internal CreateElementForGapFuncNative NativeDelegate;
+ GES.CreateElementForGapFunc managed;
+
+ public CreateElementForGapFuncWrapper (GES.CreateElementForGapFunc managed)
+ {
+ this.managed = managed;
+ if (managed != null)
+ NativeDelegate = new CreateElementForGapFuncNative (NativeCallback);
+ }
+
+ public static GES.CreateElementForGapFunc GetManagedDelegate (CreateElementForGapFuncNative native)
+ {
+ if (native == null)
+ return null;
+ CreateElementForGapFuncWrapper wrapper = (CreateElementForGapFuncWrapper) native.Target;
+ if (wrapper == null)
+ return null;
+ return wrapper.managed;
+ }
+ }
+#endregion
+}
diff --git a/ges/generated/GES/GESSharp.CreateTrackElementFuncNative.cs b/ges/generated/GES/GESSharp.CreateTrackElementFuncNative.cs
new file mode 100644
index 0000000..650be8d
--- /dev/null
+++ b/ges/generated/GES/GESSharp.CreateTrackElementFuncNative.cs
@@ -0,0 +1,96 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GESSharp {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ internal delegate IntPtr CreateTrackElementFuncNative(IntPtr clip, int type);
+
+ internal class CreateTrackElementFuncInvoker {
+
+ CreateTrackElementFuncNative native_cb;
+ IntPtr __data;
+ GLib.DestroyNotify __notify;
+
+ ~CreateTrackElementFuncInvoker ()
+ {
+ if (__notify == null)
+ return;
+ __notify (__data);
+ }
+
+ internal CreateTrackElementFuncInvoker (CreateTrackElementFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
+
+ internal CreateTrackElementFuncInvoker (CreateTrackElementFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
+
+ internal CreateTrackElementFuncInvoker (CreateTrackElementFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
+ {
+ this.native_cb = native_cb;
+ __data = data;
+ __notify = notify;
+ }
+
+ internal GES.CreateTrackElementFunc Handler {
+ get {
+ return new GES.CreateTrackElementFunc(InvokeNative);
+ }
+ }
+
+ GES.TrackElement InvokeNative (GES.Clip clip, GES.TrackType type)
+ {
+ GES.TrackElement __result = GLib.Object.GetObject(native_cb (clip == null ? IntPtr.Zero : clip.Handle, (int) type)) as GES.TrackElement;
+ return __result;
+ }
+ }
+
+ internal class CreateTrackElementFuncWrapper {
+
+ public IntPtr NativeCallback (IntPtr clip, int type)
+ {
+ try {
+ GES.TrackElement __ret = managed (GLib.Object.GetObject(clip) as GES.Clip, (GES.TrackType) type);
+ if (release_on_call)
+ gch.Free ();
+ return __ret == null ? IntPtr.Zero : __ret.Handle;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: Above call does not return.
+ throw e;
+ }
+ }
+
+ bool release_on_call = false;
+ GCHandle gch;
+
+ public void PersistUntilCalled ()
+ {
+ release_on_call = true;
+ gch = GCHandle.Alloc (this);
+ }
+
+ internal CreateTrackElementFuncNative NativeDelegate;
+ GES.CreateTrackElementFunc managed;
+
+ public CreateTrackElementFuncWrapper (GES.CreateTrackElementFunc managed)
+ {
+ this.managed = managed;
+ if (managed != null)
+ NativeDelegate = new CreateTrackElementFuncNative (NativeCallback);
+ }
+
+ public static GES.CreateTrackElementFunc GetManagedDelegate (CreateTrackElementFuncNative native)
+ {
+ if (native == null)
+ return null;
+ CreateTrackElementFuncWrapper wrapper = (CreateTrackElementFuncWrapper) native.Target;
+ if (wrapper == null)
+ return null;
+ return wrapper.managed;
+ }
+ }
+#endregion
+}
diff --git a/ges/generated/GES/GESSharp.CreateTrackElementsFuncNative.cs b/ges/generated/GES/GESSharp.CreateTrackElementsFuncNative.cs
new file mode 100644
index 0000000..7d4edfa
--- /dev/null
+++ b/ges/generated/GES/GESSharp.CreateTrackElementsFuncNative.cs
@@ -0,0 +1,96 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GESSharp {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ internal delegate IntPtr CreateTrackElementsFuncNative(IntPtr clip, int type);
+
+ internal class CreateTrackElementsFuncInvoker {
+
+ CreateTrackElementsFuncNative native_cb;
+ IntPtr __data;
+ GLib.DestroyNotify __notify;
+
+ ~CreateTrackElementsFuncInvoker ()
+ {
+ if (__notify == null)
+ return;
+ __notify (__data);
+ }
+
+ internal CreateTrackElementsFuncInvoker (CreateTrackElementsFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
+
+ internal CreateTrackElementsFuncInvoker (CreateTrackElementsFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
+
+ internal CreateTrackElementsFuncInvoker (CreateTrackElementsFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
+ {
+ this.native_cb = native_cb;
+ __data = data;
+ __notify = notify;
+ }
+
+ internal GES.CreateTrackElementsFunc Handler {
+ get {
+ return new GES.CreateTrackElementsFunc(InvokeNative);
+ }
+ }
+
+ IntPtr[] InvokeNative (GES.Clip clip, GES.TrackType type)
+ {
+ IntPtr[] __result = (IntPtr[]) GLib.Marshaller.ListPtrToArray (native_cb (clip == null ? IntPtr.Zero : clip.Handle, (int) type), typeof(GLib.List), false, false, typeof(IntPtr));
+ return __result;
+ }
+ }
+
+ internal class CreateTrackElementsFuncWrapper {
+
+ public IntPtr NativeCallback (IntPtr clip, int type)
+ {
+ try {
+ IntPtr[] __ret = managed (GLib.Object.GetObject(clip) as GES.Clip, (GES.TrackType) type);
+ if (release_on_call)
+ gch.Free ();
+ return new GLib.List(__ret, typeof (IntPtr), false, false) == null ? IntPtr.Zero : new GLib.List(__ret, typeof (IntPtr), false, false).Handle;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: Above call does not return.
+ throw e;
+ }
+ }
+
+ bool release_on_call = false;
+ GCHandle gch;
+
+ public void PersistUntilCalled ()
+ {
+ release_on_call = true;
+ gch = GCHandle.Alloc (this);
+ }
+
+ internal CreateTrackElementsFuncNative NativeDelegate;
+ GES.CreateTrackElementsFunc managed;
+
+ public CreateTrackElementsFuncWrapper (GES.CreateTrackElementsFunc managed)
+ {
+ this.managed = managed;
+ if (managed != null)
+ NativeDelegate = new CreateTrackElementsFuncNative (NativeCallback);
+ }
+
+ public static GES.CreateTrackElementsFunc GetManagedDelegate (CreateTrackElementsFuncNative native)
+ {
+ if (native == null)
+ return null;
+ CreateTrackElementsFuncWrapper wrapper = (CreateTrackElementsFuncWrapper) native.Target;
+ if (wrapper == null)
+ return null;
+ return wrapper.managed;
+ }
+ }
+#endregion
+}
diff --git a/ges/generated/GES/GESSharp.ExtractableCheckIdNative.cs b/ges/generated/GES/GESSharp.ExtractableCheckIdNative.cs
new file mode 100644
index 0000000..1fa1667
--- /dev/null
+++ b/ges/generated/GES/GESSharp.ExtractableCheckIdNative.cs
@@ -0,0 +1,101 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GESSharp {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ internal delegate IntPtr ExtractableCheckIdNative(IntPtr type, IntPtr id, out IntPtr error);
+
+ internal class ExtractableCheckIdInvoker {
+
+ ExtractableCheckIdNative native_cb;
+ IntPtr __data;
+ GLib.DestroyNotify __notify;
+
+ ~ExtractableCheckIdInvoker ()
+ {
+ if (__notify == null)
+ return;
+ __notify (__data);
+ }
+
+ internal ExtractableCheckIdInvoker (ExtractableCheckIdNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
+
+ internal ExtractableCheckIdInvoker (ExtractableCheckIdNative native_cb, IntPtr data) : this (native_cb, data, null) {}
+
+ internal ExtractableCheckIdInvoker (ExtractableCheckIdNative native_cb, IntPtr data, GLib.DestroyNotify notify)
+ {
+ this.native_cb = native_cb;
+ __data = data;
+ __notify = notify;
+ }
+
+ internal GES.ExtractableCheckId Handler {
+ get {
+ return new GES.ExtractableCheckId(InvokeNative);
+ }
+ }
+
+ string InvokeNative (GLib.GType type, string id)
+ {
+ IntPtr native_id = GLib.Marshaller.StringToPtrGStrdup (id);
+ IntPtr error = IntPtr.Zero;
+ string __result = GLib.Marshaller.PtrToStringGFree(native_cb (type.Val, native_id, out error));
+ GLib.Marshaller.Free (native_id);
+ return __result;
+ }
+ }
+
+ internal class ExtractableCheckIdWrapper {
+
+ public IntPtr NativeCallback (IntPtr type, IntPtr id, out IntPtr error)
+ {
+ error = IntPtr.Zero;
+
+ try {
+ string __ret = managed (new GLib.GType(type), GLib.Marshaller.Utf8PtrToString (id));
+ if (release_on_call)
+ gch.Free ();
+ return GLib.Marshaller.StringToPtrGStrdup(__ret);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: Above call does not return.
+ throw e;
+ }
+ }
+
+ bool release_on_call = false;
+ GCHandle gch;
+
+ public void PersistUntilCalled ()
+ {
+ release_on_call = true;
+ gch = GCHandle.Alloc (this);
+ }
+
+ internal ExtractableCheckIdNative NativeDelegate;
+ GES.ExtractableCheckId managed;
+
+ public ExtractableCheckIdWrapper (GES.ExtractableCheckId managed)
+ {
+ this.managed = managed;
+ if (managed != null)
+ NativeDelegate = new ExtractableCheckIdNative (NativeCallback);
+ }
+
+ public static GES.ExtractableCheckId GetManagedDelegate (ExtractableCheckIdNative native)
+ {
+ if (native == null)
+ return null;
+ ExtractableCheckIdWrapper wrapper = (ExtractableCheckIdWrapper) native.Target;
+ if (wrapper == null)
+ return null;
+ return wrapper.managed;
+ }
+ }
+#endregion
+}
diff --git a/ges/generated/GES/GESSharp.FillTrackElementFuncNative.cs b/ges/generated/GES/GESSharp.FillTrackElementFuncNative.cs
new file mode 100644
index 0000000..575df8e
--- /dev/null
+++ b/ges/generated/GES/GESSharp.FillTrackElementFuncNative.cs
@@ -0,0 +1,95 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GESSharp {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ internal delegate bool FillTrackElementFuncNative(IntPtr clip, IntPtr track_element, IntPtr nleobj);
+
+ internal class FillTrackElementFuncInvoker {
+
+ FillTrackElementFuncNative native_cb;
+ IntPtr __data;
+ GLib.DestroyNotify __notify;
+
+ ~FillTrackElementFuncInvoker ()
+ {
+ if (__notify == null)
+ return;
+ __notify (__data);
+ }
+
+ internal FillTrackElementFuncInvoker (FillTrackElementFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
+
+ internal FillTrackElementFuncInvoker (FillTrackElementFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
+
+ internal FillTrackElementFuncInvoker (FillTrackElementFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
+ {
+ this.native_cb = native_cb;
+ __data = data;
+ __notify = notify;
+ }
+
+ internal GES.FillTrackElementFunc Handler {
+ get {
+ return new GES.FillTrackElementFunc(InvokeNative);
+ }
+ }
+
+ bool InvokeNative (GES.Clip clip, GES.TrackElement track_element, Gst.Element nleobj)
+ {
+ bool __result = native_cb (clip == null ? IntPtr.Zero : clip.Handle, track_element == null ? IntPtr.Zero : track_element.Handle, nleobj == null ? IntPtr.Zero : nleobj.Handle);
+ return __result;
+ }
+ }
+
+ internal class FillTrackElementFuncWrapper {
+
+ public bool NativeCallback (IntPtr clip, IntPtr track_element, IntPtr nleobj)
+ {
+ try {
+ bool __ret = managed (GLib.Object.GetObject(clip) as GES.Clip, GLib.Object.GetObject(track_element) as GES.TrackElement, GLib.Object.GetObject(nleobj) as Gst.Element);
+ if (release_on_call)
+ gch.Free ();
+ return __ret;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ return false;
+ }
+ }
+
+ bool release_on_call = false;
+ GCHandle gch;
+
+ public void PersistUntilCalled ()
+ {
+ release_on_call = true;
+ gch = GCHandle.Alloc (this);
+ }
+
+ internal FillTrackElementFuncNative NativeDelegate;
+ GES.FillTrackElementFunc managed;
+
+ public FillTrackElementFuncWrapper (GES.FillTrackElementFunc managed)
+ {
+ this.managed = managed;
+ if (managed != null)
+ NativeDelegate = new FillTrackElementFuncNative (NativeCallback);
+ }
+
+ public static GES.FillTrackElementFunc GetManagedDelegate (FillTrackElementFuncNative native)
+ {
+ if (native == null)
+ return null;
+ FillTrackElementFuncWrapper wrapper = (FillTrackElementFuncWrapper) native.Target;
+ if (wrapper == null)
+ return null;
+ return wrapper.managed;
+ }
+ }
+#endregion
+}
diff --git a/ges/generated/GES/GESSharp.FormatterCanLoadURIMethodNative.cs b/ges/generated/GES/GESSharp.FormatterCanLoadURIMethodNative.cs
new file mode 100644
index 0000000..659458d
--- /dev/null
+++ b/ges/generated/GES/GESSharp.FormatterCanLoadURIMethodNative.cs
@@ -0,0 +1,100 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GESSharp {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ internal delegate bool FormatterCanLoadURIMethodNative(IntPtr dummy_instance, IntPtr uri, out IntPtr error);
+
+ internal class FormatterCanLoadURIMethodInvoker {
+
+ FormatterCanLoadURIMethodNative native_cb;
+ IntPtr __data;
+ GLib.DestroyNotify __notify;
+
+ ~FormatterCanLoadURIMethodInvoker ()
+ {
+ if (__notify == null)
+ return;
+ __notify (__data);
+ }
+
+ internal FormatterCanLoadURIMethodInvoker (FormatterCanLoadURIMethodNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
+
+ internal FormatterCanLoadURIMethodInvoker (FormatterCanLoadURIMethodNative native_cb, IntPtr data) : this (native_cb, data, null) {}
+
+ internal FormatterCanLoadURIMethodInvoker (FormatterCanLoadURIMethodNative native_cb, IntPtr data, GLib.DestroyNotify notify)
+ {
+ this.native_cb = native_cb;
+ __data = data;
+ __notify = notify;
+ }
+
+ internal GES.FormatterCanLoadURIMethod Handler {
+ get {
+ return new GES.FormatterCanLoadURIMethod(InvokeNative);
+ }
+ }
+
+ bool InvokeNative (GES.Formatter dummy_instance, string uri)
+ {
+ IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
+ IntPtr error = IntPtr.Zero;
+ bool __result = native_cb (dummy_instance == null ? IntPtr.Zero : dummy_instance.Handle, native_uri, out error);
+ GLib.Marshaller.Free (native_uri);
+ return __result;
+ }
+ }
+
+ internal class FormatterCanLoadURIMethodWrapper {
+
+ public bool NativeCallback (IntPtr dummy_instance, IntPtr uri, out IntPtr error)
+ {
+ error = IntPtr.Zero;
+
+ try {
+ bool __ret = managed (GLib.Object.GetObject(dummy_instance) as GES.Formatter, GLib.Marshaller.Utf8PtrToString (uri));
+ if (release_on_call)
+ gch.Free ();
+ return __ret;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ return false;
+ }
+ }
+
+ bool release_on_call = false;
+ GCHandle gch;
+
+ public void PersistUntilCalled ()
+ {
+ release_on_call = true;
+ gch = GCHandle.Alloc (this);
+ }
+
+ internal FormatterCanLoadURIMethodNative NativeDelegate;
+ GES.FormatterCanLoadURIMethod managed;
+
+ public FormatterCanLoadURIMethodWrapper (GES.FormatterCanLoadURIMethod managed)
+ {
+ this.managed = managed;
+ if (managed != null)
+ NativeDelegate = new FormatterCanLoadURIMethodNative (NativeCallback);
+ }
+
+ public static GES.FormatterCanLoadURIMethod GetManagedDelegate (FormatterCanLoadURIMethodNative native)
+ {
+ if (native == null)
+ return null;
+ FormatterCanLoadURIMethodWrapper wrapper = (FormatterCanLoadURIMethodWrapper) native.Target;
+ if (wrapper == null)
+ return null;
+ return wrapper.managed;
+ }
+ }
+#endregion
+}
diff --git a/ges/generated/GES/GESSharp.FormatterLoadFromURIMethodNative.cs b/ges/generated/GES/GESSharp.FormatterLoadFromURIMethodNative.cs
new file mode 100644
index 0000000..61b19dc
--- /dev/null
+++ b/ges/generated/GES/GESSharp.FormatterLoadFromURIMethodNative.cs
@@ -0,0 +1,100 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GESSharp {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ internal delegate bool FormatterLoadFromURIMethodNative(IntPtr formatter, IntPtr timeline, IntPtr uri, out IntPtr error);
+
+ internal class FormatterLoadFromURIMethodInvoker {
+
+ FormatterLoadFromURIMethodNative native_cb;
+ IntPtr __data;
+ GLib.DestroyNotify __notify;
+
+ ~FormatterLoadFromURIMethodInvoker ()
+ {
+ if (__notify == null)
+ return;
+ __notify (__data);
+ }
+
+ internal FormatterLoadFromURIMethodInvoker (FormatterLoadFromURIMethodNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
+
+ internal FormatterLoadFromURIMethodInvoker (FormatterLoadFromURIMethodNative native_cb, IntPtr data) : this (native_cb, data, null) {}
+
+ internal FormatterLoadFromURIMethodInvoker (FormatterLoadFromURIMethodNative native_cb, IntPtr data, GLib.DestroyNotify notify)
+ {
+ this.native_cb = native_cb;
+ __data = data;
+ __notify = notify;
+ }
+
+ internal GES.FormatterLoadFromURIMethod Handler {
+ get {
+ return new GES.FormatterLoadFromURIMethod(InvokeNative);
+ }
+ }
+
+ bool InvokeNative (GES.Formatter formatter, GES.Timeline timeline, string uri)
+ {
+ IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
+ IntPtr error = IntPtr.Zero;
+ bool __result = native_cb (formatter == null ? IntPtr.Zero : formatter.Handle, timeline == null ? IntPtr.Zero : timeline.Handle, native_uri, out error);
+ GLib.Marshaller.Free (native_uri);
+ return __result;
+ }
+ }
+
+ internal class FormatterLoadFromURIMethodWrapper {
+
+ public bool NativeCallback (IntPtr formatter, IntPtr timeline, IntPtr uri, out IntPtr error)
+ {
+ error = IntPtr.Zero;
+
+ try {
+ bool __ret = managed (GLib.Object.GetObject(formatter) as GES.Formatter, GLib.Object.GetObject(timeline) as GES.Timeline, GLib.Marshaller.Utf8PtrToString (uri));
+ if (release_on_call)
+ gch.Free ();
+ return __ret;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ return false;
+ }
+ }
+
+ bool release_on_call = false;
+ GCHandle gch;
+
+ public void PersistUntilCalled ()
+ {
+ release_on_call = true;
+ gch = GCHandle.Alloc (this);
+ }
+
+ internal FormatterLoadFromURIMethodNative NativeDelegate;
+ GES.FormatterLoadFromURIMethod managed;
+
+ public FormatterLoadFromURIMethodWrapper (GES.FormatterLoadFromURIMethod managed)
+ {
+ this.managed = managed;
+ if (managed != null)
+ NativeDelegate = new FormatterLoadFromURIMethodNative (NativeCallback);
+ }
+
+ public static GES.FormatterLoadFromURIMethod GetManagedDelegate (FormatterLoadFromURIMethodNative native)
+ {
+ if (native == null)
+ return null;
+ FormatterLoadFromURIMethodWrapper wrapper = (FormatterLoadFromURIMethodWrapper) native.Target;
+ if (wrapper == null)
+ return null;
+ return wrapper.managed;
+ }
+ }
+#endregion
+}
diff --git a/ges/generated/GES/GESSharp.FormatterSaveToURIMethodNative.cs b/ges/generated/GES/GESSharp.FormatterSaveToURIMethodNative.cs
new file mode 100644
index 0000000..3d85392
--- /dev/null
+++ b/ges/generated/GES/GESSharp.FormatterSaveToURIMethodNative.cs
@@ -0,0 +1,100 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GESSharp {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ internal delegate bool FormatterSaveToURIMethodNative(IntPtr formatter, IntPtr timeline, IntPtr uri, bool overwrite, out IntPtr error);
+
+ internal class FormatterSaveToURIMethodInvoker {
+
+ FormatterSaveToURIMethodNative native_cb;
+ IntPtr __data;
+ GLib.DestroyNotify __notify;
+
+ ~FormatterSaveToURIMethodInvoker ()
+ {
+ if (__notify == null)
+ return;
+ __notify (__data);
+ }
+
+ internal FormatterSaveToURIMethodInvoker (FormatterSaveToURIMethodNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
+
+ internal FormatterSaveToURIMethodInvoker (FormatterSaveToURIMethodNative native_cb, IntPtr data) : this (native_cb, data, null) {}
+
+ internal FormatterSaveToURIMethodInvoker (FormatterSaveToURIMethodNative native_cb, IntPtr data, GLib.DestroyNotify notify)
+ {
+ this.native_cb = native_cb;
+ __data = data;
+ __notify = notify;
+ }
+
+ internal GES.FormatterSaveToURIMethod Handler {
+ get {
+ return new GES.FormatterSaveToURIMethod(InvokeNative);
+ }
+ }
+
+ bool InvokeNative (GES.Formatter formatter, GES.Timeline timeline, string uri, bool overwrite)
+ {
+ IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
+ IntPtr error = IntPtr.Zero;
+ bool __result = native_cb (formatter == null ? IntPtr.Zero : formatter.Handle, timeline == null ? IntPtr.Zero : timeline.Handle, native_uri, overwrite, out error);
+ GLib.Marshaller.Free (native_uri);
+ return __result;
+ }
+ }
+
+ internal class FormatterSaveToURIMethodWrapper {
+
+ public bool NativeCallback (IntPtr formatter, IntPtr timeline, IntPtr uri, bool overwrite, out IntPtr error)
+ {
+ error = IntPtr.Zero;
+
+ try {
+ bool __ret = managed (GLib.Object.GetObject(formatter) as GES.Formatter, GLib.Object.GetObject(timeline) as GES.Timeline, GLib.Marshaller.Utf8PtrToString (uri), overwrite);
+ if (release_on_call)
+ gch.Free ();
+ return __ret;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ return false;
+ }
+ }
+
+ bool release_on_call = false;
+ GCHandle gch;
+
+ public void PersistUntilCalled ()
+ {
+ release_on_call = true;
+ gch = GCHandle.Alloc (this);
+ }
+
+ internal FormatterSaveToURIMethodNative NativeDelegate;
+ GES.FormatterSaveToURIMethod managed;
+
+ public FormatterSaveToURIMethodWrapper (GES.FormatterSaveToURIMethod managed)
+ {
+ this.managed = managed;
+ if (managed != null)
+ NativeDelegate = new FormatterSaveToURIMethodNative (NativeCallback);
+ }
+
+ public static GES.FormatterSaveToURIMethod GetManagedDelegate (FormatterSaveToURIMethodNative native)
+ {
+ if (native == null)
+ return null;
+ FormatterSaveToURIMethodWrapper wrapper = (FormatterSaveToURIMethodWrapper) native.Target;
+ if (wrapper == null)
+ return null;
+ return wrapper.managed;
+ }
+ }
+#endregion
+}
diff --git a/ges/generated/GES/GESSharp.MetaForeachFuncNative.cs b/ges/generated/GES/GESSharp.MetaForeachFuncNative.cs
new file mode 100644
index 0000000..b13ca17
--- /dev/null
+++ b/ges/generated/GES/GESSharp.MetaForeachFuncNative.cs
@@ -0,0 +1,96 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GESSharp {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ internal delegate void MetaForeachFuncNative(IntPtr container, IntPtr key, IntPtr value, IntPtr user_data);
+
+ internal class MetaForeachFuncInvoker {
+
+ MetaForeachFuncNative native_cb;
+ IntPtr __data;
+ GLib.DestroyNotify __notify;
+
+ ~MetaForeachFuncInvoker ()
+ {
+ if (__notify == null)
+ return;
+ __notify (__data);
+ }
+
+ internal MetaForeachFuncInvoker (MetaForeachFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
+
+ internal MetaForeachFuncInvoker (MetaForeachFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
+
+ internal MetaForeachFuncInvoker (MetaForeachFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
+ {
+ this.native_cb = native_cb;
+ __data = data;
+ __notify = notify;
+ }
+
+ internal GES.MetaForeachFunc Handler {
+ get {
+ return new GES.MetaForeachFunc(InvokeNative);
+ }
+ }
+
+ void InvokeNative (GES.IMetaContainer container, string key, GLib.Value value)
+ {
+ IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup (key);
+ IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
+ native_cb (container == null ? IntPtr.Zero : ((container is GLib.Object) ? (container as GLib.Object).Handle : (container as GES.MetaContainerAdapter).Handle), native_key, native_value, __data);
+ GLib.Marshaller.Free (native_key);
+ Marshal.FreeHGlobal (native_value);
+ }
+ }
+
+ internal class MetaForeachFuncWrapper {
+
+ public void NativeCallback (IntPtr container, IntPtr key, IntPtr value, IntPtr user_data)
+ {
+ try {
+ managed (GES.MetaContainerAdapter.GetObject (container, false), GLib.Marshaller.Utf8PtrToString (key), (GLib.Value) Marshal.PtrToStructure (value, typeof (GLib.Value)));
+ if (release_on_call)
+ gch.Free ();
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ bool release_on_call = false;
+ GCHandle gch;
+
+ public void PersistUntilCalled ()
+ {
+ release_on_call = true;
+ gch = GCHandle.Alloc (this);
+ }
+
+ internal MetaForeachFuncNative NativeDelegate;
+ GES.MetaForeachFunc managed;
+
+ public MetaForeachFuncWrapper (GES.MetaForeachFunc managed)
+ {
+ this.managed = managed;
+ if (managed != null)
+ NativeDelegate = new MetaForeachFuncNative (NativeCallback);
+ }
+
+ public static GES.MetaForeachFunc GetManagedDelegate (MetaForeachFuncNative native)
+ {
+ if (native == null)
+ return null;
+ MetaForeachFuncWrapper wrapper = (MetaForeachFuncWrapper) native.Target;
+ if (wrapper == null)
+ return null;
+ return wrapper.managed;
+ }
+ }
+#endregion
+}
diff --git a/ges/generated/GES/Global.cs b/ges/generated/GES/Global.cs
new file mode 100644
index 0000000..84e993e
--- /dev/null
+++ b/ges/generated/GES/Global.cs
@@ -0,0 +1,112 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class Global {
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_add_missing_uri_relocation_uri(IntPtr uri, bool recurse);
+
+ public static bool AddMissingUriRelocationUri(string uri, bool recurse) {
+ IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
+ bool raw_ret = ges_add_missing_uri_relocation_uri(native_uri, recurse);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_uri);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_deinit();
+
+ public static void Deinit() {
+ ges_deinit();
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_init();
+
+ public static bool Init() {
+ bool raw_ret = ges_init();
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_list_assets(IntPtr filter);
+
+ public static GES.Asset[] ListAssets(GLib.GType filter) {
+ IntPtr raw_ret = ges_list_assets(filter.Val);
+ GES.Asset[] ret = (GES.Asset[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), false, true, typeof(GES.Asset));
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_play_sink_convert_frame(IntPtr playsink, IntPtr caps);
+
+ public static Gst.Sample PlaySinkConvertFrame(Gst.Element playsink, Gst.Caps caps) {
+ IntPtr raw_ret = ges_play_sink_convert_frame(playsink == null ? IntPtr.Zero : playsink.Handle, caps == null ? IntPtr.Zero : caps.Handle);
+ Gst.Sample ret = raw_ret == IntPtr.Zero ? null : (Gst.Sample) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Sample), true);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_pspec_equal(IntPtr key_spec_1, IntPtr key_spec_2);
+
+ public static bool PspecEqual(IntPtr key_spec_1, IntPtr key_spec_2) {
+ bool raw_ret = ges_pspec_equal(key_spec_1, key_spec_2);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ public static bool PspecEqual() {
+ return PspecEqual (IntPtr.Zero, IntPtr.Zero);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern uint ges_pspec_hash(IntPtr key_spec);
+
+ public static uint PspecHash(IntPtr key_spec) {
+ uint raw_ret = ges_pspec_hash(key_spec);
+ uint ret = raw_ret;
+ return ret;
+ }
+
+ public static uint PspecHash() {
+ return PspecHash (IntPtr.Zero);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_track_type_name(int type);
+
+ public static string TrackTypeName(GES.TrackType type) {
+ IntPtr raw_ret = ges_track_type_name((int) type);
+ string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_validate_register_action_types();
+
+ public static bool ValidateRegisterActionTypes() {
+ bool raw_ret = ges_validate_register_action_types();
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_version(out uint major, out uint minor, out uint micro, out uint nano);
+
+ public static void Version(out uint major, out uint minor, out uint micro, out uint nano) {
+ ges_version(out major, out minor, out micro, out nano);
+ }
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/Group.cs b/ges/generated/GES/Group.cs
new file mode 100644
index 0000000..723bc77
--- /dev/null
+++ b/ges/generated/GES/Group.cs
@@ -0,0 +1,177 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class Group : GES.Container {
+
+ public Group (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_group_new();
+
+ public Group () : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (Group)) {
+ CreateNativeObject (new string [0], new GLib.Value[0]);
+ return;
+ }
+ Raw = ges_group_new();
+ }
+
+ [GLib.Property ("duration")]
+ public new ulong Duration {
+ get {
+ GLib.Value val = GetProperty ("duration");
+ ulong ret = (ulong) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("duration", val);
+ val.Dispose ();
+ }
+ }
+
+ [GLib.Property ("in-point")]
+ public new ulong InPoint {
+ get {
+ GLib.Value val = GetProperty ("in-point");
+ ulong ret = (ulong) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("in-point", val);
+ val.Dispose ();
+ }
+ }
+
+ [GLib.Property ("max-duration")]
+ public new ulong MaxDuration {
+ get {
+ GLib.Value val = GetProperty ("max-duration");
+ ulong ret = (ulong) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("max-duration", val);
+ val.Dispose ();
+ }
+ }
+
+ [GLib.Property ("priority")]
+ public new uint Priority {
+ get {
+ GLib.Value val = GetProperty ("priority");
+ uint ret = (uint) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("priority", val);
+ val.Dispose ();
+ }
+ }
+
+ [GLib.Property ("start")]
+ public new ulong Start {
+ get {
+ GLib.Value val = GetProperty ("start");
+ ulong ret = (ulong) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("start", val);
+ val.Dispose ();
+ }
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.Container.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_group_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_group_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static Group ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.Container.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/GroupAddedHandler.cs b/ges/generated/GES/GroupAddedHandler.cs
new file mode 100644
index 0000000..da0c424
--- /dev/null
+++ b/ges/generated/GES/GroupAddedHandler.cs
@@ -0,0 +1,18 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void GroupAddedHandler(object o, GroupAddedArgs args);
+
+ public class GroupAddedArgs : GLib.SignalArgs {
+ public GES.Group Group{
+ get {
+ return (GES.Group) Args [0];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/IExtractable.cs b/ges/generated/GES/IExtractable.cs
new file mode 100644
index 0000000..ad6e0d0
--- /dev/null
+++ b/ges/generated/GES/IExtractable.cs
@@ -0,0 +1,27 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+#region Autogenerated code
+ public partial interface IExtractable : GLib.IWrapper {
+
+ GES.Asset Asset {
+ get;
+ }
+ string Id {
+ get;
+ }
+ bool SetAsset(GES.Asset asset);
+ }
+
+ [GLib.GInterface (typeof (ExtractableAdapter))]
+ public partial interface IExtractableImplementor : GLib.IWrapper {
+
+ GES.Asset Asset { set; }
+ string Id { get; }
+ }
+#endregion
+}
diff --git a/ges/generated/GES/IMetaContainer.cs b/ges/generated/GES/IMetaContainer.cs
new file mode 100644
index 0000000..37c67ca
--- /dev/null
+++ b/ges/generated/GES/IMetaContainer.cs
@@ -0,0 +1,53 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+#region Autogenerated code
+ public partial interface IMetaContainer : GLib.IWrapper {
+
+ event GES.NotifyMetaHandler NotifyMeta;
+ bool AddMetasFromString(string str);
+ bool CheckMetaRegistered(string meta_item, GES.MetaFlag flags, GLib.GType type);
+ void Foreach(GES.MetaForeachFunc func);
+ bool GetBoolean(string meta_item, out bool dest);
+ bool GetDateTime(string meta_item, out Gst.DateTime dest);
+ bool GetDouble(string meta_item, out double dest);
+ bool GetFloat(string meta_item, out float dest);
+ bool GetInt(string meta_item, out int dest);
+ bool GetInt64(string meta_item, out long dest);
+ GLib.Value GetMeta(string key);
+ string GetString(string meta_item);
+ bool GetUint(string meta_item, out uint dest);
+ bool GetUint64(string meta_item, out ulong dest);
+ string MetasToString();
+ bool RegisterMeta(GES.MetaFlag flags, string meta_item, GLib.Value value);
+ bool RegisterMetaBoolean(GES.MetaFlag flags, string meta_item, bool value);
+ bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item, Gst.DateTime value);
+ bool RegisterMetaDouble(GES.MetaFlag flags, string meta_item, double value);
+ bool RegisterMetaFloat(GES.MetaFlag flags, string meta_item, float value);
+ bool RegisterMetaInt(GES.MetaFlag flags, string meta_item, int value);
+ bool RegisterMetaInt64(GES.MetaFlag flags, string meta_item, long value);
+ bool RegisterMetaString(GES.MetaFlag flags, string meta_item, string value);
+ bool RegisterMetaUint(GES.MetaFlag flags, string meta_item, uint value);
+ bool RegisterMetaUint64(GES.MetaFlag flags, string meta_item, ulong value);
+ bool SetBoolean(string meta_item, bool value);
+ bool SetDateTime(string meta_item, Gst.DateTime value);
+ bool SetDouble(string meta_item, double value);
+ bool SetFloat(string meta_item, float value);
+ bool SetInt(string meta_item, int value);
+ bool SetInt64(string meta_item, long value);
+ bool SetMeta(string meta_item, GLib.Value value);
+ bool SetString(string meta_item, string value);
+ bool SetUint(string meta_item, uint value);
+ bool SetUint64(string meta_item, ulong value);
+ }
+
+ [GLib.GInterface (typeof (MetaContainerAdapter))]
+ public partial interface IMetaContainerImplementor : GLib.IWrapper {
+
+ }
+#endregion
+}
diff --git a/ges/generated/GES/ImageSource.cs b/ges/generated/GES/ImageSource.cs
new file mode 100644
index 0000000..662694a
--- /dev/null
+++ b/ges/generated/GES/ImageSource.cs
@@ -0,0 +1,113 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class ImageSource : GES.VideoSource {
+
+ public ImageSource (IntPtr raw) : base(raw) {}
+
+ protected ImageSource() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+ [GLib.Property ("uri")]
+ public string Uri {
+ get {
+ GLib.Value val = GetProperty ("uri");
+ string ret = (string) val;
+ val.Dispose ();
+ return ret;
+ }
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.VideoSource.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_image_source_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_image_source_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static ImageSource ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("uri"
+ , GES.VideoSource.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // uri
+ , null
+ , "priv"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("priv"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , "uri"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/Layer.cs b/ges/generated/GES/Layer.cs
new file mode 100644
index 0000000..6b676c0
--- /dev/null
+++ b/ges/generated/GES/Layer.cs
@@ -0,0 +1,1017 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class Layer : GLib.InitiallyUnowned, GES.IExtractable, GES.IMetaContainer {
+
+ public Layer (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_layer_new();
+
+ public Layer () : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (Layer)) {
+ CreateNativeObject (new string [0], new GLib.Value[0]);
+ return;
+ }
+ Raw = ges_layer_new();
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_layer_get_auto_transition(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_layer_set_auto_transition(IntPtr raw, bool auto_transition);
+
+ [GLib.Property ("auto-transition")]
+ public bool AutoTransition {
+ get {
+ bool raw_ret = ges_layer_get_auto_transition(Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_layer_set_auto_transition(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern uint ges_layer_get_priority(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_layer_set_priority(IntPtr raw, uint priority);
+
+ [GLib.Property ("priority")]
+ public uint Priority {
+ get {
+ uint raw_ret = ges_layer_get_priority(Handle);
+ uint ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_layer_set_priority(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_layer_get_timeline(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_layer_set_timeline(IntPtr raw, IntPtr timeline);
+
+ public GES.Timeline Timeline {
+ get {
+ IntPtr raw_ret = ges_layer_get_timeline(Handle);
+ GES.Timeline ret = GLib.Object.GetObject(raw_ret) as GES.Timeline;
+ return ret;
+ }
+ set {
+ ges_layer_set_timeline(Handle, value == null ? IntPtr.Zero : value.Handle);
+ }
+ }
+
+ public uint MinNlePriority {
+ get {
+ unsafe {
+ uint* raw_ptr = (uint*)(((byte*)Handle) + abi_info.GetFieldOffset("min_nle_priority"));
+ return (*raw_ptr);
+ }
+ }
+ }
+
+ public uint MaxNlePriority {
+ get {
+ unsafe {
+ uint* raw_ptr = (uint*)(((byte*)Handle) + abi_info.GetFieldOffset("max_nle_priority"));
+ return (*raw_ptr);
+ }
+ }
+ }
+
+ [GLib.Signal("clip-added")]
+ public event GES.ClipAddedHandler ClipAdded {
+ add {
+ this.AddSignalHandler ("clip-added", value, typeof (GES.ClipAddedArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("clip-added", value);
+ }
+ }
+
+ [GLib.Signal("clip-removed")]
+ public event GES.ClipRemovedHandler ClipRemoved {
+ add {
+ this.AddSignalHandler ("clip-removed", value, typeof (GES.ClipRemovedArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("clip-removed", value);
+ }
+ }
+
+ static ClipAddedNativeDelegate ClipAdded_cb_delegate;
+ static ClipAddedNativeDelegate ClipAddedVMCallback {
+ get {
+ if (ClipAdded_cb_delegate == null)
+ ClipAdded_cb_delegate = new ClipAddedNativeDelegate (ClipAdded_cb);
+ return ClipAdded_cb_delegate;
+ }
+ }
+
+ static void OverrideClipAdded (GLib.GType gtype)
+ {
+ OverrideClipAdded (gtype, ClipAddedVMCallback);
+ }
+
+ static void OverrideClipAdded (GLib.GType gtype, ClipAddedNativeDelegate callback)
+ {
+ OverrideVirtualMethod (gtype, "clip-added", callback);
+ }
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void ClipAddedNativeDelegate (IntPtr inst, IntPtr clip);
+
+ static void ClipAdded_cb (IntPtr inst, IntPtr clip)
+ {
+ try {
+ Layer __obj = GLib.Object.GetObject (inst, false) as Layer;
+ __obj.OnClipAdded (GLib.Object.GetObject(clip) as GES.Clip);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Layer), ConnectionMethod="OverrideClipAdded")]
+ protected virtual void OnClipAdded (GES.Clip clip)
+ {
+ InternalClipAdded (clip);
+ }
+
+ private void InternalClipAdded (GES.Clip clip)
+ {
+ GLib.Value ret = GLib.Value.Empty;
+ GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
+ GLib.Value[] vals = new GLib.Value [2];
+ vals [0] = new GLib.Value (this);
+ inst_and_params.Append (vals [0]);
+ vals [1] = new GLib.Value (clip);
+ inst_and_params.Append (vals [1]);
+ g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
+ foreach (GLib.Value v in vals)
+ v.Dispose ();
+ }
+
+ static ClipRemovedNativeDelegate ClipRemoved_cb_delegate;
+ static ClipRemovedNativeDelegate ClipRemovedVMCallback {
+ get {
+ if (ClipRemoved_cb_delegate == null)
+ ClipRemoved_cb_delegate = new ClipRemovedNativeDelegate (ClipRemoved_cb);
+ return ClipRemoved_cb_delegate;
+ }
+ }
+
+ static void OverrideClipRemoved (GLib.GType gtype)
+ {
+ OverrideClipRemoved (gtype, ClipRemovedVMCallback);
+ }
+
+ static void OverrideClipRemoved (GLib.GType gtype, ClipRemovedNativeDelegate callback)
+ {
+ OverrideVirtualMethod (gtype, "clip-removed", callback);
+ }
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void ClipRemovedNativeDelegate (IntPtr inst, IntPtr clip);
+
+ static void ClipRemoved_cb (IntPtr inst, IntPtr clip)
+ {
+ try {
+ Layer __obj = GLib.Object.GetObject (inst, false) as Layer;
+ __obj.OnClipRemoved (GLib.Object.GetObject(clip) as GES.Clip);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Layer), ConnectionMethod="OverrideClipRemoved")]
+ protected virtual void OnClipRemoved (GES.Clip clip)
+ {
+ InternalClipRemoved (clip);
+ }
+
+ private void InternalClipRemoved (GES.Clip clip)
+ {
+ GLib.Value ret = GLib.Value.Empty;
+ GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
+ GLib.Value[] vals = new GLib.Value [2];
+ vals [0] = new GLib.Value (this);
+ inst_and_params.Append (vals [0]);
+ vals [1] = new GLib.Value (clip);
+ inst_and_params.Append (vals [1]);
+ g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
+ foreach (GLib.Value v in vals)
+ v.Dispose ();
+ }
+
+ static ObjectAddedNativeDelegate ObjectAdded_cb_delegate;
+ static ObjectAddedNativeDelegate ObjectAddedVMCallback {
+ get {
+ if (ObjectAdded_cb_delegate == null)
+ ObjectAdded_cb_delegate = new ObjectAddedNativeDelegate (ObjectAdded_cb);
+ return ObjectAdded_cb_delegate;
+ }
+ }
+
+ static void OverrideObjectAdded (GLib.GType gtype)
+ {
+ OverrideObjectAdded (gtype, ObjectAddedVMCallback);
+ }
+
+ static void OverrideObjectAdded (GLib.GType gtype, ObjectAddedNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("object_added"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void ObjectAddedNativeDelegate (IntPtr inst, IntPtr _object);
+
+ static void ObjectAdded_cb (IntPtr inst, IntPtr _object)
+ {
+ try {
+ Layer __obj = GLib.Object.GetObject (inst, false) as Layer;
+ __obj.OnObjectAdded (GLib.Object.GetObject(_object) as GES.Clip);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Layer), ConnectionMethod="OverrideObjectAdded")]
+ protected virtual void OnObjectAdded (GES.Clip _object)
+ {
+ InternalObjectAdded (_object);
+ }
+
+ private void InternalObjectAdded (GES.Clip _object)
+ {
+ ObjectAddedNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("object_added"));
+ unmanaged = (ObjectAddedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ObjectAddedNativeDelegate));
+ }
+ if (unmanaged == null) return;
+
+ unmanaged (this.Handle, _object == null ? IntPtr.Zero : _object.Handle);
+ }
+
+ static ObjectRemovedNativeDelegate ObjectRemoved_cb_delegate;
+ static ObjectRemovedNativeDelegate ObjectRemovedVMCallback {
+ get {
+ if (ObjectRemoved_cb_delegate == null)
+ ObjectRemoved_cb_delegate = new ObjectRemovedNativeDelegate (ObjectRemoved_cb);
+ return ObjectRemoved_cb_delegate;
+ }
+ }
+
+ static void OverrideObjectRemoved (GLib.GType gtype)
+ {
+ OverrideObjectRemoved (gtype, ObjectRemovedVMCallback);
+ }
+
+ static void OverrideObjectRemoved (GLib.GType gtype, ObjectRemovedNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("object_removed"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void ObjectRemovedNativeDelegate (IntPtr inst, IntPtr _object);
+
+ static void ObjectRemoved_cb (IntPtr inst, IntPtr _object)
+ {
+ try {
+ Layer __obj = GLib.Object.GetObject (inst, false) as Layer;
+ __obj.OnObjectRemoved (GLib.Object.GetObject(_object) as GES.Clip);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Layer), ConnectionMethod="OverrideObjectRemoved")]
+ protected virtual void OnObjectRemoved (GES.Clip _object)
+ {
+ InternalObjectRemoved (_object);
+ }
+
+ private void InternalObjectRemoved (GES.Clip _object)
+ {
+ ObjectRemovedNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("object_removed"));
+ unmanaged = (ObjectRemovedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ObjectRemovedNativeDelegate));
+ }
+ if (unmanaged == null) return;
+
+ unmanaged (this.Handle, _object == null ? IntPtr.Zero : _object.Handle);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("get_objects"
+ , GLib.Object.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // get_objects
+ , null
+ , "object_added"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("object_added"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // object_added
+ , "get_objects"
+ , "object_removed"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("object_removed"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // object_removed
+ , "object_added"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "object_removed"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_layer_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_layer_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_layer_add_asset(IntPtr raw, IntPtr asset, ulong start, ulong inpoint, ulong duration, int track_types);
+
+ 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;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_layer_add_clip(IntPtr raw, IntPtr clip);
+
+ public bool AddClip(GES.Clip clip) {
+ bool raw_ret = ges_layer_add_clip(Handle, clip == null ? IntPtr.Zero : clip.Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_layer_get_clips(IntPtr raw);
+
+ public GES.Clip[] Clips {
+ get {
+ IntPtr raw_ret = ges_layer_get_clips(Handle);
+ GES.Clip[] ret = (GES.Clip[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(GES.Clip));
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_layer_get_clips_in_interval(IntPtr raw, ulong start, ulong end);
+
+ public GES.Clip[] GetClipsInInterval(ulong start, ulong end) {
+ IntPtr raw_ret = ges_layer_get_clips_in_interval(Handle, start, end);
+ GES.Clip[] ret = (GES.Clip[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(GES.Clip));
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern ulong ges_layer_get_duration(IntPtr raw);
+
+ public ulong Duration {
+ get {
+ ulong raw_ret = ges_layer_get_duration(Handle);
+ ulong ret = raw_ret;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_layer_is_empty(IntPtr raw);
+
+ public bool IsEmpty {
+ get {
+ bool raw_ret = ges_layer_is_empty(Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_layer_remove_clip(IntPtr raw, IntPtr clip);
+
+ public bool RemoveClip(GES.Clip clip) {
+ bool raw_ret = ges_layer_remove_clip(Handle, clip == null ? IntPtr.Zero : clip.Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_extractable_get_asset(IntPtr raw);
+
+ public GES.Asset Asset {
+ get {
+ IntPtr raw_ret = ges_extractable_get_asset(Handle);
+ GES.Asset ret = GLib.Object.GetObject(raw_ret) as GES.Asset;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_extractable_get_id(IntPtr raw);
+
+ public string Id {
+ get {
+ IntPtr raw_ret = ges_extractable_get_id(Handle);
+ string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_extractable_set_asset(IntPtr raw, IntPtr asset);
+
+ 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;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_add_metas_from_string(IntPtr raw, IntPtr str);
+
+ public bool AddMetasFromString(string str) {
+ IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (str);
+ bool raw_ret = ges_meta_container_add_metas_from_string(Handle, native_str);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_str);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_check_meta_registered(IntPtr raw, IntPtr meta_item, int flags, IntPtr type);
+
+ public bool CheckMetaRegistered(string meta_item, GES.MetaFlag flags, GLib.GType type) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_check_meta_registered(Handle, native_meta_item, (int) flags, type.Val);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_meta_container_foreach(IntPtr raw, GESSharp.MetaForeachFuncNative func, IntPtr user_data);
+
+ public void Foreach(GES.MetaForeachFunc func) {
+ GESSharp.MetaForeachFuncWrapper func_wrapper = new GESSharp.MetaForeachFuncWrapper (func);
+ ges_meta_container_foreach(Handle, func_wrapper.NativeDelegate, IntPtr.Zero);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_boolean(IntPtr raw, IntPtr meta_item, out bool dest);
+
+ public bool GetBoolean(string meta_item, out bool dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_boolean(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_date_time(IntPtr raw, IntPtr meta_item, out IntPtr dest);
+
+ public bool GetDateTime(string meta_item, out Gst.DateTime dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_dest;
+ bool raw_ret = ges_meta_container_get_date_time(Handle, native_meta_item, out native_dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ dest = native_dest == IntPtr.Zero ? null : (Gst.DateTime) GLib.Opaque.GetOpaque (native_dest, typeof (Gst.DateTime), true);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_double(IntPtr raw, IntPtr meta_item, out double dest);
+
+ public bool GetDouble(string meta_item, out double dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_double(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_float(IntPtr raw, IntPtr meta_item, out float dest);
+
+ public bool GetFloat(string meta_item, out float dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_float(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_int(IntPtr raw, IntPtr meta_item, out int dest);
+
+ public bool GetInt(string meta_item, out int dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_int(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_int64(IntPtr raw, IntPtr meta_item, out long dest);
+
+ public bool GetInt64(string meta_item, out long dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_int64(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_container_get_meta(IntPtr raw, IntPtr key);
+
+ public GLib.Value GetMeta(string key) {
+ IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup (key);
+ IntPtr raw_ret = ges_meta_container_get_meta(Handle, native_key);
+ GLib.Value ret = (GLib.Value) Marshal.PtrToStructure (raw_ret, typeof (GLib.Value));
+ GLib.Marshaller.Free (native_key);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_container_get_string(IntPtr raw, IntPtr meta_item);
+
+ public string GetString(string meta_item) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr raw_ret = ges_meta_container_get_string(Handle, native_meta_item);
+ string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_uint(IntPtr raw, IntPtr meta_item, out uint dest);
+
+ public bool GetUint(string meta_item, out uint dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_uint(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_uint64(IntPtr raw, IntPtr meta_item, out ulong dest);
+
+ public bool GetUint64(string meta_item, out ulong dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_uint64(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_container_metas_to_string(IntPtr raw);
+
+ public string MetasToString() {
+ IntPtr raw_ret = ges_meta_container_metas_to_string(Handle);
+ string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
+
+ public bool RegisterMeta(GES.MetaFlag flags, string meta_item, GLib.Value value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
+ bool raw_ret = ges_meta_container_register_meta(Handle, (int) flags, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ Marshal.FreeHGlobal (native_value);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_boolean(IntPtr raw, int flags, IntPtr meta_item, bool value);
+
+ public bool RegisterMetaBoolean(GES.MetaFlag flags, string meta_item, bool value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_boolean(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_date_time(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
+
+ public bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item, Gst.DateTime value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_date_time(Handle, (int) flags, native_meta_item, value == null ? IntPtr.Zero : value.Handle);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ public bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item) {
+ return RegisterMetaDateTime (flags, meta_item, null);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_double(IntPtr raw, int flags, IntPtr meta_item, double value);
+
+ public bool RegisterMetaDouble(GES.MetaFlag flags, string meta_item, double value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_double(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_float(IntPtr raw, int flags, IntPtr meta_item, float value);
+
+ public bool RegisterMetaFloat(GES.MetaFlag flags, string meta_item, float value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_float(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_int(IntPtr raw, int flags, IntPtr meta_item, int value);
+
+ public bool RegisterMetaInt(GES.MetaFlag flags, string meta_item, int value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_int(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_int64(IntPtr raw, int flags, IntPtr meta_item, long value);
+
+ public bool RegisterMetaInt64(GES.MetaFlag flags, string meta_item, long value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_int64(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_string(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
+
+ public bool RegisterMetaString(GES.MetaFlag flags, string meta_item, string value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ bool raw_ret = ges_meta_container_register_meta_string(Handle, (int) flags, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ GLib.Marshaller.Free (native_value);
+ return ret;
+ }
+
+ public bool RegisterMetaString(GES.MetaFlag flags, string meta_item) {
+ return RegisterMetaString (flags, meta_item, null);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_uint(IntPtr raw, int flags, IntPtr meta_item, uint value);
+
+ public bool RegisterMetaUint(GES.MetaFlag flags, string meta_item, uint value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_uint(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_uint64(IntPtr raw, int flags, IntPtr meta_item, ulong value);
+
+ public bool RegisterMetaUint64(GES.MetaFlag flags, string meta_item, ulong value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_uint64(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_boolean(IntPtr raw, IntPtr meta_item, bool value);
+
+ public bool SetBoolean(string meta_item, bool value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_boolean(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_date_time(IntPtr raw, IntPtr meta_item, IntPtr value);
+
+ public bool SetDateTime(string meta_item, Gst.DateTime value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_date_time(Handle, native_meta_item, value == null ? IntPtr.Zero : value.Handle);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_double(IntPtr raw, IntPtr meta_item, double value);
+
+ public bool SetDouble(string meta_item, double value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_double(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_float(IntPtr raw, IntPtr meta_item, float value);
+
+ public bool SetFloat(string meta_item, float value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_float(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_int(IntPtr raw, IntPtr meta_item, int value);
+
+ public bool SetInt(string meta_item, int value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_int(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_int64(IntPtr raw, IntPtr meta_item, long value);
+
+ public bool SetInt64(string meta_item, long value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_int64(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_meta(IntPtr raw, IntPtr meta_item, IntPtr value);
+
+ public bool SetMeta(string meta_item, GLib.Value value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
+ bool raw_ret = ges_meta_container_set_meta(Handle, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ Marshal.FreeHGlobal (native_value);
+ return ret;
+ }
+
+ public bool SetMeta(string meta_item) {
+ return SetMeta (meta_item, GLib.Value.Empty);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_string(IntPtr raw, IntPtr meta_item, IntPtr value);
+
+ public bool SetString(string meta_item, string value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ bool raw_ret = ges_meta_container_set_string(Handle, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ GLib.Marshaller.Free (native_value);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_uint(IntPtr raw, IntPtr meta_item, uint value);
+
+ public bool SetUint(string meta_item, uint value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_uint(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_uint64(IntPtr raw, IntPtr meta_item, ulong value);
+
+ public bool SetUint64(string meta_item, ulong value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_uint64(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [GLib.Signal("notify-meta")]
+ public event GES.NotifyMetaHandler NotifyMeta {
+ add {
+ this.AddSignalHandler ("notify-meta", value, typeof (GES.NotifyMetaArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("notify-meta", value);
+ }
+ }
+
+ static NotifyMetaNativeDelegate NotifyMeta_cb_delegate;
+ static NotifyMetaNativeDelegate NotifyMetaVMCallback {
+ get {
+ if (NotifyMeta_cb_delegate == null)
+ NotifyMeta_cb_delegate = new NotifyMetaNativeDelegate (NotifyMeta_cb);
+ return NotifyMeta_cb_delegate;
+ }
+ }
+
+ static void OverrideNotifyMeta (GLib.GType gtype)
+ {
+ OverrideNotifyMeta (gtype, NotifyMetaVMCallback);
+ }
+
+ static void OverrideNotifyMeta (GLib.GType gtype, NotifyMetaNativeDelegate callback)
+ {
+ OverrideVirtualMethod (gtype, "notify-meta", callback);
+ }
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void NotifyMetaNativeDelegate (IntPtr inst, IntPtr _object, IntPtr p0);
+
+ static void NotifyMeta_cb (IntPtr inst, IntPtr _object, IntPtr p0)
+ {
+ try {
+ GES.Layer __obj = GLib.Object.GetObject (inst, false) as GES.Layer;
+ __obj.OnNotifyMeta (GLib.Marshaller.Utf8PtrToString (_object), (GLib.Value) Marshal.PtrToStructure (p0, typeof (GLib.Value)));
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Layer), ConnectionMethod="OverrideNotifyMeta")]
+ protected virtual void OnNotifyMeta (string _object, GLib.Value p0)
+ {
+ InternalNotifyMeta (_object, p0);
+ }
+
+ private void InternalNotifyMeta (string _object, GLib.Value p0)
+ {
+ GLib.Value ret = GLib.Value.Empty;
+ GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
+ GLib.Value[] vals = new GLib.Value [3];
+ vals [0] = new GLib.Value (this);
+ inst_and_params.Append (vals [0]);
+ vals [1] = new GLib.Value (_object);
+ inst_and_params.Append (vals [1]);
+ vals [2] = new GLib.Value (p0);
+ inst_and_params.Append (vals [2]);
+ g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
+ foreach (GLib.Value v in vals)
+ v.Dispose ();
+ }
+
+
+ static Layer ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("timeline"
+ , GLib.Object.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // timeline
+ , null
+ , "min_nle_priority"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("min_nle_priority"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(uint)) // min_nle_priority
+ , "timeline"
+ , "max_nle_priority"
+ , (long) Marshal.OffsetOf(typeof(GESLayer_min_nle_priorityAlign), "min_nle_priority")
+ , 0
+ ),
+ new GLib.AbiField("max_nle_priority"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(uint)) // max_nle_priority
+ , "min_nle_priority"
+ , "priv"
+ , (long) Marshal.OffsetOf(typeof(GESLayer_max_nle_priorityAlign), "max_nle_priority")
+ , 0
+ ),
+ new GLib.AbiField("priv"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , "max_nle_priority"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct GESLayer_min_nle_priorityAlign
+ {
+ sbyte f1;
+ private uint min_nle_priority;
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct GESLayer_max_nle_priorityAlign
+ {
+ sbyte f1;
+ private uint max_nle_priority;
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/LayerAddedHandler.cs b/ges/generated/GES/LayerAddedHandler.cs
new file mode 100644
index 0000000..d324cd1
--- /dev/null
+++ b/ges/generated/GES/LayerAddedHandler.cs
@@ -0,0 +1,18 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void LayerAddedHandler(object o, LayerAddedArgs args);
+
+ public class LayerAddedArgs : GLib.SignalArgs {
+ public GES.Layer Layer{
+ get {
+ return (GES.Layer) Args [0];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/LayerRemovedHandler.cs b/ges/generated/GES/LayerRemovedHandler.cs
new file mode 100644
index 0000000..a190710
--- /dev/null
+++ b/ges/generated/GES/LayerRemovedHandler.cs
@@ -0,0 +1,18 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void LayerRemovedHandler(object o, LayerRemovedArgs args);
+
+ public class LayerRemovedArgs : GLib.SignalArgs {
+ public GES.Layer Layer{
+ get {
+ return (GES.Layer) Args [0];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/LoadedHandler.cs b/ges/generated/GES/LoadedHandler.cs
new file mode 100644
index 0000000..15b56b1
--- /dev/null
+++ b/ges/generated/GES/LoadedHandler.cs
@@ -0,0 +1,18 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void LoadedHandler(object o, LoadedArgs args);
+
+ public class LoadedArgs : GLib.SignalArgs {
+ public GES.Timeline Timeline{
+ get {
+ return (GES.Timeline) Args [0];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/MetaContainerAdapter.cs b/ges/generated/GES/MetaContainerAdapter.cs
new file mode 100644
index 0000000..df5c440
--- /dev/null
+++ b/ges/generated/GES/MetaContainerAdapter.cs
@@ -0,0 +1,508 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class MetaContainerAdapter : GLib.GInterfaceAdapter, GES.IMetaContainer {
+
+ [StructLayout (LayoutKind.Sequential)]
+ struct GESMetaContainerInterface {
+ [MarshalAs (UnmanagedType.ByValArray, SizeConst=4)]
+ public IntPtr[] _gesGesReserved;
+ }
+
+ static GESMetaContainerInterface iface;
+
+ static MetaContainerAdapter ()
+ {
+ GLib.GType.Register (_gtype, typeof (MetaContainerAdapter));
+ }
+
+ static void Initialize (IntPtr ptr, IntPtr data)
+ {
+ }
+
+ GLib.Object implementor;
+
+ public MetaContainerAdapter ()
+ {
+ InitHandler = new GLib.GInterfaceInitHandler (Initialize);
+ }
+
+ public MetaContainerAdapter (IMetaContainerImplementor 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;
+ }
+
+ public MetaContainerAdapter (IntPtr handle)
+ {
+ if (!_gtype.IsInstance (handle))
+ throw new ArgumentException ("The gobject doesn't implement the GInterface of this adapter", "handle");
+ implementor = GLib.Object.GetObject (handle);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_container_get_type();
+
+ private static GLib.GType _gtype = new GLib.GType (ges_meta_container_get_type ());
+
+ public static GLib.GType GType {
+ get {
+ return _gtype;
+ }
+ }
+
+ public override GLib.GType GInterfaceGType {
+ get {
+ return _gtype;
+ }
+ }
+
+ public override IntPtr Handle {
+ get {
+ return implementor.Handle;
+ }
+ }
+
+ public IntPtr OwnedHandle {
+ get {
+ return implementor.OwnedHandle;
+ }
+ }
+
+ public static IMetaContainer GetObject (IntPtr handle, bool owned)
+ {
+ GLib.Object obj = GLib.Object.GetObject (handle, owned);
+ return GetObject (obj);
+ }
+
+ public static IMetaContainer GetObject (GLib.Object obj)
+ {
+ if (obj == null)
+ return null;
+ else if (obj is IMetaContainerImplementor)
+ return new MetaContainerAdapter (obj as IMetaContainerImplementor);
+ else if (obj as IMetaContainer == null)
+ return new MetaContainerAdapter (obj.Handle);
+ else
+ return obj as IMetaContainer;
+ }
+
+ public IMetaContainerImplementor Implementor {
+ get {
+ return implementor as IMetaContainerImplementor;
+ }
+ }
+
+ [GLib.Signal("notify-meta")]
+ public event GES.NotifyMetaHandler NotifyMeta {
+ add {
+ GLib.Object.GetObject (Handle).AddSignalHandler ("notify-meta", value, typeof (GES.NotifyMetaArgs));
+ }
+ remove {
+ GLib.Object.GetObject (Handle).RemoveSignalHandler ("notify-meta", value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_add_metas_from_string(IntPtr raw, IntPtr str);
+
+ public bool AddMetasFromString(string str) {
+ IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (str);
+ bool raw_ret = ges_meta_container_add_metas_from_string(Handle, native_str);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_str);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_check_meta_registered(IntPtr raw, IntPtr meta_item, int flags, IntPtr type);
+
+ public bool CheckMetaRegistered(string meta_item, GES.MetaFlag flags, GLib.GType type) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_check_meta_registered(Handle, native_meta_item, (int) flags, type.Val);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_meta_container_foreach(IntPtr raw, GESSharp.MetaForeachFuncNative func, IntPtr user_data);
+
+ public void Foreach(GES.MetaForeachFunc func) {
+ GESSharp.MetaForeachFuncWrapper func_wrapper = new GESSharp.MetaForeachFuncWrapper (func);
+ ges_meta_container_foreach(Handle, func_wrapper.NativeDelegate, IntPtr.Zero);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_boolean(IntPtr raw, IntPtr meta_item, out bool dest);
+
+ public bool GetBoolean(string meta_item, out bool dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_boolean(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_date_time(IntPtr raw, IntPtr meta_item, out IntPtr dest);
+
+ public bool GetDateTime(string meta_item, out Gst.DateTime dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_dest;
+ bool raw_ret = ges_meta_container_get_date_time(Handle, native_meta_item, out native_dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ dest = native_dest == IntPtr.Zero ? null : (Gst.DateTime) GLib.Opaque.GetOpaque (native_dest, typeof (Gst.DateTime), true);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_double(IntPtr raw, IntPtr meta_item, out double dest);
+
+ public bool GetDouble(string meta_item, out double dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_double(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_float(IntPtr raw, IntPtr meta_item, out float dest);
+
+ public bool GetFloat(string meta_item, out float dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_float(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_int(IntPtr raw, IntPtr meta_item, out int dest);
+
+ public bool GetInt(string meta_item, out int dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_int(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_int64(IntPtr raw, IntPtr meta_item, out long dest);
+
+ public bool GetInt64(string meta_item, out long dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_int64(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_container_get_meta(IntPtr raw, IntPtr key);
+
+ public GLib.Value GetMeta(string key) {
+ IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup (key);
+ IntPtr raw_ret = ges_meta_container_get_meta(Handle, native_key);
+ GLib.Value ret = (GLib.Value) Marshal.PtrToStructure (raw_ret, typeof (GLib.Value));
+ GLib.Marshaller.Free (native_key);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_container_get_string(IntPtr raw, IntPtr meta_item);
+
+ public string GetString(string meta_item) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr raw_ret = ges_meta_container_get_string(Handle, native_meta_item);
+ string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_uint(IntPtr raw, IntPtr meta_item, out uint dest);
+
+ public bool GetUint(string meta_item, out uint dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_uint(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_uint64(IntPtr raw, IntPtr meta_item, out ulong dest);
+
+ public bool GetUint64(string meta_item, out ulong dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_uint64(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_container_metas_to_string(IntPtr raw);
+
+ public string MetasToString() {
+ IntPtr raw_ret = ges_meta_container_metas_to_string(Handle);
+ string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
+
+ public bool RegisterMeta(GES.MetaFlag flags, string meta_item, GLib.Value value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
+ bool raw_ret = ges_meta_container_register_meta(Handle, (int) flags, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ Marshal.FreeHGlobal (native_value);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_boolean(IntPtr raw, int flags, IntPtr meta_item, bool value);
+
+ public bool RegisterMetaBoolean(GES.MetaFlag flags, string meta_item, bool value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_boolean(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_date_time(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
+
+ public bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item, Gst.DateTime value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_date_time(Handle, (int) flags, native_meta_item, value == null ? IntPtr.Zero : value.Handle);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ public bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item) {
+ return RegisterMetaDateTime (flags, meta_item, null);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_double(IntPtr raw, int flags, IntPtr meta_item, double value);
+
+ public bool RegisterMetaDouble(GES.MetaFlag flags, string meta_item, double value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_double(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_float(IntPtr raw, int flags, IntPtr meta_item, float value);
+
+ public bool RegisterMetaFloat(GES.MetaFlag flags, string meta_item, float value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_float(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_int(IntPtr raw, int flags, IntPtr meta_item, int value);
+
+ public bool RegisterMetaInt(GES.MetaFlag flags, string meta_item, int value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_int(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_int64(IntPtr raw, int flags, IntPtr meta_item, long value);
+
+ public bool RegisterMetaInt64(GES.MetaFlag flags, string meta_item, long value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_int64(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_string(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
+
+ public bool RegisterMetaString(GES.MetaFlag flags, string meta_item, string value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ bool raw_ret = ges_meta_container_register_meta_string(Handle, (int) flags, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ GLib.Marshaller.Free (native_value);
+ return ret;
+ }
+
+ public bool RegisterMetaString(GES.MetaFlag flags, string meta_item) {
+ return RegisterMetaString (flags, meta_item, null);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_uint(IntPtr raw, int flags, IntPtr meta_item, uint value);
+
+ public bool RegisterMetaUint(GES.MetaFlag flags, string meta_item, uint value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_uint(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_uint64(IntPtr raw, int flags, IntPtr meta_item, ulong value);
+
+ public bool RegisterMetaUint64(GES.MetaFlag flags, string meta_item, ulong value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_uint64(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_boolean(IntPtr raw, IntPtr meta_item, bool value);
+
+ public bool SetBoolean(string meta_item, bool value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_boolean(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_date_time(IntPtr raw, IntPtr meta_item, IntPtr value);
+
+ public bool SetDateTime(string meta_item, Gst.DateTime value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_date_time(Handle, native_meta_item, value == null ? IntPtr.Zero : value.Handle);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_double(IntPtr raw, IntPtr meta_item, double value);
+
+ public bool SetDouble(string meta_item, double value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_double(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_float(IntPtr raw, IntPtr meta_item, float value);
+
+ public bool SetFloat(string meta_item, float value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_float(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_int(IntPtr raw, IntPtr meta_item, int value);
+
+ public bool SetInt(string meta_item, int value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_int(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_int64(IntPtr raw, IntPtr meta_item, long value);
+
+ public bool SetInt64(string meta_item, long value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_int64(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_meta(IntPtr raw, IntPtr meta_item, IntPtr value);
+
+ public bool SetMeta(string meta_item, GLib.Value value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
+ bool raw_ret = ges_meta_container_set_meta(Handle, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ Marshal.FreeHGlobal (native_value);
+ return ret;
+ }
+
+ public bool SetMeta(string meta_item) {
+ return SetMeta (meta_item, GLib.Value.Empty);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_string(IntPtr raw, IntPtr meta_item, IntPtr value);
+
+ public bool SetString(string meta_item, string value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ bool raw_ret = ges_meta_container_set_string(Handle, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ GLib.Marshaller.Free (native_value);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_uint(IntPtr raw, IntPtr meta_item, uint value);
+
+ public bool SetUint(string meta_item, uint value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_uint(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_uint64(IntPtr raw, IntPtr meta_item, ulong value);
+
+ public bool SetUint64(string meta_item, ulong value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_uint64(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/MetaFlag.cs b/ges/generated/GES/MetaFlag.cs
new file mode 100644
index 0000000..b43d31b
--- /dev/null
+++ b/ges/generated/GES/MetaFlag.cs
@@ -0,0 +1,30 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ [Flags]
+ [GLib.GType (typeof (GES.MetaFlagGType))]
+ public enum MetaFlag {
+
+ Readable = 1,
+ Writable = 2,
+ Readwrite = 3,
+ }
+
+ internal class MetaFlagGType {
+ [DllImport ("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_flag_get_type ();
+
+ public static GLib.GType GType {
+ get {
+ return new GLib.GType (ges_meta_flag_get_type ());
+ }
+ }
+ }
+#endregion
+}
diff --git a/ges/generated/GES/MetaForeachFunc.cs b/ges/generated/GES/MetaForeachFunc.cs
new file mode 100644
index 0000000..aa1ae5b
--- /dev/null
+++ b/ges/generated/GES/MetaForeachFunc.cs
@@ -0,0 +1,10 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void MetaForeachFunc(GES.IMetaContainer container, string key, GLib.Value value);
+
+}
diff --git a/ges/generated/GES/MultiFileSource.cs b/ges/generated/GES/MultiFileSource.cs
new file mode 100644
index 0000000..5133221
--- /dev/null
+++ b/ges/generated/GES/MultiFileSource.cs
@@ -0,0 +1,126 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class MultiFileSource : GES.VideoSource {
+
+ public MultiFileSource (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_multi_file_source_new(IntPtr uri);
+
+ public MultiFileSource (string uri) : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (MultiFileSource)) {
+ var vals = new List<GLib.Value> ();
+ var names = new List<string> ();
+ names.Add ("uri");
+ vals.Add (new GLib.Value (uri));
+ CreateNativeObject (names.ToArray (), vals.ToArray ());
+ return;
+ }
+ IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
+ Raw = ges_multi_file_source_new(native_uri);
+ GLib.Marshaller.Free (native_uri);
+ }
+
+ [GLib.Property ("uri")]
+ public string Uri {
+ get {
+ GLib.Value val = GetProperty ("uri");
+ string ret = (string) val;
+ val.Dispose ();
+ return ret;
+ }
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.VideoSource.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_multi_file_source_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_multi_file_source_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static MultiFileSource ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("uri"
+ , GES.VideoSource.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // uri
+ , null
+ , "priv"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("priv"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , "uri"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/NotifyMetaHandler.cs b/ges/generated/GES/NotifyMetaHandler.cs
new file mode 100644
index 0000000..3d01846
--- /dev/null
+++ b/ges/generated/GES/NotifyMetaHandler.cs
@@ -0,0 +1,24 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void NotifyMetaHandler(object o, NotifyMetaArgs args);
+
+ public class NotifyMetaArgs : GLib.SignalArgs {
+ public string Object{
+ get {
+ return (string) Args [0];
+ }
+ }
+
+ public GLib.Value P0{
+ get {
+ return (GLib.Value) Args [1];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/Operation.cs b/ges/generated/GES/Operation.cs
new file mode 100644
index 0000000..cd00ac3
--- /dev/null
+++ b/ges/generated/GES/Operation.cs
@@ -0,0 +1,95 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class Operation : GES.TrackElement {
+
+ protected Operation (IntPtr raw) : base(raw) {}
+
+ protected Operation() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.TrackElement.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_operation_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_operation_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static Operation ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.TrackElement.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/OperationClip.cs b/ges/generated/GES/OperationClip.cs
new file mode 100644
index 0000000..869d836
--- /dev/null
+++ b/ges/generated/GES/OperationClip.cs
@@ -0,0 +1,95 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class OperationClip : GES.Clip {
+
+ protected OperationClip (IntPtr raw) : base(raw) {}
+
+ protected OperationClip() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.Clip.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_operation_clip_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_operation_clip_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static OperationClip ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.Clip.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/OverlayClip.cs b/ges/generated/GES/OverlayClip.cs
new file mode 100644
index 0000000..3e94c81
--- /dev/null
+++ b/ges/generated/GES/OverlayClip.cs
@@ -0,0 +1,95 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class OverlayClip : GES.OperationClip {
+
+ protected OverlayClip (IntPtr raw) : base(raw) {}
+
+ protected OverlayClip() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.OperationClip.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_overlay_clip_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_overlay_clip_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static OverlayClip ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.OperationClip.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/Pipeline.cs b/ges/generated/GES/Pipeline.cs
new file mode 100644
index 0000000..64cea89
--- /dev/null
+++ b/ges/generated/GES/Pipeline.cs
@@ -0,0 +1,334 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class Pipeline : Gst.Pipeline, Gst.Video.IVideoOverlay {
+
+ public Pipeline (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_pipeline_new();
+
+ public Pipeline () : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (Pipeline)) {
+ CreateNativeObject (new string [0], new GLib.Value[0]);
+ return;
+ }
+ Raw = ges_pipeline_new();
+ }
+
+ [GLib.Property ("audio-filter")]
+ public Gst.Element AudioFilter {
+ get {
+ GLib.Value val = GetProperty ("audio-filter");
+ Gst.Element ret = (Gst.Element) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("audio-filter", val);
+ val.Dispose ();
+ }
+ }
+
+ [GLib.Property ("audio-sink")]
+ public Gst.Element AudioSink {
+ get {
+ GLib.Value val = GetProperty ("audio-sink");
+ Gst.Element ret = (Gst.Element) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("audio-sink", val);
+ val.Dispose ();
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_pipeline_get_mode(IntPtr raw);
+
+ [GLib.Property ("mode")]
+ public GES.PipelineFlags Mode {
+ get {
+ int raw_ret = ges_pipeline_get_mode(Handle);
+ GES.PipelineFlags ret = (GES.PipelineFlags) raw_ret;
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value((Enum) value);
+ SetProperty("mode", val);
+ val.Dispose ();
+ }
+ }
+
+ [GLib.Property ("timeline")]
+ public GES.Timeline Timeline {
+ get {
+ GLib.Value val = GetProperty ("timeline");
+ GES.Timeline ret = (GES.Timeline) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("timeline", val);
+ val.Dispose ();
+ }
+ }
+
+ [GLib.Property ("video-filter")]
+ public Gst.Element VideoFilter {
+ get {
+ GLib.Value val = GetProperty ("video-filter");
+ Gst.Element ret = (Gst.Element) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("video-filter", val);
+ val.Dispose ();
+ }
+ }
+
+ [GLib.Property ("video-sink")]
+ public Gst.Element VideoSink {
+ get {
+ GLib.Value val = GetProperty ("video-sink");
+ Gst.Element ret = (Gst.Element) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("video-sink", val);
+ val.Dispose ();
+ }
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , Gst.Pipeline.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_pipeline_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_pipeline_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_pipeline_get_thumbnail(IntPtr raw, IntPtr caps);
+
+ public Gst.Sample GetThumbnail(Gst.Caps caps) {
+ IntPtr raw_ret = ges_pipeline_get_thumbnail(Handle, caps == null ? IntPtr.Zero : caps.Handle);
+ Gst.Sample ret = raw_ret == IntPtr.Zero ? null : (Gst.Sample) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Sample), true);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_pipeline_get_thumbnail_rgb24(IntPtr raw, int width, int height);
+
+ public Gst.Sample GetThumbnailRgb24(int width, int height) {
+ IntPtr raw_ret = ges_pipeline_get_thumbnail_rgb24(Handle, width, height);
+ Gst.Sample ret = raw_ret == IntPtr.Zero ? null : (Gst.Sample) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Sample), true);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_pipeline_preview_get_audio_sink(IntPtr raw);
+
+ public Gst.Element PreviewGetAudioSink() {
+ IntPtr raw_ret = ges_pipeline_preview_get_audio_sink(Handle);
+ Gst.Element ret = GLib.Object.GetObject(raw_ret, true) as Gst.Element;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_pipeline_preview_get_video_sink(IntPtr raw);
+
+ public Gst.Element PreviewGetVideoSink() {
+ IntPtr raw_ret = ges_pipeline_preview_get_video_sink(Handle);
+ Gst.Element ret = GLib.Object.GetObject(raw_ret, true) as Gst.Element;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_pipeline_preview_set_audio_sink(IntPtr raw, IntPtr sink);
+
+ public void PreviewSetAudioSink(Gst.Element sink) {
+ ges_pipeline_preview_set_audio_sink(Handle, sink == null ? IntPtr.Zero : sink.Handle);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_pipeline_preview_set_video_sink(IntPtr raw, IntPtr sink);
+
+ public void PreviewSetVideoSink(Gst.Element sink) {
+ ges_pipeline_preview_set_video_sink(Handle, sink == null ? IntPtr.Zero : sink.Handle);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern unsafe bool ges_pipeline_save_thumbnail(IntPtr raw, int width, int height, IntPtr format, IntPtr location, out IntPtr error);
+
+ public unsafe bool SaveThumbnail(int width, int height, string format, string location) {
+ IntPtr native_format = GLib.Marshaller.StringToPtrGStrdup (format);
+ IntPtr native_location = GLib.Marshaller.StringToPtrGStrdup (location);
+ IntPtr error = IntPtr.Zero;
+ bool raw_ret = ges_pipeline_save_thumbnail(Handle, width, height, native_format, native_location, out error);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_format);
+ GLib.Marshaller.Free (native_location);
+ if (error != IntPtr.Zero) throw new GLib.GException (error);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_pipeline_set_mode(IntPtr raw, int mode);
+
+ public bool SetMode(GES.PipelineFlags mode) {
+ bool raw_ret = ges_pipeline_set_mode(Handle, (int) mode);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_pipeline_set_render_settings(IntPtr raw, IntPtr output_uri, IntPtr profile);
+
+ public bool SetRenderSettings(string output_uri, Gst.PbUtils.EncodingProfile profile) {
+ IntPtr native_output_uri = GLib.Marshaller.StringToPtrGStrdup (output_uri);
+ bool raw_ret = ges_pipeline_set_render_settings(Handle, native_output_uri, profile == null ? IntPtr.Zero : profile.Handle);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_output_uri);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_pipeline_set_timeline(IntPtr raw, IntPtr timeline);
+
+ public bool SetTimeline(GES.Timeline timeline) {
+ bool raw_ret = ges_pipeline_set_timeline(Handle, timeline == null ? IntPtr.Zero : timeline.OwnedHandle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern void gst_video_overlay_expose(IntPtr raw);
+
+ public void Expose() {
+ gst_video_overlay_expose(Handle);
+ }
+
+ [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern void gst_video_overlay_got_window_handle(IntPtr raw, IntPtr handle);
+
+ public void GotWindowHandle(IntPtr handle) {
+ gst_video_overlay_got_window_handle(Handle, handle);
+ }
+
+ [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern void gst_video_overlay_handle_events(IntPtr raw, bool handle_events);
+
+ public void HandleEvents(bool handle_events) {
+ gst_video_overlay_handle_events(Handle, handle_events);
+ }
+
+ [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern void gst_video_overlay_prepare_window_handle(IntPtr raw);
+
+ public void PrepareWindowHandle() {
+ gst_video_overlay_prepare_window_handle(Handle);
+ }
+
+ [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool gst_video_overlay_set_render_rectangle(IntPtr raw, int x, int y, int width, int height);
+
+ public bool SetRenderRectangle(int x, int y, int width, int height) {
+ bool raw_ret = gst_video_overlay_set_render_rectangle(Handle, x, y, width, height);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern void gst_video_overlay_set_window_handle(IntPtr raw, IntPtr handle);
+
+ public IntPtr WindowHandle {
+ set {
+ gst_video_overlay_set_window_handle(Handle, value);
+ }
+ }
+
+
+ static Pipeline ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , Gst.Pipeline.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/PipelineFlags.cs b/ges/generated/GES/PipelineFlags.cs
new file mode 100644
index 0000000..c33d5c1
--- /dev/null
+++ b/ges/generated/GES/PipelineFlags.cs
@@ -0,0 +1,32 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ [Flags]
+ [GLib.GType (typeof (GES.PipelineFlagsGType))]
+ public enum PipelineFlags {
+
+ AudioPreview = 1,
+ VideoPreview = 2,
+ FullPreview = 3,
+ Render = 4,
+ SmartRender = 8,
+ }
+
+ internal class PipelineFlagsGType {
+ [DllImport ("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_pipeline_flags_get_type ();
+
+ public static GLib.GType GType {
+ get {
+ return new GLib.GType (ges_pipeline_flags_get_type ());
+ }
+ }
+ }
+#endregion
+}
diff --git a/ges/generated/GES/PitiviFormatter.cs b/ges/generated/GES/PitiviFormatter.cs
new file mode 100644
index 0000000..a1b2c13
--- /dev/null
+++ b/ges/generated/GES/PitiviFormatter.cs
@@ -0,0 +1,102 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class PitiviFormatter : GES.Formatter {
+
+ public PitiviFormatter (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_pitivi_formatter_new();
+
+ public PitiviFormatter () : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (PitiviFormatter)) {
+ CreateNativeObject (new string [0], new GLib.Value[0]);
+ return;
+ }
+ Raw = ges_pitivi_formatter_new();
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.Formatter.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_pitivi_formatter_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_pitivi_formatter_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static PitiviFormatter ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.Formatter.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/Project.cs b/ges/generated/GES/Project.cs
new file mode 100644
index 0000000..b58d8b7
--- /dev/null
+++ b/ges/generated/GES/Project.cs
@@ -0,0 +1,538 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class Project : GES.Asset {
+
+ public Project (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_project_new(IntPtr uri);
+
+ public Project (string uri) : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (Project)) {
+ var vals = new List<GLib.Value> ();
+ var names = new List<string> ();
+ names.Add ("uri");
+ vals.Add (new GLib.Value (uri));
+ CreateNativeObject (names.ToArray (), vals.ToArray ());
+ return;
+ }
+ IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
+ Raw = ges_project_new(native_uri);
+ GLib.Marshaller.Free (native_uri);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_project_get_uri(IntPtr raw);
+
+ [GLib.Property ("uri")]
+ public string Uri {
+ get {
+ IntPtr raw_ret = ges_project_get_uri(Handle);
+ string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
+ return ret;
+ }
+ }
+
+ [GLib.Signal("asset-removed")]
+ public event GES.AssetRemovedHandler AssetRemoved {
+ add {
+ this.AddSignalHandler ("asset-removed", value, typeof (GES.AssetRemovedArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("asset-removed", value);
+ }
+ }
+
+ [GLib.Signal("loaded")]
+ public event GES.LoadedHandler Loaded {
+ add {
+ this.AddSignalHandler ("loaded", value, typeof (GES.LoadedArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("loaded", value);
+ }
+ }
+
+ [GLib.Signal("asset-added")]
+ public event GES.AssetAddedHandler AssetAdded {
+ add {
+ this.AddSignalHandler ("asset-added", value, typeof (GES.AssetAddedArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("asset-added", value);
+ }
+ }
+
+ [GLib.Signal("asset-loading")]
+ public event GES.AssetLoadingHandler AssetLoading {
+ add {
+ this.AddSignalHandler ("asset-loading", value, typeof (GES.AssetLoadingArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("asset-loading", value);
+ }
+ }
+
+ static AssetAddedNativeDelegate AssetAdded_cb_delegate;
+ static AssetAddedNativeDelegate AssetAddedVMCallback {
+ get {
+ if (AssetAdded_cb_delegate == null)
+ AssetAdded_cb_delegate = new AssetAddedNativeDelegate (AssetAdded_cb);
+ return AssetAdded_cb_delegate;
+ }
+ }
+
+ static void OverrideAssetAdded (GLib.GType gtype)
+ {
+ OverrideAssetAdded (gtype, AssetAddedVMCallback);
+ }
+
+ static void OverrideAssetAdded (GLib.GType gtype, AssetAddedNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("asset_added"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void AssetAddedNativeDelegate (IntPtr inst, IntPtr asset);
+
+ static void AssetAdded_cb (IntPtr inst, IntPtr asset)
+ {
+ try {
+ Project __obj = GLib.Object.GetObject (inst, false) as Project;
+ __obj.OnAssetAdded (GLib.Object.GetObject(asset) as GES.Asset);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Project), ConnectionMethod="OverrideAssetAdded")]
+ protected virtual void OnAssetAdded (GES.Asset asset)
+ {
+ InternalAssetAdded (asset);
+ }
+
+ private void InternalAssetAdded (GES.Asset asset)
+ {
+ AssetAddedNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("asset_added"));
+ unmanaged = (AssetAddedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(AssetAddedNativeDelegate));
+ }
+ if (unmanaged == null) return;
+
+ unmanaged (this.Handle, asset == null ? IntPtr.Zero : asset.Handle);
+ }
+
+ static AssetLoadingNativeDelegate AssetLoading_cb_delegate;
+ static AssetLoadingNativeDelegate AssetLoadingVMCallback {
+ get {
+ if (AssetLoading_cb_delegate == null)
+ AssetLoading_cb_delegate = new AssetLoadingNativeDelegate (AssetLoading_cb);
+ return AssetLoading_cb_delegate;
+ }
+ }
+
+ static void OverrideAssetLoading (GLib.GType gtype)
+ {
+ OverrideAssetLoading (gtype, AssetLoadingVMCallback);
+ }
+
+ static void OverrideAssetLoading (GLib.GType gtype, AssetLoadingNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("asset_loading"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void AssetLoadingNativeDelegate (IntPtr inst, IntPtr asset);
+
+ static void AssetLoading_cb (IntPtr inst, IntPtr asset)
+ {
+ try {
+ Project __obj = GLib.Object.GetObject (inst, false) as Project;
+ __obj.OnAssetLoading (GLib.Object.GetObject(asset) as GES.Asset);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Project), ConnectionMethod="OverrideAssetLoading")]
+ protected virtual void OnAssetLoading (GES.Asset asset)
+ {
+ InternalAssetLoading (asset);
+ }
+
+ private void InternalAssetLoading (GES.Asset asset)
+ {
+ AssetLoadingNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("asset_loading"));
+ unmanaged = (AssetLoadingNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(AssetLoadingNativeDelegate));
+ }
+ if (unmanaged == null) return;
+
+ unmanaged (this.Handle, asset == null ? IntPtr.Zero : asset.Handle);
+ }
+
+ static AssetRemovedNativeDelegate AssetRemoved_cb_delegate;
+ static AssetRemovedNativeDelegate AssetRemovedVMCallback {
+ get {
+ if (AssetRemoved_cb_delegate == null)
+ AssetRemoved_cb_delegate = new AssetRemovedNativeDelegate (AssetRemoved_cb);
+ return AssetRemoved_cb_delegate;
+ }
+ }
+
+ static void OverrideAssetRemoved (GLib.GType gtype)
+ {
+ OverrideAssetRemoved (gtype, AssetRemovedVMCallback);
+ }
+
+ static void OverrideAssetRemoved (GLib.GType gtype, AssetRemovedNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("asset_removed"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void AssetRemovedNativeDelegate (IntPtr inst, IntPtr asset);
+
+ static void AssetRemoved_cb (IntPtr inst, IntPtr asset)
+ {
+ try {
+ Project __obj = GLib.Object.GetObject (inst, false) as Project;
+ __obj.OnAssetRemoved (GLib.Object.GetObject(asset) as GES.Asset);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Project), ConnectionMethod="OverrideAssetRemoved")]
+ protected virtual void OnAssetRemoved (GES.Asset asset)
+ {
+ InternalAssetRemoved (asset);
+ }
+
+ 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);
+ }
+
+ static LoadedNativeDelegate Loaded_cb_delegate;
+ static LoadedNativeDelegate LoadedVMCallback {
+ get {
+ if (Loaded_cb_delegate == null)
+ Loaded_cb_delegate = new LoadedNativeDelegate (Loaded_cb);
+ return Loaded_cb_delegate;
+ }
+ }
+
+ static void OverrideLoaded (GLib.GType gtype)
+ {
+ OverrideLoaded (gtype, LoadedVMCallback);
+ }
+
+ static void OverrideLoaded (GLib.GType gtype, LoadedNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("loaded"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void LoadedNativeDelegate (IntPtr inst, IntPtr timeline);
+
+ static void Loaded_cb (IntPtr inst, IntPtr timeline)
+ {
+ try {
+ Project __obj = GLib.Object.GetObject (inst, false) as Project;
+ __obj.OnLoaded (GLib.Object.GetObject(timeline) as GES.Timeline);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Project), ConnectionMethod="OverrideLoaded")]
+ protected virtual void OnLoaded (GES.Timeline timeline)
+ {
+ InternalLoaded (timeline);
+ }
+
+ private void InternalLoaded (GES.Timeline timeline)
+ {
+ LoadedNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("loaded"));
+ unmanaged = (LoadedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(LoadedNativeDelegate));
+ }
+ if (unmanaged == null) return;
+
+ unmanaged (this.Handle, timeline == null ? IntPtr.Zero : timeline.Handle);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("asset_added"
+ , GES.Asset.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // asset_added
+ , null
+ , "asset_loading"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("asset_loading"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // asset_loading
+ , "asset_added"
+ , "asset_removed"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("asset_removed"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // asset_removed
+ , "asset_loading"
+ , "missing_uri"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("missing_uri"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // missing_uri
+ , "asset_removed"
+ , "loading_error"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("loading_error"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // loading_error
+ , "missing_uri"
+ , "loaded"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("loaded"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // loaded
+ , "loading_error"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "loaded"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_project_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_project_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_project_add_asset(IntPtr raw, IntPtr asset);
+
+ public bool AddAsset(GES.Asset asset) {
+ bool raw_ret = ges_project_add_asset(Handle, asset == null ? IntPtr.Zero : asset.Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_project_add_encoding_profile(IntPtr raw, IntPtr profile);
+
+ public bool AddEncodingProfile(Gst.PbUtils.EncodingProfile profile) {
+ bool raw_ret = ges_project_add_encoding_profile(Handle, profile == null ? IntPtr.Zero : profile.Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_project_create_asset(IntPtr raw, IntPtr id, IntPtr extractable_type);
+
+ public bool CreateAsset(string id, GLib.GType extractable_type) {
+ IntPtr native_id = GLib.Marshaller.StringToPtrGStrdup (id);
+ bool raw_ret = ges_project_create_asset(Handle, native_id, extractable_type.Val);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_id);
+ return ret;
+ }
+
+ public bool CreateAsset(GLib.GType extractable_type) {
+ return CreateAsset (null, extractable_type);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern unsafe IntPtr ges_project_create_asset_sync(IntPtr raw, IntPtr id, IntPtr extractable_type, out IntPtr error);
+
+ 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;
+ }
+
+ public GES.Asset CreateAssetSync(GLib.GType extractable_type) {
+ return CreateAssetSync (null, extractable_type);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_project_get_asset(IntPtr raw, IntPtr id, IntPtr extractable_type);
+
+ 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;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_project_get_loading_assets(IntPtr raw);
+
+ public GES.Asset[] LoadingAssets {
+ get {
+ IntPtr raw_ret = ges_project_get_loading_assets(Handle);
+ GES.Asset[] ret = (GES.Asset[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(GES.Asset));
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_project_list_assets(IntPtr raw, IntPtr filter);
+
+ public GES.Asset[] ListAssets(GLib.GType filter) {
+ IntPtr raw_ret = ges_project_list_assets(Handle, filter.Val);
+ GES.Asset[] ret = (GES.Asset[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(GES.Asset));
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern unsafe bool ges_project_load(IntPtr raw, IntPtr timeline, out IntPtr error);
+
+ public unsafe bool Load(GES.Timeline timeline) {
+ IntPtr error = IntPtr.Zero;
+ bool raw_ret = ges_project_load(Handle, timeline == null ? IntPtr.Zero : timeline.Handle, out error);
+ bool ret = raw_ret;
+ if (error != IntPtr.Zero) throw new GLib.GException (error);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_project_remove_asset(IntPtr raw, IntPtr asset);
+
+ 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;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern unsafe bool ges_project_save(IntPtr raw, IntPtr timeline, IntPtr uri, IntPtr formatter_asset, bool overwrite, out IntPtr error);
+
+ 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 bool Save(GES.Timeline timeline, string uri, bool overwrite) {
+ return Save (timeline, uri, null, overwrite);
+ }
+
+
+ static Project ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.Asset.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "__ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("__ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 20 // __ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/SnappingEndedHandler.cs b/ges/generated/GES/SnappingEndedHandler.cs
new file mode 100644
index 0000000..89ef51e
--- /dev/null
+++ b/ges/generated/GES/SnappingEndedHandler.cs
@@ -0,0 +1,30 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void SnappingEndedHandler(object o, SnappingEndedArgs args);
+
+ public class SnappingEndedArgs : GLib.SignalArgs {
+ public GES.TrackElement Object{
+ get {
+ return (GES.TrackElement) Args [0];
+ }
+ }
+
+ public GES.TrackElement P0{
+ get {
+ return (GES.TrackElement) Args [1];
+ }
+ }
+
+ public ulong P1{
+ get {
+ return (ulong) Args [2];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/SnappingStartedHandler.cs b/ges/generated/GES/SnappingStartedHandler.cs
new file mode 100644
index 0000000..ebd90e7
--- /dev/null
+++ b/ges/generated/GES/SnappingStartedHandler.cs
@@ -0,0 +1,30 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void SnappingStartedHandler(object o, SnappingStartedArgs args);
+
+ public class SnappingStartedArgs : GLib.SignalArgs {
+ public GES.TrackElement Object{
+ get {
+ return (GES.TrackElement) Args [0];
+ }
+ }
+
+ public GES.TrackElement P0{
+ get {
+ return (GES.TrackElement) Args [1];
+ }
+ }
+
+ public ulong P1{
+ get {
+ return (ulong) Args [2];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/Source.cs b/ges/generated/GES/Source.cs
new file mode 100644
index 0000000..732e8a1
--- /dev/null
+++ b/ges/generated/GES/Source.cs
@@ -0,0 +1,95 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class Source : GES.TrackElement {
+
+ public Source (IntPtr raw) : base(raw) {}
+
+ protected Source() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.TrackElement.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_source_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_source_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static Source ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.TrackElement.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/SourceClip.cs b/ges/generated/GES/SourceClip.cs
new file mode 100644
index 0000000..27fa633
--- /dev/null
+++ b/ges/generated/GES/SourceClip.cs
@@ -0,0 +1,95 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class SourceClip : GES.Clip {
+
+ public SourceClip (IntPtr raw) : base(raw) {}
+
+ protected SourceClip() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.Clip.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_source_clip_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_source_clip_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static SourceClip ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.Clip.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/TestClip.cs b/ges/generated/GES/TestClip.cs
new file mode 100644
index 0000000..5160b8a
--- /dev/null
+++ b/ges/generated/GES/TestClip.cs
@@ -0,0 +1,213 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class TestClip : GES.SourceClip {
+
+ public TestClip (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_test_clip_new();
+
+ public TestClip () : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (TestClip)) {
+ CreateNativeObject (new string [0], new GLib.Value[0]);
+ return;
+ }
+ Raw = ges_test_clip_new();
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_test_clip_new_for_nick(IntPtr nick);
+
+ public TestClip (string nick) : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (TestClip)) {
+ var vals = new List<GLib.Value> ();
+ var names = new List<string> ();
+ CreateNativeObject (names.ToArray (), vals.ToArray ());
+ return;
+ }
+ IntPtr native_nick = GLib.Marshaller.StringToPtrGStrdup (nick);
+ Raw = ges_test_clip_new_for_nick(native_nick);
+ GLib.Marshaller.Free (native_nick);
+ }
+
+ [GLib.Property ("freq")]
+ public double Freq {
+ get {
+ GLib.Value val = GetProperty ("freq");
+ double ret = (double) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("freq", val);
+ val.Dispose ();
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_test_clip_set_mute(IntPtr raw, bool mute);
+
+ [GLib.Property ("mute")]
+ public bool Mute {
+ get {
+ GLib.Value val = GetProperty ("mute");
+ bool ret = (bool) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ ges_test_clip_set_mute(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern double ges_test_clip_get_volume(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_test_clip_set_volume(IntPtr raw, double volume);
+
+ [GLib.Property ("volume")]
+ public double Volume {
+ get {
+ double raw_ret = ges_test_clip_get_volume(Handle);
+ double ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_test_clip_set_volume(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_test_clip_get_vpattern(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_test_clip_set_vpattern(IntPtr raw, int vpattern);
+
+ [GLib.Property ("vpattern")]
+ public GES.VideoTestPattern Vpattern {
+ get {
+ int raw_ret = ges_test_clip_get_vpattern(Handle);
+ GES.VideoTestPattern ret = (GES.VideoTestPattern) raw_ret;
+ return ret;
+ }
+ set {
+ ges_test_clip_set_vpattern(Handle, (int) value);
+ }
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.SourceClip.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_test_clip_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_test_clip_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern double ges_test_clip_get_frequency(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_test_clip_set_frequency(IntPtr raw, double freq);
+
+ public double Frequency {
+ get {
+ double raw_ret = ges_test_clip_get_frequency(Handle);
+ double ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_test_clip_set_frequency(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_test_clip_is_muted(IntPtr raw);
+
+ public bool IsMuted {
+ get {
+ bool raw_ret = ges_test_clip_is_muted(Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+ }
+
+
+ static TestClip ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.SourceClip.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/TextHAlign.cs b/ges/generated/GES/TextHAlign.cs
new file mode 100644
index 0000000..d7ac22e
--- /dev/null
+++ b/ges/generated/GES/TextHAlign.cs
@@ -0,0 +1,31 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ [GLib.GType (typeof (GES.TextHAlignGType))]
+ public enum TextHAlign {
+
+ Left = 0,
+ Center = 1,
+ Right = 2,
+ Position = 4,
+ Absolute = 5,
+ }
+
+ internal class TextHAlignGType {
+ [DllImport ("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_text_halign_get_type ();
+
+ public static GLib.GType GType {
+ get {
+ return new GLib.GType (ges_text_halign_get_type ());
+ }
+ }
+ }
+#endregion
+}
diff --git a/ges/generated/GES/TextOverlay.cs b/ges/generated/GES/TextOverlay.cs
new file mode 100644
index 0000000..91a013f
--- /dev/null
+++ b/ges/generated/GES/TextOverlay.cs
@@ -0,0 +1,225 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class TextOverlay : GES.Operation {
+
+ public TextOverlay (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_text_overlay_new();
+
+ public TextOverlay () : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (TextOverlay)) {
+ CreateNativeObject (new string [0], new GLib.Value[0]);
+ return;
+ }
+ Raw = ges_text_overlay_new();
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.Operation.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_text_overlay_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_text_overlay_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern uint ges_text_overlay_get_color(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_text_overlay_set_color(IntPtr raw, uint color);
+
+ public uint Color {
+ get {
+ uint raw_ret = ges_text_overlay_get_color(Handle);
+ uint ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_text_overlay_set_color(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_text_overlay_get_font_desc(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_text_overlay_set_font_desc(IntPtr raw, IntPtr font_desc);
+
+ public string FontDesc {
+ get {
+ IntPtr raw_ret = ges_text_overlay_get_font_desc(Handle);
+ string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
+ return ret;
+ }
+ set {
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ ges_text_overlay_set_font_desc(Handle, native_value);
+ GLib.Marshaller.Free (native_value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_text_overlay_get_halignment(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_text_overlay_set_halignment(IntPtr raw, int halign);
+
+ public GES.TextHAlign Halignment {
+ get {
+ int raw_ret = ges_text_overlay_get_halignment(Handle);
+ GES.TextHAlign ret = (GES.TextHAlign) raw_ret;
+ return ret;
+ }
+ set {
+ ges_text_overlay_set_halignment(Handle, (int) value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_text_overlay_get_text(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_text_overlay_set_text(IntPtr raw, IntPtr text);
+
+ public string Text {
+ get {
+ IntPtr raw_ret = ges_text_overlay_get_text(Handle);
+ string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
+ return ret;
+ }
+ set {
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ ges_text_overlay_set_text(Handle, native_value);
+ GLib.Marshaller.Free (native_value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_text_overlay_get_valignment(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_text_overlay_set_valignment(IntPtr raw, int valign);
+
+ public GES.TextVAlign Valignment {
+ get {
+ int raw_ret = ges_text_overlay_get_valignment(Handle);
+ GES.TextVAlign ret = (GES.TextVAlign) raw_ret;
+ return ret;
+ }
+ set {
+ ges_text_overlay_set_valignment(Handle, (int) value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern double ges_text_overlay_get_xpos(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_text_overlay_set_xpos(IntPtr raw, double position);
+
+ public double Xpos {
+ get {
+ double raw_ret = ges_text_overlay_get_xpos(Handle);
+ double ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_text_overlay_set_xpos(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern double ges_text_overlay_get_ypos(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_text_overlay_set_ypos(IntPtr raw, double position);
+
+ public double Ypos {
+ get {
+ double raw_ret = ges_text_overlay_get_ypos(Handle);
+ double ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_text_overlay_set_ypos(Handle, value);
+ }
+ }
+
+
+ static TextOverlay ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.Operation.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/TextOverlayClip.cs b/ges/generated/GES/TextOverlayClip.cs
new file mode 100644
index 0000000..c1e0f4f
--- /dev/null
+++ b/ges/generated/GES/TextOverlayClip.cs
@@ -0,0 +1,248 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class TextOverlayClip : GES.OverlayClip {
+
+ public TextOverlayClip (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_text_overlay_clip_new();
+
+ public TextOverlayClip () : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (TextOverlayClip)) {
+ CreateNativeObject (new string [0], new GLib.Value[0]);
+ return;
+ }
+ Raw = ges_text_overlay_clip_new();
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern uint ges_text_overlay_clip_get_color(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_text_overlay_clip_set_color(IntPtr raw, uint color);
+
+ [GLib.Property ("color")]
+ public uint Color {
+ get {
+ uint raw_ret = ges_text_overlay_clip_get_color(Handle);
+ uint ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_text_overlay_clip_set_color(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_text_overlay_clip_get_font_desc(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_text_overlay_clip_set_font_desc(IntPtr raw, IntPtr font_desc);
+
+ [GLib.Property ("font-desc")]
+ public string FontDesc {
+ get {
+ IntPtr raw_ret = ges_text_overlay_clip_get_font_desc(Handle);
+ string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
+ return ret;
+ }
+ set {
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ ges_text_overlay_clip_set_font_desc(Handle, native_value);
+ GLib.Marshaller.Free (native_value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_text_overlay_clip_get_halignment(IntPtr raw);
+
+ [GLib.Property ("halignment")]
+ public GES.TextHAlign Halignment {
+ get {
+ int raw_ret = ges_text_overlay_clip_get_halignment(Handle);
+ GES.TextHAlign ret = (GES.TextHAlign) raw_ret;
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value((Enum) value);
+ SetProperty("halignment", val);
+ val.Dispose ();
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_text_overlay_clip_get_text(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_text_overlay_clip_set_text(IntPtr raw, IntPtr text);
+
+ [GLib.Property ("text")]
+ public string Text {
+ get {
+ IntPtr raw_ret = ges_text_overlay_clip_get_text(Handle);
+ string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
+ return ret;
+ }
+ set {
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ ges_text_overlay_clip_set_text(Handle, native_value);
+ GLib.Marshaller.Free (native_value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_text_overlay_clip_get_valignment(IntPtr raw);
+
+ [GLib.Property ("valignment")]
+ public GES.TextVAlign Valignment {
+ get {
+ int raw_ret = ges_text_overlay_clip_get_valignment(Handle);
+ GES.TextVAlign ret = (GES.TextVAlign) raw_ret;
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value((Enum) value);
+ SetProperty("valignment", val);
+ val.Dispose ();
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern double ges_text_overlay_clip_get_xpos(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_text_overlay_clip_set_xpos(IntPtr raw, double position);
+
+ [GLib.Property ("xpos")]
+ public double Xpos {
+ get {
+ double raw_ret = ges_text_overlay_clip_get_xpos(Handle);
+ double ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_text_overlay_clip_set_xpos(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern double ges_text_overlay_clip_get_ypos(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_text_overlay_clip_set_ypos(IntPtr raw, double position);
+
+ [GLib.Property ("ypos")]
+ public double Ypos {
+ get {
+ double raw_ret = ges_text_overlay_clip_get_ypos(Handle);
+ double ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_text_overlay_clip_set_ypos(Handle, value);
+ }
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.OverlayClip.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_text_overlay_clip_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_text_overlay_clip_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_text_overlay_clip_set_halign(IntPtr raw, int halign);
+
+ public GES.TextHAlign Halign {
+ set {
+ ges_text_overlay_clip_set_halign(Handle, (int) value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_text_overlay_clip_set_valign(IntPtr raw, int valign);
+
+ public GES.TextVAlign Valign {
+ set {
+ ges_text_overlay_clip_set_valign(Handle, (int) value);
+ }
+ }
+
+
+ static TextOverlayClip ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.OverlayClip.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/TextVAlign.cs b/ges/generated/GES/TextVAlign.cs
new file mode 100644
index 0000000..fb709b8
--- /dev/null
+++ b/ges/generated/GES/TextVAlign.cs
@@ -0,0 +1,32 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ [GLib.GType (typeof (GES.TextVAlignGType))]
+ public enum TextVAlign {
+
+ Baseline = 0,
+ Bottom = 1,
+ Top = 2,
+ Position = 3,
+ Center = 4,
+ Absolute = 5,
+ }
+
+ internal class TextVAlignGType {
+ [DllImport ("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_text_valign_get_type ();
+
+ public static GLib.GType GType {
+ get {
+ return new GLib.GType (ges_text_valign_get_type ());
+ }
+ }
+ }
+#endregion
+}
diff --git a/ges/generated/GES/Timeline.cs b/ges/generated/GES/Timeline.cs
new file mode 100644
index 0000000..a346efc
--- /dev/null
+++ b/ges/generated/GES/Timeline.cs
@@ -0,0 +1,1412 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class Timeline : Gst.Bin, GES.IExtractable, GES.IMetaContainer {
+
+ public Timeline (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_new();
+
+ public Timeline () : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (Timeline)) {
+ CreateNativeObject (new string [0], new GLib.Value[0]);
+ return;
+ }
+ Raw = ges_timeline_new();
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_new_audio_video();
+
+ public static Timeline NewAudioVideo()
+ {
+ Timeline result = new Timeline (ges_timeline_new_audio_video());
+ return result;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_new_from_uri(IntPtr uri);
+
+ public Timeline (string uri) : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (Timeline)) {
+ var vals = new List<GLib.Value> ();
+ var names = new List<string> ();
+ CreateNativeObject (names.ToArray (), vals.ToArray ());
+ return;
+ }
+ IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
+ Raw = ges_timeline_new_from_uri(native_uri);
+ GLib.Marshaller.Free (native_uri);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_get_auto_transition(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_timeline_set_auto_transition(IntPtr raw, bool auto_transition);
+
+ [GLib.Property ("auto-transition")]
+ public bool AutoTransition {
+ get {
+ bool raw_ret = ges_timeline_get_auto_transition(Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_timeline_set_auto_transition(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern ulong ges_timeline_get_duration(IntPtr raw);
+
+ [GLib.Property ("duration")]
+ public ulong Duration {
+ get {
+ ulong raw_ret = ges_timeline_get_duration(Handle);
+ ulong ret = raw_ret;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern ulong ges_timeline_get_snapping_distance(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_timeline_set_snapping_distance(IntPtr raw, ulong snapping_distance);
+
+ [GLib.Property ("snapping-distance")]
+ public ulong SnappingDistance {
+ get {
+ ulong raw_ret = ges_timeline_get_snapping_distance(Handle);
+ ulong ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_timeline_set_snapping_distance(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_get_layers(IntPtr raw);
+
+ public GES.Layer[] Layers {
+ get {
+ IntPtr raw_ret = ges_timeline_get_layers(Handle);
+ GES.Layer[] ret = (GES.Layer[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(GES.Layer));
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_get_tracks(IntPtr raw);
+
+ public GES.Track[] Tracks {
+ get {
+ IntPtr raw_ret = ges_timeline_get_tracks(Handle);
+ GES.Track[] ret = (GES.Track[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(GES.Track));
+ return ret;
+ }
+ }
+
+ [GLib.Signal("commited")]
+ public event System.EventHandler Commited {
+ add {
+ this.AddSignalHandler ("commited", value);
+ }
+ remove {
+ this.RemoveSignalHandler ("commited", value);
+ }
+ }
+
+ [GLib.Signal("layer-removed")]
+ public event GES.LayerRemovedHandler LayerRemoved {
+ add {
+ this.AddSignalHandler ("layer-removed", value, typeof (GES.LayerRemovedArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("layer-removed", value);
+ }
+ }
+
+ [GLib.Signal("group-added")]
+ public event GES.GroupAddedHandler GroupAdded {
+ add {
+ this.AddSignalHandler ("group-added", value, typeof (GES.GroupAddedArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("group-added", value);
+ }
+ }
+
+ [GLib.Signal("layer-added")]
+ public event GES.LayerAddedHandler LayerAdded {
+ add {
+ this.AddSignalHandler ("layer-added", value, typeof (GES.LayerAddedArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("layer-added", value);
+ }
+ }
+
+ [GLib.Signal("snapping-started")]
+ public event GES.SnappingStartedHandler SnappingStarted {
+ add {
+ this.AddSignalHandler ("snapping-started", value, typeof (GES.SnappingStartedArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("snapping-started", value);
+ }
+ }
+
+ [GLib.Signal("snapping-ended")]
+ public event GES.SnappingEndedHandler SnappingEnded {
+ add {
+ this.AddSignalHandler ("snapping-ended", value, typeof (GES.SnappingEndedArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("snapping-ended", value);
+ }
+ }
+
+ [GLib.Signal("track-added")]
+ public event GES.TrackAddedHandler TrackAdded {
+ add {
+ this.AddSignalHandler ("track-added", value, typeof (GES.TrackAddedArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("track-added", value);
+ }
+ }
+
+ [GLib.Signal("track-removed")]
+ public event GES.TrackRemovedHandler TrackRemoved {
+ add {
+ this.AddSignalHandler ("track-removed", value, typeof (GES.TrackRemovedArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("track-removed", value);
+ }
+ }
+
+ static CommitedNativeDelegate Commited_cb_delegate;
+ static CommitedNativeDelegate CommitedVMCallback {
+ get {
+ if (Commited_cb_delegate == null)
+ Commited_cb_delegate = new CommitedNativeDelegate (Commited_cb);
+ return Commited_cb_delegate;
+ }
+ }
+
+ static void OverrideCommited (GLib.GType gtype)
+ {
+ OverrideCommited (gtype, CommitedVMCallback);
+ }
+
+ static void OverrideCommited (GLib.GType gtype, CommitedNativeDelegate callback)
+ {
+ OverrideVirtualMethod (gtype, "commited", callback);
+ }
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void CommitedNativeDelegate (IntPtr inst);
+
+ static void Commited_cb (IntPtr inst)
+ {
+ try {
+ Timeline __obj = GLib.Object.GetObject (inst, false) as Timeline;
+ __obj.OnCommited ();
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Timeline), ConnectionMethod="OverrideCommited")]
+ protected virtual void OnCommited ()
+ {
+ InternalCommited ();
+ }
+
+ private void InternalCommited ()
+ {
+ GLib.Value ret = GLib.Value.Empty;
+ GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
+ GLib.Value[] vals = new GLib.Value [1];
+ vals [0] = new GLib.Value (this);
+ inst_and_params.Append (vals [0]);
+ g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
+ foreach (GLib.Value v in vals)
+ v.Dispose ();
+ }
+
+ static SnappingEndedNativeDelegate SnappingEnded_cb_delegate;
+ static SnappingEndedNativeDelegate SnappingEndedVMCallback {
+ get {
+ if (SnappingEnded_cb_delegate == null)
+ SnappingEnded_cb_delegate = new SnappingEndedNativeDelegate (SnappingEnded_cb);
+ return SnappingEnded_cb_delegate;
+ }
+ }
+
+ static void OverrideSnappingEnded (GLib.GType gtype)
+ {
+ OverrideSnappingEnded (gtype, SnappingEndedVMCallback);
+ }
+
+ static void OverrideSnappingEnded (GLib.GType gtype, SnappingEndedNativeDelegate callback)
+ {
+ OverrideVirtualMethod (gtype, "snapping-ended", callback);
+ }
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void SnappingEndedNativeDelegate (IntPtr inst, IntPtr _object, IntPtr p0, ulong p1);
+
+ static void SnappingEnded_cb (IntPtr inst, IntPtr _object, IntPtr p0, ulong p1)
+ {
+ try {
+ Timeline __obj = GLib.Object.GetObject (inst, false) as Timeline;
+ __obj.OnSnappingEnded (GLib.Object.GetObject(_object) as GES.TrackElement, GLib.Object.GetObject(p0) as GES.TrackElement, p1);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Timeline), ConnectionMethod="OverrideSnappingEnded")]
+ protected virtual void OnSnappingEnded (GES.TrackElement _object, GES.TrackElement p0, ulong p1)
+ {
+ InternalSnappingEnded (_object, p0, p1);
+ }
+
+ private void InternalSnappingEnded (GES.TrackElement _object, GES.TrackElement p0, ulong p1)
+ {
+ GLib.Value ret = GLib.Value.Empty;
+ GLib.ValueArray inst_and_params = new GLib.ValueArray (4);
+ GLib.Value[] vals = new GLib.Value [4];
+ vals [0] = new GLib.Value (this);
+ inst_and_params.Append (vals [0]);
+ vals [1] = new GLib.Value (_object);
+ inst_and_params.Append (vals [1]);
+ vals [2] = new GLib.Value (p0);
+ inst_and_params.Append (vals [2]);
+ vals [3] = new GLib.Value (p1);
+ inst_and_params.Append (vals [3]);
+ g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
+ foreach (GLib.Value v in vals)
+ v.Dispose ();
+ }
+
+ static SnappingStartedNativeDelegate SnappingStarted_cb_delegate;
+ static SnappingStartedNativeDelegate SnappingStartedVMCallback {
+ get {
+ if (SnappingStarted_cb_delegate == null)
+ SnappingStarted_cb_delegate = new SnappingStartedNativeDelegate (SnappingStarted_cb);
+ return SnappingStarted_cb_delegate;
+ }
+ }
+
+ static void OverrideSnappingStarted (GLib.GType gtype)
+ {
+ OverrideSnappingStarted (gtype, SnappingStartedVMCallback);
+ }
+
+ static void OverrideSnappingStarted (GLib.GType gtype, SnappingStartedNativeDelegate callback)
+ {
+ OverrideVirtualMethod (gtype, "snapping-started", callback);
+ }
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void SnappingStartedNativeDelegate (IntPtr inst, IntPtr _object, IntPtr p0, ulong p1);
+
+ static void SnappingStarted_cb (IntPtr inst, IntPtr _object, IntPtr p0, ulong p1)
+ {
+ try {
+ Timeline __obj = GLib.Object.GetObject (inst, false) as Timeline;
+ __obj.OnSnappingStarted (GLib.Object.GetObject(_object) as GES.TrackElement, GLib.Object.GetObject(p0) as GES.TrackElement, p1);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Timeline), ConnectionMethod="OverrideSnappingStarted")]
+ protected virtual void OnSnappingStarted (GES.TrackElement _object, GES.TrackElement p0, ulong p1)
+ {
+ InternalSnappingStarted (_object, p0, p1);
+ }
+
+ private void InternalSnappingStarted (GES.TrackElement _object, GES.TrackElement p0, ulong p1)
+ {
+ GLib.Value ret = GLib.Value.Empty;
+ GLib.ValueArray inst_and_params = new GLib.ValueArray (4);
+ GLib.Value[] vals = new GLib.Value [4];
+ vals [0] = new GLib.Value (this);
+ inst_and_params.Append (vals [0]);
+ vals [1] = new GLib.Value (_object);
+ inst_and_params.Append (vals [1]);
+ vals [2] = new GLib.Value (p0);
+ inst_and_params.Append (vals [2]);
+ vals [3] = new GLib.Value (p1);
+ inst_and_params.Append (vals [3]);
+ g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
+ foreach (GLib.Value v in vals)
+ v.Dispose ();
+ }
+
+ static TrackAddedNativeDelegate TrackAdded_cb_delegate;
+ static TrackAddedNativeDelegate TrackAddedVMCallback {
+ get {
+ if (TrackAdded_cb_delegate == null)
+ TrackAdded_cb_delegate = new TrackAddedNativeDelegate (TrackAdded_cb);
+ return TrackAdded_cb_delegate;
+ }
+ }
+
+ static void OverrideTrackAdded (GLib.GType gtype)
+ {
+ OverrideTrackAdded (gtype, TrackAddedVMCallback);
+ }
+
+ static void OverrideTrackAdded (GLib.GType gtype, TrackAddedNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("track_added"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void TrackAddedNativeDelegate (IntPtr inst, IntPtr track);
+
+ static void TrackAdded_cb (IntPtr inst, IntPtr track)
+ {
+ try {
+ Timeline __obj = GLib.Object.GetObject (inst, false) as Timeline;
+ __obj.OnTrackAdded (GLib.Object.GetObject(track) as GES.Track);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Timeline), ConnectionMethod="OverrideTrackAdded")]
+ protected virtual void OnTrackAdded (GES.Track track)
+ {
+ InternalTrackAdded (track);
+ }
+
+ private void InternalTrackAdded (GES.Track track)
+ {
+ TrackAddedNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("track_added"));
+ unmanaged = (TrackAddedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(TrackAddedNativeDelegate));
+ }
+ if (unmanaged == null) return;
+
+ unmanaged (this.Handle, track == null ? IntPtr.Zero : track.Handle);
+ }
+
+ static TrackRemovedNativeDelegate TrackRemoved_cb_delegate;
+ static TrackRemovedNativeDelegate TrackRemovedVMCallback {
+ get {
+ if (TrackRemoved_cb_delegate == null)
+ TrackRemoved_cb_delegate = new TrackRemovedNativeDelegate (TrackRemoved_cb);
+ return TrackRemoved_cb_delegate;
+ }
+ }
+
+ static void OverrideTrackRemoved (GLib.GType gtype)
+ {
+ OverrideTrackRemoved (gtype, TrackRemovedVMCallback);
+ }
+
+ static void OverrideTrackRemoved (GLib.GType gtype, TrackRemovedNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("track_removed"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void TrackRemovedNativeDelegate (IntPtr inst, IntPtr track);
+
+ static void TrackRemoved_cb (IntPtr inst, IntPtr track)
+ {
+ try {
+ Timeline __obj = GLib.Object.GetObject (inst, false) as Timeline;
+ __obj.OnTrackRemoved (GLib.Object.GetObject(track) as GES.Track);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Timeline), ConnectionMethod="OverrideTrackRemoved")]
+ protected virtual void OnTrackRemoved (GES.Track track)
+ {
+ InternalTrackRemoved (track);
+ }
+
+ private void InternalTrackRemoved (GES.Track track)
+ {
+ TrackRemovedNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("track_removed"));
+ unmanaged = (TrackRemovedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(TrackRemovedNativeDelegate));
+ }
+ if (unmanaged == null) return;
+
+ unmanaged (this.Handle, track == null ? IntPtr.Zero : track.Handle);
+ }
+
+ static LayerAddedNativeDelegate LayerAdded_cb_delegate;
+ static LayerAddedNativeDelegate LayerAddedVMCallback {
+ get {
+ if (LayerAdded_cb_delegate == null)
+ LayerAdded_cb_delegate = new LayerAddedNativeDelegate (LayerAdded_cb);
+ return LayerAdded_cb_delegate;
+ }
+ }
+
+ static void OverrideLayerAdded (GLib.GType gtype)
+ {
+ OverrideLayerAdded (gtype, LayerAddedVMCallback);
+ }
+
+ static void OverrideLayerAdded (GLib.GType gtype, LayerAddedNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("layer_added"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void LayerAddedNativeDelegate (IntPtr inst, IntPtr layer);
+
+ static void LayerAdded_cb (IntPtr inst, IntPtr layer)
+ {
+ try {
+ Timeline __obj = GLib.Object.GetObject (inst, false) as Timeline;
+ __obj.OnLayerAdded (GLib.Object.GetObject(layer) as GES.Layer);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Timeline), ConnectionMethod="OverrideLayerAdded")]
+ protected virtual void OnLayerAdded (GES.Layer layer)
+ {
+ InternalLayerAdded (layer);
+ }
+
+ private void InternalLayerAdded (GES.Layer layer)
+ {
+ LayerAddedNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("layer_added"));
+ unmanaged = (LayerAddedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(LayerAddedNativeDelegate));
+ }
+ if (unmanaged == null) return;
+
+ unmanaged (this.Handle, layer == null ? IntPtr.Zero : layer.Handle);
+ }
+
+ static LayerRemovedNativeDelegate LayerRemoved_cb_delegate;
+ static LayerRemovedNativeDelegate LayerRemovedVMCallback {
+ get {
+ if (LayerRemoved_cb_delegate == null)
+ LayerRemoved_cb_delegate = new LayerRemovedNativeDelegate (LayerRemoved_cb);
+ return LayerRemoved_cb_delegate;
+ }
+ }
+
+ static void OverrideLayerRemoved (GLib.GType gtype)
+ {
+ OverrideLayerRemoved (gtype, LayerRemovedVMCallback);
+ }
+
+ static void OverrideLayerRemoved (GLib.GType gtype, LayerRemovedNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("layer_removed"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void LayerRemovedNativeDelegate (IntPtr inst, IntPtr layer);
+
+ static void LayerRemoved_cb (IntPtr inst, IntPtr layer)
+ {
+ try {
+ Timeline __obj = GLib.Object.GetObject (inst, false) as Timeline;
+ __obj.OnLayerRemoved (GLib.Object.GetObject(layer) as GES.Layer);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Timeline), ConnectionMethod="OverrideLayerRemoved")]
+ protected virtual void OnLayerRemoved (GES.Layer layer)
+ {
+ InternalLayerRemoved (layer);
+ }
+
+ private void InternalLayerRemoved (GES.Layer layer)
+ {
+ LayerRemovedNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("layer_removed"));
+ unmanaged = (LayerRemovedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(LayerRemovedNativeDelegate));
+ }
+ if (unmanaged == null) return;
+
+ unmanaged (this.Handle, layer == null ? IntPtr.Zero : layer.Handle);
+ }
+
+ static GroupAddedNativeDelegate GroupAdded_cb_delegate;
+ static GroupAddedNativeDelegate GroupAddedVMCallback {
+ get {
+ if (GroupAdded_cb_delegate == null)
+ GroupAdded_cb_delegate = new GroupAddedNativeDelegate (GroupAdded_cb);
+ return GroupAdded_cb_delegate;
+ }
+ }
+
+ static void OverrideGroupAdded (GLib.GType gtype)
+ {
+ OverrideGroupAdded (gtype, GroupAddedVMCallback);
+ }
+
+ static void OverrideGroupAdded (GLib.GType gtype, GroupAddedNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("group_added"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void GroupAddedNativeDelegate (IntPtr inst, IntPtr group);
+
+ static void GroupAdded_cb (IntPtr inst, IntPtr group)
+ {
+ try {
+ Timeline __obj = GLib.Object.GetObject (inst, false) as Timeline;
+ __obj.OnGroupAdded (GLib.Object.GetObject(group) as GES.Group);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Timeline), ConnectionMethod="OverrideGroupAdded")]
+ protected virtual void OnGroupAdded (GES.Group group)
+ {
+ InternalGroupAdded (group);
+ }
+
+ private void InternalGroupAdded (GES.Group group)
+ {
+ GroupAddedNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("group_added"));
+ unmanaged = (GroupAddedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GroupAddedNativeDelegate));
+ }
+ if (unmanaged == null) return;
+
+ unmanaged (this.Handle, group == null ? IntPtr.Zero : group.Handle);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("track_added"
+ , Gst.Bin.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // track_added
+ , null
+ , "track_removed"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("track_removed"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // track_removed
+ , "track_added"
+ , "layer_added"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("layer_added"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // layer_added
+ , "track_removed"
+ , "layer_removed"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("layer_removed"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // layer_removed
+ , "layer_added"
+ , "group_added"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("group_added"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // group_added
+ , "layer_removed"
+ , "group_removed"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("group_removed"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // group_removed
+ , "group_added"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "group_removed"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_timeline_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_add_layer(IntPtr raw, IntPtr layer);
+
+ public bool AddLayer(GES.Layer layer) {
+ bool raw_ret = ges_timeline_add_layer(Handle, layer == null ? IntPtr.Zero : layer.Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_add_track(IntPtr raw, IntPtr track);
+
+ public bool AddTrack(GES.Track track) {
+ bool raw_ret = ges_timeline_add_track(Handle, track == null ? IntPtr.Zero : track.OwnedHandle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_append_layer(IntPtr raw);
+
+ public GES.Layer AppendLayer() {
+ IntPtr raw_ret = ges_timeline_append_layer(Handle);
+ GES.Layer ret = GLib.Object.GetObject(raw_ret) as GES.Layer;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_commit(IntPtr raw);
+
+ public bool Commit() {
+ bool raw_ret = ges_timeline_commit(Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_commit_sync(IntPtr raw);
+
+ public bool CommitSync() {
+ bool raw_ret = ges_timeline_commit_sync(Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_get_element(IntPtr raw, IntPtr name);
+
+ public GES.TimelineElement GetElement(string name) {
+ IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
+ IntPtr raw_ret = ges_timeline_get_element(Handle, native_name);
+ GES.TimelineElement ret = GLib.Object.GetObject(raw_ret, true) as GES.TimelineElement;
+ GLib.Marshaller.Free (native_name);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_get_groups(IntPtr raw);
+
+ public GES.Group[] Groups {
+ get {
+ IntPtr raw_ret = ges_timeline_get_groups(Handle);
+ GES.Group[] ret = (GES.Group[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), false, false, typeof(GES.Group));
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_get_layer(IntPtr raw, uint priority);
+
+ public GES.Layer GetLayer(uint priority) {
+ IntPtr raw_ret = ges_timeline_get_layer(Handle, priority);
+ GES.Layer ret = GLib.Object.GetObject(raw_ret, true) as GES.Layer;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_get_pad_for_track(IntPtr raw, IntPtr track);
+
+ public Gst.Pad GetPadForTrack(GES.Track track) {
+ IntPtr raw_ret = ges_timeline_get_pad_for_track(Handle, track == null ? IntPtr.Zero : track.Handle);
+ Gst.Pad ret = GLib.Object.GetObject(raw_ret) as Gst.Pad;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_get_track_for_pad(IntPtr raw, IntPtr pad);
+
+ public GES.Track GetTrackForPad(Gst.Pad pad) {
+ IntPtr raw_ret = ges_timeline_get_track_for_pad(Handle, pad == null ? IntPtr.Zero : pad.Handle);
+ GES.Track ret = GLib.Object.GetObject(raw_ret) as GES.Track;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_is_empty(IntPtr raw);
+
+ public bool IsEmpty {
+ get {
+ bool raw_ret = ges_timeline_is_empty(Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern unsafe bool ges_timeline_load_from_uri(IntPtr raw, IntPtr uri, out IntPtr error);
+
+ public unsafe bool LoadFromUri(string uri) {
+ IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
+ IntPtr error = IntPtr.Zero;
+ bool raw_ret = ges_timeline_load_from_uri(Handle, native_uri, out error);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_uri);
+ if (error != IntPtr.Zero) throw new GLib.GException (error);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_paste_element(IntPtr raw, IntPtr element, ulong position, int layer_priority);
+
+ public GES.TimelineElement PasteElement(GES.TimelineElement element, ulong position, int layer_priority) {
+ IntPtr raw_ret = ges_timeline_paste_element(Handle, element == null ? IntPtr.Zero : element.Handle, position, layer_priority);
+ GES.TimelineElement ret = GLib.Object.GetObject(raw_ret) as GES.TimelineElement;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_remove_layer(IntPtr raw, IntPtr layer);
+
+ public bool RemoveLayer(GES.Layer layer) {
+ bool raw_ret = ges_timeline_remove_layer(Handle, layer == null ? IntPtr.Zero : layer.Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_remove_track(IntPtr raw, IntPtr track);
+
+ public bool RemoveTrack(GES.Track track) {
+ bool raw_ret = ges_timeline_remove_track(Handle, track == null ? IntPtr.Zero : track.Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern unsafe bool ges_timeline_save_to_uri(IntPtr raw, IntPtr uri, IntPtr formatter_asset, bool overwrite, out IntPtr error);
+
+ public unsafe bool SaveToUri(string uri, GES.Asset formatter_asset, bool overwrite) {
+ IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
+ IntPtr error = IntPtr.Zero;
+ bool raw_ret = ges_timeline_save_to_uri(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 bool SaveToUri(string uri, bool overwrite) {
+ return SaveToUri (uri, null, overwrite);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_extractable_get_asset(IntPtr raw);
+
+ public GES.Asset Asset {
+ get {
+ IntPtr raw_ret = ges_extractable_get_asset(Handle);
+ GES.Asset ret = GLib.Object.GetObject(raw_ret) as GES.Asset;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_extractable_get_id(IntPtr raw);
+
+ public string Id {
+ get {
+ IntPtr raw_ret = ges_extractable_get_id(Handle);
+ string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_extractable_set_asset(IntPtr raw, IntPtr asset);
+
+ 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;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_add_metas_from_string(IntPtr raw, IntPtr str);
+
+ public bool AddMetasFromString(string str) {
+ IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (str);
+ bool raw_ret = ges_meta_container_add_metas_from_string(Handle, native_str);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_str);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_check_meta_registered(IntPtr raw, IntPtr meta_item, int flags, IntPtr type);
+
+ public bool CheckMetaRegistered(string meta_item, GES.MetaFlag flags, GLib.GType type) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_check_meta_registered(Handle, native_meta_item, (int) flags, type.Val);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_meta_container_foreach(IntPtr raw, GESSharp.MetaForeachFuncNative func, IntPtr user_data);
+
+ public void Foreach(GES.MetaForeachFunc func) {
+ GESSharp.MetaForeachFuncWrapper func_wrapper = new GESSharp.MetaForeachFuncWrapper (func);
+ ges_meta_container_foreach(Handle, func_wrapper.NativeDelegate, IntPtr.Zero);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_boolean(IntPtr raw, IntPtr meta_item, out bool dest);
+
+ public bool GetBoolean(string meta_item, out bool dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_boolean(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_date_time(IntPtr raw, IntPtr meta_item, out IntPtr dest);
+
+ public bool GetDateTime(string meta_item, out Gst.DateTime dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_dest;
+ bool raw_ret = ges_meta_container_get_date_time(Handle, native_meta_item, out native_dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ dest = native_dest == IntPtr.Zero ? null : (Gst.DateTime) GLib.Opaque.GetOpaque (native_dest, typeof (Gst.DateTime), true);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_double(IntPtr raw, IntPtr meta_item, out double dest);
+
+ public bool GetDouble(string meta_item, out double dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_double(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_float(IntPtr raw, IntPtr meta_item, out float dest);
+
+ public bool GetFloat(string meta_item, out float dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_float(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_int(IntPtr raw, IntPtr meta_item, out int dest);
+
+ public bool GetInt(string meta_item, out int dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_int(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_int64(IntPtr raw, IntPtr meta_item, out long dest);
+
+ public bool GetInt64(string meta_item, out long dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_int64(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_container_get_meta(IntPtr raw, IntPtr key);
+
+ public GLib.Value GetMeta(string key) {
+ IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup (key);
+ IntPtr raw_ret = ges_meta_container_get_meta(Handle, native_key);
+ GLib.Value ret = (GLib.Value) Marshal.PtrToStructure (raw_ret, typeof (GLib.Value));
+ GLib.Marshaller.Free (native_key);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_container_get_string(IntPtr raw, IntPtr meta_item);
+
+ public string GetString(string meta_item) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr raw_ret = ges_meta_container_get_string(Handle, native_meta_item);
+ string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_uint(IntPtr raw, IntPtr meta_item, out uint dest);
+
+ public bool GetUint(string meta_item, out uint dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_uint(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_uint64(IntPtr raw, IntPtr meta_item, out ulong dest);
+
+ public bool GetUint64(string meta_item, out ulong dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_uint64(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_container_metas_to_string(IntPtr raw);
+
+ public string MetasToString() {
+ IntPtr raw_ret = ges_meta_container_metas_to_string(Handle);
+ string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
+
+ public bool RegisterMeta(GES.MetaFlag flags, string meta_item, GLib.Value value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
+ bool raw_ret = ges_meta_container_register_meta(Handle, (int) flags, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ Marshal.FreeHGlobal (native_value);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_boolean(IntPtr raw, int flags, IntPtr meta_item, bool value);
+
+ public bool RegisterMetaBoolean(GES.MetaFlag flags, string meta_item, bool value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_boolean(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_date_time(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
+
+ public bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item, Gst.DateTime value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_date_time(Handle, (int) flags, native_meta_item, value == null ? IntPtr.Zero : value.Handle);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ public bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item) {
+ return RegisterMetaDateTime (flags, meta_item, null);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_double(IntPtr raw, int flags, IntPtr meta_item, double value);
+
+ public bool RegisterMetaDouble(GES.MetaFlag flags, string meta_item, double value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_double(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_float(IntPtr raw, int flags, IntPtr meta_item, float value);
+
+ public bool RegisterMetaFloat(GES.MetaFlag flags, string meta_item, float value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_float(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_int(IntPtr raw, int flags, IntPtr meta_item, int value);
+
+ public bool RegisterMetaInt(GES.MetaFlag flags, string meta_item, int value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_int(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_int64(IntPtr raw, int flags, IntPtr meta_item, long value);
+
+ public bool RegisterMetaInt64(GES.MetaFlag flags, string meta_item, long value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_int64(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_string(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
+
+ public bool RegisterMetaString(GES.MetaFlag flags, string meta_item, string value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ bool raw_ret = ges_meta_container_register_meta_string(Handle, (int) flags, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ GLib.Marshaller.Free (native_value);
+ return ret;
+ }
+
+ public bool RegisterMetaString(GES.MetaFlag flags, string meta_item) {
+ return RegisterMetaString (flags, meta_item, null);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_uint(IntPtr raw, int flags, IntPtr meta_item, uint value);
+
+ public bool RegisterMetaUint(GES.MetaFlag flags, string meta_item, uint value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_uint(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_uint64(IntPtr raw, int flags, IntPtr meta_item, ulong value);
+
+ public bool RegisterMetaUint64(GES.MetaFlag flags, string meta_item, ulong value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_uint64(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_boolean(IntPtr raw, IntPtr meta_item, bool value);
+
+ public bool SetBoolean(string meta_item, bool value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_boolean(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_date_time(IntPtr raw, IntPtr meta_item, IntPtr value);
+
+ public bool SetDateTime(string meta_item, Gst.DateTime value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_date_time(Handle, native_meta_item, value == null ? IntPtr.Zero : value.Handle);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_double(IntPtr raw, IntPtr meta_item, double value);
+
+ public bool SetDouble(string meta_item, double value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_double(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_float(IntPtr raw, IntPtr meta_item, float value);
+
+ public bool SetFloat(string meta_item, float value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_float(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_int(IntPtr raw, IntPtr meta_item, int value);
+
+ public bool SetInt(string meta_item, int value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_int(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_int64(IntPtr raw, IntPtr meta_item, long value);
+
+ public bool SetInt64(string meta_item, long value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_int64(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_meta(IntPtr raw, IntPtr meta_item, IntPtr value);
+
+ public bool SetMeta(string meta_item, GLib.Value value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
+ bool raw_ret = ges_meta_container_set_meta(Handle, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ Marshal.FreeHGlobal (native_value);
+ return ret;
+ }
+
+ public bool SetMeta(string meta_item) {
+ return SetMeta (meta_item, GLib.Value.Empty);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_string(IntPtr raw, IntPtr meta_item, IntPtr value);
+
+ public bool SetString(string meta_item, string value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ bool raw_ret = ges_meta_container_set_string(Handle, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ GLib.Marshaller.Free (native_value);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_uint(IntPtr raw, IntPtr meta_item, uint value);
+
+ public bool SetUint(string meta_item, uint value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_uint(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_uint64(IntPtr raw, IntPtr meta_item, ulong value);
+
+ public bool SetUint64(string meta_item, ulong value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_uint64(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [GLib.Signal("notify-meta")]
+ public event GES.NotifyMetaHandler NotifyMeta {
+ add {
+ this.AddSignalHandler ("notify-meta", value, typeof (GES.NotifyMetaArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("notify-meta", value);
+ }
+ }
+
+ static NotifyMetaNativeDelegate NotifyMeta_cb_delegate;
+ static NotifyMetaNativeDelegate NotifyMetaVMCallback {
+ get {
+ if (NotifyMeta_cb_delegate == null)
+ NotifyMeta_cb_delegate = new NotifyMetaNativeDelegate (NotifyMeta_cb);
+ return NotifyMeta_cb_delegate;
+ }
+ }
+
+ static void OverrideNotifyMeta (GLib.GType gtype)
+ {
+ OverrideNotifyMeta (gtype, NotifyMetaVMCallback);
+ }
+
+ static void OverrideNotifyMeta (GLib.GType gtype, NotifyMetaNativeDelegate callback)
+ {
+ OverrideVirtualMethod (gtype, "notify-meta", callback);
+ }
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void NotifyMetaNativeDelegate (IntPtr inst, IntPtr _object, IntPtr p0);
+
+ static void NotifyMeta_cb (IntPtr inst, IntPtr _object, IntPtr p0)
+ {
+ try {
+ GES.Timeline __obj = GLib.Object.GetObject (inst, false) as GES.Timeline;
+ __obj.OnNotifyMeta (GLib.Marshaller.Utf8PtrToString (_object), (GLib.Value) Marshal.PtrToStructure (p0, typeof (GLib.Value)));
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Timeline), ConnectionMethod="OverrideNotifyMeta")]
+ protected virtual void OnNotifyMeta (string _object, GLib.Value p0)
+ {
+ InternalNotifyMeta (_object, p0);
+ }
+
+ private void InternalNotifyMeta (string _object, GLib.Value p0)
+ {
+ GLib.Value ret = GLib.Value.Empty;
+ GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
+ GLib.Value[] vals = new GLib.Value [3];
+ vals [0] = new GLib.Value (this);
+ inst_and_params.Append (vals [0]);
+ vals [1] = new GLib.Value (_object);
+ inst_and_params.Append (vals [1]);
+ vals [2] = new GLib.Value (p0);
+ inst_and_params.Append (vals [2]);
+ g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
+ foreach (GLib.Value v in vals)
+ v.Dispose ();
+ }
+
+
+ static Timeline ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("layers"
+ , Gst.Bin.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // layers
+ , null
+ , "tracks"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("tracks"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // tracks
+ , "layers"
+ , "priv"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("priv"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , "tracks"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/TimelineElement.cs b/ges/generated/GES/TimelineElement.cs
new file mode 100644
index 0000000..eac93c1
--- /dev/null
+++ b/ges/generated/GES/TimelineElement.cs
@@ -0,0 +1,2113 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class TimelineElement : GLib.InitiallyUnowned, GES.IExtractable, GES.IMetaContainer {
+
+ protected TimelineElement (IntPtr raw) : base(raw) {}
+
+ protected TimelineElement() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern ulong ges_timeline_element_get_duration(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_timeline_element_set_duration(IntPtr raw, ulong duration);
+
+ [GLib.Property ("duration")]
+ public ulong Duration {
+ get {
+ ulong raw_ret = ges_timeline_element_get_duration(Handle);
+ ulong ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_timeline_element_set_duration(Handle, value);
+ }
+ }
+
+ [GLib.Property ("in-point")]
+ public ulong InPoint {
+ get {
+ GLib.Value val = GetProperty ("in-point");
+ ulong ret = (ulong) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("in-point", val);
+ val.Dispose ();
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern ulong ges_timeline_element_get_max_duration(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_timeline_element_set_max_duration(IntPtr raw, ulong maxduration);
+
+ [GLib.Property ("max-duration")]
+ public ulong MaxDuration {
+ get {
+ ulong raw_ret = ges_timeline_element_get_max_duration(Handle);
+ ulong ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_timeline_element_set_max_duration(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_element_get_name(IntPtr raw);
+
+ [GLib.Property ("name")]
+ public string Name {
+ get {
+ IntPtr raw_ret = ges_timeline_element_get_name(Handle);
+ string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("name", val);
+ val.Dispose ();
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_element_get_parent(IntPtr raw);
+
+ [GLib.Property ("parent")]
+ public GES.TimelineElement Parent {
+ get {
+ IntPtr raw_ret = ges_timeline_element_get_parent(Handle);
+ GES.TimelineElement ret = GLib.Object.GetObject(raw_ret, true) as GES.TimelineElement;
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("parent", val);
+ val.Dispose ();
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern uint ges_timeline_element_get_priority(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_timeline_element_set_priority(IntPtr raw, uint priority);
+
+ [Obsolete]
+ [GLib.Property ("priority")]
+ public uint Priority {
+ get {
+ uint raw_ret = ges_timeline_element_get_priority(Handle);
+ uint ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_timeline_element_set_priority(Handle, value);
+ }
+ }
+
+ [GLib.Property ("serialize")]
+ public bool Serialize {
+ get {
+ GLib.Value val = GetProperty ("serialize");
+ bool ret = (bool) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("serialize", val);
+ val.Dispose ();
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern ulong ges_timeline_element_get_start(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_timeline_element_set_start(IntPtr raw, ulong start);
+
+ [GLib.Property ("start")]
+ public ulong Start {
+ get {
+ ulong raw_ret = ges_timeline_element_get_start(Handle);
+ ulong ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_timeline_element_set_start(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_element_get_timeline(IntPtr raw);
+
+ [GLib.Property ("timeline")]
+ public GES.Timeline Timeline {
+ get {
+ IntPtr raw_ret = ges_timeline_element_get_timeline(Handle);
+ GES.Timeline ret = GLib.Object.GetObject(raw_ret, true) as GES.Timeline;
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("timeline", val);
+ val.Dispose ();
+ }
+ }
+
+ public ulong StartField {
+ get {
+ unsafe {
+ ulong* raw_ptr = (ulong*)(((byte*)Handle) + abi_info.GetFieldOffset("start"));
+ return (*raw_ptr);
+ }
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern ulong ges_timeline_element_get_inpoint(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_timeline_element_set_inpoint(IntPtr raw, ulong inpoint);
+
+ public ulong Inpoint {
+ get {
+ ulong raw_ret = ges_timeline_element_get_inpoint(Handle);
+ ulong ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_timeline_element_set_inpoint(Handle, value);
+ }
+ }
+
+ public ulong DurationField {
+ get {
+ unsafe {
+ ulong* raw_ptr = (ulong*)(((byte*)Handle) + abi_info.GetFieldOffset("duration"));
+ return (*raw_ptr);
+ }
+ }
+ }
+
+ public ulong Maxduration {
+ get {
+ unsafe {
+ ulong* raw_ptr = (ulong*)(((byte*)Handle) + abi_info.GetFieldOffset("maxduration"));
+ return (*raw_ptr);
+ }
+ }
+ }
+
+ public uint PriorityField {
+ get {
+ unsafe {
+ uint* raw_ptr = (uint*)(((byte*)Handle) + abi_info.GetFieldOffset("priority"));
+ return (*raw_ptr);
+ }
+ }
+ }
+
+ public GES.Timeline TimelineField {
+ get {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("timeline"));
+ return GLib.Object.GetObject((*raw_ptr)) as GES.Timeline;
+ }
+ }
+ }
+
+ public string NameField {
+ get {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("name"));
+ return GLib.Marshaller.Utf8PtrToString ((*raw_ptr));
+ }
+ }
+ }
+
+ [GLib.Signal("deep-notify")]
+ public event GES.DeepNotifyHandler DeepNotify {
+ add {
+ this.AddSignalHandler ("deep-notify", value, typeof (GES.DeepNotifyArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("deep-notify", value);
+ }
+ }
+
+ static DeepNotifyNativeDelegate DeepNotify_cb_delegate;
+ static DeepNotifyNativeDelegate DeepNotifyVMCallback {
+ get {
+ if (DeepNotify_cb_delegate == null)
+ DeepNotify_cb_delegate = new DeepNotifyNativeDelegate (DeepNotify_cb);
+ return DeepNotify_cb_delegate;
+ }
+ }
+
+ static void OverrideDeepNotify (GLib.GType gtype)
+ {
+ OverrideDeepNotify (gtype, DeepNotifyVMCallback);
+ }
+
+ static void OverrideDeepNotify (GLib.GType gtype, DeepNotifyNativeDelegate callback)
+ {
+ OverrideVirtualMethod (gtype, "deep-notify", callback);
+ }
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void DeepNotifyNativeDelegate (IntPtr inst, IntPtr prop_object, IntPtr prop);
+
+ static void DeepNotify_cb (IntPtr inst, IntPtr prop_object, IntPtr prop)
+ {
+ try {
+ TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement;
+ __obj.OnDeepNotify (GLib.Object.GetObject (prop_object), prop);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideDeepNotify")]
+ protected virtual void OnDeepNotify (GLib.Object prop_object, IntPtr prop)
+ {
+ InternalDeepNotify (prop_object, prop);
+ }
+
+ private void InternalDeepNotify (GLib.Object prop_object, IntPtr prop)
+ {
+ GLib.Value ret = GLib.Value.Empty;
+ GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
+ GLib.Value[] vals = new GLib.Value [3];
+ vals [0] = new GLib.Value (this);
+ inst_and_params.Append (vals [0]);
+ vals [1] = new GLib.Value (prop_object);
+ inst_and_params.Append (vals [1]);
+ vals [2] = new GLib.Value (prop);
+ inst_and_params.Append (vals [2]);
+ g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
+ foreach (GLib.Value v in vals)
+ v.Dispose ();
+ }
+
+ static SetParentNativeDelegate SetParent_cb_delegate;
+ static SetParentNativeDelegate SetParentVMCallback {
+ get {
+ if (SetParent_cb_delegate == null)
+ SetParent_cb_delegate = new SetParentNativeDelegate (SetParent_cb);
+ return SetParent_cb_delegate;
+ }
+ }
+
+ static void OverrideSetParent (GLib.GType gtype)
+ {
+ OverrideSetParent (gtype, SetParentVMCallback);
+ }
+
+ static void OverrideSetParent (GLib.GType gtype, SetParentNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("set_parent"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate bool SetParentNativeDelegate (IntPtr inst, IntPtr parent);
+
+ static bool SetParent_cb (IntPtr inst, IntPtr parent)
+ {
+ try {
+ TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement;
+ bool __result;
+ __result = __obj.OnSetParent (GLib.Object.GetObject(parent) as GES.TimelineElement);
+ return __result;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideSetParent")]
+ protected virtual bool OnSetParent (GES.TimelineElement parent)
+ {
+ return InternalSetParent (parent);
+ }
+
+ private bool InternalSetParent (GES.TimelineElement parent)
+ {
+ SetParentNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("set_parent"));
+ unmanaged = (SetParentNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SetParentNativeDelegate));
+ }
+ if (unmanaged == null) return false;
+
+ bool __result = unmanaged (this.Handle, parent == null ? IntPtr.Zero : parent.Handle);
+ return __result;
+ }
+
+ static SetStartNativeDelegate SetStart_cb_delegate;
+ static SetStartNativeDelegate SetStartVMCallback {
+ get {
+ if (SetStart_cb_delegate == null)
+ SetStart_cb_delegate = new SetStartNativeDelegate (SetStart_cb);
+ return SetStart_cb_delegate;
+ }
+ }
+
+ static void OverrideSetStart (GLib.GType gtype)
+ {
+ OverrideSetStart (gtype, SetStartVMCallback);
+ }
+
+ static void OverrideSetStart (GLib.GType gtype, SetStartNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("set_start"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate bool SetStartNativeDelegate (IntPtr inst, ulong start);
+
+ static bool SetStart_cb (IntPtr inst, ulong start)
+ {
+ try {
+ TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement;
+ bool __result;
+ __result = __obj.OnSetStart (start);
+ return __result;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideSetStart")]
+ protected virtual bool OnSetStart (ulong start)
+ {
+ return InternalSetStart (start);
+ }
+
+ private bool InternalSetStart (ulong start)
+ {
+ SetStartNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("set_start"));
+ unmanaged = (SetStartNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SetStartNativeDelegate));
+ }
+ if (unmanaged == null) return false;
+
+ bool __result = unmanaged (this.Handle, start);
+ return __result;
+ }
+
+ static SetInpointNativeDelegate SetInpoint_cb_delegate;
+ static SetInpointNativeDelegate SetInpointVMCallback {
+ get {
+ if (SetInpoint_cb_delegate == null)
+ SetInpoint_cb_delegate = new SetInpointNativeDelegate (SetInpoint_cb);
+ return SetInpoint_cb_delegate;
+ }
+ }
+
+ static void OverrideSetInpoint (GLib.GType gtype)
+ {
+ OverrideSetInpoint (gtype, SetInpointVMCallback);
+ }
+
+ static void OverrideSetInpoint (GLib.GType gtype, SetInpointNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("set_inpoint"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate bool SetInpointNativeDelegate (IntPtr inst, ulong inpoint);
+
+ static bool SetInpoint_cb (IntPtr inst, ulong inpoint)
+ {
+ try {
+ TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement;
+ bool __result;
+ __result = __obj.OnSetInpoint (inpoint);
+ return __result;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideSetInpoint")]
+ protected virtual bool OnSetInpoint (ulong inpoint)
+ {
+ return InternalSetInpoint (inpoint);
+ }
+
+ private bool InternalSetInpoint (ulong inpoint)
+ {
+ SetInpointNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("set_inpoint"));
+ unmanaged = (SetInpointNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SetInpointNativeDelegate));
+ }
+ if (unmanaged == null) return false;
+
+ bool __result = unmanaged (this.Handle, inpoint);
+ return __result;
+ }
+
+ static SetDurationNativeDelegate SetDuration_cb_delegate;
+ static SetDurationNativeDelegate SetDurationVMCallback {
+ get {
+ if (SetDuration_cb_delegate == null)
+ SetDuration_cb_delegate = new SetDurationNativeDelegate (SetDuration_cb);
+ return SetDuration_cb_delegate;
+ }
+ }
+
+ static void OverrideSetDuration (GLib.GType gtype)
+ {
+ OverrideSetDuration (gtype, SetDurationVMCallback);
+ }
+
+ static void OverrideSetDuration (GLib.GType gtype, SetDurationNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("set_duration"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate bool SetDurationNativeDelegate (IntPtr inst, ulong duration);
+
+ static bool SetDuration_cb (IntPtr inst, ulong duration)
+ {
+ try {
+ TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement;
+ bool __result;
+ __result = __obj.OnSetDuration (duration);
+ return __result;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideSetDuration")]
+ protected virtual bool OnSetDuration (ulong duration)
+ {
+ return InternalSetDuration (duration);
+ }
+
+ private bool InternalSetDuration (ulong duration)
+ {
+ SetDurationNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("set_duration"));
+ unmanaged = (SetDurationNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SetDurationNativeDelegate));
+ }
+ if (unmanaged == null) return false;
+
+ bool __result = unmanaged (this.Handle, duration);
+ return __result;
+ }
+
+ static SetMaxDurationNativeDelegate SetMaxDuration_cb_delegate;
+ static SetMaxDurationNativeDelegate SetMaxDurationVMCallback {
+ get {
+ if (SetMaxDuration_cb_delegate == null)
+ SetMaxDuration_cb_delegate = new SetMaxDurationNativeDelegate (SetMaxDuration_cb);
+ return SetMaxDuration_cb_delegate;
+ }
+ }
+
+ static void OverrideSetMaxDuration (GLib.GType gtype)
+ {
+ OverrideSetMaxDuration (gtype, SetMaxDurationVMCallback);
+ }
+
+ static void OverrideSetMaxDuration (GLib.GType gtype, SetMaxDurationNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("set_max_duration"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate bool SetMaxDurationNativeDelegate (IntPtr inst, ulong maxduration);
+
+ static bool SetMaxDuration_cb (IntPtr inst, ulong maxduration)
+ {
+ try {
+ TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement;
+ bool __result;
+ __result = __obj.OnSetMaxDuration (maxduration);
+ return __result;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideSetMaxDuration")]
+ protected virtual bool OnSetMaxDuration (ulong maxduration)
+ {
+ return InternalSetMaxDuration (maxduration);
+ }
+
+ private bool InternalSetMaxDuration (ulong maxduration)
+ {
+ SetMaxDurationNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("set_max_duration"));
+ unmanaged = (SetMaxDurationNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SetMaxDurationNativeDelegate));
+ }
+ if (unmanaged == null) return false;
+
+ bool __result = unmanaged (this.Handle, maxduration);
+ return __result;
+ }
+
+ static SetPriorityNativeDelegate SetPriority_cb_delegate;
+ static SetPriorityNativeDelegate SetPriorityVMCallback {
+ get {
+ if (SetPriority_cb_delegate == null)
+ SetPriority_cb_delegate = new SetPriorityNativeDelegate (SetPriority_cb);
+ return SetPriority_cb_delegate;
+ }
+ }
+
+ static void OverrideSetPriority (GLib.GType gtype)
+ {
+ OverrideSetPriority (gtype, SetPriorityVMCallback);
+ }
+
+ static void OverrideSetPriority (GLib.GType gtype, SetPriorityNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("set_priority"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate bool SetPriorityNativeDelegate (IntPtr inst, uint priority);
+
+ static bool SetPriority_cb (IntPtr inst, uint priority)
+ {
+ try {
+ TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement;
+ bool __result;
+ __result = __obj.OnSetPriority (priority);
+ return __result;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideSetPriority")]
+ protected virtual bool OnSetPriority (uint priority)
+ {
+ return InternalSetPriority (priority);
+ }
+
+ private bool InternalSetPriority (uint priority)
+ {
+ SetPriorityNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("set_priority"));
+ unmanaged = (SetPriorityNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SetPriorityNativeDelegate));
+ }
+ if (unmanaged == null) return false;
+
+ bool __result = unmanaged (this.Handle, priority);
+ return __result;
+ }
+
+ static RippleNativeDelegate Ripple_cb_delegate;
+ static RippleNativeDelegate RippleVMCallback {
+ get {
+ if (Ripple_cb_delegate == null)
+ Ripple_cb_delegate = new RippleNativeDelegate (Ripple_cb);
+ return Ripple_cb_delegate;
+ }
+ }
+
+ static void OverrideRipple (GLib.GType gtype)
+ {
+ OverrideRipple (gtype, RippleVMCallback);
+ }
+
+ static void OverrideRipple (GLib.GType gtype, RippleNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("ripple"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate bool RippleNativeDelegate (IntPtr inst, ulong start);
+
+ static bool Ripple_cb (IntPtr inst, ulong start)
+ {
+ try {
+ TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement;
+ bool __result;
+ __result = __obj.OnRipple (start);
+ return __result;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideRipple")]
+ protected virtual bool OnRipple (ulong start)
+ {
+ return InternalRipple (start);
+ }
+
+ private bool InternalRipple (ulong start)
+ {
+ RippleNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("ripple"));
+ unmanaged = (RippleNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(RippleNativeDelegate));
+ }
+ if (unmanaged == null) return false;
+
+ bool __result = unmanaged (this.Handle, start);
+ return __result;
+ }
+
+ static RippleEndNativeDelegate RippleEnd_cb_delegate;
+ static RippleEndNativeDelegate RippleEndVMCallback {
+ get {
+ if (RippleEnd_cb_delegate == null)
+ RippleEnd_cb_delegate = new RippleEndNativeDelegate (RippleEnd_cb);
+ return RippleEnd_cb_delegate;
+ }
+ }
+
+ static void OverrideRippleEnd (GLib.GType gtype)
+ {
+ OverrideRippleEnd (gtype, RippleEndVMCallback);
+ }
+
+ static void OverrideRippleEnd (GLib.GType gtype, RippleEndNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("ripple_end"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate bool RippleEndNativeDelegate (IntPtr inst, ulong end);
+
+ static bool RippleEnd_cb (IntPtr inst, ulong end)
+ {
+ try {
+ TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement;
+ bool __result;
+ __result = __obj.OnRippleEnd (end);
+ return __result;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideRippleEnd")]
+ protected virtual bool OnRippleEnd (ulong end)
+ {
+ return InternalRippleEnd (end);
+ }
+
+ private bool InternalRippleEnd (ulong end)
+ {
+ RippleEndNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("ripple_end"));
+ unmanaged = (RippleEndNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(RippleEndNativeDelegate));
+ }
+ if (unmanaged == null) return false;
+
+ bool __result = unmanaged (this.Handle, end);
+ return __result;
+ }
+
+ static RollStartNativeDelegate RollStart_cb_delegate;
+ static RollStartNativeDelegate RollStartVMCallback {
+ get {
+ if (RollStart_cb_delegate == null)
+ RollStart_cb_delegate = new RollStartNativeDelegate (RollStart_cb);
+ return RollStart_cb_delegate;
+ }
+ }
+
+ static void OverrideRollStart (GLib.GType gtype)
+ {
+ OverrideRollStart (gtype, RollStartVMCallback);
+ }
+
+ static void OverrideRollStart (GLib.GType gtype, RollStartNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("roll_start"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate bool RollStartNativeDelegate (IntPtr inst, ulong start);
+
+ static bool RollStart_cb (IntPtr inst, ulong start)
+ {
+ try {
+ TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement;
+ bool __result;
+ __result = __obj.OnRollStart (start);
+ return __result;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideRollStart")]
+ protected virtual bool OnRollStart (ulong start)
+ {
+ return InternalRollStart (start);
+ }
+
+ private bool InternalRollStart (ulong start)
+ {
+ RollStartNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("roll_start"));
+ unmanaged = (RollStartNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(RollStartNativeDelegate));
+ }
+ if (unmanaged == null) return false;
+
+ bool __result = unmanaged (this.Handle, start);
+ return __result;
+ }
+
+ static RollEndNativeDelegate RollEnd_cb_delegate;
+ static RollEndNativeDelegate RollEndVMCallback {
+ get {
+ if (RollEnd_cb_delegate == null)
+ RollEnd_cb_delegate = new RollEndNativeDelegate (RollEnd_cb);
+ return RollEnd_cb_delegate;
+ }
+ }
+
+ static void OverrideRollEnd (GLib.GType gtype)
+ {
+ OverrideRollEnd (gtype, RollEndVMCallback);
+ }
+
+ static void OverrideRollEnd (GLib.GType gtype, RollEndNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("roll_end"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate bool RollEndNativeDelegate (IntPtr inst, ulong end);
+
+ static bool RollEnd_cb (IntPtr inst, ulong end)
+ {
+ try {
+ TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement;
+ bool __result;
+ __result = __obj.OnRollEnd (end);
+ return __result;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideRollEnd")]
+ protected virtual bool OnRollEnd (ulong end)
+ {
+ return InternalRollEnd (end);
+ }
+
+ private bool InternalRollEnd (ulong end)
+ {
+ RollEndNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("roll_end"));
+ unmanaged = (RollEndNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(RollEndNativeDelegate));
+ }
+ if (unmanaged == null) return false;
+
+ bool __result = unmanaged (this.Handle, end);
+ return __result;
+ }
+
+ static TrimNativeDelegate Trim_cb_delegate;
+ static TrimNativeDelegate TrimVMCallback {
+ get {
+ if (Trim_cb_delegate == null)
+ Trim_cb_delegate = new TrimNativeDelegate (Trim_cb);
+ return Trim_cb_delegate;
+ }
+ }
+
+ static void OverrideTrim (GLib.GType gtype)
+ {
+ OverrideTrim (gtype, TrimVMCallback);
+ }
+
+ static void OverrideTrim (GLib.GType gtype, TrimNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("trim"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate bool TrimNativeDelegate (IntPtr inst, ulong start);
+
+ static bool Trim_cb (IntPtr inst, ulong start)
+ {
+ try {
+ TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement;
+ bool __result;
+ __result = __obj.OnTrim (start);
+ return __result;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideTrim")]
+ protected virtual bool OnTrim (ulong start)
+ {
+ return InternalTrim (start);
+ }
+
+ private bool InternalTrim (ulong start)
+ {
+ TrimNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("trim"));
+ unmanaged = (TrimNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(TrimNativeDelegate));
+ }
+ if (unmanaged == null) return false;
+
+ bool __result = unmanaged (this.Handle, start);
+ return __result;
+ }
+
+ static DeepCopyNativeDelegate DeepCopy_cb_delegate;
+ static DeepCopyNativeDelegate DeepCopyVMCallback {
+ get {
+ if (DeepCopy_cb_delegate == null)
+ DeepCopy_cb_delegate = new DeepCopyNativeDelegate (DeepCopy_cb);
+ return DeepCopy_cb_delegate;
+ }
+ }
+
+ static void OverrideDeepCopy (GLib.GType gtype)
+ {
+ OverrideDeepCopy (gtype, DeepCopyVMCallback);
+ }
+
+ static void OverrideDeepCopy (GLib.GType gtype, DeepCopyNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("deep_copy"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void DeepCopyNativeDelegate (IntPtr inst, IntPtr copy);
+
+ static void DeepCopy_cb (IntPtr inst, IntPtr copy)
+ {
+ try {
+ TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement;
+ __obj.OnDeepCopy (GLib.Object.GetObject(copy) as GES.TimelineElement);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideDeepCopy")]
+ protected virtual void OnDeepCopy (GES.TimelineElement copy)
+ {
+ InternalDeepCopy (copy);
+ }
+
+ private void InternalDeepCopy (GES.TimelineElement copy)
+ {
+ DeepCopyNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("deep_copy"));
+ unmanaged = (DeepCopyNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(DeepCopyNativeDelegate));
+ }
+ if (unmanaged == null) return;
+
+ unmanaged (this.Handle, copy == null ? IntPtr.Zero : copy.Handle);
+ }
+
+ static LookupChildNativeDelegate LookupChild_cb_delegate;
+ static LookupChildNativeDelegate LookupChildVMCallback {
+ get {
+ if (LookupChild_cb_delegate == null)
+ LookupChild_cb_delegate = new LookupChildNativeDelegate (LookupChild_cb);
+ return LookupChild_cb_delegate;
+ }
+ }
+
+ static void OverrideLookupChild (GLib.GType gtype)
+ {
+ OverrideLookupChild (gtype, LookupChildVMCallback);
+ }
+
+ static void OverrideLookupChild (GLib.GType gtype, LookupChildNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("lookup_child"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate bool LookupChildNativeDelegate (IntPtr inst, IntPtr prop_name, out IntPtr child, out IntPtr pspec);
+
+ static bool LookupChild_cb (IntPtr inst, IntPtr prop_name, out IntPtr child, out IntPtr pspec)
+ {
+ try {
+ TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement;
+ bool __result;
+ GLib.Object mychild;
+ __result = __obj.OnLookupChild (GLib.Marshaller.Utf8PtrToString (prop_name), out mychild, out pspec);
+ child = mychild == null ? IntPtr.Zero : mychild.Handle;
+ return __result;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideLookupChild")]
+ protected virtual bool OnLookupChild (string prop_name, out GLib.Object child, out IntPtr pspec)
+ {
+ return InternalLookupChild (prop_name, out child, out pspec);
+ }
+
+ private bool InternalLookupChild (string prop_name, out GLib.Object child, out IntPtr pspec)
+ {
+ LookupChildNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("lookup_child"));
+ unmanaged = (LookupChildNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(LookupChildNativeDelegate));
+ }
+ if (unmanaged == null) throw new InvalidOperationException ("No base method to invoke");
+
+ IntPtr native_prop_name = GLib.Marshaller.StringToPtrGStrdup (prop_name);
+ IntPtr native_child;
+ bool __result = unmanaged (this.Handle, native_prop_name, out native_child, out pspec);
+ GLib.Marshaller.Free (native_prop_name);
+ child = GLib.Object.GetObject (native_child);
+ return __result;
+ }
+
+ static GetTrackTypesNativeDelegate GetTrackTypes_cb_delegate;
+ static GetTrackTypesNativeDelegate GetTrackTypesVMCallback {
+ get {
+ if (GetTrackTypes_cb_delegate == null)
+ GetTrackTypes_cb_delegate = new GetTrackTypesNativeDelegate (GetTrackTypes_cb);
+ return GetTrackTypes_cb_delegate;
+ }
+ }
+
+ static void OverrideGetTrackTypes (GLib.GType gtype)
+ {
+ OverrideGetTrackTypes (gtype, GetTrackTypesVMCallback);
+ }
+
+ static void OverrideGetTrackTypes (GLib.GType gtype, GetTrackTypesNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_track_types"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate int GetTrackTypesNativeDelegate (IntPtr inst);
+
+ static int GetTrackTypes_cb (IntPtr inst)
+ {
+ try {
+ TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement;
+ GES.TrackType __result;
+ __result = __obj.OnGetTrackTypes ();
+ return (int) __result;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideGetTrackTypes")]
+ protected virtual GES.TrackType OnGetTrackTypes ()
+ {
+ return InternalGetTrackTypes ();
+ }
+
+ private GES.TrackType InternalGetTrackTypes ()
+ {
+ GetTrackTypesNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_track_types"));
+ unmanaged = (GetTrackTypesNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetTrackTypesNativeDelegate));
+ }
+ if (unmanaged == null) return (GES.TrackType) 0;
+
+ int __result = unmanaged (this.Handle);
+ return (GES.TrackType) __result;
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("set_parent"
+ , GLib.Object.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // set_parent
+ , null
+ , "set_start"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("set_start"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // set_start
+ , "set_parent"
+ , "set_inpoint"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("set_inpoint"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // set_inpoint
+ , "set_start"
+ , "set_duration"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("set_duration"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // set_duration
+ , "set_inpoint"
+ , "set_max_duration"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("set_max_duration"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // set_max_duration
+ , "set_duration"
+ , "set_priority"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("set_priority"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // set_priority
+ , "set_max_duration"
+ , "ripple"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("ripple"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // ripple
+ , "set_priority"
+ , "ripple_end"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("ripple_end"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // ripple_end
+ , "ripple"
+ , "roll_start"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("roll_start"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // roll_start
+ , "ripple_end"
+ , "roll_end"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("roll_end"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // roll_end
+ , "roll_start"
+ , "trim"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("trim"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // trim
+ , "roll_end"
+ , "deep_copy"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("deep_copy"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // deep_copy
+ , "trim"
+ , "paste"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("paste"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // paste
+ , "deep_copy"
+ , "list_children_properties"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("list_children_properties"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // list_children_properties
+ , "paste"
+ , "lookup_child"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("lookup_child"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // lookup_child
+ , "list_children_properties"
+ , "get_track_types"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("get_track_types"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // get_track_types
+ , "lookup_child"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 18 // _ges_reserved
+ , "get_track_types"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_element_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_timeline_element_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_element_add_child_property(IntPtr raw, IntPtr pspec, IntPtr child);
+
+ public bool AddChildProperty(IntPtr pspec, GLib.Object child) {
+ bool raw_ret = ges_timeline_element_add_child_property(Handle, pspec, child == null ? IntPtr.Zero : child.Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_element_copy(IntPtr raw, bool deep);
+
+ public GES.TimelineElement Copy(bool deep) {
+ IntPtr raw_ret = ges_timeline_element_copy(Handle, deep);
+ GES.TimelineElement ret = GLib.Object.GetObject(raw_ret) as GES.TimelineElement;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_element_get_child_property(IntPtr raw, IntPtr property_name, IntPtr value);
+
+ public bool GetChildProperty(string property_name, out GLib.Value value) {
+ IntPtr native_property_name = GLib.Marshaller.StringToPtrGStrdup (property_name);
+ IntPtr native_value = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (GLib.Value)));
+ bool raw_ret = ges_timeline_element_get_child_property(Handle, native_property_name, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_property_name);
+ value = (GLib.Value) Marshal.PtrToStructure (native_value, typeof (GLib.Value));
+ Marshal.FreeHGlobal (native_value);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_timeline_element_get_child_property_by_pspec(IntPtr raw, IntPtr pspec, IntPtr value);
+
+ public GLib.Value GetChildPropertyByPspec(IntPtr pspec) {
+ GLib.Value value;
+ IntPtr native_value = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (GLib.Value)));
+ ges_timeline_element_get_child_property_by_pspec(Handle, pspec, native_value);
+ value = (GLib.Value) Marshal.PtrToStructure (native_value, typeof (GLib.Value));
+ Marshal.FreeHGlobal (native_value);
+ return value;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_element_get_toplevel_parent(IntPtr raw);
+
+ public GES.TimelineElement ToplevelParent {
+ get {
+ IntPtr raw_ret = ges_timeline_element_get_toplevel_parent(Handle);
+ GES.TimelineElement ret = GLib.Object.GetObject(raw_ret, true) as GES.TimelineElement;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_timeline_element_get_track_types(IntPtr raw);
+
+ public GES.TrackType TrackTypes {
+ get {
+ int raw_ret = ges_timeline_element_get_track_types(Handle);
+ GES.TrackType ret = (GES.TrackType) raw_ret;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_element_lookup_child(IntPtr raw, IntPtr prop_name, out IntPtr child, out IntPtr pspec);
+
+ public bool LookupChild(string prop_name, out GLib.Object child, out IntPtr pspec) {
+ IntPtr native_prop_name = GLib.Marshaller.StringToPtrGStrdup (prop_name);
+ IntPtr native_child;
+ bool raw_ret = ges_timeline_element_lookup_child(Handle, native_prop_name, out native_child, out pspec);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_prop_name);
+ child = GLib.Object.GetObject (native_child);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_timeline_element_paste(IntPtr raw, ulong paste_position);
+
+ public GES.TimelineElement Paste(ulong paste_position) {
+ IntPtr raw_ret = ges_timeline_element_paste(Handle, paste_position);
+ GES.TimelineElement ret = GLib.Object.GetObject(raw_ret) as GES.TimelineElement;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_element_remove_child_property(IntPtr raw, IntPtr pspec);
+
+ public bool RemoveChildProperty(IntPtr pspec) {
+ bool raw_ret = ges_timeline_element_remove_child_property(Handle, pspec);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_element_ripple(IntPtr raw, ulong start);
+
+ public bool Ripple(ulong start) {
+ bool raw_ret = ges_timeline_element_ripple(Handle, start);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_element_ripple_end(IntPtr raw, ulong end);
+
+ public bool RippleEnd(ulong end) {
+ bool raw_ret = ges_timeline_element_ripple_end(Handle, end);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_element_roll_end(IntPtr raw, ulong end);
+
+ public bool RollEnd(ulong end) {
+ bool raw_ret = ges_timeline_element_roll_end(Handle, end);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_element_roll_start(IntPtr raw, ulong start);
+
+ public bool RollStart(ulong start) {
+ bool raw_ret = ges_timeline_element_roll_start(Handle, start);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_element_set_child_property(IntPtr raw, IntPtr property_name, IntPtr value);
+
+ public bool SetChildProperty(string property_name, GLib.Value value) {
+ IntPtr native_property_name = GLib.Marshaller.StringToPtrGStrdup (property_name);
+ IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
+ bool raw_ret = ges_timeline_element_set_child_property(Handle, native_property_name, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_property_name);
+ Marshal.FreeHGlobal (native_value);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_timeline_element_set_child_property_by_pspec(IntPtr raw, IntPtr pspec, IntPtr value);
+
+ public void SetChildPropertyByPspec(IntPtr pspec, GLib.Value value) {
+ IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
+ ges_timeline_element_set_child_property_by_pspec(Handle, pspec, native_value);
+ Marshal.FreeHGlobal (native_value);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_element_set_name(IntPtr raw, IntPtr name);
+
+ public bool SetName(string name) {
+ IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
+ bool raw_ret = ges_timeline_element_set_name(Handle, native_name);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_name);
+ return ret;
+ }
+
+ public bool SetName() {
+ return SetName (null);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_element_set_parent(IntPtr raw, IntPtr parent);
+
+ public bool SetParent(GES.TimelineElement parent) {
+ bool raw_ret = ges_timeline_element_set_parent(Handle, parent == null ? IntPtr.Zero : parent.Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_element_set_timeline(IntPtr raw, IntPtr timeline);
+
+ public bool SetTimeline(GES.Timeline timeline) {
+ bool raw_ret = ges_timeline_element_set_timeline(Handle, timeline == null ? IntPtr.Zero : timeline.Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_timeline_element_trim(IntPtr raw, ulong start);
+
+ public bool Trim(ulong start) {
+ bool raw_ret = ges_timeline_element_trim(Handle, start);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_extractable_get_asset(IntPtr raw);
+
+ public GES.Asset Asset {
+ get {
+ IntPtr raw_ret = ges_extractable_get_asset(Handle);
+ GES.Asset ret = GLib.Object.GetObject(raw_ret) as GES.Asset;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_extractable_get_id(IntPtr raw);
+
+ public string Id {
+ get {
+ IntPtr raw_ret = ges_extractable_get_id(Handle);
+ string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_extractable_set_asset(IntPtr raw, IntPtr asset);
+
+ 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;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_add_metas_from_string(IntPtr raw, IntPtr str);
+
+ public bool AddMetasFromString(string str) {
+ IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (str);
+ bool raw_ret = ges_meta_container_add_metas_from_string(Handle, native_str);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_str);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_check_meta_registered(IntPtr raw, IntPtr meta_item, int flags, IntPtr type);
+
+ public bool CheckMetaRegistered(string meta_item, GES.MetaFlag flags, GLib.GType type) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_check_meta_registered(Handle, native_meta_item, (int) flags, type.Val);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_meta_container_foreach(IntPtr raw, GESSharp.MetaForeachFuncNative func, IntPtr user_data);
+
+ public void Foreach(GES.MetaForeachFunc func) {
+ GESSharp.MetaForeachFuncWrapper func_wrapper = new GESSharp.MetaForeachFuncWrapper (func);
+ ges_meta_container_foreach(Handle, func_wrapper.NativeDelegate, IntPtr.Zero);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_boolean(IntPtr raw, IntPtr meta_item, out bool dest);
+
+ public bool GetBoolean(string meta_item, out bool dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_boolean(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_date_time(IntPtr raw, IntPtr meta_item, out IntPtr dest);
+
+ public bool GetDateTime(string meta_item, out Gst.DateTime dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_dest;
+ bool raw_ret = ges_meta_container_get_date_time(Handle, native_meta_item, out native_dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ dest = native_dest == IntPtr.Zero ? null : (Gst.DateTime) GLib.Opaque.GetOpaque (native_dest, typeof (Gst.DateTime), true);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_double(IntPtr raw, IntPtr meta_item, out double dest);
+
+ public bool GetDouble(string meta_item, out double dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_double(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_float(IntPtr raw, IntPtr meta_item, out float dest);
+
+ public bool GetFloat(string meta_item, out float dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_float(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_int(IntPtr raw, IntPtr meta_item, out int dest);
+
+ public bool GetInt(string meta_item, out int dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_int(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_int64(IntPtr raw, IntPtr meta_item, out long dest);
+
+ public bool GetInt64(string meta_item, out long dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_int64(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_container_get_meta(IntPtr raw, IntPtr key);
+
+ public GLib.Value GetMeta(string key) {
+ IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup (key);
+ IntPtr raw_ret = ges_meta_container_get_meta(Handle, native_key);
+ GLib.Value ret = (GLib.Value) Marshal.PtrToStructure (raw_ret, typeof (GLib.Value));
+ GLib.Marshaller.Free (native_key);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_container_get_string(IntPtr raw, IntPtr meta_item);
+
+ public string GetString(string meta_item) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr raw_ret = ges_meta_container_get_string(Handle, native_meta_item);
+ string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_uint(IntPtr raw, IntPtr meta_item, out uint dest);
+
+ public bool GetUint(string meta_item, out uint dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_uint(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_uint64(IntPtr raw, IntPtr meta_item, out ulong dest);
+
+ public bool GetUint64(string meta_item, out ulong dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_uint64(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_container_metas_to_string(IntPtr raw);
+
+ public string MetasToString() {
+ IntPtr raw_ret = ges_meta_container_metas_to_string(Handle);
+ string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
+
+ public bool RegisterMeta(GES.MetaFlag flags, string meta_item, GLib.Value value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
+ bool raw_ret = ges_meta_container_register_meta(Handle, (int) flags, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ Marshal.FreeHGlobal (native_value);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_boolean(IntPtr raw, int flags, IntPtr meta_item, bool value);
+
+ public bool RegisterMetaBoolean(GES.MetaFlag flags, string meta_item, bool value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_boolean(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_date_time(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
+
+ public bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item, Gst.DateTime value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_date_time(Handle, (int) flags, native_meta_item, value == null ? IntPtr.Zero : value.Handle);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ public bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item) {
+ return RegisterMetaDateTime (flags, meta_item, null);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_double(IntPtr raw, int flags, IntPtr meta_item, double value);
+
+ public bool RegisterMetaDouble(GES.MetaFlag flags, string meta_item, double value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_double(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_float(IntPtr raw, int flags, IntPtr meta_item, float value);
+
+ public bool RegisterMetaFloat(GES.MetaFlag flags, string meta_item, float value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_float(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_int(IntPtr raw, int flags, IntPtr meta_item, int value);
+
+ public bool RegisterMetaInt(GES.MetaFlag flags, string meta_item, int value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_int(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_int64(IntPtr raw, int flags, IntPtr meta_item, long value);
+
+ public bool RegisterMetaInt64(GES.MetaFlag flags, string meta_item, long value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_int64(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_string(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
+
+ public bool RegisterMetaString(GES.MetaFlag flags, string meta_item, string value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ bool raw_ret = ges_meta_container_register_meta_string(Handle, (int) flags, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ GLib.Marshaller.Free (native_value);
+ return ret;
+ }
+
+ public bool RegisterMetaString(GES.MetaFlag flags, string meta_item) {
+ return RegisterMetaString (flags, meta_item, null);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_uint(IntPtr raw, int flags, IntPtr meta_item, uint value);
+
+ public bool RegisterMetaUint(GES.MetaFlag flags, string meta_item, uint value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_uint(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_uint64(IntPtr raw, int flags, IntPtr meta_item, ulong value);
+
+ public bool RegisterMetaUint64(GES.MetaFlag flags, string meta_item, ulong value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_uint64(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_boolean(IntPtr raw, IntPtr meta_item, bool value);
+
+ public bool SetBoolean(string meta_item, bool value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_boolean(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_date_time(IntPtr raw, IntPtr meta_item, IntPtr value);
+
+ public bool SetDateTime(string meta_item, Gst.DateTime value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_date_time(Handle, native_meta_item, value == null ? IntPtr.Zero : value.Handle);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_double(IntPtr raw, IntPtr meta_item, double value);
+
+ public bool SetDouble(string meta_item, double value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_double(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_float(IntPtr raw, IntPtr meta_item, float value);
+
+ public bool SetFloat(string meta_item, float value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_float(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_int(IntPtr raw, IntPtr meta_item, int value);
+
+ public bool SetInt(string meta_item, int value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_int(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_int64(IntPtr raw, IntPtr meta_item, long value);
+
+ public bool SetInt64(string meta_item, long value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_int64(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_meta(IntPtr raw, IntPtr meta_item, IntPtr value);
+
+ public bool SetMeta(string meta_item, GLib.Value value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
+ bool raw_ret = ges_meta_container_set_meta(Handle, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ Marshal.FreeHGlobal (native_value);
+ return ret;
+ }
+
+ public bool SetMeta(string meta_item) {
+ return SetMeta (meta_item, GLib.Value.Empty);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_string(IntPtr raw, IntPtr meta_item, IntPtr value);
+
+ public bool SetString(string meta_item, string value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ bool raw_ret = ges_meta_container_set_string(Handle, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ GLib.Marshaller.Free (native_value);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_uint(IntPtr raw, IntPtr meta_item, uint value);
+
+ public bool SetUint(string meta_item, uint value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_uint(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_uint64(IntPtr raw, IntPtr meta_item, ulong value);
+
+ public bool SetUint64(string meta_item, ulong value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_uint64(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [GLib.Signal("notify-meta")]
+ public event GES.NotifyMetaHandler NotifyMeta {
+ add {
+ this.AddSignalHandler ("notify-meta", value, typeof (GES.NotifyMetaArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("notify-meta", value);
+ }
+ }
+
+ static NotifyMetaNativeDelegate NotifyMeta_cb_delegate;
+ static NotifyMetaNativeDelegate NotifyMetaVMCallback {
+ get {
+ if (NotifyMeta_cb_delegate == null)
+ NotifyMeta_cb_delegate = new NotifyMetaNativeDelegate (NotifyMeta_cb);
+ return NotifyMeta_cb_delegate;
+ }
+ }
+
+ static void OverrideNotifyMeta (GLib.GType gtype)
+ {
+ OverrideNotifyMeta (gtype, NotifyMetaVMCallback);
+ }
+
+ static void OverrideNotifyMeta (GLib.GType gtype, NotifyMetaNativeDelegate callback)
+ {
+ OverrideVirtualMethod (gtype, "notify-meta", callback);
+ }
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void NotifyMetaNativeDelegate (IntPtr inst, IntPtr _object, IntPtr p0);
+
+ static void NotifyMeta_cb (IntPtr inst, IntPtr _object, IntPtr p0)
+ {
+ try {
+ GES.TimelineElement __obj = GLib.Object.GetObject (inst, false) as GES.TimelineElement;
+ __obj.OnNotifyMeta (GLib.Marshaller.Utf8PtrToString (_object), (GLib.Value) Marshal.PtrToStructure (p0, typeof (GLib.Value)));
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideNotifyMeta")]
+ protected virtual void OnNotifyMeta (string _object, GLib.Value p0)
+ {
+ InternalNotifyMeta (_object, p0);
+ }
+
+ private void InternalNotifyMeta (string _object, GLib.Value p0)
+ {
+ GLib.Value ret = GLib.Value.Empty;
+ GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
+ GLib.Value[] vals = new GLib.Value [3];
+ vals [0] = new GLib.Value (this);
+ inst_and_params.Append (vals [0]);
+ vals [1] = new GLib.Value (_object);
+ inst_and_params.Append (vals [1]);
+ vals [2] = new GLib.Value (p0);
+ inst_and_params.Append (vals [2]);
+ g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
+ foreach (GLib.Value v in vals)
+ v.Dispose ();
+ }
+
+
+ static TimelineElement ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("parent"
+ , GLib.Object.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // parent
+ , null
+ , "asset"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("asset"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // asset
+ , "parent"
+ , "start"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("start"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(ulong)) // start
+ , "asset"
+ , "inpoint"
+ , (long) Marshal.OffsetOf(typeof(GESTimelineElement_startAlign), "start")
+ , 0
+ ),
+ new GLib.AbiField("inpoint"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(ulong)) // inpoint
+ , "start"
+ , "duration"
+ , (long) Marshal.OffsetOf(typeof(GESTimelineElement_inpointAlign), "inpoint")
+ , 0
+ ),
+ new GLib.AbiField("duration"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(ulong)) // duration
+ , "inpoint"
+ , "maxduration"
+ , (long) Marshal.OffsetOf(typeof(GESTimelineElement_durationAlign), "duration")
+ , 0
+ ),
+ new GLib.AbiField("maxduration"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(ulong)) // maxduration
+ , "duration"
+ , "priority"
+ , (long) Marshal.OffsetOf(typeof(GESTimelineElement_maxdurationAlign), "maxduration")
+ , 0
+ ),
+ new GLib.AbiField("priority"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(uint)) // priority
+ , "maxduration"
+ , "timeline"
+ , (long) Marshal.OffsetOf(typeof(GESTimelineElement_priorityAlign), "priority")
+ , 0
+ ),
+ new GLib.AbiField("timeline"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // timeline
+ , "priority"
+ , "name"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("name"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // name
+ , "timeline"
+ , "priv"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("priv"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , "name"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 20 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct GESTimelineElement_startAlign
+ {
+ sbyte f1;
+ private ulong start;
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct GESTimelineElement_inpointAlign
+ {
+ sbyte f1;
+ private ulong inpoint;
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct GESTimelineElement_durationAlign
+ {
+ sbyte f1;
+ private ulong duration;
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct GESTimelineElement_maxdurationAlign
+ {
+ sbyte f1;
+ private ulong maxduration;
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct GESTimelineElement_priorityAlign
+ {
+ sbyte f1;
+ private uint priority;
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/TitleClip.cs b/ges/generated/GES/TitleClip.cs
new file mode 100644
index 0000000..dc301a7
--- /dev/null
+++ b/ges/generated/GES/TitleClip.cs
@@ -0,0 +1,278 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class TitleClip : GES.SourceClip {
+
+ public TitleClip (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_title_clip_new();
+
+ public TitleClip () : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (TitleClip)) {
+ CreateNativeObject (new string [0], new GLib.Value[0]);
+ return;
+ }
+ Raw = ges_title_clip_new();
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_title_clip_set_background(IntPtr raw, uint background);
+
+ [Obsolete]
+ [GLib.Property ("background")]
+ public uint Background {
+ get {
+ GLib.Value val = GetProperty ("background");
+ uint ret = (uint) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ ges_title_clip_set_background(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_title_clip_set_color(IntPtr raw, uint color);
+
+ [Obsolete]
+ [GLib.Property ("color")]
+ public uint Color {
+ get {
+ GLib.Value val = GetProperty ("color");
+ uint ret = (uint) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ ges_title_clip_set_color(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_title_clip_get_font_desc(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_title_clip_set_font_desc(IntPtr raw, IntPtr font_desc);
+
+ [Obsolete]
+ [GLib.Property ("font-desc")]
+ public string FontDesc {
+ get {
+ IntPtr raw_ret = ges_title_clip_get_font_desc(Handle);
+ string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
+ return ret;
+ }
+ set {
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ ges_title_clip_set_font_desc(Handle, native_value);
+ GLib.Marshaller.Free (native_value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_title_clip_get_halignment(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_title_clip_set_halignment(IntPtr raw, int halign);
+
+ [Obsolete]
+ [GLib.Property ("halignment")]
+ public GES.TextHAlign Halignment {
+ get {
+ int raw_ret = ges_title_clip_get_halignment(Handle);
+ GES.TextHAlign ret = (GES.TextHAlign) raw_ret;
+ return ret;
+ }
+ set {
+ ges_title_clip_set_halignment(Handle, (int) value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_title_clip_get_text(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_title_clip_set_text(IntPtr raw, IntPtr text);
+
+ [Obsolete]
+ [GLib.Property ("text")]
+ public string Text {
+ get {
+ IntPtr raw_ret = ges_title_clip_get_text(Handle);
+ string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
+ return ret;
+ }
+ set {
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ ges_title_clip_set_text(Handle, native_value);
+ GLib.Marshaller.Free (native_value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_title_clip_get_valignment(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_title_clip_set_valignment(IntPtr raw, int valign);
+
+ [Obsolete]
+ [GLib.Property ("valignment")]
+ public GES.TextVAlign Valignment {
+ get {
+ int raw_ret = ges_title_clip_get_valignment(Handle);
+ GES.TextVAlign ret = (GES.TextVAlign) raw_ret;
+ return ret;
+ }
+ set {
+ ges_title_clip_set_valignment(Handle, (int) value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern double ges_title_clip_get_xpos(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_title_clip_set_xpos(IntPtr raw, double position);
+
+ [Obsolete]
+ [GLib.Property ("xpos")]
+ public double Xpos {
+ get {
+ double raw_ret = ges_title_clip_get_xpos(Handle);
+ double ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_title_clip_set_xpos(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern double ges_title_clip_get_ypos(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_title_clip_set_ypos(IntPtr raw, double position);
+
+ [Obsolete]
+ [GLib.Property ("ypos")]
+ public double Ypos {
+ get {
+ double raw_ret = ges_title_clip_get_ypos(Handle);
+ double ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_title_clip_set_ypos(Handle, value);
+ }
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.SourceClip.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_title_clip_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_title_clip_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern uint ges_title_clip_get_background_color(IntPtr raw);
+
+ [Obsolete]
+ public uint BackgroundColor {
+ get {
+ uint raw_ret = ges_title_clip_get_background_color(Handle);
+ uint ret = raw_ret;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern uint ges_title_clip_get_text_color(IntPtr raw);
+
+ [Obsolete]
+ public uint TextColor {
+ get {
+ uint raw_ret = ges_title_clip_get_text_color(Handle);
+ uint ret = raw_ret;
+ return ret;
+ }
+ }
+
+
+ static TitleClip ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.SourceClip.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/TitleSource.cs b/ges/generated/GES/TitleSource.cs
new file mode 100644
index 0000000..6e6da86
--- /dev/null
+++ b/ges/generated/GES/TitleSource.cs
@@ -0,0 +1,235 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class TitleSource : GES.VideoSource {
+
+ public TitleSource (IntPtr raw) : base(raw) {}
+
+ protected TitleSource() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.VideoSource.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 3 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_title_source_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_title_source_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern uint ges_title_source_get_background_color(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_title_source_set_background_color(IntPtr raw, uint color);
+
+ public uint BackgroundColor {
+ get {
+ uint raw_ret = ges_title_source_get_background_color(Handle);
+ uint ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_title_source_set_background_color(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_title_source_get_font_desc(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_title_source_set_font_desc(IntPtr raw, IntPtr font_desc);
+
+ public string FontDesc {
+ get {
+ IntPtr raw_ret = ges_title_source_get_font_desc(Handle);
+ string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
+ return ret;
+ }
+ set {
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ ges_title_source_set_font_desc(Handle, native_value);
+ GLib.Marshaller.Free (native_value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_title_source_get_halignment(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_title_source_set_halignment(IntPtr raw, int halign);
+
+ public GES.TextHAlign Halignment {
+ get {
+ int raw_ret = ges_title_source_get_halignment(Handle);
+ GES.TextHAlign ret = (GES.TextHAlign) raw_ret;
+ return ret;
+ }
+ set {
+ ges_title_source_set_halignment(Handle, (int) value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_title_source_get_text(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_title_source_set_text(IntPtr raw, IntPtr text);
+
+ public string Text {
+ get {
+ IntPtr raw_ret = ges_title_source_get_text(Handle);
+ string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
+ return ret;
+ }
+ set {
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ ges_title_source_set_text(Handle, native_value);
+ GLib.Marshaller.Free (native_value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern uint ges_title_source_get_text_color(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_title_source_set_text_color(IntPtr raw, uint color);
+
+ public uint TextColor {
+ get {
+ uint raw_ret = ges_title_source_get_text_color(Handle);
+ uint ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_title_source_set_text_color(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_title_source_get_valignment(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_title_source_set_valignment(IntPtr raw, int valign);
+
+ public GES.TextVAlign Valignment {
+ get {
+ int raw_ret = ges_title_source_get_valignment(Handle);
+ GES.TextVAlign ret = (GES.TextVAlign) raw_ret;
+ return ret;
+ }
+ set {
+ ges_title_source_set_valignment(Handle, (int) value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern double ges_title_source_get_xpos(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_title_source_set_xpos(IntPtr raw, double position);
+
+ public double Xpos {
+ get {
+ double raw_ret = ges_title_source_get_xpos(Handle);
+ double ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_title_source_set_xpos(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern double ges_title_source_get_ypos(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_title_source_set_ypos(IntPtr raw, double position);
+
+ public double Ypos {
+ get {
+ double raw_ret = ges_title_source_get_ypos(Handle);
+ double ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_title_source_set_ypos(Handle, value);
+ }
+ }
+
+
+ static TitleSource ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.VideoSource.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/Track.cs b/ges/generated/GES/Track.cs
new file mode 100644
index 0000000..463785e
--- /dev/null
+++ b/ges/generated/GES/Track.cs
@@ -0,0 +1,902 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class Track : Gst.Bin, GES.IMetaContainer {
+
+ public Track (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_track_new(int type, IntPtr caps);
+
+ public Track (GES.TrackType type, Gst.Caps caps) : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (Track)) {
+ var vals = new List<GLib.Value> ();
+ var names = new List<string> ();
+ names.Add ("caps");
+ vals.Add (new GLib.Value (caps));
+ CreateNativeObject (names.ToArray (), vals.ToArray ());
+ return;
+ }
+ caps.Owned = false;
+ Raw = ges_track_new((int) type, caps == null ? IntPtr.Zero : caps.Handle);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_track_get_caps(IntPtr raw);
+
+ [GLib.Property ("caps")]
+ public Gst.Caps Caps {
+ get {
+ IntPtr raw_ret = ges_track_get_caps(Handle);
+ Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), false);
+ return ret;
+ }
+ }
+
+ [GLib.Property ("duration")]
+ public ulong Duration {
+ get {
+ GLib.Value val = GetProperty ("duration");
+ ulong ret = (ulong) val;
+ val.Dispose ();
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_track_get_mixing(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_track_set_mixing(IntPtr raw, bool mixing);
+
+ [GLib.Property ("mixing")]
+ public bool Mixing {
+ get {
+ bool raw_ret = ges_track_get_mixing(Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+ set {
+ ges_track_set_mixing(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_track_set_restriction_caps(IntPtr raw, IntPtr caps);
+
+ [GLib.Property ("restriction-caps")]
+ public Gst.Caps RestrictionCaps {
+ get {
+ GLib.Value val = GetProperty ("restriction-caps");
+ Gst.Caps ret = (Gst.Caps) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ ges_track_set_restriction_caps(Handle, value == null ? IntPtr.Zero : value.Handle);
+ }
+ }
+
+ [GLib.Property ("track-type")]
+ public GES.TrackType TrackType {
+ get {
+ GLib.Value val = GetProperty ("track-type");
+ GES.TrackType ret = (GES.TrackType) (Enum) val;
+ val.Dispose ();
+ return ret;
+ }
+ }
+
+ public GES.TrackType Type {
+ get {
+ unsafe {
+ int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("type"));
+ return (GES.TrackType) (*raw_ptr);
+ }
+ }
+ }
+
+ [GLib.Signal("track-element-added")]
+ public event GES.TrackElementAddedHandler TrackElementAdded {
+ add {
+ this.AddSignalHandler ("track-element-added", value, typeof (GES.TrackElementAddedArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("track-element-added", value);
+ }
+ }
+
+ [GLib.Signal("track-element-removed")]
+ public event GES.TrackElementRemovedHandler TrackElementRemoved {
+ add {
+ this.AddSignalHandler ("track-element-removed", value, typeof (GES.TrackElementRemovedArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("track-element-removed", value);
+ }
+ }
+
+ [GLib.Signal("commited")]
+ public event System.EventHandler Commited {
+ add {
+ this.AddSignalHandler ("commited", value);
+ }
+ remove {
+ this.RemoveSignalHandler ("commited", value);
+ }
+ }
+
+ static CommitedNativeDelegate Commited_cb_delegate;
+ static CommitedNativeDelegate CommitedVMCallback {
+ get {
+ if (Commited_cb_delegate == null)
+ Commited_cb_delegate = new CommitedNativeDelegate (Commited_cb);
+ return Commited_cb_delegate;
+ }
+ }
+
+ static void OverrideCommited (GLib.GType gtype)
+ {
+ OverrideCommited (gtype, CommitedVMCallback);
+ }
+
+ static void OverrideCommited (GLib.GType gtype, CommitedNativeDelegate callback)
+ {
+ OverrideVirtualMethod (gtype, "commited", callback);
+ }
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void CommitedNativeDelegate (IntPtr inst);
+
+ static void Commited_cb (IntPtr inst)
+ {
+ try {
+ Track __obj = GLib.Object.GetObject (inst, false) as Track;
+ __obj.OnCommited ();
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Track), ConnectionMethod="OverrideCommited")]
+ protected virtual void OnCommited ()
+ {
+ InternalCommited ();
+ }
+
+ private void InternalCommited ()
+ {
+ GLib.Value ret = GLib.Value.Empty;
+ GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
+ GLib.Value[] vals = new GLib.Value [1];
+ vals [0] = new GLib.Value (this);
+ inst_and_params.Append (vals [0]);
+ g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
+ foreach (GLib.Value v in vals)
+ v.Dispose ();
+ }
+
+ static TrackElementAddedNativeDelegate TrackElementAdded_cb_delegate;
+ static TrackElementAddedNativeDelegate TrackElementAddedVMCallback {
+ get {
+ if (TrackElementAdded_cb_delegate == null)
+ TrackElementAdded_cb_delegate = new TrackElementAddedNativeDelegate (TrackElementAdded_cb);
+ return TrackElementAdded_cb_delegate;
+ }
+ }
+
+ static void OverrideTrackElementAdded (GLib.GType gtype)
+ {
+ OverrideTrackElementAdded (gtype, TrackElementAddedVMCallback);
+ }
+
+ static void OverrideTrackElementAdded (GLib.GType gtype, TrackElementAddedNativeDelegate callback)
+ {
+ OverrideVirtualMethod (gtype, "track-element-added", callback);
+ }
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void TrackElementAddedNativeDelegate (IntPtr inst, IntPtr effect);
+
+ static void TrackElementAdded_cb (IntPtr inst, IntPtr effect)
+ {
+ try {
+ Track __obj = GLib.Object.GetObject (inst, false) as Track;
+ __obj.OnTrackElementAdded (GLib.Object.GetObject(effect) as GES.TrackElement);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Track), ConnectionMethod="OverrideTrackElementAdded")]
+ protected virtual void OnTrackElementAdded (GES.TrackElement effect)
+ {
+ InternalTrackElementAdded (effect);
+ }
+
+ private void InternalTrackElementAdded (GES.TrackElement effect)
+ {
+ GLib.Value ret = GLib.Value.Empty;
+ GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
+ GLib.Value[] vals = new GLib.Value [2];
+ vals [0] = new GLib.Value (this);
+ inst_and_params.Append (vals [0]);
+ vals [1] = new GLib.Value (effect);
+ inst_and_params.Append (vals [1]);
+ g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
+ foreach (GLib.Value v in vals)
+ v.Dispose ();
+ }
+
+ static TrackElementRemovedNativeDelegate TrackElementRemoved_cb_delegate;
+ static TrackElementRemovedNativeDelegate TrackElementRemovedVMCallback {
+ get {
+ if (TrackElementRemoved_cb_delegate == null)
+ TrackElementRemoved_cb_delegate = new TrackElementRemovedNativeDelegate (TrackElementRemoved_cb);
+ return TrackElementRemoved_cb_delegate;
+ }
+ }
+
+ static void OverrideTrackElementRemoved (GLib.GType gtype)
+ {
+ OverrideTrackElementRemoved (gtype, TrackElementRemovedVMCallback);
+ }
+
+ static void OverrideTrackElementRemoved (GLib.GType gtype, TrackElementRemovedNativeDelegate callback)
+ {
+ OverrideVirtualMethod (gtype, "track-element-removed", callback);
+ }
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void TrackElementRemovedNativeDelegate (IntPtr inst, IntPtr effect);
+
+ static void TrackElementRemoved_cb (IntPtr inst, IntPtr effect)
+ {
+ try {
+ Track __obj = GLib.Object.GetObject (inst, false) as Track;
+ __obj.OnTrackElementRemoved (GLib.Object.GetObject(effect) as GES.TrackElement);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Track), ConnectionMethod="OverrideTrackElementRemoved")]
+ protected virtual void OnTrackElementRemoved (GES.TrackElement effect)
+ {
+ InternalTrackElementRemoved (effect);
+ }
+
+ private void InternalTrackElementRemoved (GES.TrackElement effect)
+ {
+ GLib.Value ret = GLib.Value.Empty;
+ GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
+ GLib.Value[] vals = new GLib.Value [2];
+ vals [0] = new GLib.Value (this);
+ inst_and_params.Append (vals [0]);
+ vals [1] = new GLib.Value (effect);
+ inst_and_params.Append (vals [1]);
+ g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
+ foreach (GLib.Value v in vals)
+ v.Dispose ();
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("get_mixing_element"
+ , Gst.Bin.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // get_mixing_element
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "get_mixing_element"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_track_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_track_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_track_add_element(IntPtr raw, IntPtr _object);
+
+ public bool AddElement(GES.TrackElement _object) {
+ bool raw_ret = ges_track_add_element(Handle, _object == null ? IntPtr.Zero : _object.Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_track_commit(IntPtr raw);
+
+ public bool Commit() {
+ bool raw_ret = ges_track_commit(Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_track_get_elements(IntPtr raw);
+
+ public GES.TrackElement[] Elements {
+ get {
+ IntPtr raw_ret = ges_track_get_elements(Handle);
+ GES.TrackElement[] ret = (GES.TrackElement[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(GES.TrackElement));
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_track_get_timeline(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_track_set_timeline(IntPtr raw, IntPtr timeline);
+
+ public GES.Timeline Timeline {
+ get {
+ IntPtr raw_ret = ges_track_get_timeline(Handle);
+ GES.Timeline ret = GLib.Object.GetObject(raw_ret) as GES.Timeline;
+ return ret;
+ }
+ set {
+ ges_track_set_timeline(Handle, value == null ? IntPtr.Zero : value.Handle);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_track_remove_element(IntPtr raw, IntPtr _object);
+
+ public bool RemoveElement(GES.TrackElement _object) {
+ bool raw_ret = ges_track_remove_element(Handle, _object == null ? IntPtr.Zero : _object.Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_track_update_restriction_caps(IntPtr raw, IntPtr caps);
+
+ public void UpdateRestrictionCaps(Gst.Caps caps) {
+ ges_track_update_restriction_caps(Handle, caps == null ? IntPtr.Zero : caps.Handle);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_add_metas_from_string(IntPtr raw, IntPtr str);
+
+ public bool AddMetasFromString(string str) {
+ IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (str);
+ bool raw_ret = ges_meta_container_add_metas_from_string(Handle, native_str);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_str);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_check_meta_registered(IntPtr raw, IntPtr meta_item, int flags, IntPtr type);
+
+ public bool CheckMetaRegistered(string meta_item, GES.MetaFlag flags, GLib.GType type) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_check_meta_registered(Handle, native_meta_item, (int) flags, type.Val);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_meta_container_foreach(IntPtr raw, GESSharp.MetaForeachFuncNative func, IntPtr user_data);
+
+ public void Foreach(GES.MetaForeachFunc func) {
+ GESSharp.MetaForeachFuncWrapper func_wrapper = new GESSharp.MetaForeachFuncWrapper (func);
+ ges_meta_container_foreach(Handle, func_wrapper.NativeDelegate, IntPtr.Zero);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_boolean(IntPtr raw, IntPtr meta_item, out bool dest);
+
+ public bool GetBoolean(string meta_item, out bool dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_boolean(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_date_time(IntPtr raw, IntPtr meta_item, out IntPtr dest);
+
+ public bool GetDateTime(string meta_item, out Gst.DateTime dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_dest;
+ bool raw_ret = ges_meta_container_get_date_time(Handle, native_meta_item, out native_dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ dest = native_dest == IntPtr.Zero ? null : (Gst.DateTime) GLib.Opaque.GetOpaque (native_dest, typeof (Gst.DateTime), true);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_double(IntPtr raw, IntPtr meta_item, out double dest);
+
+ public bool GetDouble(string meta_item, out double dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_double(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_float(IntPtr raw, IntPtr meta_item, out float dest);
+
+ public bool GetFloat(string meta_item, out float dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_float(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_int(IntPtr raw, IntPtr meta_item, out int dest);
+
+ public bool GetInt(string meta_item, out int dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_int(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_int64(IntPtr raw, IntPtr meta_item, out long dest);
+
+ public bool GetInt64(string meta_item, out long dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_int64(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_container_get_meta(IntPtr raw, IntPtr key);
+
+ public GLib.Value GetMeta(string key) {
+ IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup (key);
+ IntPtr raw_ret = ges_meta_container_get_meta(Handle, native_key);
+ GLib.Value ret = (GLib.Value) Marshal.PtrToStructure (raw_ret, typeof (GLib.Value));
+ GLib.Marshaller.Free (native_key);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_container_get_string(IntPtr raw, IntPtr meta_item);
+
+ public string GetString(string meta_item) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr raw_ret = ges_meta_container_get_string(Handle, native_meta_item);
+ string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_uint(IntPtr raw, IntPtr meta_item, out uint dest);
+
+ public bool GetUint(string meta_item, out uint dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_uint(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_get_uint64(IntPtr raw, IntPtr meta_item, out ulong dest);
+
+ public bool GetUint64(string meta_item, out ulong dest) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_get_uint64(Handle, native_meta_item, out dest);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_meta_container_metas_to_string(IntPtr raw);
+
+ public string MetasToString() {
+ IntPtr raw_ret = ges_meta_container_metas_to_string(Handle);
+ string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
+
+ public bool RegisterMeta(GES.MetaFlag flags, string meta_item, GLib.Value value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
+ bool raw_ret = ges_meta_container_register_meta(Handle, (int) flags, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ Marshal.FreeHGlobal (native_value);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_boolean(IntPtr raw, int flags, IntPtr meta_item, bool value);
+
+ public bool RegisterMetaBoolean(GES.MetaFlag flags, string meta_item, bool value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_boolean(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_date_time(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
+
+ public bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item, Gst.DateTime value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_date_time(Handle, (int) flags, native_meta_item, value == null ? IntPtr.Zero : value.Handle);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ public bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item) {
+ return RegisterMetaDateTime (flags, meta_item, null);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_double(IntPtr raw, int flags, IntPtr meta_item, double value);
+
+ public bool RegisterMetaDouble(GES.MetaFlag flags, string meta_item, double value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_double(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_float(IntPtr raw, int flags, IntPtr meta_item, float value);
+
+ public bool RegisterMetaFloat(GES.MetaFlag flags, string meta_item, float value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_float(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_int(IntPtr raw, int flags, IntPtr meta_item, int value);
+
+ public bool RegisterMetaInt(GES.MetaFlag flags, string meta_item, int value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_int(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_int64(IntPtr raw, int flags, IntPtr meta_item, long value);
+
+ public bool RegisterMetaInt64(GES.MetaFlag flags, string meta_item, long value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_int64(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_string(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
+
+ public bool RegisterMetaString(GES.MetaFlag flags, string meta_item, string value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ bool raw_ret = ges_meta_container_register_meta_string(Handle, (int) flags, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ GLib.Marshaller.Free (native_value);
+ return ret;
+ }
+
+ public bool RegisterMetaString(GES.MetaFlag flags, string meta_item) {
+ return RegisterMetaString (flags, meta_item, null);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_uint(IntPtr raw, int flags, IntPtr meta_item, uint value);
+
+ public bool RegisterMetaUint(GES.MetaFlag flags, string meta_item, uint value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_uint(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_register_meta_uint64(IntPtr raw, int flags, IntPtr meta_item, ulong value);
+
+ public bool RegisterMetaUint64(GES.MetaFlag flags, string meta_item, ulong value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_register_meta_uint64(Handle, (int) flags, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_boolean(IntPtr raw, IntPtr meta_item, bool value);
+
+ public bool SetBoolean(string meta_item, bool value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_boolean(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_date_time(IntPtr raw, IntPtr meta_item, IntPtr value);
+
+ public bool SetDateTime(string meta_item, Gst.DateTime value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_date_time(Handle, native_meta_item, value == null ? IntPtr.Zero : value.Handle);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_double(IntPtr raw, IntPtr meta_item, double value);
+
+ public bool SetDouble(string meta_item, double value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_double(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_float(IntPtr raw, IntPtr meta_item, float value);
+
+ public bool SetFloat(string meta_item, float value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_float(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_int(IntPtr raw, IntPtr meta_item, int value);
+
+ public bool SetInt(string meta_item, int value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_int(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_int64(IntPtr raw, IntPtr meta_item, long value);
+
+ public bool SetInt64(string meta_item, long value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_int64(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_meta(IntPtr raw, IntPtr meta_item, IntPtr value);
+
+ public bool SetMeta(string meta_item, GLib.Value value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
+ bool raw_ret = ges_meta_container_set_meta(Handle, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ Marshal.FreeHGlobal (native_value);
+ return ret;
+ }
+
+ public bool SetMeta(string meta_item) {
+ return SetMeta (meta_item, GLib.Value.Empty);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_string(IntPtr raw, IntPtr meta_item, IntPtr value);
+
+ public bool SetString(string meta_item, string value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+ bool raw_ret = ges_meta_container_set_string(Handle, native_meta_item, native_value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ GLib.Marshaller.Free (native_value);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_uint(IntPtr raw, IntPtr meta_item, uint value);
+
+ public bool SetUint(string meta_item, uint value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_uint(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_meta_container_set_uint64(IntPtr raw, IntPtr meta_item, ulong value);
+
+ public bool SetUint64(string meta_item, ulong value) {
+ IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
+ bool raw_ret = ges_meta_container_set_uint64(Handle, native_meta_item, value);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_meta_item);
+ return ret;
+ }
+
+ [GLib.Signal("notify-meta")]
+ public event GES.NotifyMetaHandler NotifyMeta {
+ add {
+ this.AddSignalHandler ("notify-meta", value, typeof (GES.NotifyMetaArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("notify-meta", value);
+ }
+ }
+
+ static NotifyMetaNativeDelegate NotifyMeta_cb_delegate;
+ static NotifyMetaNativeDelegate NotifyMetaVMCallback {
+ get {
+ if (NotifyMeta_cb_delegate == null)
+ NotifyMeta_cb_delegate = new NotifyMetaNativeDelegate (NotifyMeta_cb);
+ return NotifyMeta_cb_delegate;
+ }
+ }
+
+ static void OverrideNotifyMeta (GLib.GType gtype)
+ {
+ OverrideNotifyMeta (gtype, NotifyMetaVMCallback);
+ }
+
+ static void OverrideNotifyMeta (GLib.GType gtype, NotifyMetaNativeDelegate callback)
+ {
+ OverrideVirtualMethod (gtype, "notify-meta", callback);
+ }
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void NotifyMetaNativeDelegate (IntPtr inst, IntPtr _object, IntPtr p0);
+
+ static void NotifyMeta_cb (IntPtr inst, IntPtr _object, IntPtr p0)
+ {
+ try {
+ GES.Track __obj = GLib.Object.GetObject (inst, false) as GES.Track;
+ __obj.OnNotifyMeta (GLib.Marshaller.Utf8PtrToString (_object), (GLib.Value) Marshal.PtrToStructure (p0, typeof (GLib.Value)));
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.Track), ConnectionMethod="OverrideNotifyMeta")]
+ protected virtual void OnNotifyMeta (string _object, GLib.Value p0)
+ {
+ InternalNotifyMeta (_object, p0);
+ }
+
+ private void InternalNotifyMeta (string _object, GLib.Value p0)
+ {
+ GLib.Value ret = GLib.Value.Empty;
+ GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
+ GLib.Value[] vals = new GLib.Value [3];
+ vals [0] = new GLib.Value (this);
+ inst_and_params.Append (vals [0]);
+ vals [1] = new GLib.Value (_object);
+ inst_and_params.Append (vals [1]);
+ vals [2] = new GLib.Value (p0);
+ inst_and_params.Append (vals [2]);
+ g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
+ foreach (GLib.Value v in vals)
+ v.Dispose ();
+ }
+
+
+ static Track ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("type"
+ , Gst.Bin.abi_info.Fields
+ , (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(GES.TrackType))) // type
+ , null
+ , "priv"
+ , (long) Marshal.OffsetOf(typeof(GESTrack_typeAlign), "type")
+ , 0
+ ),
+ new GLib.AbiField("priv"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , "type"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct GESTrack_typeAlign
+ {
+ sbyte f1;
+ private GES.TrackType type;
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/TrackAddedHandler.cs b/ges/generated/GES/TrackAddedHandler.cs
new file mode 100644
index 0000000..f8a6c1d
--- /dev/null
+++ b/ges/generated/GES/TrackAddedHandler.cs
@@ -0,0 +1,18 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void TrackAddedHandler(object o, TrackAddedArgs args);
+
+ public class TrackAddedArgs : GLib.SignalArgs {
+ public GES.Track Track{
+ get {
+ return (GES.Track) Args [0];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/TrackElement.cs b/ges/generated/GES/TrackElement.cs
new file mode 100644
index 0000000..73520fe
--- /dev/null
+++ b/ges/generated/GES/TrackElement.cs
@@ -0,0 +1,672 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class TrackElement : GES.TimelineElement {
+
+ protected TrackElement (IntPtr raw) : base(raw) {}
+
+ protected TrackElement() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+ [GLib.Property ("active")]
+ public bool Active {
+ get {
+ GLib.Value val = GetProperty ("active");
+ bool ret = (bool) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("active", val);
+ val.Dispose ();
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_track_element_get_track(IntPtr raw);
+
+ [GLib.Property ("track")]
+ public GES.Track Track {
+ get {
+ IntPtr raw_ret = ges_track_element_get_track(Handle);
+ GES.Track ret = GLib.Object.GetObject(raw_ret) as GES.Track;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_track_element_get_track_type(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_track_element_set_track_type(IntPtr raw, int type);
+
+ [GLib.Property ("track-type")]
+ public GES.TrackType TrackType {
+ get {
+ int raw_ret = ges_track_element_get_track_type(Handle);
+ GES.TrackType ret = (GES.TrackType) raw_ret;
+ return ret;
+ }
+ set {
+ ges_track_element_set_track_type(Handle, (int) value);
+ }
+ }
+
+ [GLib.Signal("control-binding-removed")]
+ public event GES.ControlBindingRemovedHandler ControlBindingRemoved {
+ add {
+ this.AddSignalHandler ("control-binding-removed", value, typeof (GES.ControlBindingRemovedArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("control-binding-removed", value);
+ }
+ }
+
+ [GLib.Signal("control-binding-added")]
+ public event GES.ControlBindingAddedHandler ControlBindingAdded {
+ add {
+ this.AddSignalHandler ("control-binding-added", value, typeof (GES.ControlBindingAddedArgs));
+ }
+ remove {
+ this.RemoveSignalHandler ("control-binding-added", value);
+ }
+ }
+
+ static ControlBindingAddedNativeDelegate ControlBindingAdded_cb_delegate;
+ static ControlBindingAddedNativeDelegate ControlBindingAddedVMCallback {
+ get {
+ if (ControlBindingAdded_cb_delegate == null)
+ ControlBindingAdded_cb_delegate = new ControlBindingAddedNativeDelegate (ControlBindingAdded_cb);
+ return ControlBindingAdded_cb_delegate;
+ }
+ }
+
+ static void OverrideControlBindingAdded (GLib.GType gtype)
+ {
+ OverrideControlBindingAdded (gtype, ControlBindingAddedVMCallback);
+ }
+
+ static void OverrideControlBindingAdded (GLib.GType gtype, ControlBindingAddedNativeDelegate callback)
+ {
+ OverrideVirtualMethod (gtype, "control-binding-added", callback);
+ }
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void ControlBindingAddedNativeDelegate (IntPtr inst, IntPtr control_binding);
+
+ static void ControlBindingAdded_cb (IntPtr inst, IntPtr control_binding)
+ {
+ try {
+ TrackElement __obj = GLib.Object.GetObject (inst, false) as TrackElement;
+ __obj.OnControlBindingAdded (GLib.Object.GetObject(control_binding) as Gst.ControlBinding);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TrackElement), ConnectionMethod="OverrideControlBindingAdded")]
+ protected virtual void OnControlBindingAdded (Gst.ControlBinding control_binding)
+ {
+ InternalControlBindingAdded (control_binding);
+ }
+
+ private void InternalControlBindingAdded (Gst.ControlBinding control_binding)
+ {
+ GLib.Value ret = GLib.Value.Empty;
+ GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
+ GLib.Value[] vals = new GLib.Value [2];
+ vals [0] = new GLib.Value (this);
+ inst_and_params.Append (vals [0]);
+ vals [1] = new GLib.Value (control_binding);
+ inst_and_params.Append (vals [1]);
+ g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
+ foreach (GLib.Value v in vals)
+ v.Dispose ();
+ }
+
+ static ControlBindingRemovedNativeDelegate ControlBindingRemoved_cb_delegate;
+ static ControlBindingRemovedNativeDelegate ControlBindingRemovedVMCallback {
+ get {
+ if (ControlBindingRemoved_cb_delegate == null)
+ ControlBindingRemoved_cb_delegate = new ControlBindingRemovedNativeDelegate (ControlBindingRemoved_cb);
+ return ControlBindingRemoved_cb_delegate;
+ }
+ }
+
+ static void OverrideControlBindingRemoved (GLib.GType gtype)
+ {
+ OverrideControlBindingRemoved (gtype, ControlBindingRemovedVMCallback);
+ }
+
+ static void OverrideControlBindingRemoved (GLib.GType gtype, ControlBindingRemovedNativeDelegate callback)
+ {
+ OverrideVirtualMethod (gtype, "control-binding-removed", callback);
+ }
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void ControlBindingRemovedNativeDelegate (IntPtr inst, IntPtr control_binding);
+
+ static void ControlBindingRemoved_cb (IntPtr inst, IntPtr control_binding)
+ {
+ try {
+ TrackElement __obj = GLib.Object.GetObject (inst, false) as TrackElement;
+ __obj.OnControlBindingRemoved (GLib.Object.GetObject(control_binding) as Gst.ControlBinding);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TrackElement), ConnectionMethod="OverrideControlBindingRemoved")]
+ protected virtual void OnControlBindingRemoved (Gst.ControlBinding control_binding)
+ {
+ InternalControlBindingRemoved (control_binding);
+ }
+
+ private void InternalControlBindingRemoved (Gst.ControlBinding control_binding)
+ {
+ GLib.Value ret = GLib.Value.Empty;
+ GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
+ GLib.Value[] vals = new GLib.Value [2];
+ vals [0] = new GLib.Value (this);
+ inst_and_params.Append (vals [0]);
+ vals [1] = new GLib.Value (control_binding);
+ inst_and_params.Append (vals [1]);
+ g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
+ foreach (GLib.Value v in vals)
+ v.Dispose ();
+ }
+
+ static ActiveChangedNativeDelegate ActiveChanged_cb_delegate;
+ static ActiveChangedNativeDelegate ActiveChangedVMCallback {
+ get {
+ if (ActiveChanged_cb_delegate == null)
+ ActiveChanged_cb_delegate = new ActiveChangedNativeDelegate (ActiveChanged_cb);
+ return ActiveChanged_cb_delegate;
+ }
+ }
+
+ static void OverrideActiveChanged (GLib.GType gtype)
+ {
+ OverrideActiveChanged (gtype, ActiveChangedVMCallback);
+ }
+
+ static void OverrideActiveChanged (GLib.GType gtype, ActiveChangedNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("active_changed"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void ActiveChangedNativeDelegate (IntPtr inst, bool active);
+
+ static void ActiveChanged_cb (IntPtr inst, bool active)
+ {
+ try {
+ TrackElement __obj = GLib.Object.GetObject (inst, false) as TrackElement;
+ __obj.OnActiveChanged (active);
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TrackElement), ConnectionMethod="OverrideActiveChanged")]
+ protected virtual void OnActiveChanged (bool active)
+ {
+ InternalActiveChanged (active);
+ }
+
+ private void InternalActiveChanged (bool active)
+ {
+ ActiveChangedNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("active_changed"));
+ unmanaged = (ActiveChangedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ActiveChangedNativeDelegate));
+ }
+ if (unmanaged == null) return;
+
+ unmanaged (this.Handle, active);
+ }
+
+ static ChangedNativeDelegate Changed_cb_delegate;
+ static ChangedNativeDelegate ChangedVMCallback {
+ get {
+ if (Changed_cb_delegate == null)
+ Changed_cb_delegate = new ChangedNativeDelegate (Changed_cb);
+ return Changed_cb_delegate;
+ }
+ }
+
+ static void OverrideChanged (GLib.GType gtype)
+ {
+ OverrideChanged (gtype, ChangedVMCallback);
+ }
+
+ static void OverrideChanged (GLib.GType gtype, ChangedNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("changed"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate void ChangedNativeDelegate (IntPtr inst);
+
+ static void Changed_cb (IntPtr inst)
+ {
+ try {
+ TrackElement __obj = GLib.Object.GetObject (inst, false) as TrackElement;
+ __obj.OnChanged ();
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, false);
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TrackElement), ConnectionMethod="OverrideChanged")]
+ protected virtual void OnChanged ()
+ {
+ InternalChanged ();
+ }
+
+ private void InternalChanged ()
+ {
+ ChangedNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("changed"));
+ unmanaged = (ChangedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ChangedNativeDelegate));
+ }
+ if (unmanaged == null) return;
+
+ unmanaged (this.Handle);
+ }
+
+ static LookupChildNativeDelegate LookupChild_cb_delegate;
+ static LookupChildNativeDelegate LookupChildVMCallback {
+ get {
+ if (LookupChild_cb_delegate == null)
+ LookupChild_cb_delegate = new LookupChildNativeDelegate (LookupChild_cb);
+ return LookupChild_cb_delegate;
+ }
+ }
+
+ static void OverrideLookupChild (GLib.GType gtype)
+ {
+ OverrideLookupChild (gtype, LookupChildVMCallback);
+ }
+
+ static void OverrideLookupChild (GLib.GType gtype, LookupChildNativeDelegate callback)
+ {
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("lookup_child"));
+ *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
+ }
+ }
+
+ [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
+ delegate bool LookupChildNativeDelegate (IntPtr inst, IntPtr prop_name, out IntPtr element, out IntPtr pspec);
+
+ static bool LookupChild_cb (IntPtr inst, IntPtr prop_name, out IntPtr element, out IntPtr pspec)
+ {
+ try {
+ TrackElement __obj = GLib.Object.GetObject (inst, false) as TrackElement;
+ bool __result;
+ Gst.Element myelement;
+ __result = __obj.OnLookupChild (GLib.Marshaller.Utf8PtrToString (prop_name), out myelement, out pspec);
+ element = myelement == null ? IntPtr.Zero : myelement.Handle;
+ return __result;
+ } catch (Exception e) {
+ GLib.ExceptionManager.RaiseUnhandledException (e, true);
+ // NOTREACHED: above call does not return.
+ throw e;
+ }
+ }
+
+ [GLib.DefaultSignalHandler(Type=typeof(GES.TrackElement), ConnectionMethod="OverrideLookupChild")]
+ protected virtual bool OnLookupChild (string prop_name, out Gst.Element element, out IntPtr pspec)
+ {
+ return InternalLookupChild (prop_name, out element, out pspec);
+ }
+
+ private bool InternalLookupChild (string prop_name, out Gst.Element element, out IntPtr pspec)
+ {
+ LookupChildNativeDelegate unmanaged = null;
+ unsafe {
+ IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("lookup_child"));
+ unmanaged = (LookupChildNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(LookupChildNativeDelegate));
+ }
+ if (unmanaged == null) throw new InvalidOperationException ("No base method to invoke");
+
+ IntPtr native_prop_name = GLib.Marshaller.StringToPtrGStrdup (prop_name);
+ IntPtr native_element;
+ bool __result = unmanaged (this.Handle, native_prop_name, out native_element, out pspec);
+ GLib.Marshaller.Free (native_prop_name);
+ element = GLib.Object.GetObject(native_element, true) as Gst.Element;
+ return __result;
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("nleobject_factorytype"
+ , GES.TimelineElement.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // nleobject_factorytype
+ , null
+ , "create_gnl_object"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("create_gnl_object"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // create_gnl_object
+ , "nleobject_factorytype"
+ , "create_element"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("create_element"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // create_element
+ , "create_gnl_object"
+ , "active_changed"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("active_changed"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // active_changed
+ , "create_element"
+ , "changed"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("changed"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // changed
+ , "active_changed"
+ , "list_children_properties"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("list_children_properties"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // list_children_properties
+ , "changed"
+ , "lookup_child"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("lookup_child"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // lookup_child
+ , "list_children_properties"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 20 // _ges_reserved
+ , "lookup_child"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_track_element_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_track_element_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_track_element_add_children_props(IntPtr raw, IntPtr element, IntPtr[] wanted_categories, IntPtr[] blacklist, IntPtr[] whitelist);
+
+ public void AddChildrenProps(Gst.Element element, string[] wanted_categories, string[] blacklist, string[] whitelist) {
+ int cnt_wanted_categories = wanted_categories == null ? 0 : wanted_categories.Length;
+ IntPtr[] native_wanted_categories = new IntPtr [cnt_wanted_categories + 1];
+ for (int i = 0; i < cnt_wanted_categories; i++)
+ native_wanted_categories [i] = GLib.Marshaller.StringToPtrGStrdup (wanted_categories[i]);
+ native_wanted_categories [cnt_wanted_categories] = IntPtr.Zero;
+ int cnt_blacklist = blacklist == null ? 0 : blacklist.Length;
+ IntPtr[] native_blacklist = new IntPtr [cnt_blacklist + 1];
+ for (int i = 0; i < cnt_blacklist; i++)
+ native_blacklist [i] = GLib.Marshaller.StringToPtrGStrdup (blacklist[i]);
+ native_blacklist [cnt_blacklist] = IntPtr.Zero;
+ int cnt_whitelist = whitelist == null ? 0 : whitelist.Length;
+ IntPtr[] native_whitelist = new IntPtr [cnt_whitelist + 1];
+ for (int i = 0; i < cnt_whitelist; i++)
+ native_whitelist [i] = GLib.Marshaller.StringToPtrGStrdup (whitelist[i]);
+ native_whitelist [cnt_whitelist] = IntPtr.Zero;
+ ges_track_element_add_children_props(Handle, element == null ? IntPtr.Zero : element.Handle, native_wanted_categories, native_blacklist, native_whitelist);
+ for (int i = 0; i < native_wanted_categories.Length - 1; i++) {
+ wanted_categories [i] = GLib.Marshaller.Utf8PtrToString (native_wanted_categories[i]);
+ GLib.Marshaller.Free (native_wanted_categories[i]);
+ }
+ for (int i = 0; i < native_blacklist.Length - 1; i++) {
+ blacklist [i] = GLib.Marshaller.Utf8PtrToString (native_blacklist[i]);
+ GLib.Marshaller.Free (native_blacklist[i]);
+ }
+ for (int i = 0; i < native_whitelist.Length - 1; i++) {
+ whitelist [i] = GLib.Marshaller.Utf8PtrToString (native_whitelist[i]);
+ GLib.Marshaller.Free (native_whitelist[i]);
+ }
+ }
+
+ public void AddChildrenProps(Gst.Element element) {
+ AddChildrenProps (element, null, null, null);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_track_element_edit(IntPtr raw, IntPtr layers, int mode, int edge, ulong position);
+
+ public bool Edit(GLib.List layers, GES.EditMode mode, GES.Edge edge, ulong position) {
+ bool raw_ret = ges_track_element_edit(Handle, layers == null ? IntPtr.Zero : layers.Handle, (int) mode, (int) edge, position);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern System.IntPtr ges_track_element_get_all_control_bindings(IntPtr raw);
+
+ public string[] AllControlBindings {
+ get {
+ System.IntPtr raw_ret = ges_track_element_get_all_control_bindings(Handle);
+ string[] ret = (string[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(System.IntPtr), false, false, typeof(string));
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_track_element_get_control_binding(IntPtr raw, IntPtr property_name);
+
+ public Gst.ControlBinding GetControlBinding(string property_name) {
+ IntPtr native_property_name = GLib.Marshaller.StringToPtrGStrdup (property_name);
+ IntPtr raw_ret = ges_track_element_get_control_binding(Handle, native_property_name);
+ Gst.ControlBinding ret = GLib.Object.GetObject(raw_ret) as Gst.ControlBinding;
+ GLib.Marshaller.Free (native_property_name);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_track_element_get_element(IntPtr raw);
+
+ public Gst.Element Element {
+ get {
+ IntPtr raw_ret = ges_track_element_get_element(Handle);
+ Gst.Element ret = GLib.Object.GetObject(raw_ret) as Gst.Element;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_track_element_get_gnlobject(IntPtr raw);
+
+ [Obsolete]
+ public Gst.Element Gnlobject {
+ get {
+ IntPtr raw_ret = ges_track_element_get_gnlobject(Handle);
+ Gst.Element ret = GLib.Object.GetObject(raw_ret) as Gst.Element;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_track_element_get_nleobject(IntPtr raw);
+
+ public Gst.Element Nleobject {
+ get {
+ IntPtr raw_ret = ges_track_element_get_nleobject(Handle);
+ Gst.Element ret = GLib.Object.GetObject(raw_ret) as Gst.Element;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_track_element_is_active(IntPtr raw);
+
+ public bool IsActive {
+ get {
+ bool raw_ret = ges_track_element_is_active(Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_track_element_lookup_child(IntPtr raw, IntPtr prop_name, out IntPtr element, out IntPtr pspec);
+
+ [Obsolete]
+ public bool LookupChild(string prop_name, out Gst.Element element, out IntPtr pspec) {
+ IntPtr native_prop_name = GLib.Marshaller.StringToPtrGStrdup (prop_name);
+ IntPtr native_element;
+ bool raw_ret = ges_track_element_lookup_child(Handle, native_prop_name, out native_element, out pspec);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_prop_name);
+ element = GLib.Object.GetObject(native_element, true) as Gst.Element;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_track_element_remove_control_binding(IntPtr raw, IntPtr property_name);
+
+ public bool RemoveControlBinding(string property_name) {
+ IntPtr native_property_name = GLib.Marshaller.StringToPtrGStrdup (property_name);
+ bool raw_ret = ges_track_element_remove_control_binding(Handle, native_property_name);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_property_name);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_track_element_set_active(IntPtr raw, bool active);
+
+ public bool SetActive(bool active) {
+ bool raw_ret = ges_track_element_set_active(Handle, active);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_track_element_set_control_source(IntPtr raw, IntPtr source, IntPtr property_name, IntPtr binding_type);
+
+ public bool SetControlSource(Gst.ControlSource source, string property_name, string binding_type) {
+ IntPtr native_property_name = GLib.Marshaller.StringToPtrGStrdup (property_name);
+ IntPtr native_binding_type = GLib.Marshaller.StringToPtrGStrdup (binding_type);
+ bool raw_ret = ges_track_element_set_control_source(Handle, source == null ? IntPtr.Zero : source.Handle, native_property_name, native_binding_type);
+ bool ret = raw_ret;
+ GLib.Marshaller.Free (native_property_name);
+ GLib.Marshaller.Free (native_binding_type);
+ return ret;
+ }
+
+
+ static TrackElement ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("active"
+ , GES.TimelineElement.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(bool)) // active
+ , null
+ , "priv"
+ , (long) Marshal.OffsetOf(typeof(GESTrackElement_activeAlign), "active")
+ , 0
+ ),
+ new GLib.AbiField("priv"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , "active"
+ , "asset"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("asset"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // asset
+ , "priv"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 20 // _ges_reserved
+ , "asset"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct GESTrackElement_activeAlign
+ {
+ sbyte f1;
+ private bool active;
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/TrackElementAddedHandler.cs b/ges/generated/GES/TrackElementAddedHandler.cs
new file mode 100644
index 0000000..92246c6
--- /dev/null
+++ b/ges/generated/GES/TrackElementAddedHandler.cs
@@ -0,0 +1,18 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void TrackElementAddedHandler(object o, TrackElementAddedArgs args);
+
+ public class TrackElementAddedArgs : GLib.SignalArgs {
+ public GES.TrackElement Effect{
+ get {
+ return (GES.TrackElement) Args [0];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/TrackElementAsset.cs b/ges/generated/GES/TrackElementAsset.cs
new file mode 100644
index 0000000..03547a7
--- /dev/null
+++ b/ges/generated/GES/TrackElementAsset.cs
@@ -0,0 +1,113 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class TrackElementAsset : GES.Asset {
+
+ public TrackElementAsset (IntPtr raw) : base(raw) {}
+
+ protected TrackElementAsset() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_track_element_asset_get_track_type(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_track_element_asset_set_track_type(IntPtr raw, int type);
+
+ [GLib.Property ("track-type")]
+ public GES.TrackType TrackType {
+ get {
+ int raw_ret = ges_track_element_asset_get_track_type(Handle);
+ GES.TrackType ret = (GES.TrackType) raw_ret;
+ return ret;
+ }
+ set {
+ ges_track_element_asset_set_track_type(Handle, (int) value);
+ }
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.Asset.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_track_element_asset_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_track_element_asset_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static TrackElementAsset ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.Asset.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "__ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("__ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // __ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/TrackElementRemovedHandler.cs b/ges/generated/GES/TrackElementRemovedHandler.cs
new file mode 100644
index 0000000..224d61b
--- /dev/null
+++ b/ges/generated/GES/TrackElementRemovedHandler.cs
@@ -0,0 +1,18 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void TrackElementRemovedHandler(object o, TrackElementRemovedArgs args);
+
+ public class TrackElementRemovedArgs : GLib.SignalArgs {
+ public GES.TrackElement Effect{
+ get {
+ return (GES.TrackElement) Args [0];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/TrackRemovedHandler.cs b/ges/generated/GES/TrackRemovedHandler.cs
new file mode 100644
index 0000000..e796d94
--- /dev/null
+++ b/ges/generated/GES/TrackRemovedHandler.cs
@@ -0,0 +1,18 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+
+ public delegate void TrackRemovedHandler(object o, TrackRemovedArgs args);
+
+ public class TrackRemovedArgs : GLib.SignalArgs {
+ public GES.Track Track{
+ get {
+ return (GES.Track) Args [0];
+ }
+ }
+
+ }
+}
diff --git a/ges/generated/GES/TrackType.cs b/ges/generated/GES/TrackType.cs
new file mode 100644
index 0000000..b8ae049
--- /dev/null
+++ b/ges/generated/GES/TrackType.cs
@@ -0,0 +1,32 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ [Flags]
+ [GLib.GType (typeof (GES.TrackTypeGType))]
+ public enum TrackType {
+
+ Unknown = 1,
+ Audio = 2,
+ Video = 4,
+ Text = 8,
+ Custom = 16,
+ }
+
+ internal class TrackTypeGType {
+ [DllImport ("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_track_type_get_type ();
+
+ public static GLib.GType GType {
+ get {
+ return new GLib.GType (ges_track_type_get_type ());
+ }
+ }
+ }
+#endregion
+}
diff --git a/ges/generated/GES/Transition.cs b/ges/generated/GES/Transition.cs
new file mode 100644
index 0000000..8f92f50
--- /dev/null
+++ b/ges/generated/GES/Transition.cs
@@ -0,0 +1,95 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class Transition : GES.Operation {
+
+ protected Transition (IntPtr raw) : base(raw) {}
+
+ protected Transition() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.Operation.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_transition_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_transition_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static Transition ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.Operation.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/TransitionClip.cs b/ges/generated/GES/TransitionClip.cs
new file mode 100644
index 0000000..0b7c583
--- /dev/null
+++ b/ges/generated/GES/TransitionClip.cs
@@ -0,0 +1,161 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class TransitionClip : GES.BaseTransitionClip {
+
+ public TransitionClip (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_transition_clip_new(int vtype);
+
+ public TransitionClip (GES.VideoStandardTransitionType vtype) : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (TransitionClip)) {
+ var vals = new List<GLib.Value> ();
+ var names = new List<string> ();
+ names.Add ("vtype");
+ vals.Add (new GLib.Value (vtype));
+ CreateNativeObject (names.ToArray (), vals.ToArray ());
+ return;
+ }
+ Raw = ges_transition_clip_new((int) vtype);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_transition_clip_new_for_nick(IntPtr nick);
+
+ public TransitionClip (string nick) : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (TransitionClip)) {
+ var vals = new List<GLib.Value> ();
+ var names = new List<string> ();
+ CreateNativeObject (names.ToArray (), vals.ToArray ());
+ return;
+ }
+ IntPtr native_nick = GLib.Marshaller.StringToPtrGStrdup (nick);
+ Raw = ges_transition_clip_new_for_nick(native_nick);
+ GLib.Marshaller.Free (native_nick);
+ }
+
+ [GLib.Property ("vtype")]
+ public GES.VideoStandardTransitionType Vtype {
+ get {
+ GLib.Value val = GetProperty ("vtype");
+ GES.VideoStandardTransitionType ret = (GES.VideoStandardTransitionType) (Enum) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value((Enum) value);
+ SetProperty("vtype", val);
+ val.Dispose ();
+ }
+ }
+
+ public GES.VideoStandardTransitionType VtypeField {
+ get {
+ unsafe {
+ int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("vtype"));
+ return (GES.VideoStandardTransitionType) (*raw_ptr);
+ }
+ }
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.BaseTransitionClip.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_transition_clip_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_transition_clip_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static TransitionClip ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("vtype"
+ , GES.BaseTransitionClip.abi_info.Fields
+ , (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(GES.VideoStandardTransitionType))) // vtype
+ , null
+ , "priv"
+ , (long) Marshal.OffsetOf(typeof(GESTransitionClip_vtypeAlign), "vtype")
+ , 0
+ ),
+ new GLib.AbiField("priv"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , "vtype"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct GESTransitionClip_vtypeAlign
+ {
+ sbyte f1;
+ private GES.VideoStandardTransitionType vtype;
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/UriClip.cs b/ges/generated/GES/UriClip.cs
new file mode 100644
index 0000000..39052a9
--- /dev/null
+++ b/ges/generated/GES/UriClip.cs
@@ -0,0 +1,178 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class UriClip : GES.SourceClip {
+
+ public UriClip (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_uri_clip_new(IntPtr uri);
+
+ public UriClip (string uri) : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (UriClip)) {
+ var vals = new List<GLib.Value> ();
+ var names = new List<string> ();
+ names.Add ("uri");
+ vals.Add (new GLib.Value (uri));
+ CreateNativeObject (names.ToArray (), vals.ToArray ());
+ return;
+ }
+ IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
+ Raw = ges_uri_clip_new(native_uri);
+ GLib.Marshaller.Free (native_uri);
+ }
+
+ [GLib.Property ("is-image")]
+ public bool IsImageProp
+ {
+ get {
+ GLib.Value val = GetProperty ("is-image");
+ bool ret = (bool) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("is-image", val);
+ val.Dispose ();
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_uri_clip_set_mute(IntPtr raw, bool mute);
+
+ [GLib.Property ("mute")]
+ public bool Mute {
+ get {
+ GLib.Value val = GetProperty ("mute");
+ bool ret = (bool) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ ges_uri_clip_set_mute(Handle, value);
+ }
+ }
+
+ [GLib.Property ("supported-formats")]
+ public new GES.TrackType SupportedFormats {
+ get {
+ GLib.Value val = GetProperty ("supported-formats");
+ GES.TrackType ret = (GES.TrackType) (Enum) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value((Enum) value);
+ SetProperty("supported-formats", val);
+ val.Dispose ();
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_uri_clip_get_uri(IntPtr raw);
+
+ [GLib.Property ("uri")]
+ public string Uri {
+ get {
+ IntPtr raw_ret = ges_uri_clip_get_uri(Handle);
+ string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
+ return ret;
+ }
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.SourceClip.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_uri_clip_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_uri_clip_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_uri_clip_is_muted(IntPtr raw);
+
+ public bool IsMuted {
+ get {
+ bool raw_ret = ges_uri_clip_is_muted(Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+ }
+
+
+ static UriClip ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.SourceClip.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/UriClipAsset.cs b/ges/generated/GES/UriClipAsset.cs
new file mode 100644
index 0000000..14e608b
--- /dev/null
+++ b/ges/generated/GES/UriClipAsset.cs
@@ -0,0 +1,187 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class UriClipAsset : GES.ClipAsset {
+
+ public UriClipAsset (IntPtr raw) : base(raw) {}
+
+ protected UriClipAsset() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern ulong ges_uri_clip_asset_get_duration(IntPtr raw);
+
+ [GLib.Property ("duration")]
+ public ulong Duration {
+ get {
+ ulong raw_ret = ges_uri_clip_asset_get_duration(Handle);
+ ulong ret = raw_ret;
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("duration", val);
+ val.Dispose ();
+ }
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("discoverer"
+ , GES.ClipAsset.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // discoverer
+ , null
+ , "sync_discoverer"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("sync_discoverer"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // sync_discoverer
+ , "discoverer"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "sync_discoverer"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_uri_clip_asset_class_set_timeout(ulong timeout);
+
+ public static ulong Timeout {
+ set {
+ ges_uri_clip_asset_class_set_timeout(value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_uri_clip_asset_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_uri_clip_asset_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_uri_clip_asset_new(IntPtr uri, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data);
+
+ public static void New(string uri, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) {
+ IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
+ GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
+ cb_wrapper.PersistUntilCalled ();
+ ges_uri_clip_asset_new(native_uri, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
+ GLib.Marshaller.Free (native_uri);
+ }
+
+ public static void New(string uri) {
+ New (uri, null, null);
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern unsafe IntPtr ges_uri_clip_asset_request_sync(IntPtr uri, out IntPtr error);
+
+ public static unsafe GES.UriClipAsset RequestSync(string uri) {
+ IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
+ IntPtr error = IntPtr.Zero;
+ IntPtr raw_ret = ges_uri_clip_asset_request_sync(native_uri, out error);
+ GES.UriClipAsset ret = GLib.Object.GetObject(raw_ret) as GES.UriClipAsset;
+ GLib.Marshaller.Free (native_uri);
+ if (error != IntPtr.Zero) throw new GLib.GException (error);
+ return ret;
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_uri_clip_asset_get_info(IntPtr raw);
+
+ public Gst.PbUtils.DiscovererInfo Info {
+ get {
+ IntPtr raw_ret = ges_uri_clip_asset_get_info(Handle);
+ Gst.PbUtils.DiscovererInfo ret = GLib.Object.GetObject(raw_ret) as Gst.PbUtils.DiscovererInfo;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_uri_clip_asset_is_image(IntPtr raw);
+
+ public bool IsImage {
+ get {
+ bool raw_ret = ges_uri_clip_asset_is_image(Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+ }
+
+
+ static UriClipAsset ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.ClipAsset.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "__ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("__ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // __ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/UriSourceAsset.cs b/ges/generated/GES/UriSourceAsset.cs
new file mode 100644
index 0000000..33e03e7
--- /dev/null
+++ b/ges/generated/GES/UriSourceAsset.cs
@@ -0,0 +1,128 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class UriSourceAsset : GES.TrackElementAsset {
+
+ public UriSourceAsset (IntPtr raw) : base(raw) {}
+
+ protected UriSourceAsset() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.TrackElementAsset.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_uri_source_asset_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_uri_source_asset_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_uri_source_asset_get_filesource_asset(IntPtr raw);
+
+ public GES.UriClipAsset FilesourceAsset {
+ get {
+ IntPtr raw_ret = ges_uri_source_asset_get_filesource_asset(Handle);
+ GES.UriClipAsset ret = GLib.Object.GetObject(raw_ret) as GES.UriClipAsset;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_uri_source_asset_get_stream_info(IntPtr raw);
+
+ public Gst.PbUtils.DiscovererStreamInfo StreamInfo {
+ get {
+ IntPtr raw_ret = ges_uri_source_asset_get_stream_info(Handle);
+ Gst.PbUtils.DiscovererStreamInfo ret = GLib.Object.GetObject(raw_ret) as Gst.PbUtils.DiscovererStreamInfo;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_uri_source_asset_get_stream_uri(IntPtr raw);
+
+ public string StreamUri {
+ get {
+ IntPtr raw_ret = ges_uri_source_asset_get_stream_uri(Handle);
+ string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
+ return ret;
+ }
+ }
+
+
+ static UriSourceAsset ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.TrackElementAsset.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "__ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("__ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // __ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/VideoSource.cs b/ges/generated/GES/VideoSource.cs
new file mode 100644
index 0000000..21ddaca
--- /dev/null
+++ b/ges/generated/GES/VideoSource.cs
@@ -0,0 +1,134 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class VideoSource : GES.Source {
+
+ protected VideoSource (IntPtr raw) : base(raw) {}
+
+ protected VideoSource() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("create_source"
+ , GES.Source.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // create_source
+ , null
+ , "ABI"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ // union struct ABI.abi
+ new GLib.AbiField("ABI.abi.disable_scale_in_compositor"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(long)) // ABI.abi.disable_scale_in_compositor
+ , "create_source"
+ , null
+ , (long) Marshal.OffsetOf(typeof(GESVideoSource_ABI_abi_disable_scale_in_compositorAlign), "ABI_abi_disable_scale_in_compositor")
+ , 0
+ ),
+ // End ABI.abi
+
+ // union struct ABI
+ new GLib.AbiField("ABI._gst_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // ABI._gst_reserved
+ , "create_source"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ // End ABI
+
+ new GLib.AbiField("ABI"
+ , -1
+ , new List<List<string>>() { // union ABI
+ new List<string>() {"ABI.abi.disable_scale_in_compositor"},
+ new List<string>() {"ABI._gst_reserved"}
+ }
+ , "create_source"
+ , null
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct GESVideoSource_ABI_abi_disable_scale_in_compositorAlign
+ {
+ sbyte f1;
+ private long ABI_abi_disable_scale_in_compositor;
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_video_source_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_video_source_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static VideoSource ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.Source.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/VideoStandardTransitionType.cs b/ges/generated/GES/VideoStandardTransitionType.cs
new file mode 100644
index 0000000..8311998
--- /dev/null
+++ b/ges/generated/GES/VideoStandardTransitionType.cs
@@ -0,0 +1,98 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ [GLib.GType (typeof (GES.VideoStandardTransitionTypeGType))]
+ public enum VideoStandardTransitionType {
+
+ None = 0,
+ BarWipeLr = 1,
+ BarWipeTb = 2,
+ BoxWipeTl = 3,
+ BoxWipeTr = 4,
+ BoxWipeBr = 5,
+ BoxWipeBl = 6,
+ FourBoxWipeCi = 7,
+ FourBoxWipeCo = 8,
+ BarndoorV = 21,
+ BarndoorH = 22,
+ BoxWipeTc = 23,
+ BoxWipeRc = 24,
+ BoxWipeBc = 25,
+ BoxWipeLc = 26,
+ DiagonalTl = 41,
+ DiagonalTr = 42,
+ BowtieV = 43,
+ BowtieH = 44,
+ BarndoorDbl = 45,
+ BarndoorDtl = 46,
+ MiscDiagonalDbd = 47,
+ MiscDiagonalDd = 48,
+ VeeD = 61,
+ VeeL = 62,
+ VeeU = 63,
+ VeeR = 64,
+ BarnveeD = 65,
+ BarnveeL = 66,
+ BarnveeU = 67,
+ BarnveeR = 68,
+ IrisRect = 101,
+ ClockCw12 = 201,
+ ClockCw3 = 202,
+ ClockCw6 = 203,
+ ClockCw9 = 204,
+ PinwheelTbv = 205,
+ PinwheelTbh = 206,
+ PinwheelFb = 207,
+ FanCt = 211,
+ FanCr = 212,
+ DoublefanFov = 213,
+ DoublefanFoh = 214,
+ SinglesweepCwt = 221,
+ SinglesweepCwr = 222,
+ SinglesweepCwb = 223,
+ SinglesweepCwl = 224,
+ DoublesweepPv = 225,
+ DoublesweepPd = 226,
+ DoublesweepOv = 227,
+ DoublesweepOh = 228,
+ FanT = 231,
+ FanR = 232,
+ FanB = 233,
+ FanL = 234,
+ DoublefanFiv = 235,
+ DoublefanFih = 236,
+ SinglesweepCwtl = 241,
+ SinglesweepCwbl = 242,
+ SinglesweepCwbr = 243,
+ SinglesweepCwtr = 244,
+ DoublesweepPdtl = 245,
+ DoublesweepPdbl = 246,
+ SaloondoorT = 251,
+ SaloondoorL = 252,
+ SaloondoorB = 253,
+ SaloondoorR = 254,
+ WindshieldR = 261,
+ WindshieldU = 262,
+ WindshieldV = 263,
+ WindshieldH = 264,
+ Crossfade = 512,
+ }
+
+ internal class VideoStandardTransitionTypeGType {
+ [DllImport ("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_video_standard_transition_type_get_type ();
+
+ public static GLib.GType GType {
+ get {
+ return new GLib.GType (ges_video_standard_transition_type_get_type ());
+ }
+ }
+ }
+#endregion
+}
diff --git a/ges/generated/GES/VideoTestPattern.cs b/ges/generated/GES/VideoTestPattern.cs
new file mode 100644
index 0000000..323c9b0
--- /dev/null
+++ b/ges/generated/GES/VideoTestPattern.cs
@@ -0,0 +1,44 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ [GLib.GType (typeof (GES.VideoTestPatternGType))]
+ public enum VideoTestPattern {
+
+ Smpte = 0,
+ Snow = 1,
+ Black = 2,
+ White = 3,
+ Red = 4,
+ Green = 5,
+ Blue = 6,
+ Checkers1 = 7,
+ Checkers2 = 8,
+ Checkers4 = 9,
+ Checkers8 = 10,
+ Circular = 11,
+ Blink = 12,
+ Smpte75 = 13,
+ ZonePlate = 14,
+ Gamut = 15,
+ ChromaZonePlate = 16,
+ SolidColor = 17,
+ }
+
+ internal class VideoTestPatternGType {
+ [DllImport ("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_video_test_pattern_get_type ();
+
+ public static GLib.GType GType {
+ get {
+ return new GLib.GType (ges_video_test_pattern_get_type ());
+ }
+ }
+ }
+#endregion
+}
diff --git a/ges/generated/GES/VideoTestSource.cs b/ges/generated/GES/VideoTestSource.cs
new file mode 100644
index 0000000..b0e7ccc
--- /dev/null
+++ b/ges/generated/GES/VideoTestSource.cs
@@ -0,0 +1,112 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class VideoTestSource : GES.VideoSource {
+
+ public VideoTestSource (IntPtr raw) : base(raw) {}
+
+ protected VideoTestSource() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.VideoSource.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_video_test_source_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_video_test_source_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_video_test_source_get_pattern(IntPtr raw);
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_video_test_source_set_pattern(IntPtr raw, int pattern);
+
+ public GES.VideoTestPattern Pattern {
+ get {
+ int raw_ret = ges_video_test_source_get_pattern(Handle);
+ GES.VideoTestPattern ret = (GES.VideoTestPattern) raw_ret;
+ return ret;
+ }
+ set {
+ ges_video_test_source_set_pattern(Handle, (int) value);
+ }
+ }
+
+
+ static VideoTestSource ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.VideoSource.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/VideoTrack.cs b/ges/generated/GES/VideoTrack.cs
new file mode 100644
index 0000000..b7e2b2c
--- /dev/null
+++ b/ges/generated/GES/VideoTrack.cs
@@ -0,0 +1,102 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class VideoTrack : GES.Track {
+
+ public VideoTrack (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_video_track_new();
+
+ public VideoTrack () : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (VideoTrack)) {
+ CreateNativeObject (new string [0], new GLib.Value[0]);
+ return;
+ }
+ Raw = ges_video_track_new();
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.Track.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_video_track_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_video_track_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static VideoTrack ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.Track.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/VideoTransition.cs b/ges/generated/GES/VideoTransition.cs
new file mode 100644
index 0000000..3cc289c
--- /dev/null
+++ b/ges/generated/GES/VideoTransition.cs
@@ -0,0 +1,180 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class VideoTransition : GES.Transition {
+
+ public VideoTransition (IntPtr raw) : base(raw) {}
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_video_transition_new();
+
+ public VideoTransition () : base (IntPtr.Zero)
+ {
+ if (GetType () != typeof (VideoTransition)) {
+ CreateNativeObject (new string [0], new GLib.Value[0]);
+ return;
+ }
+ Raw = ges_video_transition_new();
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_video_transition_get_border(IntPtr raw);
+
+ [GLib.Property ("border")]
+ public int Border {
+ get {
+ int raw_ret = ges_video_transition_get_border(Handle);
+ int ret = raw_ret;
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("border", val);
+ val.Dispose ();
+ }
+ }
+
+ [GLib.Property ("invert")]
+ public bool Invert {
+ get {
+ GLib.Value val = GetProperty ("invert");
+ bool ret = (bool) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("invert", val);
+ val.Dispose ();
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern int ges_video_transition_get_transition_type(IntPtr raw);
+
+ [GLib.Property ("transition-type")]
+ public GES.VideoStandardTransitionType TransitionType {
+ get {
+ int raw_ret = ges_video_transition_get_transition_type(Handle);
+ GES.VideoStandardTransitionType ret = (GES.VideoStandardTransitionType) raw_ret;
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value((Enum) value);
+ SetProperty("transition-type", val);
+ val.Dispose ();
+ }
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.Transition.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_video_transition_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_video_transition_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_video_transition_is_inverted(IntPtr raw);
+
+ public bool IsInverted {
+ get {
+ bool raw_ret = ges_video_transition_is_inverted(Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern void ges_video_transition_set_inverted(IntPtr raw, bool inverted);
+
+ public bool Inverted {
+ set {
+ ges_video_transition_set_inverted(Handle, value);
+ }
+ }
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool ges_video_transition_set_transition_type(IntPtr raw, int type);
+
+ public bool SetTransitionType(GES.VideoStandardTransitionType type) {
+ bool raw_ret = ges_video_transition_set_transition_type(Handle, (int) type);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+
+ static VideoTransition ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.Transition.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/VideoUriSource.cs b/ges/generated/GES/VideoUriSource.cs
new file mode 100644
index 0000000..55607cd
--- /dev/null
+++ b/ges/generated/GES/VideoUriSource.cs
@@ -0,0 +1,113 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class VideoUriSource : GES.VideoSource {
+
+ public VideoUriSource (IntPtr raw) : base(raw) {}
+
+ protected VideoUriSource() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+ [GLib.Property ("uri")]
+ public string Uri {
+ get {
+ GLib.Value val = GetProperty ("uri");
+ string ret = (string) val;
+ val.Dispose ();
+ return ret;
+ }
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.VideoSource.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_video_uri_source_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_video_uri_source_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static VideoUriSource ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("uri"
+ , GES.VideoSource.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // uri
+ , null
+ , "priv"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("priv"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , "uri"
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}
diff --git a/ges/generated/GES/XmlFormatter.cs b/ges/generated/GES/XmlFormatter.cs
new file mode 100644
index 0000000..6676167
--- /dev/null
+++ b/ges/generated/GES/XmlFormatter.cs
@@ -0,0 +1,95 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace GES {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ public partial class XmlFormatter : GES.BaseXmlFormatter {
+
+ public XmlFormatter (IntPtr raw) : base(raw) {}
+
+ protected XmlFormatter() : base(IntPtr.Zero)
+ {
+ CreateNativeObject (new string [0], new GLib.Value [0]);
+ }
+
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _class_abi = null;
+ static public new GLib.AbiStruct class_abi {
+ get {
+ if (_class_abi == null)
+ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("_ges_reserved"
+ , GES.BaseXmlFormatter.class_abi.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , null
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _class_abi;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+ [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr ges_xml_formatter_get_type();
+
+ public static new GLib.GType GType {
+ get {
+ IntPtr raw_ret = ges_xml_formatter_get_type();
+ GLib.GType ret = new GLib.GType(raw_ret);
+ return ret;
+ }
+ }
+
+
+ static XmlFormatter ()
+ {
+ GtkSharp.GstEditingServices.ObjectManager.Initialize ();
+ }
+
+ // Internal representation of the wrapped structure ABI.
+ static GLib.AbiStruct _abi_info = null;
+ static public new GLib.AbiStruct abi_info {
+ get {
+ if (_abi_info == null)
+ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
+ new GLib.AbiField("priv"
+ , GES.BaseXmlFormatter.abi_info.Fields
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
+ , null
+ , "_ges_reserved"
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ new GLib.AbiField("_ges_reserved"
+ , -1
+ , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
+ , "priv"
+ , null
+ , (uint) Marshal.SizeOf(typeof(IntPtr))
+ , 0
+ ),
+ });
+
+ return _abi_info;
+ }
+ }
+
+
+ // End of the ABI representation.
+
+#endregion
+ }
+}