Version control generated source code

This commit is contained in:
Thibault Saunier 2018-01-29 15:56:49 -03:00
parent 689e4892e0
commit d246a73c3a
842 changed files with 148813 additions and 52 deletions

1004
ges/generated/GES_Asset.cs Normal file

File diff suppressed because it is too large Load diff

View file

@ -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];
}
}
}
}

View file

@ -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];
}
}
}
}

View file

@ -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
}

View file

@ -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];
}
}
}
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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];
}
}
}
}

View file

@ -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];
}
}
}
}

View file

@ -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
}

241
ges/generated/GES_Clip.cs Normal file
View file

@ -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
}
}

View file

@ -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];
}
}
}
}

View file

@ -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
}
}

View file

@ -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];
}
}
}
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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];
}
}
}
}

View file

@ -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];
}
}
}
}

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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];
}
}
}
}

29
ges/generated/GES_Edge.cs Normal file
View file

@ -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
}

View file

@ -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
}

139
ges/generated/GES_Effect.cs Normal file
View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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
}

View file

@ -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
}
}

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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
}
}

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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
}

View file

@ -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
}

View file

@ -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
}

View file

@ -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
}

View file

@ -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
}

View file

@ -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
}

View file

@ -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
}

View file

@ -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
}

View file

@ -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
}

112
ges/generated/GES_Global.cs Normal file
View file

@ -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
}
}

177
ges/generated/GES_Group.cs Normal file
View file

@ -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
}
}

View file

@ -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];
}
}
}
}

View file

@ -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
}

View file

@ -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
}

View file

@ -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
}
}

1017
ges/generated/GES_Layer.cs Normal file

File diff suppressed because it is too large Load diff

View file

@ -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];
}
}
}
}

View file

@ -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];
}
}
}
}

View file

@ -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];
}
}
}
}

View file

@ -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
}
}

View file

@ -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
}

View file

@ -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);
}

View file

@ -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
}
}

View file

@ -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];
}
}
}
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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];
}
}
}
}

View file

@ -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];
}
}
}
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -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
}
}

View file

@ -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
}
}

902
ges/generated/GES_Track.cs Normal file
View file

@ -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.OwnedHandle);
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
}
}

View file

@ -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];
}
}
}
}

View file

@ -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
}
}

View file

@ -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];
}
}
}
}

View file

@ -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
}
}

View file

@ -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];
}
}
}
}

View file

@ -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];
}
}
}
}

View file

@ -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
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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
}
}

View file

@ -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
}
}

Some files were not shown because too many files have changed in this diff Show more