gstreamer/subprojects/gstreamer-sharp/ges/generated/GES/TrackElement.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

863 lines
29 KiB
C#
Raw Normal View History

2018-01-29 18:56:49 +00:00
// 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 ();
}
}
2020-06-18 01:14:24 +00:00
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_track_element_get_auto_clamp_control_sources(IntPtr raw);
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern void ges_track_element_set_auto_clamp_control_sources(IntPtr raw, bool auto_clamp);
[GLib.Property ("auto-clamp-control-sources")]
public bool AutoClampControlSources {
get {
bool raw_ret = ges_track_element_get_auto_clamp_control_sources(Handle);
bool ret = raw_ret;
return ret;
}
set {
ges_track_element_set_auto_clamp_control_sources(Handle, value);
}
}
[GLib.Property ("has-internal-source")]
public bool HasInternalSourceProp
{
get {
GLib.Value val = GetProperty ("has-internal-source");
bool ret = (bool) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("has-internal-source", val);
val.Dispose ();
}
}
2018-01-29 18:56:49 +00:00
[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);
}
}
2019-02-25 16:37:17 +00:00
[GLib.Signal("control-binding-added")]
public event GES.ControlBindingAddedHandler ControlBindingAdded {
2018-01-29 18:56:49 +00:00
add {
2019-02-25 16:37:17 +00:00
this.AddSignalHandler ("control-binding-added", value, typeof (GES.ControlBindingAddedArgs));
2018-01-29 18:56:49 +00:00
}
remove {
2019-02-25 16:37:17 +00:00
this.RemoveSignalHandler ("control-binding-added", value);
2018-01-29 18:56:49 +00:00
}
}
2019-02-25 16:37:17 +00:00
[GLib.Signal("control-binding-removed")]
public event GES.ControlBindingRemovedHandler ControlBindingRemoved {
2018-01-29 18:56:49 +00:00
add {
2019-02-25 16:37:17 +00:00
this.AddSignalHandler ("control-binding-removed", value, typeof (GES.ControlBindingRemovedArgs));
2018-01-29 18:56:49 +00:00
}
remove {
2019-02-25 16:37:17 +00:00
this.RemoveSignalHandler ("control-binding-removed", value);
2018-01-29 18:56:49 +00:00
}
}
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 CreateGnlObjectNativeDelegate CreateGnlObject_cb_delegate;
static CreateGnlObjectNativeDelegate CreateGnlObjectVMCallback {
get {
if (CreateGnlObject_cb_delegate == null)
CreateGnlObject_cb_delegate = new CreateGnlObjectNativeDelegate (CreateGnlObject_cb);
return CreateGnlObject_cb_delegate;
}
}
static void OverrideCreateGnlObject (GLib.GType gtype)
{
OverrideCreateGnlObject (gtype, CreateGnlObjectVMCallback);
}
static void OverrideCreateGnlObject (GLib.GType gtype, CreateGnlObjectNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("create_gnl_object"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr CreateGnlObjectNativeDelegate (IntPtr inst);
static IntPtr CreateGnlObject_cb (IntPtr inst)
{
try {
TrackElement __obj = GLib.Object.GetObject (inst, false) as TrackElement;
Gst.Element __result;
__result = __obj.OnCreateGnlObject ();
return __result == null ? IntPtr.Zero : __result.Handle;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(GES.TrackElement), ConnectionMethod="OverrideCreateGnlObject")]
protected virtual Gst.Element OnCreateGnlObject ()
{
return InternalCreateGnlObject ();
}
private Gst.Element InternalCreateGnlObject ()
{
CreateGnlObjectNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("create_gnl_object"));
unmanaged = (CreateGnlObjectNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(CreateGnlObjectNativeDelegate));
}
if (unmanaged == null) return null;
IntPtr __result = unmanaged (this.Handle);
return GLib.Object.GetObject(__result) as Gst.Element;
}
static CreateElementNativeDelegate CreateElement_cb_delegate;
static CreateElementNativeDelegate CreateElementVMCallback {
get {
if (CreateElement_cb_delegate == null)
CreateElement_cb_delegate = new CreateElementNativeDelegate (CreateElement_cb);
return CreateElement_cb_delegate;
}
}
static void OverrideCreateElement (GLib.GType gtype)
{
OverrideCreateElement (gtype, CreateElementVMCallback);
}
static void OverrideCreateElement (GLib.GType gtype, CreateElementNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("create_element"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr CreateElementNativeDelegate (IntPtr inst);
static IntPtr CreateElement_cb (IntPtr inst)
{
try {
TrackElement __obj = GLib.Object.GetObject (inst, false) as TrackElement;
Gst.Element __result;
__result = __obj.OnCreateElement ();
return __result == null ? IntPtr.Zero : __result.Handle;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(GES.TrackElement), ConnectionMethod="OverrideCreateElement")]
protected virtual Gst.Element OnCreateElement ()
{
return InternalCreateElement ();
}
private Gst.Element InternalCreateElement ()
{
CreateElementNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("create_element"));
unmanaged = (CreateElementNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(CreateElementNativeDelegate));
}
if (unmanaged == null) return null;
IntPtr __result = unmanaged (this.Handle);
return GLib.Object.GetObject(__result) as Gst.Element;
}
2018-01-29 18:56:49 +00:00
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"
2020-06-18 01:14:24 +00:00
, "ABI"
2018-01-29 18:56:49 +00:00
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
2020-06-18 01:14:24 +00:00
// union struct ABI.abi
// End ABI.abi
// union struct ABI
new GLib.AbiField("ABI._gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 20 // ABI._gst_reserved
, "lookup_child"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
// End ABI
new GLib.AbiField("ABI"
2018-01-29 18:56:49 +00:00
, -1
2020-06-18 01:14:24 +00:00
, new List<List<string>>() { // union ABI
new List<string>() {},
new List<string>() {"ABI._gst_reserved"}
}
2018-01-29 18:56:49 +00:00
, "lookup_child"
, null
, 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);
2018-01-29 18:56:49 +00:00
public void AddChildrenProps(Gst.Element element, string[] wanted_categories, string[] blacklist, string[] whitelist) {
IntPtr native_wanted_categories = GLib.Marshaller.StringArrayToStrvPtr(wanted_categories, true);
IntPtr native_blacklist = GLib.Marshaller.StringArrayToStrvPtr(blacklist, true);
IntPtr native_whitelist = GLib.Marshaller.StringArrayToStrvPtr(whitelist, true);
2018-01-29 18:56:49 +00:00
ges_track_element_add_children_props(Handle, element == null ? IntPtr.Zero : element.Handle, native_wanted_categories, native_blacklist, native_whitelist);
GLib.Marshaller.StrFreeV (native_wanted_categories);
GLib.Marshaller.StrFreeV (native_blacklist);
GLib.Marshaller.StrFreeV (native_whitelist);
2018-01-29 18:56:49 +00:00
}
public void AddChildrenProps(Gst.Element element) {
AddChildrenProps (element, null, null, null);
}
2020-06-18 01:14:24 +00:00
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern void ges_track_element_clamp_control_source(IntPtr raw, IntPtr property_name);
public void ClampControlSource(string property_name) {
IntPtr native_property_name = GLib.Marshaller.StringToPtrGStrdup (property_name);
ges_track_element_clamp_control_source(Handle, native_property_name);
GLib.Marshaller.Free (native_property_name);
}
2018-01-29 18:56:49 +00:00
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_track_element_edit(IntPtr raw, IntPtr layers, int mode, int edge, ulong position);
2020-06-18 01:14:24 +00:00
[Obsolete]
2018-01-29 18:56:49 +00:00
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;
}
2020-06-18 01:14:24 +00:00
public bool Edit(GES.EditMode mode, GES.Edge edge, ulong position) {
return Edit (null, mode, edge, position);
}
2018-01-29 18:56:49 +00:00
[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;
}
}
2020-06-18 01:14:24 +00:00
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_track_element_has_internal_source(IntPtr raw);
public bool HasInternalSource {
get {
bool raw_ret = ges_track_element_has_internal_source(Handle);
bool ret = raw_ret;
return ret;
}
}
2018-01-29 18:56:49 +00:00
[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;
}
}
2020-06-18 01:14:24 +00:00
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_track_element_is_core(IntPtr raw);
public bool IsCore {
get {
bool raw_ret = ges_track_element_is_core(Handle);
bool ret = raw_ret;
return ret;
}
}
2018-01-29 18:56:49 +00:00
[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;
}
2020-06-18 01:14:24 +00:00
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_track_element_set_has_internal_source(IntPtr raw, bool has_internal_source);
public bool SetHasInternalSource(bool has_internal_source) {
bool raw_ret = ges_track_element_set_has_internal_source(Handle, has_internal_source);
bool ret = raw_ret;
return ret;
}
2018-01-29 18:56:49 +00:00
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
}
}