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 [PackLinearNativeInherit]
10 public interface PackLinear :
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.PackLinear.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.Pack.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.Entity subobj);
21 /// <summary>Append object at the end of this container.
22 /// This is the same as <see cref="Efl.PackLinear.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.Pack.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.Entity 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.Pack.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.Entity subobj, Efl.Gfx.Entity 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.Pack.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.Entity subobj, Efl.Gfx.Entity 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.Pack.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.Entity 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.Entity 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.Entity 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.Entity PackUnpackAt( int index);
63 /// <summary>API for containers</summary>
64 sealed public class PackLinearConcrete :
67 , Efl.Container, Efl.Pack
69 ///<summary>Pointer to the native class description.</summary>
70 public System.IntPtr NativeClass {
72 if (((object)this).GetType() == typeof (PackLinearConcrete))
73 return Efl.PackLinearNativeInherit.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 public PackLinearConcrete(System.IntPtr raw)
90 register_event_proxies();
92 ///<summary>Destructor.</summary>
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>Casts obj into an instance of this type.</summary>
112 public static PackLinearConcrete static_cast(Efl.Object obj)
115 throw new System.ArgumentNullException("obj");
116 return new PackLinearConcrete(obj.NativeHandle);
118 ///<summary>Verifies if the given object is equal to this one.</summary>
119 public override bool Equals(object obj)
121 var other = obj as Efl.Object;
124 return this.NativeHandle == other.NativeHandle;
126 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
127 public override int GetHashCode()
129 return this.NativeHandle.ToInt32();
131 ///<summary>Turns the native pointer into a string representation.</summary>
132 public override String ToString()
134 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
136 private readonly object eventLock = new object();
137 private Dictionary<string, int> event_cb_count = new Dictionary<string, int>();
138 private bool add_cpp_event_handler(string lib, string key, Efl.EventCb evt_delegate) {
140 if (!event_cb_count.TryGetValue(key, out event_count))
141 event_cb_count[key] = event_count;
142 if (event_count == 0) {
143 IntPtr desc = Efl.EventDescription.GetNative(lib, key);
144 if (desc == IntPtr.Zero) {
145 Eina.Log.Error($"Failed to get native event {key}");
148 bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero);
150 Eina.Log.Error($"Failed to add event proxy for event {key}");
153 Eina.Error.RaiseIfUnhandledException();
155 event_cb_count[key]++;
158 private bool remove_cpp_event_handler(string key, Efl.EventCb evt_delegate) {
160 if (!event_cb_count.TryGetValue(key, out event_count))
161 event_cb_count[key] = event_count;
162 if (event_count == 1) {
163 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
164 if (desc == IntPtr.Zero) {
165 Eina.Log.Error($"Failed to get native event {key}");
168 bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero);
170 Eina.Log.Error($"Failed to remove event proxy for event {key}");
173 Eina.Error.RaiseIfUnhandledException();
174 } else if (event_count == 0) {
175 Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered.");
178 event_cb_count[key]--;
181 private static object ContentAddedEvtKey = new object();
182 /// <summary>Sent after a new item was added.</summary>
183 public event EventHandler<Efl.ContainerContentAddedEvt_Args> ContentAddedEvt
187 string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED";
188 if (add_cpp_event_handler(efl.Libs.Efl, key, this.evt_ContentAddedEvt_delegate)) {
189 eventHandlers.AddHandler(ContentAddedEvtKey , value);
191 Eina.Log.Error($"Error adding proxy for event {key}");
196 string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED";
197 if (remove_cpp_event_handler(key, this.evt_ContentAddedEvt_delegate)) {
198 eventHandlers.RemoveHandler(ContentAddedEvtKey , value);
200 Eina.Log.Error($"Error removing proxy for event {key}");
204 ///<summary>Method to raise event ContentAddedEvt.</summary>
205 public void On_ContentAddedEvt(Efl.ContainerContentAddedEvt_Args e)
207 EventHandler<Efl.ContainerContentAddedEvt_Args> evt;
209 evt = (EventHandler<Efl.ContainerContentAddedEvt_Args>)eventHandlers[ContentAddedEvtKey];
211 evt?.Invoke(this, e);
213 Efl.EventCb evt_ContentAddedEvt_delegate;
214 private void on_ContentAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event_StructInternal evt)
216 Efl.ContainerContentAddedEvt_Args args = new Efl.ContainerContentAddedEvt_Args();
217 args.arg = new Efl.Gfx.EntityConcrete(evt.Info);
219 On_ContentAddedEvt(args);
220 } catch (Exception e) {
221 Eina.Log.Error(e.ToString());
222 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
226 private static object ContentRemovedEvtKey = new object();
227 /// <summary>Sent after an item was removed, before unref.</summary>
228 public event EventHandler<Efl.ContainerContentRemovedEvt_Args> ContentRemovedEvt
232 string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED";
233 if (add_cpp_event_handler(efl.Libs.Efl, key, this.evt_ContentRemovedEvt_delegate)) {
234 eventHandlers.AddHandler(ContentRemovedEvtKey , value);
236 Eina.Log.Error($"Error adding proxy for event {key}");
241 string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED";
242 if (remove_cpp_event_handler(key, this.evt_ContentRemovedEvt_delegate)) {
243 eventHandlers.RemoveHandler(ContentRemovedEvtKey , value);
245 Eina.Log.Error($"Error removing proxy for event {key}");
249 ///<summary>Method to raise event ContentRemovedEvt.</summary>
250 public void On_ContentRemovedEvt(Efl.ContainerContentRemovedEvt_Args e)
252 EventHandler<Efl.ContainerContentRemovedEvt_Args> evt;
254 evt = (EventHandler<Efl.ContainerContentRemovedEvt_Args>)eventHandlers[ContentRemovedEvtKey];
256 evt?.Invoke(this, e);
258 Efl.EventCb evt_ContentRemovedEvt_delegate;
259 private void on_ContentRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event_StructInternal evt)
261 Efl.ContainerContentRemovedEvt_Args args = new Efl.ContainerContentRemovedEvt_Args();
262 args.arg = new Efl.Gfx.EntityConcrete(evt.Info);
264 On_ContentRemovedEvt(args);
265 } catch (Exception e) {
266 Eina.Log.Error(e.ToString());
267 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
271 void register_event_proxies()
273 evt_ContentAddedEvt_delegate = new Efl.EventCb(on_ContentAddedEvt_NativeCallback);
274 evt_ContentRemovedEvt_delegate = new Efl.EventCb(on_ContentRemovedEvt_NativeCallback);
276 /// <summary>Prepend an object at the beginning of this container.
277 /// This is the same as <see cref="Efl.PackLinear.PackAt"/>(<c>subobj</c>, 0).
279 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.Pack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
280 /// <param name="subobj">Item to pack.</param>
281 /// <returns><c>false</c> if <c>subobj</c> could not be packed</returns>
282 public bool PackBegin( Efl.Gfx.Entity subobj) {
283 var _ret_var = Efl.PackLinearNativeInherit.efl_pack_begin_ptr.Value.Delegate(this.NativeHandle, subobj);
284 Eina.Error.RaiseIfUnhandledException();
287 /// <summary>Append object at the end of this container.
288 /// This is the same as <see cref="Efl.PackLinear.PackAt"/>(<c>subobj</c>, -1).
290 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.Pack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
291 /// <param name="subobj">Item to pack at the end.</param>
292 /// <returns><c>false</c> if <c>subobj</c> could not be packed</returns>
293 public bool PackEnd( Efl.Gfx.Entity subobj) {
294 var _ret_var = Efl.PackLinearNativeInherit.efl_pack_end_ptr.Value.Delegate(this.NativeHandle, subobj);
295 Eina.Error.RaiseIfUnhandledException();
298 /// <summary>Prepend item before other sub object.
299 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.Pack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
300 /// <param name="subobj">Item to pack before <c>existing</c>.</param>
301 /// <param name="existing">Item to refer to.</param>
302 /// <returns><c>false</c> if <c>existing</c> could not be found or <c>subobj</c> could not be packed.</returns>
303 public bool PackBefore( Efl.Gfx.Entity subobj, Efl.Gfx.Entity existing) {
304 var _ret_var = Efl.PackLinearNativeInherit.efl_pack_before_ptr.Value.Delegate(this.NativeHandle, subobj, existing);
305 Eina.Error.RaiseIfUnhandledException();
308 /// <summary>Append item after other sub object.
309 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.Pack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
310 /// <param name="subobj">Item to pack after <c>existing</c>.</param>
311 /// <param name="existing">Item to refer to.</param>
312 /// <returns><c>false</c> if <c>existing</c> could not be found or <c>subobj</c> could not be packed.</returns>
313 public bool PackAfter( Efl.Gfx.Entity subobj, Efl.Gfx.Entity existing) {
314 var _ret_var = Efl.PackLinearNativeInherit.efl_pack_after_ptr.Value.Delegate(this.NativeHandle, subobj, existing);
315 Eina.Error.RaiseIfUnhandledException();
318 /// <summary>Inserts <c>subobj</c> at the specified <c>index</c>.
319 /// Valid range: -<c>count</c> to +<c>count</c>. -1 refers to the last element. Out of range indices will trigger an append.
321 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.Pack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
322 /// <param name="subobj">Item to pack at given index.</param>
323 /// <param name="index">A position.</param>
324 /// <returns><c>false</c> if <c>subobj</c> could not be packed.</returns>
325 public bool PackAt( Efl.Gfx.Entity subobj, int index) {
326 var _ret_var = Efl.PackLinearNativeInherit.efl_pack_at_ptr.Value.Delegate(this.NativeHandle, subobj, index);
327 Eina.Error.RaiseIfUnhandledException();
330 /// <summary>Content at a given index in this container.
331 /// Index -1 refers to the last item. The valid range is -(count - 1) to (count - 1).</summary>
332 /// <param name="index">Index number</param>
333 /// <returns>The object contained at the given <c>index</c>.</returns>
334 public Efl.Gfx.Entity GetPackContent( int index) {
335 var _ret_var = Efl.PackLinearNativeInherit.efl_pack_content_get_ptr.Value.Delegate(this.NativeHandle, index);
336 Eina.Error.RaiseIfUnhandledException();
339 /// <summary>Get the index of a child in this container.</summary>
340 /// <param name="subobj">An object contained in this pack.</param>
341 /// <returns>-1 in case of failure, or the index of this item.</returns>
342 public int GetPackIndex( Efl.Gfx.Entity subobj) {
343 var _ret_var = Efl.PackLinearNativeInherit.efl_pack_index_get_ptr.Value.Delegate(this.NativeHandle, subobj);
344 Eina.Error.RaiseIfUnhandledException();
347 /// <summary>Pop out item at specified <c>index</c>.
348 /// Equivalent to unpack(content_at(<c>index</c>)).</summary>
349 /// <param name="index">Index number</param>
350 /// <returns>The child item if it could be removed.</returns>
351 public Efl.Gfx.Entity PackUnpackAt( int index) {
352 var _ret_var = Efl.PackLinearNativeInherit.efl_pack_unpack_at_ptr.Value.Delegate(this.NativeHandle, index);
353 Eina.Error.RaiseIfUnhandledException();
356 /// <summary>Begin iterating over this object's contents.</summary>
357 /// <returns>Iterator to object content</returns>
358 public Eina.Iterator<Efl.Gfx.Entity> ContentIterate() {
359 var _ret_var = Efl.ContainerNativeInherit.efl_content_iterate_ptr.Value.Delegate(this.NativeHandle);
360 Eina.Error.RaiseIfUnhandledException();
361 return new Eina.Iterator<Efl.Gfx.Entity>(_ret_var, true, false);
363 /// <summary>Returns the number of UI elements packed in this container.</summary>
364 /// <returns>Number of packed UI elements</returns>
365 public int ContentCount() {
366 var _ret_var = Efl.ContainerNativeInherit.efl_content_count_ptr.Value.Delegate(this.NativeHandle);
367 Eina.Error.RaiseIfUnhandledException();
370 /// <summary>Alignment of the container within its bounds</summary>
371 /// <param name="align_horiz">Horizontal alignment</param>
372 /// <param name="align_vert">Vertical alignment</param>
373 /// <returns></returns>
374 public void GetPackAlign( out double align_horiz, out double align_vert) {
375 Efl.PackNativeInherit.efl_pack_align_get_ptr.Value.Delegate(this.NativeHandle, out align_horiz, out align_vert);
376 Eina.Error.RaiseIfUnhandledException();
378 /// <summary>Alignment of the container within its bounds</summary>
379 /// <param name="align_horiz">Horizontal alignment</param>
380 /// <param name="align_vert">Vertical alignment</param>
381 /// <returns></returns>
382 public void SetPackAlign( double align_horiz, double align_vert) {
383 Efl.PackNativeInherit.efl_pack_align_set_ptr.Value.Delegate(this.NativeHandle, align_horiz, align_vert);
384 Eina.Error.RaiseIfUnhandledException();
386 /// <summary>Padding between items contained in this object.</summary>
387 /// <param name="pad_horiz">Horizontal padding</param>
388 /// <param name="pad_vert">Vertical padding</param>
389 /// <param name="scalable"><c>true</c> if scalable, <c>false</c> otherwise</param>
390 /// <returns></returns>
391 public void GetPackPadding( out double pad_horiz, out double pad_vert, out bool scalable) {
392 Efl.PackNativeInherit.efl_pack_padding_get_ptr.Value.Delegate(this.NativeHandle, out pad_horiz, out pad_vert, out scalable);
393 Eina.Error.RaiseIfUnhandledException();
395 /// <summary>Padding between items contained in this object.</summary>
396 /// <param name="pad_horiz">Horizontal padding</param>
397 /// <param name="pad_vert">Vertical padding</param>
398 /// <param name="scalable"><c>true</c> if scalable, <c>false</c> otherwise</param>
399 /// <returns></returns>
400 public void SetPackPadding( double pad_horiz, double pad_vert, bool scalable) {
401 Efl.PackNativeInherit.efl_pack_padding_set_ptr.Value.Delegate(this.NativeHandle, pad_horiz, pad_vert, scalable);
402 Eina.Error.RaiseIfUnhandledException();
404 /// <summary>Removes all packed contents, and unreferences them.</summary>
405 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
406 public bool ClearPack() {
407 var _ret_var = Efl.PackNativeInherit.efl_pack_clear_ptr.Value.Delegate(this.NativeHandle);
408 Eina.Error.RaiseIfUnhandledException();
411 /// <summary>Removes all packed contents, without unreferencing them.
412 /// Use with caution.</summary>
413 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
414 public bool UnpackAll() {
415 var _ret_var = Efl.PackNativeInherit.efl_pack_unpack_all_ptr.Value.Delegate(this.NativeHandle);
416 Eina.Error.RaiseIfUnhandledException();
419 /// <summary>Removes an existing item from the container, without deleting it.</summary>
420 /// <param name="subobj">The unpacked object.</param>
421 /// <returns><c>false</c> if <c>subobj</c> wasn't a child or can't be removed</returns>
422 public bool Unpack( Efl.Gfx.Entity subobj) {
423 var _ret_var = Efl.PackNativeInherit.efl_pack_unpack_ptr.Value.Delegate(this.NativeHandle, subobj);
424 Eina.Error.RaiseIfUnhandledException();
427 /// <summary>Adds an item to this container.
428 /// 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.
430 /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.Pack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
431 /// <param name="subobj">An object to pack.</param>
432 /// <returns><c>false</c> if <c>subobj</c> could not be packed.</returns>
433 public bool DoPack( Efl.Gfx.Entity subobj) {
434 var _ret_var = Efl.PackNativeInherit.efl_pack_ptr.Value.Delegate(this.NativeHandle, subobj);
435 Eina.Error.RaiseIfUnhandledException();
439 public class PackLinearNativeInherit : Efl.Eo.NativeClass{
440 public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl);
441 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
443 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
444 if (efl_pack_begin_static_delegate == null)
445 efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin);
446 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)});
447 if (efl_pack_end_static_delegate == null)
448 efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end);
449 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)});
450 if (efl_pack_before_static_delegate == null)
451 efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before);
452 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)});
453 if (efl_pack_after_static_delegate == null)
454 efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after);
455 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)});
456 if (efl_pack_at_static_delegate == null)
457 efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at);
458 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)});
459 if (efl_pack_content_get_static_delegate == null)
460 efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get);
461 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)});
462 if (efl_pack_index_get_static_delegate == null)
463 efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get);
464 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)});
465 if (efl_pack_unpack_at_static_delegate == null)
466 efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at);
467 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)});
468 if (efl_content_iterate_static_delegate == null)
469 efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate);
470 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)});
471 if (efl_content_count_static_delegate == null)
472 efl_content_count_static_delegate = new efl_content_count_delegate(content_count);
473 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)});
474 if (efl_pack_align_get_static_delegate == null)
475 efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get);
476 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)});
477 if (efl_pack_align_set_static_delegate == null)
478 efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set);
479 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)});
480 if (efl_pack_padding_get_static_delegate == null)
481 efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get);
482 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)});
483 if (efl_pack_padding_set_static_delegate == null)
484 efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set);
485 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)});
486 if (efl_pack_clear_static_delegate == null)
487 efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear);
488 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)});
489 if (efl_pack_unpack_all_static_delegate == null)
490 efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all);
491 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)});
492 if (efl_pack_unpack_static_delegate == null)
493 efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack);
494 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)
496 efl_pack_static_delegate = new efl_pack_delegate(pack);
497 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate)});
500 public override IntPtr GetEflClass()
502 return Efl.PackLinearConcrete.efl_pack_linear_interface_get();
504 public static IntPtr GetEflClassStatic()
506 return Efl.PackLinearConcrete.efl_pack_linear_interface_get();
510 [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.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
513 [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.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
514 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");
515 private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Entity subobj)
517 Eina.Log.Debug("function efl_pack_begin was called");
518 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
519 if(wrapper != null) {
520 bool _ret_var = default(bool);
522 _ret_var = ((PackLinear)wrapper).PackBegin( subobj);
523 } catch (Exception e) {
524 Eina.Log.Warning($"Callback error: {e.ToString()}");
525 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
529 return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
532 private static efl_pack_begin_delegate efl_pack_begin_static_delegate;
535 [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.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
538 [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.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
539 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");
540 private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Entity subobj)
542 Eina.Log.Debug("function efl_pack_end was called");
543 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
544 if(wrapper != null) {
545 bool _ret_var = default(bool);
547 _ret_var = ((PackLinear)wrapper).PackEnd( subobj);
548 } catch (Exception e) {
549 Eina.Log.Warning($"Callback error: {e.ToString()}");
550 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
554 return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
557 private static efl_pack_end_delegate efl_pack_end_static_delegate;
560 [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.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity existing);
563 [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.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity existing);
564 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");
565 private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Entity subobj, Efl.Gfx.Entity existing)
567 Eina.Log.Debug("function efl_pack_before was called");
568 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
569 if(wrapper != null) {
570 bool _ret_var = default(bool);
572 _ret_var = ((PackLinear)wrapper).PackBefore( subobj, existing);
573 } catch (Exception e) {
574 Eina.Log.Warning($"Callback error: {e.ToString()}");
575 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
579 return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing);
582 private static efl_pack_before_delegate efl_pack_before_static_delegate;
585 [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.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity existing);
588 [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.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity existing);
589 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");
590 private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Entity subobj, Efl.Gfx.Entity existing)
592 Eina.Log.Debug("function efl_pack_after was called");
593 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
594 if(wrapper != null) {
595 bool _ret_var = default(bool);
597 _ret_var = ((PackLinear)wrapper).PackAfter( subobj, existing);
598 } catch (Exception e) {
599 Eina.Log.Warning($"Callback error: {e.ToString()}");
600 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
604 return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing);
607 private static efl_pack_after_delegate efl_pack_after_static_delegate;
610 [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.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj, int index);
613 [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.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj, int index);
614 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");
615 private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Entity subobj, int index)
617 Eina.Log.Debug("function efl_pack_at was called");
618 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
619 if(wrapper != null) {
620 bool _ret_var = default(bool);
622 _ret_var = ((PackLinear)wrapper).PackAt( subobj, index);
623 } catch (Exception e) {
624 Eina.Log.Warning($"Callback error: {e.ToString()}");
625 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
629 return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index);
632 private static efl_pack_at_delegate efl_pack_at_static_delegate;
635 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] private delegate Efl.Gfx.Entity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index);
638 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] public delegate Efl.Gfx.Entity efl_pack_content_get_api_delegate(System.IntPtr obj, int index);
639 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");
640 private static Efl.Gfx.Entity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index)
642 Eina.Log.Debug("function efl_pack_content_get was called");
643 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
644 if(wrapper != null) {
645 Efl.Gfx.Entity _ret_var = default(Efl.Gfx.Entity);
647 _ret_var = ((PackLinear)wrapper).GetPackContent( index);
648 } catch (Exception e) {
649 Eina.Log.Warning($"Callback error: {e.ToString()}");
650 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
654 return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index);
657 private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate;
660 private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
663 public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
664 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");
665 private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Entity subobj)
667 Eina.Log.Debug("function efl_pack_index_get was called");
668 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
669 if(wrapper != null) {
670 int _ret_var = default( int);
672 _ret_var = ((PackLinear)wrapper).GetPackIndex( subobj);
673 } catch (Exception e) {
674 Eina.Log.Warning($"Callback error: {e.ToString()}");
675 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
679 return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
682 private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate;
685 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] private delegate Efl.Gfx.Entity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index);
688 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] public delegate Efl.Gfx.Entity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index);
689 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");
690 private static Efl.Gfx.Entity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index)
692 Eina.Log.Debug("function efl_pack_unpack_at was called");
693 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
694 if(wrapper != null) {
695 Efl.Gfx.Entity _ret_var = default(Efl.Gfx.Entity);
697 _ret_var = ((PackLinear)wrapper).PackUnpackAt( index);
698 } catch (Exception e) {
699 Eina.Log.Warning($"Callback error: {e.ToString()}");
700 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
704 return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index);
707 private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate;
710 private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd);
713 public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj);
714 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");
715 private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd)
717 Eina.Log.Debug("function efl_content_iterate was called");
718 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
719 if(wrapper != null) {
720 Eina.Iterator<Efl.Gfx.Entity> _ret_var = default(Eina.Iterator<Efl.Gfx.Entity>);
722 _ret_var = ((PackLinear)wrapper).ContentIterate();
723 } catch (Exception e) {
724 Eina.Log.Warning($"Callback error: {e.ToString()}");
725 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
727 _ret_var.Own = false; return _ret_var.Handle;
729 return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
732 private static efl_content_iterate_delegate efl_content_iterate_static_delegate;
735 private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd);
738 public delegate int efl_content_count_api_delegate(System.IntPtr obj);
739 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");
740 private static int content_count(System.IntPtr obj, System.IntPtr pd)
742 Eina.Log.Debug("function efl_content_count was called");
743 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
744 if(wrapper != null) {
745 int _ret_var = default( int);
747 _ret_var = ((PackLinear)wrapper).ContentCount();
748 } catch (Exception e) {
749 Eina.Log.Warning($"Callback error: {e.ToString()}");
750 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
754 return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
757 private static efl_content_count_delegate efl_content_count_static_delegate;
760 private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert);
763 public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert);
764 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");
765 private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert)
767 Eina.Log.Debug("function efl_pack_align_get was called");
768 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
769 if(wrapper != null) {
770 align_horiz = default(double); align_vert = default(double);
772 ((PackLinear)wrapper).GetPackAlign( out align_horiz, out align_vert);
773 } catch (Exception e) {
774 Eina.Log.Warning($"Callback error: {e.ToString()}");
775 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
778 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);
781 private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate;
784 private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert);
787 public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert);
788 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");
789 private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert)
791 Eina.Log.Debug("function efl_pack_align_set was called");
792 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
793 if(wrapper != null) {
796 ((PackLinear)wrapper).SetPackAlign( align_horiz, align_vert);
797 } catch (Exception e) {
798 Eina.Log.Warning($"Callback error: {e.ToString()}");
799 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
802 efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert);
805 private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate;
808 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);
811 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);
812 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");
813 private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable)
815 Eina.Log.Debug("function efl_pack_padding_get was called");
816 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
817 if(wrapper != null) {
818 pad_horiz = default(double); pad_vert = default(double); scalable = default(bool);
820 ((PackLinear)wrapper).GetPackPadding( out pad_horiz, out pad_vert, out scalable);
821 } catch (Exception e) {
822 Eina.Log.Warning($"Callback error: {e.ToString()}");
823 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
826 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);
829 private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate;
832 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);
835 public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable);
836 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");
837 private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable)
839 Eina.Log.Debug("function efl_pack_padding_set was called");
840 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
841 if(wrapper != null) {
844 ((PackLinear)wrapper).SetPackPadding( pad_horiz, pad_vert, scalable);
845 } catch (Exception e) {
846 Eina.Log.Warning($"Callback error: {e.ToString()}");
847 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
850 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);
853 private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate;
856 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd);
859 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj);
860 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");
861 private static bool pack_clear(System.IntPtr obj, System.IntPtr pd)
863 Eina.Log.Debug("function efl_pack_clear was called");
864 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
865 if(wrapper != null) {
866 bool _ret_var = default(bool);
868 _ret_var = ((PackLinear)wrapper).ClearPack();
869 } catch (Exception e) {
870 Eina.Log.Warning($"Callback error: {e.ToString()}");
871 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
875 return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
878 private static efl_pack_clear_delegate efl_pack_clear_static_delegate;
881 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd);
884 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj);
885 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");
886 private static bool unpack_all(System.IntPtr obj, System.IntPtr pd)
888 Eina.Log.Debug("function efl_pack_unpack_all was called");
889 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
890 if(wrapper != null) {
891 bool _ret_var = default(bool);
893 _ret_var = ((PackLinear)wrapper).UnpackAll();
894 } catch (Exception e) {
895 Eina.Log.Warning($"Callback error: {e.ToString()}");
896 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
900 return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
903 private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate;
906 [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.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
909 [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.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
910 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");
911 private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Entity subobj)
913 Eina.Log.Debug("function efl_pack_unpack was called");
914 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
915 if(wrapper != null) {
916 bool _ret_var = default(bool);
918 _ret_var = ((PackLinear)wrapper).Unpack( subobj);
919 } catch (Exception e) {
920 Eina.Log.Warning($"Callback error: {e.ToString()}");
921 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
925 return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
928 private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate;
931 [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.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
934 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity subobj);
935 public static Efl.Eo.FunctionWrapper<efl_pack_api_delegate> efl_pack_ptr = new Efl.Eo.FunctionWrapper<efl_pack_api_delegate>(_Module, "efl_pack");
936 private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Entity subobj)
938 Eina.Log.Debug("function efl_pack was called");
939 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
940 if(wrapper != null) {
941 bool _ret_var = default(bool);
943 _ret_var = ((PackLinear)wrapper).DoPack( subobj);
944 } catch (Exception e) {
945 Eina.Log.Warning($"Callback error: {e.ToString()}");
946 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
950 return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj);
953 private static efl_pack_delegate efl_pack_static_delegate;