1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
10 /// <summary>Common interface for objects (containers) with multiple contents (sub-objects) which can be added and removed at runtime in a linear fashion.
11 /// This means the sub-objects are internally organized in an ordered list.</summary>
12 [Efl.IPackLinearConcrete.NativeMethods]
13 public interface IPackLinear :
15 Efl.Eo.IWrapper, IDisposable
17 /// <summary>Prepend an object at the beginning of this container.
18 /// This is the same as <see cref="Efl.IPackLinear.PackAt"/>(<c>subobj</c>, 0).
20 /// 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>
21 /// <param name="subobj">Object to pack at the beginning.</param>
22 /// <returns><c>false</c> if <c>subobj</c> could not be packed.</returns>
23 bool PackBegin(Efl.Gfx.IEntity subobj);
24 /// <summary>Append object at the end of this container.
25 /// This is the same as <see cref="Efl.IPackLinear.PackAt"/>(<c>subobj</c>, -1).
27 /// 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>
28 /// <param name="subobj">Object to pack at the end.</param>
29 /// <returns><c>false</c> if <c>subobj</c> could not be packed.</returns>
30 bool PackEnd(Efl.Gfx.IEntity subobj);
31 /// <summary>Prepend an object before an existing sub-object.
32 /// 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>
33 /// <param name="subobj">Object to pack before <c>existing</c>.</param>
34 /// <param name="existing">Existing reference sub-object.</param>
35 /// <returns><c>false</c> if <c>existing</c> could not be found or <c>subobj</c> could not be packed.</returns>
36 bool PackBefore(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing);
37 /// <summary>Append an object after an existing sub-object.
38 /// 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>
39 /// <param name="subobj">Object to pack after <c>existing</c>.</param>
40 /// <param name="existing">Existing reference sub-object.</param>
41 /// <returns><c>false</c> if <c>existing</c> could not be found or <c>subobj</c> could not be packed.</returns>
42 bool PackAfter(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing);
43 /// <summary>Inserts <c>subobj</c> BEFORE the sub-object at position <c>index</c>.
44 /// <c>index</c> ranges from -<c>count</c> to <c>count</c>-1, where positive numbers go from first sub-object (0) to last (<c>count</c>-1), and negative numbers go from last sub-object (-1) to first (-<c>count</c>). <c>count</c> is the number of sub-objects currently in the container as returned by <see cref="Efl.IContainer.ContentCount"/>.
46 /// If <c>index</c> is less than -<c>count</c>, it will trigger <see cref="Efl.IPackLinear.PackBegin"/>(<c>subobj</c>) whereas <c>index</c> greater than <c>count</c>-1 will trigger <see cref="Efl.IPackLinear.PackEnd"/>(<c>subobj</c>).
48 /// 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>
49 /// <param name="subobj">Object to pack.</param>
50 /// <param name="index">Index of existing sub-object to insert BEFORE. Valid range is -<c>count</c> to (<c>count</c>-1).</param>
51 /// <returns><c>false</c> if <c>subobj</c> could not be packed.</returns>
52 bool PackAt(Efl.Gfx.IEntity subobj, int index);
53 /// <summary>Sub-object at a given <c>index</c> in this container.
54 /// <c>index</c> ranges from -<c>count</c> to <c>count</c>-1, where positive numbers go from first sub-object (0) to last (<c>count</c>-1), and negative numbers go from last sub-object (-1) to first (-<c>count</c>). <c>count</c> is the number of sub-objects currently in the container as returned by <see cref="Efl.IContainer.ContentCount"/>.
56 /// If <c>index</c> is less than -<c>count</c>, it will return the first sub-object whereas <c>index</c> greater than <c>count</c>-1 will return the last sub-object.</summary>
57 /// <param name="index">Index of the existing sub-object to retrieve. Valid range is -<c>count</c> to (<c>count</c>-1).</param>
58 /// <returns>The sub-object contained at the given <c>index</c>.</returns>
59 Efl.Gfx.IEntity GetPackContent(int index);
60 /// <summary>Get the index of a sub-object in this container.</summary>
61 /// <param name="subobj">An existing sub-object in this container.</param>
62 /// <returns>-1 in case <c>subobj</c> is not found, or the index of <c>subobj</c> in the range 0 to (<c>count</c>-1).</returns>
63 int GetPackIndex(Efl.Gfx.IEntity subobj);
64 /// <summary>Pop out (remove) the sub-object at the specified <c>index</c>.
65 /// <c>index</c> ranges from -<c>count</c> to <c>count</c>-1, where positive numbers go from first sub-object (0) to last (<c>count</c>-1), and negative numbers go from last sub-object (-1) to first (-<c>count</c>). <c>count</c> is the number of sub-objects currently in the container as returned by <see cref="Efl.IContainer.ContentCount"/>.
67 /// If <c>index</c> is less than -<c>count</c>, it will remove the first sub-object whereas <c>index</c> greater than <c>count</c>-1 will remove the last sub-object.</summary>
68 /// <param name="index">Index of the sub-object to remove. Valid range is -<c>count</c> to (<c>count</c>-1).</param>
69 /// <returns>The sub-object if it could be removed.</returns>
70 Efl.Gfx.IEntity PackUnpackAt(int index);
72 /// <summary>Common interface for objects (containers) with multiple contents (sub-objects) which can be added and removed at runtime in a linear fashion.
73 /// This means the sub-objects are internally organized in an ordered list.</summary>
74 sealed public class IPackLinearConcrete :
77 , Efl.IContainer, Efl.IPack
79 ///<summary>Pointer to the native class description.</summary>
80 public override System.IntPtr NativeClass
84 if (((object)this).GetType() == typeof(IPackLinearConcrete))
86 return GetEflClassStatic();
90 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
95 [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr
96 efl_pack_linear_interface_get();
97 /// <summary>Initializes a new instance of the <see cref="IPackLinear"/> class.
98 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
99 private IPackLinearConcrete(System.IntPtr raw) : base(raw)
103 /// <summary>Sent after a new sub-object was added.
104 /// (Since EFL 1.22)</summary>
105 public event EventHandler<Efl.IContainerContentAddedEvt_Args> ContentAddedEvt
111 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
113 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
116 Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args();
117 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete);
120 value?.Invoke(obj, args);
124 Eina.Log.Error(e.ToString());
125 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
130 string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED";
131 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
139 string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED";
140 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
144 ///<summary>Method to raise event ContentAddedEvt.</summary>
145 public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e)
147 var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED";
148 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
149 if (desc == IntPtr.Zero)
151 Eina.Log.Error($"Failed to get native event {key}");
155 IntPtr info = e.arg.NativeHandle;
156 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
158 /// <summary>Sent after a sub-object was removed, before unref.
159 /// (Since EFL 1.22)</summary>
160 public event EventHandler<Efl.IContainerContentRemovedEvt_Args> ContentRemovedEvt
166 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
168 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
171 Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args();
172 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete);
175 value?.Invoke(obj, args);
179 Eina.Log.Error(e.ToString());
180 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
185 string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED";
186 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
194 string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED";
195 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
199 ///<summary>Method to raise event ContentRemovedEvt.</summary>
200 public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e)
202 var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED";
203 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
204 if (desc == IntPtr.Zero)
206 Eina.Log.Error($"Failed to get native event {key}");
210 IntPtr info = e.arg.NativeHandle;
211 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
213 /// <summary>Prepend an object at the beginning of this container.
214 /// This is the same as <see cref="Efl.IPackLinear.PackAt"/>(<c>subobj</c>, 0).
216 /// 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>
217 /// <param name="subobj">Object to pack at the beginning.</param>
218 /// <returns><c>false</c> if <c>subobj</c> could not be packed.</returns>
219 public bool PackBegin(Efl.Gfx.IEntity subobj) {
220 var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_begin_ptr.Value.Delegate(this.NativeHandle,subobj);
221 Eina.Error.RaiseIfUnhandledException();
224 /// <summary>Append object at the end of this container.
225 /// This is the same as <see cref="Efl.IPackLinear.PackAt"/>(<c>subobj</c>, -1).
227 /// 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>
228 /// <param name="subobj">Object to pack at the end.</param>
229 /// <returns><c>false</c> if <c>subobj</c> could not be packed.</returns>
230 public bool PackEnd(Efl.Gfx.IEntity subobj) {
231 var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_end_ptr.Value.Delegate(this.NativeHandle,subobj);
232 Eina.Error.RaiseIfUnhandledException();
235 /// <summary>Prepend an object before an existing sub-object.
236 /// 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>
237 /// <param name="subobj">Object to pack before <c>existing</c>.</param>
238 /// <param name="existing">Existing reference sub-object.</param>
239 /// <returns><c>false</c> if <c>existing</c> could not be found or <c>subobj</c> could not be packed.</returns>
240 public bool PackBefore(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) {
241 var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_before_ptr.Value.Delegate(this.NativeHandle,subobj, existing);
242 Eina.Error.RaiseIfUnhandledException();
245 /// <summary>Append an object after an existing sub-object.
246 /// 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>
247 /// <param name="subobj">Object to pack after <c>existing</c>.</param>
248 /// <param name="existing">Existing reference sub-object.</param>
249 /// <returns><c>false</c> if <c>existing</c> could not be found or <c>subobj</c> could not be packed.</returns>
250 public bool PackAfter(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) {
251 var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_after_ptr.Value.Delegate(this.NativeHandle,subobj, existing);
252 Eina.Error.RaiseIfUnhandledException();
255 /// <summary>Inserts <c>subobj</c> BEFORE the sub-object at position <c>index</c>.
256 /// <c>index</c> ranges from -<c>count</c> to <c>count</c>-1, where positive numbers go from first sub-object (0) to last (<c>count</c>-1), and negative numbers go from last sub-object (-1) to first (-<c>count</c>). <c>count</c> is the number of sub-objects currently in the container as returned by <see cref="Efl.IContainer.ContentCount"/>.
258 /// If <c>index</c> is less than -<c>count</c>, it will trigger <see cref="Efl.IPackLinear.PackBegin"/>(<c>subobj</c>) whereas <c>index</c> greater than <c>count</c>-1 will trigger <see cref="Efl.IPackLinear.PackEnd"/>(<c>subobj</c>).
260 /// 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>
261 /// <param name="subobj">Object to pack.</param>
262 /// <param name="index">Index of existing sub-object to insert BEFORE. Valid range is -<c>count</c> to (<c>count</c>-1).</param>
263 /// <returns><c>false</c> if <c>subobj</c> could not be packed.</returns>
264 public bool PackAt(Efl.Gfx.IEntity subobj, int index) {
265 var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_at_ptr.Value.Delegate(this.NativeHandle,subobj, index);
266 Eina.Error.RaiseIfUnhandledException();
269 /// <summary>Sub-object at a given <c>index</c> in this container.
270 /// <c>index</c> ranges from -<c>count</c> to <c>count</c>-1, where positive numbers go from first sub-object (0) to last (<c>count</c>-1), and negative numbers go from last sub-object (-1) to first (-<c>count</c>). <c>count</c> is the number of sub-objects currently in the container as returned by <see cref="Efl.IContainer.ContentCount"/>.
272 /// If <c>index</c> is less than -<c>count</c>, it will return the first sub-object whereas <c>index</c> greater than <c>count</c>-1 will return the last sub-object.</summary>
273 /// <param name="index">Index of the existing sub-object to retrieve. Valid range is -<c>count</c> to (<c>count</c>-1).</param>
274 /// <returns>The sub-object contained at the given <c>index</c>.</returns>
275 public Efl.Gfx.IEntity GetPackContent(int index) {
276 var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_content_get_ptr.Value.Delegate(this.NativeHandle,index);
277 Eina.Error.RaiseIfUnhandledException();
280 /// <summary>Get the index of a sub-object in this container.</summary>
281 /// <param name="subobj">An existing sub-object in this container.</param>
282 /// <returns>-1 in case <c>subobj</c> is not found, or the index of <c>subobj</c> in the range 0 to (<c>count</c>-1).</returns>
283 public int GetPackIndex(Efl.Gfx.IEntity subobj) {
284 var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_index_get_ptr.Value.Delegate(this.NativeHandle,subobj);
285 Eina.Error.RaiseIfUnhandledException();
288 /// <summary>Pop out (remove) the sub-object at the specified <c>index</c>.
289 /// <c>index</c> ranges from -<c>count</c> to <c>count</c>-1, where positive numbers go from first sub-object (0) to last (<c>count</c>-1), and negative numbers go from last sub-object (-1) to first (-<c>count</c>). <c>count</c> is the number of sub-objects currently in the container as returned by <see cref="Efl.IContainer.ContentCount"/>.
291 /// If <c>index</c> is less than -<c>count</c>, it will remove the first sub-object whereas <c>index</c> greater than <c>count</c>-1 will remove the last sub-object.</summary>
292 /// <param name="index">Index of the sub-object to remove. Valid range is -<c>count</c> to (<c>count</c>-1).</param>
293 /// <returns>The sub-object if it could be removed.</returns>
294 public Efl.Gfx.IEntity PackUnpackAt(int index) {
295 var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_unpack_at_ptr.Value.Delegate(this.NativeHandle,index);
296 Eina.Error.RaiseIfUnhandledException();
299 /// <summary>Begin iterating over this object's contents.
300 /// (Since EFL 1.22)</summary>
301 /// <returns>Iterator on object's content.</returns>
302 public Eina.Iterator<Efl.Gfx.IEntity> ContentIterate() {
303 var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_iterate_ptr.Value.Delegate(this.NativeHandle);
304 Eina.Error.RaiseIfUnhandledException();
305 return new Eina.Iterator<Efl.Gfx.IEntity>(_ret_var, true, false);
307 /// <summary>Returns the number of contained sub-objects.
308 /// (Since EFL 1.22)</summary>
309 /// <returns>Number of sub-objects.</returns>
310 public int ContentCount() {
311 var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_count_ptr.Value.Delegate(this.NativeHandle);
312 Eina.Error.RaiseIfUnhandledException();
315 /// <summary>Removes all packed sub-objects and unreferences them.</summary>
316 /// <returns><c>true</c> on success, <c>false</c> otherwise.</returns>
317 public bool ClearPack() {
318 var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_clear_ptr.Value.Delegate(this.NativeHandle);
319 Eina.Error.RaiseIfUnhandledException();
322 /// <summary>Removes all packed sub-objects without unreferencing them.
323 /// Use with caution.</summary>
324 /// <returns><c>true</c> on success, <c>false</c> otherwise.</returns>
325 public bool UnpackAll() {
326 var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_all_ptr.Value.Delegate(this.NativeHandle);
327 Eina.Error.RaiseIfUnhandledException();
330 /// <summary>Removes an existing sub-object from the container without deleting it.</summary>
331 /// <param name="subobj">The sub-object to unpack.</param>
332 /// <returns><c>false</c> if <c>subobj</c> wasn't in the container or couldn't be removed.</returns>
333 public bool Unpack(Efl.Gfx.IEntity subobj) {
334 var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate(this.NativeHandle,subobj);
335 Eina.Error.RaiseIfUnhandledException();
338 /// <summary>Adds a sub-object to this container.
339 /// 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.
341 /// 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>
342 /// <param name="subobj">The object to pack.</param>
343 /// <returns><c>false</c> if <c>subobj</c> could not be packed.</returns>
344 public bool Pack(Efl.Gfx.IEntity subobj) {
345 var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate(this.NativeHandle,subobj);
346 Eina.Error.RaiseIfUnhandledException();
349 private static IntPtr GetEflClassStatic()
351 return Efl.IPackLinearConcrete.efl_pack_linear_interface_get();
353 /// <summary>Wrapper for native methods and virtual method delegates.
354 /// For internal use by generated code only.</summary>
355 public class NativeMethods : Efl.Eo.NativeClass
357 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl);
358 /// <summary>Gets the list of Eo operations to override.</summary>
359 /// <returns>The list of Eo operations to be overload.</returns>
360 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
362 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
363 var methods = Efl.Eo.Globals.GetUserMethods(type);
365 if (efl_pack_begin_static_delegate == null)
367 efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin);
370 if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null)
372 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) });
375 if (efl_pack_end_static_delegate == null)
377 efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end);
380 if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null)
382 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) });
385 if (efl_pack_before_static_delegate == null)
387 efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before);
390 if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null)
392 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) });
395 if (efl_pack_after_static_delegate == null)
397 efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after);
400 if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null)
402 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) });
405 if (efl_pack_at_static_delegate == null)
407 efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at);
410 if (methods.FirstOrDefault(m => m.Name == "PackAt") != null)
412 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) });
415 if (efl_pack_content_get_static_delegate == null)
417 efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get);
420 if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null)
422 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) });
425 if (efl_pack_index_get_static_delegate == null)
427 efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get);
430 if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null)
432 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) });
435 if (efl_pack_unpack_at_static_delegate == null)
437 efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at);
440 if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null)
442 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) });
445 if (efl_content_iterate_static_delegate == null)
447 efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate);
450 if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null)
452 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) });
455 if (efl_content_count_static_delegate == null)
457 efl_content_count_static_delegate = new efl_content_count_delegate(content_count);
460 if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null)
462 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) });
465 if (efl_pack_clear_static_delegate == null)
467 efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear);
470 if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null)
472 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) });
475 if (efl_pack_unpack_all_static_delegate == null)
477 efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all);
480 if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null)
482 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) });
485 if (efl_pack_unpack_static_delegate == null)
487 efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack);
490 if (methods.FirstOrDefault(m => m.Name == "Unpack") != null)
492 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) });
495 if (efl_pack_static_delegate == null)
497 efl_pack_static_delegate = new efl_pack_delegate(pack);
500 if (methods.FirstOrDefault(m => m.Name == "Pack") != null)
502 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) });
507 /// <summary>Returns the Eo class for the native methods of this class.</summary>
508 /// <returns>The native class pointer.</returns>
509 public override IntPtr GetEflClass()
511 return Efl.IPackLinearConcrete.efl_pack_linear_interface_get();
514 #pragma warning disable CA1707, CS1591, SA1300, SA1600
516 [return: MarshalAs(UnmanagedType.U1)]
517 private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
519 [return: MarshalAs(UnmanagedType.U1)]
520 public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
522 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");
524 private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj)
526 Eina.Log.Debug("function efl_pack_begin was called");
527 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
530 bool _ret_var = default(bool);
533 _ret_var = ((IPackLinear)ws.Target).PackBegin(subobj);
537 Eina.Log.Warning($"Callback error: {e.ToString()}");
538 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
546 return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
550 private static efl_pack_begin_delegate efl_pack_begin_static_delegate;
552 [return: MarshalAs(UnmanagedType.U1)]
553 private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
555 [return: MarshalAs(UnmanagedType.U1)]
556 public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
558 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");
560 private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj)
562 Eina.Log.Debug("function efl_pack_end was called");
563 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
566 bool _ret_var = default(bool);
569 _ret_var = ((IPackLinear)ws.Target).PackEnd(subobj);
573 Eina.Log.Warning($"Callback error: {e.ToString()}");
574 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
582 return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
586 private static efl_pack_end_delegate efl_pack_end_static_delegate;
588 [return: MarshalAs(UnmanagedType.U1)]
589 private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity existing);
591 [return: MarshalAs(UnmanagedType.U1)]
592 public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<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");
596 private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing)
598 Eina.Log.Debug("function efl_pack_before was called");
599 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
602 bool _ret_var = default(bool);
605 _ret_var = ((IPackLinear)ws.Target).PackBefore(subobj, existing);
609 Eina.Log.Warning($"Callback error: {e.ToString()}");
610 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
618 return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing);
622 private static efl_pack_before_delegate efl_pack_before_static_delegate;
624 [return: MarshalAs(UnmanagedType.U1)]
625 private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity existing);
627 [return: MarshalAs(UnmanagedType.U1)]
628 public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity existing);
630 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");
632 private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing)
634 Eina.Log.Debug("function efl_pack_after was called");
635 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
638 bool _ret_var = default(bool);
641 _ret_var = ((IPackLinear)ws.Target).PackAfter(subobj, existing);
645 Eina.Log.Warning($"Callback error: {e.ToString()}");
646 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
654 return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing);
658 private static efl_pack_after_delegate efl_pack_after_static_delegate;
660 [return: MarshalAs(UnmanagedType.U1)]
661 private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, int index);
663 [return: MarshalAs(UnmanagedType.U1)]
664 public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj, int index);
666 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");
668 private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index)
670 Eina.Log.Debug("function efl_pack_at was called");
671 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
674 bool _ret_var = default(bool);
677 _ret_var = ((IPackLinear)ws.Target).PackAt(subobj, index);
681 Eina.Log.Warning($"Callback error: {e.ToString()}");
682 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
690 return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index);
694 private static efl_pack_at_delegate efl_pack_at_static_delegate;
696 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
697 private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index);
699 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
700 public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index);
702 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");
704 private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index)
706 Eina.Log.Debug("function efl_pack_content_get was called");
707 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
710 Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
713 _ret_var = ((IPackLinear)ws.Target).GetPackContent(index);
717 Eina.Log.Warning($"Callback error: {e.ToString()}");
718 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
726 return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index);
730 private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate;
733 private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
736 public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
738 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");
740 private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj)
742 Eina.Log.Debug("function efl_pack_index_get was called");
743 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
746 int _ret_var = default(int);
749 _ret_var = ((IPackLinear)ws.Target).GetPackIndex(subobj);
753 Eina.Log.Warning($"Callback error: {e.ToString()}");
754 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
762 return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
766 private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate;
768 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
769 private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index);
771 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
772 public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index);
774 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");
776 private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index)
778 Eina.Log.Debug("function efl_pack_unpack_at was called");
779 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
782 Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
785 _ret_var = ((IPackLinear)ws.Target).PackUnpackAt(index);
789 Eina.Log.Warning($"Callback error: {e.ToString()}");
790 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
798 return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index);
802 private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate;
805 private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd);
808 public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj);
810 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");
812 private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd)
814 Eina.Log.Debug("function efl_content_iterate was called");
815 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
818 Eina.Iterator<Efl.Gfx.IEntity> _ret_var = default(Eina.Iterator<Efl.Gfx.IEntity>);
821 _ret_var = ((IPackLinear)ws.Target).ContentIterate();
825 Eina.Log.Warning($"Callback error: {e.ToString()}");
826 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
829 _ret_var.Own = false; return _ret_var.Handle;
834 return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
838 private static efl_content_iterate_delegate efl_content_iterate_static_delegate;
841 private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd);
844 public delegate int efl_content_count_api_delegate(System.IntPtr obj);
846 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");
848 private static int content_count(System.IntPtr obj, System.IntPtr pd)
850 Eina.Log.Debug("function efl_content_count was called");
851 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
854 int _ret_var = default(int);
857 _ret_var = ((IPackLinear)ws.Target).ContentCount();
861 Eina.Log.Warning($"Callback error: {e.ToString()}");
862 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
870 return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
874 private static efl_content_count_delegate efl_content_count_static_delegate;
876 [return: MarshalAs(UnmanagedType.U1)]
877 private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd);
879 [return: MarshalAs(UnmanagedType.U1)]
880 public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj);
882 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");
884 private static bool pack_clear(System.IntPtr obj, System.IntPtr pd)
886 Eina.Log.Debug("function efl_pack_clear was called");
887 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
890 bool _ret_var = default(bool);
893 _ret_var = ((IPackLinear)ws.Target).ClearPack();
897 Eina.Log.Warning($"Callback error: {e.ToString()}");
898 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
906 return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
910 private static efl_pack_clear_delegate efl_pack_clear_static_delegate;
912 [return: MarshalAs(UnmanagedType.U1)]
913 private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd);
915 [return: MarshalAs(UnmanagedType.U1)]
916 public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj);
918 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");
920 private static bool unpack_all(System.IntPtr obj, System.IntPtr pd)
922 Eina.Log.Debug("function efl_pack_unpack_all was called");
923 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
926 bool _ret_var = default(bool);
929 _ret_var = ((IPackLinear)ws.Target).UnpackAll();
933 Eina.Log.Warning($"Callback error: {e.ToString()}");
934 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
942 return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
946 private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate;
948 [return: MarshalAs(UnmanagedType.U1)]
949 private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
951 [return: MarshalAs(UnmanagedType.U1)]
952 public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
954 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");
956 private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj)
958 Eina.Log.Debug("function efl_pack_unpack was called");
959 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
962 bool _ret_var = default(bool);
965 _ret_var = ((IPackLinear)ws.Target).Unpack(subobj);
969 Eina.Log.Warning($"Callback error: {e.ToString()}");
970 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
978 return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
982 private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate;
984 [return: MarshalAs(UnmanagedType.U1)]
985 private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
987 [return: MarshalAs(UnmanagedType.U1)]
988 public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj);
990 public static Efl.Eo.FunctionWrapper<efl_pack_api_delegate> efl_pack_ptr = new Efl.Eo.FunctionWrapper<efl_pack_api_delegate>(Module, "efl_pack");
992 private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj)
994 Eina.Log.Debug("function efl_pack was called");
995 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
998 bool _ret_var = default(bool);
1001 _ret_var = ((IPackLinear)ws.Target).Pack(subobj);
1005 Eina.Log.Warning($"Callback error: {e.ToString()}");
1006 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1014 return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
1018 private static efl_pack_delegate efl_pack_static_delegate;
1020 #pragma warning restore CA1707, CS1591, SA1300, SA1600