1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.ComponentModel;
8 /// <summary>API for containers</summary>
9 [IPackLinearNativeInherit]
10 public interface IPackLinear :
12 Efl.Eo.IWrapper, IDisposable
14 /// <summary>Prepend an object at the beginning of this container.
15 /// This is the same as <see cref="Efl.IPackLinear.PackAt"/>(<c>subobj</c>, 0).
17 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.IPack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
18 /// <param name="subobj">Item to pack.</param>
19 /// <returns><c>false</c> if <c>subobj</c> could not be packed</returns>
20 bool PackBegin( Efl.Gfx.IEntity subobj);
21 /// <summary>Append object at the end of this container.
22 /// This is the same as <see cref="Efl.IPackLinear.PackAt"/>(<c>subobj</c>, -1).
24 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.IPack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
25 /// <param name="subobj">Item to pack at the end.</param>
26 /// <returns><c>false</c> if <c>subobj</c> could not be packed</returns>
27 bool PackEnd( Efl.Gfx.IEntity subobj);
28 /// <summary>Prepend item before other sub object.
29 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.IPack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
30 /// <param name="subobj">Item to pack before <c>existing</c>.</param>
31 /// <param name="existing">Item to refer to.</param>
32 /// <returns><c>false</c> if <c>existing</c> could not be found or <c>subobj</c> could not be packed.</returns>
33 bool PackBefore( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing);
34 /// <summary>Append item after other sub object.
35 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.IPack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
36 /// <param name="subobj">Item to pack after <c>existing</c>.</param>
37 /// <param name="existing">Item to refer to.</param>
38 /// <returns><c>false</c> if <c>existing</c> could not be found or <c>subobj</c> could not be packed.</returns>
39 bool PackAfter( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing);
40 /// <summary>Inserts <c>subobj</c> at the specified <c>index</c>.
41 /// Valid range: -<c>count</c> to +<c>count</c>. -1 refers to the last element. Out of range indices will trigger an append.
43 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.IPack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
44 /// <param name="subobj">Item to pack at given index.</param>
45 /// <param name="index">A position.</param>
46 /// <returns><c>false</c> if <c>subobj</c> could not be packed.</returns>
47 bool PackAt( Efl.Gfx.IEntity subobj, int index);
48 /// <summary>Content at a given index in this container.
49 /// Index -1 refers to the last item. The valid range is -(count - 1) to (count - 1).</summary>
50 /// <param name="index">Index number</param>
51 /// <returns>The object contained at the given <c>index</c>.</returns>
52 Efl.Gfx.IEntity GetPackContent( int index);
53 /// <summary>Get the index of a child in this container.</summary>
54 /// <param name="subobj">An object contained in this pack.</param>
55 /// <returns>-1 in case of failure, or the index of this item.</returns>
56 int GetPackIndex( Efl.Gfx.IEntity subobj);
57 /// <summary>Pop out item at specified <c>index</c>.
58 /// Equivalent to unpack(content_at(<c>index</c>)).</summary>
59 /// <param name="index">Index number</param>
60 /// <returns>The child item if it could be removed.</returns>
61 Efl.Gfx.IEntity PackUnpackAt( int index);
63 /// <summary>API for containers</summary>
64 sealed public class IPackLinearConcrete :
67 , Efl.IContainer, Efl.IPack
69 ///<summary>Pointer to the native class description.</summary>
70 public System.IntPtr NativeClass {
72 if (((object)this).GetType() == typeof (IPackLinearConcrete))
73 return Efl.IPackLinearNativeInherit.GetEflClassStatic();
75 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
78 private EventHandlerList eventHandlers = new EventHandlerList();
79 private System.IntPtr handle;
80 ///<summary>Pointer to the native instance.</summary>
81 public System.IntPtr NativeHandle {
82 get { return handle; }
84 [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr
85 efl_pack_linear_interface_get();
86 ///<summary>Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
87 private IPackLinearConcrete(System.IntPtr raw)
90 RegisterEventProxies();
92 ///<summary>Destructor.</summary>
93 ~IPackLinearConcrete()
97 ///<summary>Releases the underlying native instance.</summary>
98 void Dispose(bool disposing)
100 if (handle != System.IntPtr.Zero) {
101 Efl.Eo.Globals.efl_unref(handle);
102 handle = System.IntPtr.Zero;
105 ///<summary>Releases the underlying native instance.</summary>
106 public void Dispose()
109 GC.SuppressFinalize(this);
111 ///<summary>Verifies if the given object is equal to this one.</summary>
112 public override bool Equals(object obj)
114 var other = obj as Efl.Object;
117 return this.NativeHandle == other.NativeHandle;
119 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
120 public override int GetHashCode()
122 return this.NativeHandle.ToInt32();
124 ///<summary>Turns the native pointer into a string representation.</summary>
125 public override String ToString()
127 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
129 private readonly object eventLock = new object();
130 private Dictionary<string, int> event_cb_count = new Dictionary<string, int>();
131 ///<summary>Adds a new event handler, registering it to the native event. For internal use only.</summary>
132 ///<param name="lib">The name of the native library definining the event.</param>
133 ///<param name="key">The name of the native event.</param>
134 ///<param name="evt_delegate">The delegate to be called on event raising.</param>
135 ///<returns>True if the delegate was successfully registered.</returns>
136 private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) {
138 if (!event_cb_count.TryGetValue(key, out event_count))
139 event_cb_count[key] = event_count;
140 if (event_count == 0) {
141 IntPtr desc = Efl.EventDescription.GetNative(lib, key);
142 if (desc == IntPtr.Zero) {
143 Eina.Log.Error($"Failed to get native event {key}");
146 bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero);
148 Eina.Log.Error($"Failed to add event proxy for event {key}");
151 Eina.Error.RaiseIfUnhandledException();
153 event_cb_count[key]++;
156 ///<summary>Removes the given event handler for the given event. For internal use only.</summary>
157 ///<param name="key">The name of the native event.</param>
158 ///<param name="evt_delegate">The delegate to be removed.</param>
159 ///<returns>True if the delegate was successfully registered.</returns>
160 private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) {
162 if (!event_cb_count.TryGetValue(key, out event_count))
163 event_cb_count[key] = event_count;
164 if (event_count == 1) {
165 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
166 if (desc == IntPtr.Zero) {
167 Eina.Log.Error($"Failed to get native event {key}");
170 bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero);
172 Eina.Log.Error($"Failed to remove event proxy for event {key}");
175 Eina.Error.RaiseIfUnhandledException();
176 } else if (event_count == 0) {
177 Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered.");
180 event_cb_count[key]--;
183 private static object ContentAddedEvtKey = new object();
184 /// <summary>Sent after a new item was added.
185 /// (Since EFL 1.22)</summary>
186 public event EventHandler<Efl.IContainerContentAddedEvt_Args> ContentAddedEvt
190 string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED";
191 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentAddedEvt_delegate)) {
192 eventHandlers.AddHandler(ContentAddedEvtKey , value);
194 Eina.Log.Error($"Error adding proxy for event {key}");
199 string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED";
200 if (RemoveNativeEventHandler(key, this.evt_ContentAddedEvt_delegate)) {
201 eventHandlers.RemoveHandler(ContentAddedEvtKey , value);
203 Eina.Log.Error($"Error removing proxy for event {key}");
207 ///<summary>Method to raise event ContentAddedEvt.</summary>
208 public void On_ContentAddedEvt(Efl.IContainerContentAddedEvt_Args e)
210 EventHandler<Efl.IContainerContentAddedEvt_Args> evt;
212 evt = (EventHandler<Efl.IContainerContentAddedEvt_Args>)eventHandlers[ContentAddedEvtKey];
214 evt?.Invoke(this, e);
216 Efl.EventCb evt_ContentAddedEvt_delegate;
217 private void on_ContentAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
219 Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args();
220 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete);
222 On_ContentAddedEvt(args);
223 } catch (Exception e) {
224 Eina.Log.Error(e.ToString());
225 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
229 private static object ContentRemovedEvtKey = new object();
230 /// <summary>Sent after an item was removed, before unref.
231 /// (Since EFL 1.22)</summary>
232 public event EventHandler<Efl.IContainerContentRemovedEvt_Args> ContentRemovedEvt
236 string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED";
237 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentRemovedEvt_delegate)) {
238 eventHandlers.AddHandler(ContentRemovedEvtKey , value);
240 Eina.Log.Error($"Error adding proxy for event {key}");
245 string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED";
246 if (RemoveNativeEventHandler(key, this.evt_ContentRemovedEvt_delegate)) {
247 eventHandlers.RemoveHandler(ContentRemovedEvtKey , value);
249 Eina.Log.Error($"Error removing proxy for event {key}");
253 ///<summary>Method to raise event ContentRemovedEvt.</summary>
254 public void On_ContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e)
256 EventHandler<Efl.IContainerContentRemovedEvt_Args> evt;
258 evt = (EventHandler<Efl.IContainerContentRemovedEvt_Args>)eventHandlers[ContentRemovedEvtKey];
260 evt?.Invoke(this, e);
262 Efl.EventCb evt_ContentRemovedEvt_delegate;
263 private void on_ContentRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
265 Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args();
266 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete);
268 On_ContentRemovedEvt(args);
269 } catch (Exception e) {
270 Eina.Log.Error(e.ToString());
271 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
275 ///<summary>Register the Eo event wrappers making the bridge to C# events. Internal usage only.</summary>
276 void RegisterEventProxies()
278 evt_ContentAddedEvt_delegate = new Efl.EventCb(on_ContentAddedEvt_NativeCallback);
279 evt_ContentRemovedEvt_delegate = new Efl.EventCb(on_ContentRemovedEvt_NativeCallback);
281 /// <summary>Prepend an object at the beginning of this container.
282 /// This is the same as <see cref="Efl.IPackLinear.PackAt"/>(<c>subobj</c>, 0).
284 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.IPack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
285 /// <param name="subobj">Item to pack.</param>
286 /// <returns><c>false</c> if <c>subobj</c> could not be packed</returns>
287 public bool PackBegin( Efl.Gfx.IEntity subobj) {
288 var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_begin_ptr.Value.Delegate(this.NativeHandle, subobj);
289 Eina.Error.RaiseIfUnhandledException();
292 /// <summary>Append object at the end of this container.
293 /// This is the same as <see cref="Efl.IPackLinear.PackAt"/>(<c>subobj</c>, -1).
295 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.IPack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
296 /// <param name="subobj">Item to pack at the end.</param>
297 /// <returns><c>false</c> if <c>subobj</c> could not be packed</returns>
298 public bool PackEnd( Efl.Gfx.IEntity subobj) {
299 var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_end_ptr.Value.Delegate(this.NativeHandle, subobj);
300 Eina.Error.RaiseIfUnhandledException();
303 /// <summary>Prepend item before other sub object.
304 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.IPack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
305 /// <param name="subobj">Item to pack before <c>existing</c>.</param>
306 /// <param name="existing">Item to refer to.</param>
307 /// <returns><c>false</c> if <c>existing</c> could not be found or <c>subobj</c> could not be packed.</returns>
308 public bool PackBefore( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) {
309 var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_before_ptr.Value.Delegate(this.NativeHandle, subobj, existing);
310 Eina.Error.RaiseIfUnhandledException();
313 /// <summary>Append item after other sub object.
314 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.IPack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
315 /// <param name="subobj">Item to pack after <c>existing</c>.</param>
316 /// <param name="existing">Item to refer to.</param>
317 /// <returns><c>false</c> if <c>existing</c> could not be found or <c>subobj</c> could not be packed.</returns>
318 public bool PackAfter( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) {
319 var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_after_ptr.Value.Delegate(this.NativeHandle, subobj, existing);
320 Eina.Error.RaiseIfUnhandledException();
323 /// <summary>Inserts <c>subobj</c> at the specified <c>index</c>.
324 /// Valid range: -<c>count</c> to +<c>count</c>. -1 refers to the last element. Out of range indices will trigger an append.
326 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.IPack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
327 /// <param name="subobj">Item to pack at given index.</param>
328 /// <param name="index">A position.</param>
329 /// <returns><c>false</c> if <c>subobj</c> could not be packed.</returns>
330 public bool PackAt( Efl.Gfx.IEntity subobj, int index) {
331 var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_at_ptr.Value.Delegate(this.NativeHandle, subobj, index);
332 Eina.Error.RaiseIfUnhandledException();
335 /// <summary>Content at a given index in this container.
336 /// Index -1 refers to the last item. The valid range is -(count - 1) to (count - 1).</summary>
337 /// <param name="index">Index number</param>
338 /// <returns>The object contained at the given <c>index</c>.</returns>
339 public Efl.Gfx.IEntity GetPackContent( int index) {
340 var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_content_get_ptr.Value.Delegate(this.NativeHandle, index);
341 Eina.Error.RaiseIfUnhandledException();
344 /// <summary>Get the index of a child in this container.</summary>
345 /// <param name="subobj">An object contained in this pack.</param>
346 /// <returns>-1 in case of failure, or the index of this item.</returns>
347 public int GetPackIndex( Efl.Gfx.IEntity subobj) {
348 var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_index_get_ptr.Value.Delegate(this.NativeHandle, subobj);
349 Eina.Error.RaiseIfUnhandledException();
352 /// <summary>Pop out item at specified <c>index</c>.
353 /// Equivalent to unpack(content_at(<c>index</c>)).</summary>
354 /// <param name="index">Index number</param>
355 /// <returns>The child item if it could be removed.</returns>
356 public Efl.Gfx.IEntity PackUnpackAt( int index) {
357 var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_unpack_at_ptr.Value.Delegate(this.NativeHandle, index);
358 Eina.Error.RaiseIfUnhandledException();
361 /// <summary>Begin iterating over this object's contents.
362 /// (Since EFL 1.22)</summary>
363 /// <returns>Iterator to object content</returns>
364 public Eina.Iterator<Efl.Gfx.IEntity> ContentIterate() {
365 var _ret_var = Efl.IContainerNativeInherit.efl_content_iterate_ptr.Value.Delegate(this.NativeHandle);
366 Eina.Error.RaiseIfUnhandledException();
367 return new Eina.Iterator<Efl.Gfx.IEntity>(_ret_var, true, false);
369 /// <summary>Returns the number of UI elements packed in this container.
370 /// (Since EFL 1.22)</summary>
371 /// <returns>Number of packed UI elements</returns>
372 public int ContentCount() {
373 var _ret_var = Efl.IContainerNativeInherit.efl_content_count_ptr.Value.Delegate(this.NativeHandle);
374 Eina.Error.RaiseIfUnhandledException();
377 /// <summary>Alignment of the container within its bounds</summary>
378 /// <param name="align_horiz">Horizontal alignment</param>
379 /// <param name="align_vert">Vertical alignment</param>
380 /// <returns></returns>
381 public void GetPackAlign( out double align_horiz, out double align_vert) {
382 Efl.IPackNativeInherit.efl_pack_align_get_ptr.Value.Delegate(this.NativeHandle, out align_horiz, out align_vert);
383 Eina.Error.RaiseIfUnhandledException();
385 /// <summary>Alignment of the container within its bounds</summary>
386 /// <param name="align_horiz">Horizontal alignment</param>
387 /// <param name="align_vert">Vertical alignment</param>
388 /// <returns></returns>
389 public void SetPackAlign( double align_horiz, double align_vert) {
390 Efl.IPackNativeInherit.efl_pack_align_set_ptr.Value.Delegate(this.NativeHandle, align_horiz, align_vert);
391 Eina.Error.RaiseIfUnhandledException();
393 /// <summary>Padding between items contained in this object.</summary>
394 /// <param name="pad_horiz">Horizontal padding</param>
395 /// <param name="pad_vert">Vertical padding</param>
396 /// <param name="scalable"><c>true</c> if scalable, <c>false</c> otherwise</param>
397 /// <returns></returns>
398 public void GetPackPadding( out double pad_horiz, out double pad_vert, out bool scalable) {
399 Efl.IPackNativeInherit.efl_pack_padding_get_ptr.Value.Delegate(this.NativeHandle, out pad_horiz, out pad_vert, out scalable);
400 Eina.Error.RaiseIfUnhandledException();
402 /// <summary>Padding between items contained in this object.</summary>
403 /// <param name="pad_horiz">Horizontal padding</param>
404 /// <param name="pad_vert">Vertical padding</param>
405 /// <param name="scalable"><c>true</c> if scalable, <c>false</c> otherwise</param>
406 /// <returns></returns>
407 public void SetPackPadding( double pad_horiz, double pad_vert, bool scalable) {
408 Efl.IPackNativeInherit.efl_pack_padding_set_ptr.Value.Delegate(this.NativeHandle, pad_horiz, pad_vert, scalable);
409 Eina.Error.RaiseIfUnhandledException();
411 /// <summary>Removes all packed contents, and unreferences them.</summary>
412 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
413 public bool ClearPack() {
414 var _ret_var = Efl.IPackNativeInherit.efl_pack_clear_ptr.Value.Delegate(this.NativeHandle);
415 Eina.Error.RaiseIfUnhandledException();
418 /// <summary>Removes all packed contents, without unreferencing them.
419 /// Use with caution.</summary>
420 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
421 public bool UnpackAll() {
422 var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_all_ptr.Value.Delegate(this.NativeHandle);
423 Eina.Error.RaiseIfUnhandledException();
426 /// <summary>Removes an existing item from the container, without deleting it.</summary>
427 /// <param name="subobj">The unpacked object.</param>
428 /// <returns><c>false</c> if <c>subobj</c> wasn't a child or can't be removed</returns>
429 public bool Unpack( Efl.Gfx.IEntity subobj) {
430 var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_ptr.Value.Delegate(this.NativeHandle, subobj);
431 Eina.Error.RaiseIfUnhandledException();
434 /// <summary>Adds an item to this container.
435 /// Depending on the container this will either fill in the default spot, replacing any already existing element or append to the end of the container if there is no default part.
437 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.IPack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
438 /// <param name="subobj">An object to pack.</param>
439 /// <returns><c>false</c> if <c>subobj</c> could not be packed.</returns>
440 public bool DoPack( Efl.Gfx.IEntity subobj) {
441 var _ret_var = Efl.IPackNativeInherit.efl_pack_ptr.Value.Delegate(this.NativeHandle, subobj);
442 Eina.Error.RaiseIfUnhandledException();
445 private static IntPtr GetEflClassStatic()
447 return Efl.IPackLinearConcrete.efl_pack_linear_interface_get();
450 public class IPackLinearNativeInherit : Efl.Eo.NativeClass{
451 public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl);
452 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
454 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
455 var methods = Efl.Eo.Globals.GetUserMethods(type);
456 if (efl_pack_begin_static_delegate == null)
457 efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin);
458 if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null)
459 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate)});
460 if (efl_pack_end_static_delegate == null)
461 efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end);
462 if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null)
463 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate)});
464 if (efl_pack_before_static_delegate == null)
465 efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before);
466 if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null)
467 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate)});
468 if (efl_pack_after_static_delegate == null)
469 efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after);
470 if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null)
471 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate)});
472 if (efl_pack_at_static_delegate == null)
473 efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at);
474 if (methods.FirstOrDefault(m => m.Name == "PackAt") != null)
475 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate)});
476 if (efl_pack_content_get_static_delegate == null)
477 efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get);
478 if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null)
479 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate)});
480 if (efl_pack_index_get_static_delegate == null)
481 efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get);
482 if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null)
483 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate)});
484 if (efl_pack_unpack_at_static_delegate == null)
485 efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at);
486 if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null)
487 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate)});
488 if (efl_content_iterate_static_delegate == null)
489 efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate);
490 if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null)
491 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate)});
492 if (efl_content_count_static_delegate == null)
493 efl_content_count_static_delegate = new efl_content_count_delegate(content_count);
494 if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null)
495 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate)});
496 if (efl_pack_align_get_static_delegate == null)
497 efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get);
498 if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null)
499 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate)});
500 if (efl_pack_align_set_static_delegate == null)
501 efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set);
502 if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null)
503 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate)});
504 if (efl_pack_padding_get_static_delegate == null)
505 efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get);
506 if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null)
507 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate)});
508 if (efl_pack_padding_set_static_delegate == null)
509 efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set);
510 if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null)
511 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate)});
512 if (efl_pack_clear_static_delegate == null)
513 efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear);
514 if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null)
515 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate)});
516 if (efl_pack_unpack_all_static_delegate == null)
517 efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all);
518 if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null)
519 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate)});
520 if (efl_pack_unpack_static_delegate == null)
521 efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack);
522 if (methods.FirstOrDefault(m => m.Name == "Unpack") != null)
523 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate)});
524 if (efl_pack_static_delegate == null)
525 efl_pack_static_delegate = new efl_pack_delegate(pack);
526 if (methods.FirstOrDefault(m => m.Name == "DoPack") != null)
527 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate)});
530 public override IntPtr GetEflClass()
532 return Efl.IPackLinearConcrete.efl_pack_linear_interface_get();
534 public static IntPtr GetEflClassStatic()
536 return Efl.IPackLinearConcrete.efl_pack_linear_interface_get();
540 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
543 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
544 public static Efl.Eo.FunctionWrapper<efl_pack_begin_api_delegate> efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper<efl_pack_begin_api_delegate>(_Module, "efl_pack_begin");
545 private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj)
547 Eina.Log.Debug("function efl_pack_begin was called");
548 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
549 if(wrapper != null) {
550 bool _ret_var = default(bool);
552 _ret_var = ((IPackLinear)wrapper).PackBegin( subobj);
553 } catch (Exception e) {
554 Eina.Log.Warning($"Callback error: {e.ToString()}");
555 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
559 return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
562 private static efl_pack_begin_delegate efl_pack_begin_static_delegate;
565 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
568 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
569 public static Efl.Eo.FunctionWrapper<efl_pack_end_api_delegate> efl_pack_end_ptr = new Efl.Eo.FunctionWrapper<efl_pack_end_api_delegate>(_Module, "efl_pack_end");
570 private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj)
572 Eina.Log.Debug("function efl_pack_end was called");
573 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
574 if(wrapper != null) {
575 bool _ret_var = default(bool);
577 _ret_var = ((IPackLinear)wrapper).PackEnd( subobj);
578 } catch (Exception e) {
579 Eina.Log.Warning($"Callback error: {e.ToString()}");
580 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
584 return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
587 private static efl_pack_end_delegate efl_pack_end_static_delegate;
590 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity existing);
593 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity existing);
594 public static Efl.Eo.FunctionWrapper<efl_pack_before_api_delegate> efl_pack_before_ptr = new Efl.Eo.FunctionWrapper<efl_pack_before_api_delegate>(_Module, "efl_pack_before");
595 private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing)
597 Eina.Log.Debug("function efl_pack_before was called");
598 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
599 if(wrapper != null) {
600 bool _ret_var = default(bool);
602 _ret_var = ((IPackLinear)wrapper).PackBefore( subobj, existing);
603 } catch (Exception e) {
604 Eina.Log.Warning($"Callback error: {e.ToString()}");
605 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
609 return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing);
612 private static efl_pack_before_delegate efl_pack_before_static_delegate;
615 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity existing);
618 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity existing);
619 public static Efl.Eo.FunctionWrapper<efl_pack_after_api_delegate> efl_pack_after_ptr = new Efl.Eo.FunctionWrapper<efl_pack_after_api_delegate>(_Module, "efl_pack_after");
620 private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing)
622 Eina.Log.Debug("function efl_pack_after was called");
623 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
624 if(wrapper != null) {
625 bool _ret_var = default(bool);
627 _ret_var = ((IPackLinear)wrapper).PackAfter( subobj, existing);
628 } catch (Exception e) {
629 Eina.Log.Warning($"Callback error: {e.ToString()}");
630 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
634 return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing);
637 private static efl_pack_after_delegate efl_pack_after_static_delegate;
640 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, int index);
643 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, int index);
644 public static Efl.Eo.FunctionWrapper<efl_pack_at_api_delegate> efl_pack_at_ptr = new Efl.Eo.FunctionWrapper<efl_pack_at_api_delegate>(_Module, "efl_pack_at");
645 private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index)
647 Eina.Log.Debug("function efl_pack_at was called");
648 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
649 if(wrapper != null) {
650 bool _ret_var = default(bool);
652 _ret_var = ((IPackLinear)wrapper).PackAt( subobj, index);
653 } catch (Exception e) {
654 Eina.Log.Warning($"Callback error: {e.ToString()}");
655 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
659 return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index);
662 private static efl_pack_at_delegate efl_pack_at_static_delegate;
665 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index);
668 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index);
669 public static Efl.Eo.FunctionWrapper<efl_pack_content_get_api_delegate> efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper<efl_pack_content_get_api_delegate>(_Module, "efl_pack_content_get");
670 private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index)
672 Eina.Log.Debug("function efl_pack_content_get was called");
673 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
674 if(wrapper != null) {
675 Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
677 _ret_var = ((IPackLinear)wrapper).GetPackContent( index);
678 } catch (Exception e) {
679 Eina.Log.Warning($"Callback error: {e.ToString()}");
680 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
684 return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index);
687 private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate;
690 private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
693 public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
694 public static Efl.Eo.FunctionWrapper<efl_pack_index_get_api_delegate> efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper<efl_pack_index_get_api_delegate>(_Module, "efl_pack_index_get");
695 private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj)
697 Eina.Log.Debug("function efl_pack_index_get was called");
698 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
699 if(wrapper != null) {
700 int _ret_var = default(int);
702 _ret_var = ((IPackLinear)wrapper).GetPackIndex( subobj);
703 } catch (Exception e) {
704 Eina.Log.Warning($"Callback error: {e.ToString()}");
705 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
709 return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
712 private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate;
715 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index);
718 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index);
719 public static Efl.Eo.FunctionWrapper<efl_pack_unpack_at_api_delegate> efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper<efl_pack_unpack_at_api_delegate>(_Module, "efl_pack_unpack_at");
720 private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index)
722 Eina.Log.Debug("function efl_pack_unpack_at was called");
723 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
724 if(wrapper != null) {
725 Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
727 _ret_var = ((IPackLinear)wrapper).PackUnpackAt( index);
728 } catch (Exception e) {
729 Eina.Log.Warning($"Callback error: {e.ToString()}");
730 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
734 return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index);
737 private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate;
740 private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd);
743 public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj);
744 public static Efl.Eo.FunctionWrapper<efl_content_iterate_api_delegate> efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper<efl_content_iterate_api_delegate>(_Module, "efl_content_iterate");
745 private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd)
747 Eina.Log.Debug("function efl_content_iterate was called");
748 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
749 if(wrapper != null) {
750 Eina.Iterator<Efl.Gfx.IEntity> _ret_var = default(Eina.Iterator<Efl.Gfx.IEntity>);
752 _ret_var = ((IPackLinear)wrapper).ContentIterate();
753 } catch (Exception e) {
754 Eina.Log.Warning($"Callback error: {e.ToString()}");
755 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
757 _ret_var.Own = false; return _ret_var.Handle;
759 return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
762 private static efl_content_iterate_delegate efl_content_iterate_static_delegate;
765 private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd);
768 public delegate int efl_content_count_api_delegate(System.IntPtr obj);
769 public static Efl.Eo.FunctionWrapper<efl_content_count_api_delegate> efl_content_count_ptr = new Efl.Eo.FunctionWrapper<efl_content_count_api_delegate>(_Module, "efl_content_count");
770 private static int content_count(System.IntPtr obj, System.IntPtr pd)
772 Eina.Log.Debug("function efl_content_count was called");
773 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
774 if(wrapper != null) {
775 int _ret_var = default(int);
777 _ret_var = ((IPackLinear)wrapper).ContentCount();
778 } catch (Exception e) {
779 Eina.Log.Warning($"Callback error: {e.ToString()}");
780 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
784 return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
787 private static efl_content_count_delegate efl_content_count_static_delegate;
790 private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert);
793 public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert);
794 public static Efl.Eo.FunctionWrapper<efl_pack_align_get_api_delegate> efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper<efl_pack_align_get_api_delegate>(_Module, "efl_pack_align_get");
795 private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert)
797 Eina.Log.Debug("function efl_pack_align_get was called");
798 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
799 if(wrapper != null) {
800 align_horiz = default(double); align_vert = default(double);
802 ((IPackLinear)wrapper).GetPackAlign( out align_horiz, out align_vert);
803 } catch (Exception e) {
804 Eina.Log.Warning($"Callback error: {e.ToString()}");
805 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
808 efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert);
811 private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate;
814 private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert);
817 public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert);
818 public static Efl.Eo.FunctionWrapper<efl_pack_align_set_api_delegate> efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper<efl_pack_align_set_api_delegate>(_Module, "efl_pack_align_set");
819 private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert)
821 Eina.Log.Debug("function efl_pack_align_set was called");
822 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
823 if(wrapper != null) {
826 ((IPackLinear)wrapper).SetPackAlign( align_horiz, align_vert);
827 } catch (Exception e) {
828 Eina.Log.Warning($"Callback error: {e.ToString()}");
829 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
832 efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert);
835 private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate;
838 private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable);
841 public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable);
842 public static Efl.Eo.FunctionWrapper<efl_pack_padding_get_api_delegate> efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper<efl_pack_padding_get_api_delegate>(_Module, "efl_pack_padding_get");
843 private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable)
845 Eina.Log.Debug("function efl_pack_padding_get was called");
846 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
847 if(wrapper != null) {
848 pad_horiz = default(double); pad_vert = default(double); scalable = default(bool);
850 ((IPackLinear)wrapper).GetPackPadding( out pad_horiz, out pad_vert, out scalable);
851 } catch (Exception e) {
852 Eina.Log.Warning($"Callback error: {e.ToString()}");
853 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
856 efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable);
859 private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate;
862 private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable);
865 public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable);
866 public static Efl.Eo.FunctionWrapper<efl_pack_padding_set_api_delegate> efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper<efl_pack_padding_set_api_delegate>(_Module, "efl_pack_padding_set");
867 private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable)
869 Eina.Log.Debug("function efl_pack_padding_set was called");
870 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
871 if(wrapper != null) {
874 ((IPackLinear)wrapper).SetPackPadding( pad_horiz, pad_vert, scalable);
875 } catch (Exception e) {
876 Eina.Log.Warning($"Callback error: {e.ToString()}");
877 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
880 efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable);
883 private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate;
886 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd);
889 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj);
890 public static Efl.Eo.FunctionWrapper<efl_pack_clear_api_delegate> efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper<efl_pack_clear_api_delegate>(_Module, "efl_pack_clear");
891 private static bool pack_clear(System.IntPtr obj, System.IntPtr pd)
893 Eina.Log.Debug("function efl_pack_clear was called");
894 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
895 if(wrapper != null) {
896 bool _ret_var = default(bool);
898 _ret_var = ((IPackLinear)wrapper).ClearPack();
899 } catch (Exception e) {
900 Eina.Log.Warning($"Callback error: {e.ToString()}");
901 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
905 return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
908 private static efl_pack_clear_delegate efl_pack_clear_static_delegate;
911 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd);
914 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj);
915 public static Efl.Eo.FunctionWrapper<efl_pack_unpack_all_api_delegate> efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper<efl_pack_unpack_all_api_delegate>(_Module, "efl_pack_unpack_all");
916 private static bool unpack_all(System.IntPtr obj, System.IntPtr pd)
918 Eina.Log.Debug("function efl_pack_unpack_all was called");
919 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
920 if(wrapper != null) {
921 bool _ret_var = default(bool);
923 _ret_var = ((IPackLinear)wrapper).UnpackAll();
924 } catch (Exception e) {
925 Eina.Log.Warning($"Callback error: {e.ToString()}");
926 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
930 return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
933 private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate;
936 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
939 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
940 public static Efl.Eo.FunctionWrapper<efl_pack_unpack_api_delegate> efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper<efl_pack_unpack_api_delegate>(_Module, "efl_pack_unpack");
941 private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj)
943 Eina.Log.Debug("function efl_pack_unpack was called");
944 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
945 if(wrapper != null) {
946 bool _ret_var = default(bool);
948 _ret_var = ((IPackLinear)wrapper).Unpack( subobj);
949 } catch (Exception e) {
950 Eina.Log.Warning($"Callback error: {e.ToString()}");
951 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
955 return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
958 private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate;
961 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
964 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
965 public static Efl.Eo.FunctionWrapper<efl_pack_api_delegate> efl_pack_ptr = new Efl.Eo.FunctionWrapper<efl_pack_api_delegate>(_Module, "efl_pack");
966 private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj)
968 Eina.Log.Debug("function efl_pack was called");
969 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
970 if(wrapper != null) {
971 bool _ret_var = default(bool);
973 _ret_var = ((IPackLinear)wrapper).DoPack( subobj);
974 } catch (Exception e) {
975 Eina.Log.Warning($"Callback error: {e.ToString()}");
976 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
980 return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
983 private static efl_pack_delegate efl_pack_static_delegate;