summaryrefslogtreecommitdiff
path: root/ges/generated/GES/Container.cs
blob: 138870dce6881e6c1fd4fe59811647dda1461404 (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
661
662
663
664
665
666
667
668
669
670
671
672
673
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
	}
}