summaryrefslogtreecommitdiff
path: root/ges/generated/GES/TrackElement.cs
blob: 15619ecef75c10a251631fe97b9b5f63732412b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
// 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-added")]
		public event GES.ControlBindingAddedHandler ControlBindingAdded {
			add {
				this.AddSignalHandler ("control-binding-added", value, typeof (GES.ControlBindingAddedArgs));
			}
			remove {
				this.RemoveSignalHandler ("control-binding-added", 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);
			}
		}

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

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