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>Callback priority. Range is -32k - 32k. The lower the number, the higher the priority.
11 /// This is used to insert an event handler relative to the existing stack of sorted event handlers according to that priority. All event handlers always have a priority. If not specified <see cref="Efl.Constants.CallbackPriorityDefault"/> is to be assumed.
13 /// See <see cref="Efl.Constants.CallbackPriorityBefore"/> <see cref="Efl.Constants.CallbackPriorityDefault"/> <see cref="Efl.Constants.CallbackPriorityAfter"/>
14 /// (Since EFL 1.22)</summary>
15 public struct CallbackPriority
17 private short payload;
19 /// <summary>Converts an instance of short to this struct.</summary>
20 /// <param name="value">The value to be converted.</param>
21 /// <returns>A struct with the given value.</returns>
22 public static implicit operator CallbackPriority(short value)
24 return new CallbackPriority{payload=value};
27 /// <summary>Converts an instance of this struct to short.</summary>
28 /// <param name="value">The value to be converted packed in this struct.</param>
29 /// <returns>The actual value the alias is wrapping.</returns>
30 public static implicit operator short(CallbackPriority value)
41 public partial class Constants
43 /// <summary>Slightly more prioritized than default.</summary>
44 public static readonly Efl.CallbackPriority CallbackPriorityBefore = -100;
50 public partial class Constants
52 /// <summary>Default priority.</summary>
53 public static readonly Efl.CallbackPriority CallbackPriorityDefault = 0;
59 public partial class Constants
61 /// <summary>Slightly less prioritized than default.</summary>
62 public static readonly Efl.CallbackPriority CallbackPriorityAfter = 100;
68 /// <summary>Abstract EFL object class.
69 /// All EFL objects inherit from this class, which provides basic functionality like naming, debugging, hierarchy traversal, event emission and life cycle management.
71 /// Life Cycle Objects are created with efl_add() and mostly disposed of with efl_del(). As an optimization, efl_add() accepts a list of initialization functions which the programmer can use to further customize the object before it is fully constructed. Also, objects can have a parent which will keep them alive as long as the parent is alive, so the programmer does not need to keep track of references. (See the <see cref="Efl.Object.Parent"/> property for details). Due to the above characteristics, EFL objects undergo the following phases during their Life Cycle: - Construction: The Efl.Object.constructor method is called. Afterwards, any user-supplied initialization methods are called. - Finalization: The <see cref="Efl.Object.FinalizeAdd"/> method is called and <see cref="Efl.Object.GetFinalized"/> is set to <c>true</c> when it returns. Object is usable at this point. - Invalidation: The object has lost its parent. The <see cref="Efl.Object.Invalidate"/> method is called so all the object's relationships can be terminated. <see cref="Efl.Object.GetInvalidated"/> is set to <c>true</c>. - Destruction: The object has no parent and it can be destroyed. The <see cref="Efl.Object.Destructor"/> method is called, use it to return any resources the object might have gathered during its life.
72 /// (Since EFL 1.22)</summary>
73 [Efl.Object.NativeMethods]
74 public abstract class Object : Efl.Eo.EoWrapper
76 ///<summary>Pointer to the native class description.</summary>
77 public override System.IntPtr NativeClass
81 if (((object)this).GetType() == typeof(Object))
83 return GetEflClassStatic();
87 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
92 [System.Runtime.InteropServices.DllImport(efl.Libs.Eo)] internal static extern System.IntPtr
93 efl_object_class_get();
94 /// <summary>Initializes a new instance of the <see cref="Object"/> class.</summary>
95 /// <param name="parent">Parent instance.</param>
96 public Object(Efl.Object parent= null
97 ) : base(efl_object_class_get(), typeof(Object), parent)
99 FinishInstantiation();
102 /// <summary>Initializes a new instance of the <see cref="Object"/> class.
103 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
104 /// <param name="raw">The native pointer to be wrapped.</param>
105 protected Object(System.IntPtr raw) : base(raw)
109 [Efl.Eo.PrivateNativeClass]
110 private class ObjectRealized : Object
112 private ObjectRealized(IntPtr ptr) : base(ptr)
116 /// <summary>Initializes a new instance of the <see cref="Object"/> class.
117 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
118 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
119 /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
120 /// <param name="parent">The Efl.Object parent of this instance.</param>
121 protected Object(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
125 /// <summary>Object is being deleted. See <see cref="Efl.Object.Destructor"/>.
126 /// (Since EFL 1.22)</summary>
127 public event EventHandler DelEvt
133 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
135 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
138 EventArgs args = EventArgs.Empty;
141 value?.Invoke(obj, args);
145 Eina.Log.Error(e.ToString());
146 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
151 string key = "_EFL_EVENT_DEL";
152 AddNativeEventHandler(efl.Libs.Eo, key, callerCb, value);
160 string key = "_EFL_EVENT_DEL";
161 RemoveNativeEventHandler(efl.Libs.Eo, key, value);
165 ///<summary>Method to raise event DelEvt.</summary>
166 public void OnDelEvt(EventArgs e)
168 var key = "_EFL_EVENT_DEL";
169 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Eo, key);
170 if (desc == IntPtr.Zero)
172 Eina.Log.Error($"Failed to get native event {key}");
176 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
178 /// <summary>Object is being invalidated and losing its parent. See <see cref="Efl.Object.Invalidate"/>.
179 /// (Since EFL 1.22)</summary>
180 public event EventHandler InvalidateEvt
186 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
188 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
191 EventArgs args = EventArgs.Empty;
194 value?.Invoke(obj, args);
198 Eina.Log.Error(e.ToString());
199 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
204 string key = "_EFL_EVENT_INVALIDATE";
205 AddNativeEventHandler(efl.Libs.Eo, key, callerCb, value);
213 string key = "_EFL_EVENT_INVALIDATE";
214 RemoveNativeEventHandler(efl.Libs.Eo, key, value);
218 ///<summary>Method to raise event InvalidateEvt.</summary>
219 public void OnInvalidateEvt(EventArgs e)
221 var key = "_EFL_EVENT_INVALIDATE";
222 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Eo, key);
223 if (desc == IntPtr.Zero)
225 Eina.Log.Error($"Failed to get native event {key}");
229 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
231 /// <summary>Object has lost its last reference, only parent relationship is keeping it alive. Advanced usage.
232 /// (Since EFL 1.22)</summary>
233 public event EventHandler NorefEvt
239 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
241 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
244 EventArgs args = EventArgs.Empty;
247 value?.Invoke(obj, args);
251 Eina.Log.Error(e.ToString());
252 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
257 string key = "_EFL_EVENT_NOREF";
258 AddNativeEventHandler(efl.Libs.Eo, key, callerCb, value);
266 string key = "_EFL_EVENT_NOREF";
267 RemoveNativeEventHandler(efl.Libs.Eo, key, value);
271 ///<summary>Method to raise event NorefEvt.</summary>
272 public void OnNorefEvt(EventArgs e)
274 var key = "_EFL_EVENT_NOREF";
275 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Eo, key);
276 if (desc == IntPtr.Zero)
278 Eina.Log.Error($"Failed to get native event {key}");
282 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
284 /// <summary>Object has lost a reference and only one is left. It has just one owner now. Triggered whenever the refcount goes from two to one.
285 /// (Since EFL 1.22)</summary>
286 public event EventHandler OwnershipUniqueEvt
292 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
294 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
297 EventArgs args = EventArgs.Empty;
300 value?.Invoke(obj, args);
304 Eina.Log.Error(e.ToString());
305 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
310 string key = "_EFL_EVENT_OWNERSHIP_UNIQUE";
311 AddNativeEventHandler(efl.Libs.Eo, key, callerCb, value);
319 string key = "_EFL_EVENT_OWNERSHIP_UNIQUE";
320 RemoveNativeEventHandler(efl.Libs.Eo, key, value);
324 ///<summary>Method to raise event OwnershipUniqueEvt.</summary>
325 public void OnOwnershipUniqueEvt(EventArgs e)
327 var key = "_EFL_EVENT_OWNERSHIP_UNIQUE";
328 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Eo, key);
329 if (desc == IntPtr.Zero)
331 Eina.Log.Error($"Failed to get native event {key}");
335 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
337 /// <summary>Object has acquired a second reference. It has multiple owners now. Triggered whenever increasing the refcount from one to two, it will not trigger by further increasing the refcount beyond two.
338 /// (Since EFL 1.22)</summary>
339 public event EventHandler OwnershipSharedEvt
345 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
347 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
350 EventArgs args = EventArgs.Empty;
353 value?.Invoke(obj, args);
357 Eina.Log.Error(e.ToString());
358 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
363 string key = "_EFL_EVENT_OWNERSHIP_SHARED";
364 AddNativeEventHandler(efl.Libs.Eo, key, callerCb, value);
372 string key = "_EFL_EVENT_OWNERSHIP_SHARED";
373 RemoveNativeEventHandler(efl.Libs.Eo, key, value);
377 ///<summary>Method to raise event OwnershipSharedEvt.</summary>
378 public void OnOwnershipSharedEvt(EventArgs e)
380 var key = "_EFL_EVENT_OWNERSHIP_SHARED";
381 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Eo, key);
382 if (desc == IntPtr.Zero)
384 Eina.Log.Error($"Failed to get native event {key}");
388 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
390 /// <summary>Object has been fully destroyed. It can not be used beyond this point. This event should only serve to clean up any reference you keep to the object.
391 /// (Since EFL 1.22)</summary>
392 public event EventHandler DestructEvt
398 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
400 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
403 EventArgs args = EventArgs.Empty;
406 value?.Invoke(obj, args);
410 Eina.Log.Error(e.ToString());
411 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
416 string key = "_EFL_EVENT_DESTRUCT";
417 AddNativeEventHandler(efl.Libs.Eo, key, callerCb, value);
425 string key = "_EFL_EVENT_DESTRUCT";
426 RemoveNativeEventHandler(efl.Libs.Eo, key, value);
430 ///<summary>Method to raise event DestructEvt.</summary>
431 public void OnDestructEvt(EventArgs e)
433 var key = "_EFL_EVENT_DESTRUCT";
434 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Eo, key);
435 if (desc == IntPtr.Zero)
437 Eina.Log.Error($"Failed to get native event {key}");
441 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
443 /// <summary>The parent of an object.
444 /// Parents keep references to their children and will release these references when destroyed. In this way, objects can be assigned to a parent upon creation, tying their life cycle so the programmer does not need to worry about destroying the child object. In order to destroy an object before its parent, set the parent to <c>NULL</c> and use efl_unref(), or use efl_del() directly.
446 /// The Eo parent is conceptually user set. That means that a parent should not be changed behind the scenes in an unexpected way.
448 /// For example: If you have a widget which can swallow objects into an internal box, the parent of the swallowed objects should be the widget, not the internal box. The user is not even aware of the existence of the internal box.
449 /// (Since EFL 1.22)</summary>
450 /// <returns>The new parent.</returns>
451 virtual public Efl.Object GetParent() {
452 var _ret_var = Efl.Object.NativeMethods.efl_parent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
453 Eina.Error.RaiseIfUnhandledException();
456 /// <summary>The parent of an object.
457 /// Parents keep references to their children and will release these references when destroyed. In this way, objects can be assigned to a parent upon creation, tying their life cycle so the programmer does not need to worry about destroying the child object. In order to destroy an object before its parent, set the parent to <c>NULL</c> and use efl_unref(), or use efl_del() directly.
459 /// The Eo parent is conceptually user set. That means that a parent should not be changed behind the scenes in an unexpected way.
461 /// For example: If you have a widget which can swallow objects into an internal box, the parent of the swallowed objects should be the widget, not the internal box. The user is not even aware of the existence of the internal box.
462 /// (Since EFL 1.22)</summary>
463 /// <param name="parent">The new parent.</param>
464 virtual public void SetParent(Efl.Object parent) {
465 Efl.Object.NativeMethods.efl_parent_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),parent);
466 Eina.Error.RaiseIfUnhandledException();
468 /// <summary>The name of the object.
469 /// Every EFL object can have a name. Names may not contain the following characters: / ? * [ ] ! : Using any of these in a name will result in undefined behavior later on. An empty string is considered the same as a <c>NULL</c> string or no string for the name.
470 /// (Since EFL 1.22)</summary>
471 /// <returns>The name.</returns>
472 virtual public System.String GetName() {
473 var _ret_var = Efl.Object.NativeMethods.efl_name_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
474 Eina.Error.RaiseIfUnhandledException();
477 /// <summary>The name of the object.
478 /// Every EFL object can have a name. Names may not contain the following characters: / ? * [ ] ! : Using any of these in a name will result in undefined behavior later on. An empty string is considered the same as a <c>NULL</c> string or no string for the name.
479 /// (Since EFL 1.22)</summary>
480 /// <param name="name">The name.</param>
481 virtual public void SetName(System.String name) {
482 Efl.Object.NativeMethods.efl_name_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name);
483 Eina.Error.RaiseIfUnhandledException();
485 /// <summary>A human readable comment for the object.
486 /// Every EFL object can have a comment. This is intended for developers and debugging. An empty string is considered the same as a <c>NULL</c> string or no string for the comment.
487 /// (Since EFL 1.22)</summary>
488 /// <returns>The comment.</returns>
489 virtual public System.String GetComment() {
490 var _ret_var = Efl.Object.NativeMethods.efl_comment_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
491 Eina.Error.RaiseIfUnhandledException();
494 /// <summary>A human readable comment for the object.
495 /// Every EFL object can have a comment. This is intended for developers and debugging. An empty string is considered the same as a <c>NULL</c> string or no string for the comment.
496 /// (Since EFL 1.22)</summary>
497 /// <param name="comment">The comment.</param>
498 virtual public void SetComment(System.String comment) {
499 Efl.Object.NativeMethods.efl_comment_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),comment);
500 Eina.Error.RaiseIfUnhandledException();
502 /// <summary>Return the global count of freeze events.
503 /// This is the amount of calls to <see cref="Efl.Object.FreezeEventGlobal"/> minus the amount of calls to <see cref="Efl.Object.ThawEventGlobal"/>. EFL will not emit any event while this count is > 0 (Except events marked <c>hot</c>).
504 /// (Since EFL 1.22)</summary>
505 /// <returns>The global event freeze count.</returns>
506 public static int GetEventGlobalFreezeCount() {
507 var _ret_var = Efl.Object.NativeMethods.efl_event_global_freeze_count_get_ptr.Value.Delegate();
508 Eina.Error.RaiseIfUnhandledException();
511 /// <summary>Return the count of freeze events for this object.
512 /// This is the amount of calls to <see cref="Efl.Object.FreezeEvent"/> minus the amount of calls to <see cref="Efl.Object.ThawEvent"/>. This object will not emit any event while this count is > 0 (Except events marked <c>hot</c>).
513 /// (Since EFL 1.22)</summary>
514 /// <returns>The event freeze count of this object.</returns>
515 virtual public int GetEventFreezeCount() {
516 var _ret_var = Efl.Object.NativeMethods.efl_event_freeze_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
517 Eina.Error.RaiseIfUnhandledException();
520 /// <summary><c>true</c> if the object has been finalized, i.e. construction has finished. See the Life Cycle section in this class' description.
521 /// (Since EFL 1.22)</summary>
522 /// <returns><c>true</c> if the object is finalized, <c>false</c> otherwise.</returns>
523 virtual public bool GetFinalized() {
524 var _ret_var = Efl.Object.NativeMethods.efl_finalized_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
525 Eina.Error.RaiseIfUnhandledException();
528 /// <summary><c>true</c> if the object has been invalidated, i.e. it has no parent. See the Life Cycle section in this class' description.
529 /// (Since EFL 1.22)</summary>
530 /// <returns><c>true</c> if the object is invalidated, <c>false</c> otherwise.</returns>
531 virtual public bool GetInvalidated() {
532 var _ret_var = Efl.Object.NativeMethods.efl_invalidated_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
533 Eina.Error.RaiseIfUnhandledException();
536 /// <summary><c>true</c> if the object has started the invalidation phase, but has not finished it yet. Note: This might become <c>true</c> before <see cref="Efl.Object.Invalidate"/> is called. See the Life Cycle section in this class' description.
537 /// (Since EFL 1.22)</summary>
538 /// <returns><c>true</c> if the object is invalidating, <c>false</c> otherwise.</returns>
539 virtual public bool GetInvalidating() {
540 var _ret_var = Efl.Object.NativeMethods.efl_invalidating_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
541 Eina.Error.RaiseIfUnhandledException();
544 /// <summary>Allow an object to be deleted by unref even if it has a parent.
545 /// This simply hides the error message warning that an object being destroyed still has a parent. This property is false by default.
547 /// In a normal object use case, when ownership of an object is given to a caller, said ownership should be released with efl_unref(). If the object has a parent, this will print error messages, as efl_unref() is stealing the ref from the parent.
549 /// Warning: Use this function very carefully, unless you're absolutely sure of what you are doing.
550 /// (Since EFL 1.22)</summary>
551 /// <returns>Whether to allow efl_unref() to zero even if <see cref="Efl.Object.Parent"/> is not <c>null</c>.</returns>
552 virtual public bool GetAllowParentUnref() {
553 var _ret_var = Efl.Object.NativeMethods.efl_allow_parent_unref_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
554 Eina.Error.RaiseIfUnhandledException();
557 /// <summary>Allow an object to be deleted by unref even if it has a parent.
558 /// This simply hides the error message warning that an object being destroyed still has a parent. This property is false by default.
560 /// In a normal object use case, when ownership of an object is given to a caller, said ownership should be released with efl_unref(). If the object has a parent, this will print error messages, as efl_unref() is stealing the ref from the parent.
562 /// Warning: Use this function very carefully, unless you're absolutely sure of what you are doing.
563 /// (Since EFL 1.22)</summary>
564 /// <param name="allow">Whether to allow efl_unref() to zero even if <see cref="Efl.Object.Parent"/> is not <c>null</c>.</param>
565 virtual public void SetAllowParentUnref(bool allow) {
566 Efl.Object.NativeMethods.efl_allow_parent_unref_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),allow);
567 Eina.Error.RaiseIfUnhandledException();
569 /// <summary>Build a read-only name for this object used for debugging.
570 /// Multiple calls using efl_super() can be chained in order to build the entire debug name, from parent to child classes. In C the usual way to build the string is as follows:
572 /// efl_debug_name_override(efl_super(obj, MY_CLASS), sb); eina_strbuf_append_printf(sb, "new_information");
574 /// Usually more debug information should be added to <c>sb</c> after calling the super function.
575 /// (Since EFL 1.22)</summary>
576 /// <param name="sb">A string buffer, must not be <c>null</c>.</param>
577 virtual public void DebugNameOverride(Eina.Strbuf sb) {
578 Efl.Object.NativeMethods.efl_debug_name_override_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sb);
579 Eina.Error.RaiseIfUnhandledException();
581 /// <summary>Searches upwards in the object tree for a provider which knows the given class/interface.
582 /// The object from the provider will then be returned. The base implementation calls the provider_find function on the object parent, and returns its result. If no parent is present NULL is returned. Each implementation has to support this function by overriding it and returning itself if the interface matches the parameter. If this is not done the class cannot be found up in the object tree.
583 /// (Since EFL 1.22)</summary>
584 /// <param name="klass">The class identifier to search for.</param>
585 /// <returns>Object from the provider list.</returns>
586 virtual public Efl.Object FindProvider(Type klass) {
587 var _ret_var = Efl.Object.NativeMethods.efl_provider_find_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),klass);
588 Eina.Error.RaiseIfUnhandledException();
591 /// <summary>Implement this method to provide deinitialization code for your object if you need it.
592 /// Will be called once <see cref="Efl.Object.Invalidate"/> has returned. See the Life Cycle section in this class' description.
593 /// (Since EFL 1.22)</summary>
594 virtual public void Destructor() {
595 Efl.Object.NativeMethods.efl_destructor_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
596 Eina.Error.RaiseIfUnhandledException();
598 /// <summary>Implement this method to finish the initialization of your object after all (if any) user-provided configuration methods have been executed.
599 /// Use this method to delay expensive operations until user configuration has finished, to avoid building the object in a "default" state in the constructor, just to have to throw it all away because a user configuration (a property being set, for example) requires a different state. This is the last call inside efl_add() and will set <see cref="Efl.Object.GetFinalized"/> to <c>true</c> once it returns. This is an optimization and implementing this method is optional if you already perform all your initialization in the Efl.Object.constructor method. See the Life Cycle section in this class' description.
600 /// (Since EFL 1.22)</summary>
601 /// <returns>The new object. Return <c>NULL</c> to abort object creation.</returns>
602 virtual public Efl.Object FinalizeAdd() {
603 var _ret_var = Efl.Object.NativeMethods.efl_finalize_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
604 Eina.Error.RaiseIfUnhandledException();
607 /// <summary>Implement this method to perform special actions when your object loses its parent, if you need to.
608 /// It is called when the parent reference is lost or set to <c>NULL</c>. After this call returns, <see cref="Efl.Object.GetInvalidated"/> is set to <c>true</c>. This allows a simpler tear down of complex hierarchies, by performing object destruction in two steps, first all object relationships are broken and then the isolated objects are destroyed. Performing everything in the <see cref="Efl.Object.Destructor"/> can sometimes lead to deadlocks, but implementing this method is optional if this is not your case. When an object with a parent is destroyed, it first receives a call to <see cref="Efl.Object.Invalidate"/> and then to <see cref="Efl.Object.Destructor"/>. See the Life Cycle section in this class' description.
609 /// (Since EFL 1.22)</summary>
610 virtual public void Invalidate() {
611 Efl.Object.NativeMethods.efl_invalidate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
612 Eina.Error.RaiseIfUnhandledException();
614 /// <summary>Find a child object with the given name and return it.
615 /// The search string can be a glob (shell style, using *). It can also specify class name in the format of "class:name" where ":" separates class and name. Both class and name can be globs. If the class is specified but the name is empty like "class:" then the search will match any object of that class.
616 /// (Since EFL 1.22)</summary>
617 /// <param name="search">The name search string.</param>
618 /// <returns>The first object found.</returns>
619 virtual public Efl.Object FindName(System.String search) {
620 var _ret_var = Efl.Object.NativeMethods.efl_name_find_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),search);
621 Eina.Error.RaiseIfUnhandledException();
624 /// <summary>Thaw events of object.
625 /// Allows event callbacks to be called again for this object after a call to <see cref="Efl.Object.FreezeEvent"/>. The amount of thaws must match the amount of freezes for events to be re-enabled.
626 /// (Since EFL 1.22)</summary>
627 virtual public void ThawEvent() {
628 Efl.Object.NativeMethods.efl_event_thaw_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
629 Eina.Error.RaiseIfUnhandledException();
631 /// <summary>Freeze events of this object.
632 /// Prevents event callbacks from being called for this object. Enable events again using <see cref="Efl.Object.ThawEvent"/>. Events marked <c>hot</c> cannot be stopped.
633 /// (Since EFL 1.22)</summary>
634 virtual public void FreezeEvent() {
635 Efl.Object.NativeMethods.efl_event_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
636 Eina.Error.RaiseIfUnhandledException();
638 /// <summary>Gobally thaw events for ALL EFL OBJECTS.
639 /// Allows event callbacks to be called for all EFL objects after they have been disabled by <see cref="Efl.Object.FreezeEventGlobal"/>. The amount of thaws must match the amount of freezes for events to be re-enabled.
640 /// (Since EFL 1.22)</summary>
641 public static void ThawEventGlobal() {
642 Efl.Object.NativeMethods.efl_event_global_thaw_ptr.Value.Delegate();
643 Eina.Error.RaiseIfUnhandledException();
645 /// <summary>Globally freeze events for ALL EFL OBJECTS.
646 /// Prevents event callbacks from being called for all EFL objects. Enable events again using <see cref="Efl.Object.ThawEventGlobal"/>. Events marked <c>hot</c> cannot be stopped.
648 /// Note: USE WITH CAUTION.
649 /// (Since EFL 1.22)</summary>
650 public static void FreezeEventGlobal() {
651 Efl.Object.NativeMethods.efl_event_global_freeze_ptr.Value.Delegate();
652 Eina.Error.RaiseIfUnhandledException();
654 /// <summary>Stop the current callback call.
655 /// This stops the current callback call. Any other callbacks for the current event will not be called. This is useful when you want to filter out events. Just add higher priority events and call this under certain conditions to block a certain event.
656 /// (Since EFL 1.22)</summary>
657 virtual public void EventCallbackStop() {
658 Efl.Object.NativeMethods.efl_event_callback_stop_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
659 Eina.Error.RaiseIfUnhandledException();
661 /// <summary>Remove an event callback forwarder for a specified event and object.
662 /// (Since EFL 1.22)</summary>
663 /// <param name="desc">The description of the event to listen to</param>
664 /// <param name="new_obj">The object to emit events from</param>
665 virtual public void DelEventCallbackForwarder(Efl.EventDescription desc, Efl.Object new_obj) {
666 var _in_desc = Eina.PrimitiveConversion.ManagedToPointerAlloc(desc);
667 Efl.Object.NativeMethods.efl_event_callback_forwarder_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_desc, new_obj);
668 Eina.Error.RaiseIfUnhandledException();
670 /// <summary>Get an iterator on all childrens
671 /// (Since EFL 1.22)</summary>
672 /// <returns>Children iterator</returns>
673 virtual public Eina.Iterator<Efl.Object> NewChildrenIterator() {
674 var _ret_var = Efl.Object.NativeMethods.efl_children_iterator_new_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
675 Eina.Error.RaiseIfUnhandledException();
676 return new Eina.Iterator<Efl.Object>(_ret_var, true, false);
678 /// <summary>Make an object a composite object of another.
679 /// The class of comp_obj must be part of the extensions of the class of the parent. It isn't possible to attach more then 1 composite of the same class. This function also sets the parent of comp_obj to parent.
681 /// See <see cref="Efl.Object.CompositeDetach"/>, <see cref="Efl.Object.IsCompositePart"/>.
682 /// (Since EFL 1.22)</summary>
683 /// <param name="comp_obj">the object that will be used to composite the parent.</param>
684 /// <returns><c>true</c> if successful. <c>false</c> otherwise.</returns>
685 virtual public bool AttachComposite(Efl.Object comp_obj) {
686 var _ret_var = Efl.Object.NativeMethods.efl_composite_attach_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),comp_obj);
687 Eina.Error.RaiseIfUnhandledException();
690 /// <summary>Detach a composite object from another object.
691 /// This functions also sets the parent of comp_obj to <c>null</c>.
693 /// See <see cref="Efl.Object.AttachComposite"/>, <see cref="Efl.Object.IsCompositePart"/>.
694 /// (Since EFL 1.22)</summary>
695 /// <param name="comp_obj">The object that will be removed from the parent.</param>
696 /// <returns><c>true</c> if successful. <c>false</c> otherwise.</returns>
697 virtual public bool CompositeDetach(Efl.Object comp_obj) {
698 var _ret_var = Efl.Object.NativeMethods.efl_composite_detach_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),comp_obj);
699 Eina.Error.RaiseIfUnhandledException();
702 /// <summary>Check if an object is part of a composite object.
703 /// See <see cref="Efl.Object.AttachComposite"/>, <see cref="Efl.Object.IsCompositePart"/>.
704 /// (Since EFL 1.22)</summary>
705 /// <returns><c>true</c> if it is. <c>false</c> otherwise.</returns>
706 virtual public bool IsCompositePart() {
707 var _ret_var = Efl.Object.NativeMethods.efl_composite_part_is_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
708 Eina.Error.RaiseIfUnhandledException();
711 /// <summary>The parent of an object.
712 /// Parents keep references to their children and will release these references when destroyed. In this way, objects can be assigned to a parent upon creation, tying their life cycle so the programmer does not need to worry about destroying the child object. In order to destroy an object before its parent, set the parent to <c>NULL</c> and use efl_unref(), or use efl_del() directly.
714 /// The Eo parent is conceptually user set. That means that a parent should not be changed behind the scenes in an unexpected way.
716 /// For example: If you have a widget which can swallow objects into an internal box, the parent of the swallowed objects should be the widget, not the internal box. The user is not even aware of the existence of the internal box.
717 /// (Since EFL 1.22)</summary>
718 /// <value>The new parent.</value>
719 public Efl.Object Parent {
720 get { return GetParent(); }
721 set { SetParent(value); }
723 /// <summary>The name of the object.
724 /// Every EFL object can have a name. Names may not contain the following characters: / ? * [ ] ! : Using any of these in a name will result in undefined behavior later on. An empty string is considered the same as a <c>NULL</c> string or no string for the name.
725 /// (Since EFL 1.22)</summary>
726 /// <value>The name.</value>
727 public System.String Name {
728 get { return GetName(); }
729 set { SetName(value); }
731 /// <summary>A human readable comment for the object.
732 /// Every EFL object can have a comment. This is intended for developers and debugging. An empty string is considered the same as a <c>NULL</c> string or no string for the comment.
733 /// (Since EFL 1.22)</summary>
734 /// <value>The comment.</value>
735 public System.String Comment {
736 get { return GetComment(); }
737 set { SetComment(value); }
739 /// <summary>Return the global count of freeze events.
740 /// This is the amount of calls to <see cref="Efl.Object.FreezeEventGlobal"/> minus the amount of calls to <see cref="Efl.Object.ThawEventGlobal"/>. EFL will not emit any event while this count is > 0 (Except events marked <c>hot</c>).
741 /// (Since EFL 1.22)</summary>
742 /// <value>The global event freeze count.</value>
743 public static int EventGlobalFreezeCount {
744 get { return GetEventGlobalFreezeCount(); }
746 /// <summary>Return the count of freeze events for this object.
747 /// This is the amount of calls to <see cref="Efl.Object.FreezeEvent"/> minus the amount of calls to <see cref="Efl.Object.ThawEvent"/>. This object will not emit any event while this count is > 0 (Except events marked <c>hot</c>).
748 /// (Since EFL 1.22)</summary>
749 /// <value>The event freeze count of this object.</value>
750 public int EventFreezeCount {
751 get { return GetEventFreezeCount(); }
753 /// <summary><c>true</c> if the object has been finalized, i.e. construction has finished. See the Life Cycle section in this class' description.
754 /// (Since EFL 1.22)</summary>
755 /// <value><c>true</c> if the object is finalized, <c>false</c> otherwise.</value>
756 public bool Finalized {
757 get { return GetFinalized(); }
759 /// <summary><c>true</c> if the object has been invalidated, i.e. it has no parent. See the Life Cycle section in this class' description.
760 /// (Since EFL 1.22)</summary>
761 /// <value><c>true</c> if the object is invalidated, <c>false</c> otherwise.</value>
762 public bool Invalidated {
763 get { return GetInvalidated(); }
765 /// <summary><c>true</c> if the object has started the invalidation phase, but has not finished it yet. Note: This might become <c>true</c> before <see cref="Efl.Object.Invalidate"/> is called. See the Life Cycle section in this class' description.
766 /// (Since EFL 1.22)</summary>
767 /// <value><c>true</c> if the object is invalidating, <c>false</c> otherwise.</value>
768 public bool Invalidating {
769 get { return GetInvalidating(); }
771 /// <summary>Allow an object to be deleted by unref even if it has a parent.
772 /// This simply hides the error message warning that an object being destroyed still has a parent. This property is false by default.
774 /// In a normal object use case, when ownership of an object is given to a caller, said ownership should be released with efl_unref(). If the object has a parent, this will print error messages, as efl_unref() is stealing the ref from the parent.
776 /// Warning: Use this function very carefully, unless you're absolutely sure of what you are doing.
777 /// (Since EFL 1.22)</summary>
778 /// <value>Whether to allow efl_unref() to zero even if <see cref="Efl.Object.Parent"/> is not <c>null</c>.</value>
779 public bool AllowParentUnref {
780 get { return GetAllowParentUnref(); }
781 set { SetAllowParentUnref(value); }
783 private static IntPtr GetEflClassStatic()
785 return Efl.Object.efl_object_class_get();
787 /// <summary>Wrapper for native methods and virtual method delegates.
788 /// For internal use by generated code only.</summary>
789 public class NativeMethods : Efl.Eo.NativeClass
791 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Eo);
792 /// <summary>Gets the list of Eo operations to override.</summary>
793 /// <returns>The list of Eo operations to be overload.</returns>
794 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
796 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
797 var methods = Efl.Eo.Globals.GetUserMethods(type);
799 if (efl_parent_get_static_delegate == null)
801 efl_parent_get_static_delegate = new efl_parent_get_delegate(parent_get);
804 if (methods.FirstOrDefault(m => m.Name == "GetParent") != null)
806 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_parent_get_static_delegate) });
809 if (efl_parent_set_static_delegate == null)
811 efl_parent_set_static_delegate = new efl_parent_set_delegate(parent_set);
814 if (methods.FirstOrDefault(m => m.Name == "SetParent") != null)
816 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_parent_set"), func = Marshal.GetFunctionPointerForDelegate(efl_parent_set_static_delegate) });
819 if (efl_name_get_static_delegate == null)
821 efl_name_get_static_delegate = new efl_name_get_delegate(name_get);
824 if (methods.FirstOrDefault(m => m.Name == "GetName") != null)
826 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_name_get_static_delegate) });
829 if (efl_name_set_static_delegate == null)
831 efl_name_set_static_delegate = new efl_name_set_delegate(name_set);
834 if (methods.FirstOrDefault(m => m.Name == "SetName") != null)
836 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_name_set"), func = Marshal.GetFunctionPointerForDelegate(efl_name_set_static_delegate) });
839 if (efl_comment_get_static_delegate == null)
841 efl_comment_get_static_delegate = new efl_comment_get_delegate(comment_get);
844 if (methods.FirstOrDefault(m => m.Name == "GetComment") != null)
846 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_comment_get"), func = Marshal.GetFunctionPointerForDelegate(efl_comment_get_static_delegate) });
849 if (efl_comment_set_static_delegate == null)
851 efl_comment_set_static_delegate = new efl_comment_set_delegate(comment_set);
854 if (methods.FirstOrDefault(m => m.Name == "SetComment") != null)
856 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_comment_set"), func = Marshal.GetFunctionPointerForDelegate(efl_comment_set_static_delegate) });
859 if (efl_event_freeze_count_get_static_delegate == null)
861 efl_event_freeze_count_get_static_delegate = new efl_event_freeze_count_get_delegate(event_freeze_count_get);
864 if (methods.FirstOrDefault(m => m.Name == "GetEventFreezeCount") != null)
866 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_event_freeze_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_event_freeze_count_get_static_delegate) });
869 if (efl_finalized_get_static_delegate == null)
871 efl_finalized_get_static_delegate = new efl_finalized_get_delegate(finalized_get);
874 if (methods.FirstOrDefault(m => m.Name == "GetFinalized") != null)
876 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_finalized_get"), func = Marshal.GetFunctionPointerForDelegate(efl_finalized_get_static_delegate) });
879 if (efl_invalidated_get_static_delegate == null)
881 efl_invalidated_get_static_delegate = new efl_invalidated_get_delegate(invalidated_get);
884 if (methods.FirstOrDefault(m => m.Name == "GetInvalidated") != null)
886 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_invalidated_get"), func = Marshal.GetFunctionPointerForDelegate(efl_invalidated_get_static_delegate) });
889 if (efl_invalidating_get_static_delegate == null)
891 efl_invalidating_get_static_delegate = new efl_invalidating_get_delegate(invalidating_get);
894 if (methods.FirstOrDefault(m => m.Name == "GetInvalidating") != null)
896 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_invalidating_get"), func = Marshal.GetFunctionPointerForDelegate(efl_invalidating_get_static_delegate) });
899 if (efl_allow_parent_unref_get_static_delegate == null)
901 efl_allow_parent_unref_get_static_delegate = new efl_allow_parent_unref_get_delegate(allow_parent_unref_get);
904 if (methods.FirstOrDefault(m => m.Name == "GetAllowParentUnref") != null)
906 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_allow_parent_unref_get"), func = Marshal.GetFunctionPointerForDelegate(efl_allow_parent_unref_get_static_delegate) });
909 if (efl_allow_parent_unref_set_static_delegate == null)
911 efl_allow_parent_unref_set_static_delegate = new efl_allow_parent_unref_set_delegate(allow_parent_unref_set);
914 if (methods.FirstOrDefault(m => m.Name == "SetAllowParentUnref") != null)
916 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_allow_parent_unref_set"), func = Marshal.GetFunctionPointerForDelegate(efl_allow_parent_unref_set_static_delegate) });
919 if (efl_debug_name_override_static_delegate == null)
921 efl_debug_name_override_static_delegate = new efl_debug_name_override_delegate(debug_name_override);
924 if (methods.FirstOrDefault(m => m.Name == "DebugNameOverride") != null)
926 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_debug_name_override"), func = Marshal.GetFunctionPointerForDelegate(efl_debug_name_override_static_delegate) });
929 if (efl_provider_find_static_delegate == null)
931 efl_provider_find_static_delegate = new efl_provider_find_delegate(provider_find);
934 if (methods.FirstOrDefault(m => m.Name == "FindProvider") != null)
936 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_provider_find"), func = Marshal.GetFunctionPointerForDelegate(efl_provider_find_static_delegate) });
939 if (efl_destructor_static_delegate == null)
941 efl_destructor_static_delegate = new efl_destructor_delegate(destructor);
944 if (methods.FirstOrDefault(m => m.Name == "Destructor") != null)
946 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_destructor"), func = Marshal.GetFunctionPointerForDelegate(efl_destructor_static_delegate) });
949 if (efl_finalize_static_delegate == null)
951 efl_finalize_static_delegate = new efl_finalize_delegate(finalize);
954 if (methods.FirstOrDefault(m => m.Name == "FinalizeAdd") != null)
956 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_finalize"), func = Marshal.GetFunctionPointerForDelegate(efl_finalize_static_delegate) });
959 if (efl_invalidate_static_delegate == null)
961 efl_invalidate_static_delegate = new efl_invalidate_delegate(invalidate);
964 if (methods.FirstOrDefault(m => m.Name == "Invalidate") != null)
966 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_invalidate"), func = Marshal.GetFunctionPointerForDelegate(efl_invalidate_static_delegate) });
969 if (efl_name_find_static_delegate == null)
971 efl_name_find_static_delegate = new efl_name_find_delegate(name_find);
974 if (methods.FirstOrDefault(m => m.Name == "FindName") != null)
976 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_name_find"), func = Marshal.GetFunctionPointerForDelegate(efl_name_find_static_delegate) });
979 if (efl_event_thaw_static_delegate == null)
981 efl_event_thaw_static_delegate = new efl_event_thaw_delegate(event_thaw);
984 if (methods.FirstOrDefault(m => m.Name == "ThawEvent") != null)
986 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_event_thaw"), func = Marshal.GetFunctionPointerForDelegate(efl_event_thaw_static_delegate) });
989 if (efl_event_freeze_static_delegate == null)
991 efl_event_freeze_static_delegate = new efl_event_freeze_delegate(event_freeze);
994 if (methods.FirstOrDefault(m => m.Name == "FreezeEvent") != null)
996 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_event_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_event_freeze_static_delegate) });
999 if (efl_event_callback_stop_static_delegate == null)
1001 efl_event_callback_stop_static_delegate = new efl_event_callback_stop_delegate(event_callback_stop);
1004 if (methods.FirstOrDefault(m => m.Name == "EventCallbackStop") != null)
1006 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_event_callback_stop"), func = Marshal.GetFunctionPointerForDelegate(efl_event_callback_stop_static_delegate) });
1009 if (efl_event_callback_forwarder_del_static_delegate == null)
1011 efl_event_callback_forwarder_del_static_delegate = new efl_event_callback_forwarder_del_delegate(event_callback_forwarder_del);
1014 if (methods.FirstOrDefault(m => m.Name == "DelEventCallbackForwarder") != null)
1016 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_event_callback_forwarder_del"), func = Marshal.GetFunctionPointerForDelegate(efl_event_callback_forwarder_del_static_delegate) });
1019 if (efl_children_iterator_new_static_delegate == null)
1021 efl_children_iterator_new_static_delegate = new efl_children_iterator_new_delegate(children_iterator_new);
1024 if (methods.FirstOrDefault(m => m.Name == "NewChildrenIterator") != null)
1026 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_children_iterator_new"), func = Marshal.GetFunctionPointerForDelegate(efl_children_iterator_new_static_delegate) });
1029 if (efl_composite_attach_static_delegate == null)
1031 efl_composite_attach_static_delegate = new efl_composite_attach_delegate(composite_attach);
1034 if (methods.FirstOrDefault(m => m.Name == "AttachComposite") != null)
1036 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_composite_attach"), func = Marshal.GetFunctionPointerForDelegate(efl_composite_attach_static_delegate) });
1039 if (efl_composite_detach_static_delegate == null)
1041 efl_composite_detach_static_delegate = new efl_composite_detach_delegate(composite_detach);
1044 if (methods.FirstOrDefault(m => m.Name == "CompositeDetach") != null)
1046 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_composite_detach"), func = Marshal.GetFunctionPointerForDelegate(efl_composite_detach_static_delegate) });
1049 if (efl_composite_part_is_static_delegate == null)
1051 efl_composite_part_is_static_delegate = new efl_composite_part_is_delegate(composite_part_is);
1054 if (methods.FirstOrDefault(m => m.Name == "IsCompositePart") != null)
1056 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_composite_part_is"), func = Marshal.GetFunctionPointerForDelegate(efl_composite_part_is_static_delegate) });
1061 /// <summary>Returns the Eo class for the native methods of this class.</summary>
1062 /// <returns>The native class pointer.</returns>
1063 public override IntPtr GetEflClass()
1065 return Efl.Object.efl_object_class_get();
1068 #pragma warning disable CA1707, CS1591, SA1300, SA1600
1070 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1071 private delegate Efl.Object efl_parent_get_delegate(System.IntPtr obj, System.IntPtr pd);
1073 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1074 public delegate Efl.Object efl_parent_get_api_delegate(System.IntPtr obj);
1076 public static Efl.Eo.FunctionWrapper<efl_parent_get_api_delegate> efl_parent_get_ptr = new Efl.Eo.FunctionWrapper<efl_parent_get_api_delegate>(Module, "efl_parent_get");
1078 private static Efl.Object parent_get(System.IntPtr obj, System.IntPtr pd)
1080 Eina.Log.Debug("function efl_parent_get was called");
1081 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1084 Efl.Object _ret_var = default(Efl.Object);
1087 _ret_var = ((Object)ws.Target).GetParent();
1091 Eina.Log.Warning($"Callback error: {e.ToString()}");
1092 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1100 return efl_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1104 private static efl_parent_get_delegate efl_parent_get_static_delegate;
1107 private delegate void efl_parent_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Object parent);
1110 public delegate void efl_parent_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Object parent);
1112 public static Efl.Eo.FunctionWrapper<efl_parent_set_api_delegate> efl_parent_set_ptr = new Efl.Eo.FunctionWrapper<efl_parent_set_api_delegate>(Module, "efl_parent_set");
1114 private static void parent_set(System.IntPtr obj, System.IntPtr pd, Efl.Object parent)
1116 Eina.Log.Debug("function efl_parent_set was called");
1117 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1123 ((Object)ws.Target).SetParent(parent);
1127 Eina.Log.Warning($"Callback error: {e.ToString()}");
1128 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1135 efl_parent_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent);
1139 private static efl_parent_set_delegate efl_parent_set_static_delegate;
1141 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
1142 private delegate System.String efl_name_get_delegate(System.IntPtr obj, System.IntPtr pd);
1144 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
1145 public delegate System.String efl_name_get_api_delegate(System.IntPtr obj);
1147 public static Efl.Eo.FunctionWrapper<efl_name_get_api_delegate> efl_name_get_ptr = new Efl.Eo.FunctionWrapper<efl_name_get_api_delegate>(Module, "efl_name_get");
1149 private static System.String name_get(System.IntPtr obj, System.IntPtr pd)
1151 Eina.Log.Debug("function efl_name_get was called");
1152 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1155 System.String _ret_var = default(System.String);
1158 _ret_var = ((Object)ws.Target).GetName();
1162 Eina.Log.Warning($"Callback error: {e.ToString()}");
1163 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1171 return efl_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1175 private static efl_name_get_delegate efl_name_get_static_delegate;
1178 private delegate void efl_name_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name);
1181 public delegate void efl_name_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name);
1183 public static Efl.Eo.FunctionWrapper<efl_name_set_api_delegate> efl_name_set_ptr = new Efl.Eo.FunctionWrapper<efl_name_set_api_delegate>(Module, "efl_name_set");
1185 private static void name_set(System.IntPtr obj, System.IntPtr pd, System.String name)
1187 Eina.Log.Debug("function efl_name_set was called");
1188 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1194 ((Object)ws.Target).SetName(name);
1198 Eina.Log.Warning($"Callback error: {e.ToString()}");
1199 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1206 efl_name_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name);
1210 private static efl_name_set_delegate efl_name_set_static_delegate;
1212 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
1213 private delegate System.String efl_comment_get_delegate(System.IntPtr obj, System.IntPtr pd);
1215 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
1216 public delegate System.String efl_comment_get_api_delegate(System.IntPtr obj);
1218 public static Efl.Eo.FunctionWrapper<efl_comment_get_api_delegate> efl_comment_get_ptr = new Efl.Eo.FunctionWrapper<efl_comment_get_api_delegate>(Module, "efl_comment_get");
1220 private static System.String comment_get(System.IntPtr obj, System.IntPtr pd)
1222 Eina.Log.Debug("function efl_comment_get was called");
1223 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1226 System.String _ret_var = default(System.String);
1229 _ret_var = ((Object)ws.Target).GetComment();
1233 Eina.Log.Warning($"Callback error: {e.ToString()}");
1234 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1242 return efl_comment_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1246 private static efl_comment_get_delegate efl_comment_get_static_delegate;
1249 private delegate void efl_comment_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String comment);
1252 public delegate void efl_comment_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String comment);
1254 public static Efl.Eo.FunctionWrapper<efl_comment_set_api_delegate> efl_comment_set_ptr = new Efl.Eo.FunctionWrapper<efl_comment_set_api_delegate>(Module, "efl_comment_set");
1256 private static void comment_set(System.IntPtr obj, System.IntPtr pd, System.String comment)
1258 Eina.Log.Debug("function efl_comment_set was called");
1259 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1265 ((Object)ws.Target).SetComment(comment);
1269 Eina.Log.Warning($"Callback error: {e.ToString()}");
1270 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1277 efl_comment_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), comment);
1281 private static efl_comment_set_delegate efl_comment_set_static_delegate;
1284 private delegate int efl_event_global_freeze_count_get_delegate();
1287 public delegate int efl_event_global_freeze_count_get_api_delegate();
1289 public static Efl.Eo.FunctionWrapper<efl_event_global_freeze_count_get_api_delegate> efl_event_global_freeze_count_get_ptr = new Efl.Eo.FunctionWrapper<efl_event_global_freeze_count_get_api_delegate>(Module, "efl_event_global_freeze_count_get");
1291 private static int event_global_freeze_count_get(System.IntPtr obj, System.IntPtr pd)
1293 Eina.Log.Debug("function efl_event_global_freeze_count_get was called");
1294 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1297 int _ret_var = default(int);
1300 _ret_var = Object.GetEventGlobalFreezeCount();
1304 Eina.Log.Warning($"Callback error: {e.ToString()}");
1305 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1313 return efl_event_global_freeze_count_get_ptr.Value.Delegate();
1318 private delegate int efl_event_freeze_count_get_delegate(System.IntPtr obj, System.IntPtr pd);
1321 public delegate int efl_event_freeze_count_get_api_delegate(System.IntPtr obj);
1323 public static Efl.Eo.FunctionWrapper<efl_event_freeze_count_get_api_delegate> efl_event_freeze_count_get_ptr = new Efl.Eo.FunctionWrapper<efl_event_freeze_count_get_api_delegate>(Module, "efl_event_freeze_count_get");
1325 private static int event_freeze_count_get(System.IntPtr obj, System.IntPtr pd)
1327 Eina.Log.Debug("function efl_event_freeze_count_get was called");
1328 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1331 int _ret_var = default(int);
1334 _ret_var = ((Object)ws.Target).GetEventFreezeCount();
1338 Eina.Log.Warning($"Callback error: {e.ToString()}");
1339 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1347 return efl_event_freeze_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1351 private static efl_event_freeze_count_get_delegate efl_event_freeze_count_get_static_delegate;
1353 [return: MarshalAs(UnmanagedType.U1)]
1354 private delegate bool efl_finalized_get_delegate(System.IntPtr obj, System.IntPtr pd);
1356 [return: MarshalAs(UnmanagedType.U1)]
1357 public delegate bool efl_finalized_get_api_delegate(System.IntPtr obj);
1359 public static Efl.Eo.FunctionWrapper<efl_finalized_get_api_delegate> efl_finalized_get_ptr = new Efl.Eo.FunctionWrapper<efl_finalized_get_api_delegate>(Module, "efl_finalized_get");
1361 private static bool finalized_get(System.IntPtr obj, System.IntPtr pd)
1363 Eina.Log.Debug("function efl_finalized_get was called");
1364 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1367 bool _ret_var = default(bool);
1370 _ret_var = ((Object)ws.Target).GetFinalized();
1374 Eina.Log.Warning($"Callback error: {e.ToString()}");
1375 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1383 return efl_finalized_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1387 private static efl_finalized_get_delegate efl_finalized_get_static_delegate;
1389 [return: MarshalAs(UnmanagedType.U1)]
1390 private delegate bool efl_invalidated_get_delegate(System.IntPtr obj, System.IntPtr pd);
1392 [return: MarshalAs(UnmanagedType.U1)]
1393 public delegate bool efl_invalidated_get_api_delegate(System.IntPtr obj);
1395 public static Efl.Eo.FunctionWrapper<efl_invalidated_get_api_delegate> efl_invalidated_get_ptr = new Efl.Eo.FunctionWrapper<efl_invalidated_get_api_delegate>(Module, "efl_invalidated_get");
1397 private static bool invalidated_get(System.IntPtr obj, System.IntPtr pd)
1399 Eina.Log.Debug("function efl_invalidated_get was called");
1400 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1403 bool _ret_var = default(bool);
1406 _ret_var = ((Object)ws.Target).GetInvalidated();
1410 Eina.Log.Warning($"Callback error: {e.ToString()}");
1411 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1419 return efl_invalidated_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1423 private static efl_invalidated_get_delegate efl_invalidated_get_static_delegate;
1425 [return: MarshalAs(UnmanagedType.U1)]
1426 private delegate bool efl_invalidating_get_delegate(System.IntPtr obj, System.IntPtr pd);
1428 [return: MarshalAs(UnmanagedType.U1)]
1429 public delegate bool efl_invalidating_get_api_delegate(System.IntPtr obj);
1431 public static Efl.Eo.FunctionWrapper<efl_invalidating_get_api_delegate> efl_invalidating_get_ptr = new Efl.Eo.FunctionWrapper<efl_invalidating_get_api_delegate>(Module, "efl_invalidating_get");
1433 private static bool invalidating_get(System.IntPtr obj, System.IntPtr pd)
1435 Eina.Log.Debug("function efl_invalidating_get was called");
1436 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1439 bool _ret_var = default(bool);
1442 _ret_var = ((Object)ws.Target).GetInvalidating();
1446 Eina.Log.Warning($"Callback error: {e.ToString()}");
1447 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1455 return efl_invalidating_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1459 private static efl_invalidating_get_delegate efl_invalidating_get_static_delegate;
1461 [return: MarshalAs(UnmanagedType.U1)]
1462 private delegate bool efl_allow_parent_unref_get_delegate(System.IntPtr obj, System.IntPtr pd);
1464 [return: MarshalAs(UnmanagedType.U1)]
1465 public delegate bool efl_allow_parent_unref_get_api_delegate(System.IntPtr obj);
1467 public static Efl.Eo.FunctionWrapper<efl_allow_parent_unref_get_api_delegate> efl_allow_parent_unref_get_ptr = new Efl.Eo.FunctionWrapper<efl_allow_parent_unref_get_api_delegate>(Module, "efl_allow_parent_unref_get");
1469 private static bool allow_parent_unref_get(System.IntPtr obj, System.IntPtr pd)
1471 Eina.Log.Debug("function efl_allow_parent_unref_get was called");
1472 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1475 bool _ret_var = default(bool);
1478 _ret_var = ((Object)ws.Target).GetAllowParentUnref();
1482 Eina.Log.Warning($"Callback error: {e.ToString()}");
1483 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1491 return efl_allow_parent_unref_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1495 private static efl_allow_parent_unref_get_delegate efl_allow_parent_unref_get_static_delegate;
1498 private delegate void efl_allow_parent_unref_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool allow);
1501 public delegate void efl_allow_parent_unref_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool allow);
1503 public static Efl.Eo.FunctionWrapper<efl_allow_parent_unref_set_api_delegate> efl_allow_parent_unref_set_ptr = new Efl.Eo.FunctionWrapper<efl_allow_parent_unref_set_api_delegate>(Module, "efl_allow_parent_unref_set");
1505 private static void allow_parent_unref_set(System.IntPtr obj, System.IntPtr pd, bool allow)
1507 Eina.Log.Debug("function efl_allow_parent_unref_set was called");
1508 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1514 ((Object)ws.Target).SetAllowParentUnref(allow);
1518 Eina.Log.Warning($"Callback error: {e.ToString()}");
1519 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1526 efl_allow_parent_unref_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), allow);
1530 private static efl_allow_parent_unref_set_delegate efl_allow_parent_unref_set_static_delegate;
1533 private delegate void efl_debug_name_override_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StrbufKeepOwnershipMarshaler))] Eina.Strbuf sb);
1536 public delegate void efl_debug_name_override_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StrbufKeepOwnershipMarshaler))] Eina.Strbuf sb);
1538 public static Efl.Eo.FunctionWrapper<efl_debug_name_override_api_delegate> efl_debug_name_override_ptr = new Efl.Eo.FunctionWrapper<efl_debug_name_override_api_delegate>(Module, "efl_debug_name_override");
1540 private static void debug_name_override(System.IntPtr obj, System.IntPtr pd, Eina.Strbuf sb)
1542 Eina.Log.Debug("function efl_debug_name_override was called");
1543 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1549 ((Object)ws.Target).DebugNameOverride(sb);
1553 Eina.Log.Warning($"Callback error: {e.ToString()}");
1554 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1561 efl_debug_name_override_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sb);
1565 private static efl_debug_name_override_delegate efl_debug_name_override_static_delegate;
1567 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1568 private delegate Efl.Object efl_provider_find_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass);
1570 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1571 public delegate Efl.Object efl_provider_find_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass);
1573 public static Efl.Eo.FunctionWrapper<efl_provider_find_api_delegate> efl_provider_find_ptr = new Efl.Eo.FunctionWrapper<efl_provider_find_api_delegate>(Module, "efl_provider_find");
1575 private static Efl.Object provider_find(System.IntPtr obj, System.IntPtr pd, Type klass)
1577 Eina.Log.Debug("function efl_provider_find was called");
1578 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1581 Efl.Object _ret_var = default(Efl.Object);
1584 _ret_var = ((Object)ws.Target).FindProvider(klass);
1588 Eina.Log.Warning($"Callback error: {e.ToString()}");
1589 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1597 return efl_provider_find_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass);
1601 private static efl_provider_find_delegate efl_provider_find_static_delegate;
1604 private delegate void efl_destructor_delegate(System.IntPtr obj, System.IntPtr pd);
1607 public delegate void efl_destructor_api_delegate(System.IntPtr obj);
1609 public static Efl.Eo.FunctionWrapper<efl_destructor_api_delegate> efl_destructor_ptr = new Efl.Eo.FunctionWrapper<efl_destructor_api_delegate>(Module, "efl_destructor");
1611 private static void destructor(System.IntPtr obj, System.IntPtr pd)
1613 Eina.Log.Debug("function efl_destructor was called");
1614 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1620 ((Object)ws.Target).Destructor();
1624 Eina.Log.Warning($"Callback error: {e.ToString()}");
1625 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1632 efl_destructor_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1636 private static efl_destructor_delegate efl_destructor_static_delegate;
1638 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1639 private delegate Efl.Object efl_finalize_delegate(System.IntPtr obj, System.IntPtr pd);
1641 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1642 public delegate Efl.Object efl_finalize_api_delegate(System.IntPtr obj);
1644 public static Efl.Eo.FunctionWrapper<efl_finalize_api_delegate> efl_finalize_ptr = new Efl.Eo.FunctionWrapper<efl_finalize_api_delegate>(Module, "efl_finalize");
1646 private static Efl.Object finalize(System.IntPtr obj, System.IntPtr pd)
1648 Eina.Log.Debug("function efl_finalize was called");
1649 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1652 Efl.Object _ret_var = default(Efl.Object);
1655 _ret_var = ((Object)ws.Target).FinalizeAdd();
1659 Eina.Log.Warning($"Callback error: {e.ToString()}");
1660 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1668 return efl_finalize_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1672 private static efl_finalize_delegate efl_finalize_static_delegate;
1675 private delegate void efl_invalidate_delegate(System.IntPtr obj, System.IntPtr pd);
1678 public delegate void efl_invalidate_api_delegate(System.IntPtr obj);
1680 public static Efl.Eo.FunctionWrapper<efl_invalidate_api_delegate> efl_invalidate_ptr = new Efl.Eo.FunctionWrapper<efl_invalidate_api_delegate>(Module, "efl_invalidate");
1682 private static void invalidate(System.IntPtr obj, System.IntPtr pd)
1684 Eina.Log.Debug("function efl_invalidate was called");
1685 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1691 ((Object)ws.Target).Invalidate();
1695 Eina.Log.Warning($"Callback error: {e.ToString()}");
1696 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1703 efl_invalidate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1707 private static efl_invalidate_delegate efl_invalidate_static_delegate;
1709 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1710 private delegate Efl.Object efl_name_find_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String search);
1712 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
1713 public delegate Efl.Object efl_name_find_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String search);
1715 public static Efl.Eo.FunctionWrapper<efl_name_find_api_delegate> efl_name_find_ptr = new Efl.Eo.FunctionWrapper<efl_name_find_api_delegate>(Module, "efl_name_find");
1717 private static Efl.Object name_find(System.IntPtr obj, System.IntPtr pd, System.String search)
1719 Eina.Log.Debug("function efl_name_find was called");
1720 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1723 Efl.Object _ret_var = default(Efl.Object);
1726 _ret_var = ((Object)ws.Target).FindName(search);
1730 Eina.Log.Warning($"Callback error: {e.ToString()}");
1731 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1739 return efl_name_find_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), search);
1743 private static efl_name_find_delegate efl_name_find_static_delegate;
1746 private delegate void efl_event_thaw_delegate(System.IntPtr obj, System.IntPtr pd);
1749 public delegate void efl_event_thaw_api_delegate(System.IntPtr obj);
1751 public static Efl.Eo.FunctionWrapper<efl_event_thaw_api_delegate> efl_event_thaw_ptr = new Efl.Eo.FunctionWrapper<efl_event_thaw_api_delegate>(Module, "efl_event_thaw");
1753 private static void event_thaw(System.IntPtr obj, System.IntPtr pd)
1755 Eina.Log.Debug("function efl_event_thaw was called");
1756 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1762 ((Object)ws.Target).ThawEvent();
1766 Eina.Log.Warning($"Callback error: {e.ToString()}");
1767 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1774 efl_event_thaw_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1778 private static efl_event_thaw_delegate efl_event_thaw_static_delegate;
1781 private delegate void efl_event_freeze_delegate(System.IntPtr obj, System.IntPtr pd);
1784 public delegate void efl_event_freeze_api_delegate(System.IntPtr obj);
1786 public static Efl.Eo.FunctionWrapper<efl_event_freeze_api_delegate> efl_event_freeze_ptr = new Efl.Eo.FunctionWrapper<efl_event_freeze_api_delegate>(Module, "efl_event_freeze");
1788 private static void event_freeze(System.IntPtr obj, System.IntPtr pd)
1790 Eina.Log.Debug("function efl_event_freeze was called");
1791 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1797 ((Object)ws.Target).FreezeEvent();
1801 Eina.Log.Warning($"Callback error: {e.ToString()}");
1802 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1809 efl_event_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1813 private static efl_event_freeze_delegate efl_event_freeze_static_delegate;
1816 private delegate void efl_event_global_thaw_delegate();
1819 public delegate void efl_event_global_thaw_api_delegate();
1821 public static Efl.Eo.FunctionWrapper<efl_event_global_thaw_api_delegate> efl_event_global_thaw_ptr = new Efl.Eo.FunctionWrapper<efl_event_global_thaw_api_delegate>(Module, "efl_event_global_thaw");
1823 private static void event_global_thaw(System.IntPtr obj, System.IntPtr pd)
1825 Eina.Log.Debug("function efl_event_global_thaw was called");
1826 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1832 Object.ThawEventGlobal();
1836 Eina.Log.Warning($"Callback error: {e.ToString()}");
1837 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1844 efl_event_global_thaw_ptr.Value.Delegate();
1849 private delegate void efl_event_global_freeze_delegate();
1852 public delegate void efl_event_global_freeze_api_delegate();
1854 public static Efl.Eo.FunctionWrapper<efl_event_global_freeze_api_delegate> efl_event_global_freeze_ptr = new Efl.Eo.FunctionWrapper<efl_event_global_freeze_api_delegate>(Module, "efl_event_global_freeze");
1856 private static void event_global_freeze(System.IntPtr obj, System.IntPtr pd)
1858 Eina.Log.Debug("function efl_event_global_freeze was called");
1859 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1865 Object.FreezeEventGlobal();
1869 Eina.Log.Warning($"Callback error: {e.ToString()}");
1870 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1877 efl_event_global_freeze_ptr.Value.Delegate();
1882 private delegate void efl_event_callback_stop_delegate(System.IntPtr obj, System.IntPtr pd);
1885 public delegate void efl_event_callback_stop_api_delegate(System.IntPtr obj);
1887 public static Efl.Eo.FunctionWrapper<efl_event_callback_stop_api_delegate> efl_event_callback_stop_ptr = new Efl.Eo.FunctionWrapper<efl_event_callback_stop_api_delegate>(Module, "efl_event_callback_stop");
1889 private static void event_callback_stop(System.IntPtr obj, System.IntPtr pd)
1891 Eina.Log.Debug("function efl_event_callback_stop was called");
1892 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1898 ((Object)ws.Target).EventCallbackStop();
1902 Eina.Log.Warning($"Callback error: {e.ToString()}");
1903 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1910 efl_event_callback_stop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1914 private static efl_event_callback_stop_delegate efl_event_callback_stop_static_delegate;
1917 private delegate void efl_event_callback_forwarder_del_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr desc, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Object new_obj);
1920 public delegate void efl_event_callback_forwarder_del_api_delegate(System.IntPtr obj, System.IntPtr desc, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Object new_obj);
1922 public static Efl.Eo.FunctionWrapper<efl_event_callback_forwarder_del_api_delegate> efl_event_callback_forwarder_del_ptr = new Efl.Eo.FunctionWrapper<efl_event_callback_forwarder_del_api_delegate>(Module, "efl_event_callback_forwarder_del");
1924 private static void event_callback_forwarder_del(System.IntPtr obj, System.IntPtr pd, System.IntPtr desc, Efl.Object new_obj)
1926 Eina.Log.Debug("function efl_event_callback_forwarder_del was called");
1927 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1930 var _in_desc = Eina.PrimitiveConversion.PointerToManaged<Efl.EventDescription>(desc);
1934 ((Object)ws.Target).DelEventCallbackForwarder(_in_desc, new_obj);
1938 Eina.Log.Warning($"Callback error: {e.ToString()}");
1939 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1946 efl_event_callback_forwarder_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), desc, new_obj);
1950 private static efl_event_callback_forwarder_del_delegate efl_event_callback_forwarder_del_static_delegate;
1953 private delegate System.IntPtr efl_children_iterator_new_delegate(System.IntPtr obj, System.IntPtr pd);
1956 public delegate System.IntPtr efl_children_iterator_new_api_delegate(System.IntPtr obj);
1958 public static Efl.Eo.FunctionWrapper<efl_children_iterator_new_api_delegate> efl_children_iterator_new_ptr = new Efl.Eo.FunctionWrapper<efl_children_iterator_new_api_delegate>(Module, "efl_children_iterator_new");
1960 private static System.IntPtr children_iterator_new(System.IntPtr obj, System.IntPtr pd)
1962 Eina.Log.Debug("function efl_children_iterator_new was called");
1963 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1966 Eina.Iterator<Efl.Object> _ret_var = default(Eina.Iterator<Efl.Object>);
1969 _ret_var = ((Object)ws.Target).NewChildrenIterator();
1973 Eina.Log.Warning($"Callback error: {e.ToString()}");
1974 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1977 _ret_var.Own = false; return _ret_var.Handle;
1982 return efl_children_iterator_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1986 private static efl_children_iterator_new_delegate efl_children_iterator_new_static_delegate;
1988 [return: MarshalAs(UnmanagedType.U1)]
1989 private delegate bool efl_composite_attach_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Object comp_obj);
1991 [return: MarshalAs(UnmanagedType.U1)]
1992 public delegate bool efl_composite_attach_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Object comp_obj);
1994 public static Efl.Eo.FunctionWrapper<efl_composite_attach_api_delegate> efl_composite_attach_ptr = new Efl.Eo.FunctionWrapper<efl_composite_attach_api_delegate>(Module, "efl_composite_attach");
1996 private static bool composite_attach(System.IntPtr obj, System.IntPtr pd, Efl.Object comp_obj)
1998 Eina.Log.Debug("function efl_composite_attach was called");
1999 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
2002 bool _ret_var = default(bool);
2005 _ret_var = ((Object)ws.Target).AttachComposite(comp_obj);
2009 Eina.Log.Warning($"Callback error: {e.ToString()}");
2010 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
2018 return efl_composite_attach_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), comp_obj);
2022 private static efl_composite_attach_delegate efl_composite_attach_static_delegate;
2024 [return: MarshalAs(UnmanagedType.U1)]
2025 private delegate bool efl_composite_detach_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Object comp_obj);
2027 [return: MarshalAs(UnmanagedType.U1)]
2028 public delegate bool efl_composite_detach_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Object comp_obj);
2030 public static Efl.Eo.FunctionWrapper<efl_composite_detach_api_delegate> efl_composite_detach_ptr = new Efl.Eo.FunctionWrapper<efl_composite_detach_api_delegate>(Module, "efl_composite_detach");
2032 private static bool composite_detach(System.IntPtr obj, System.IntPtr pd, Efl.Object comp_obj)
2034 Eina.Log.Debug("function efl_composite_detach was called");
2035 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
2038 bool _ret_var = default(bool);
2041 _ret_var = ((Object)ws.Target).CompositeDetach(comp_obj);
2045 Eina.Log.Warning($"Callback error: {e.ToString()}");
2046 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
2054 return efl_composite_detach_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), comp_obj);
2058 private static efl_composite_detach_delegate efl_composite_detach_static_delegate;
2060 [return: MarshalAs(UnmanagedType.U1)]
2061 private delegate bool efl_composite_part_is_delegate(System.IntPtr obj, System.IntPtr pd);
2063 [return: MarshalAs(UnmanagedType.U1)]
2064 public delegate bool efl_composite_part_is_api_delegate(System.IntPtr obj);
2066 public static Efl.Eo.FunctionWrapper<efl_composite_part_is_api_delegate> efl_composite_part_is_ptr = new Efl.Eo.FunctionWrapper<efl_composite_part_is_api_delegate>(Module, "efl_composite_part_is");
2068 private static bool composite_part_is(System.IntPtr obj, System.IntPtr pd)
2070 Eina.Log.Debug("function efl_composite_part_is was called");
2071 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
2074 bool _ret_var = default(bool);
2077 _ret_var = ((Object)ws.Target).IsCompositePart();
2081 Eina.Log.Warning($"Callback error: {e.ToString()}");
2082 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
2090 return efl_composite_part_is_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
2094 private static efl_composite_part_is_delegate efl_composite_part_is_static_delegate;
2096 #pragma warning restore CA1707, CS1591, SA1300, SA1600
2104 /// <summary>A parameter passed in event callbacks holding extra event parameters.
2105 /// This is the full event information passed to callbacks in C.
2106 /// (Since EFL 1.22)</summary>
2107 [StructLayout(LayoutKind.Sequential)]
2110 /// <summary>The object the callback was called on.
2111 /// (Since EFL 1.22)</summary>
2112 public Efl.Object Object;
2113 /// <summary>The event description.
2114 /// (Since EFL 1.22)</summary>
2115 public Efl.EventDescription Desc;
2116 /// <summary>Extra event information passed by the event caller. Must be cast to the event type declared in the EO file. Keep in mind that: 1) Objects are passed as a normal Eo*. Event subscribers can call functions on these objects. 2) Structs, built-in types and containers are passed as const pointers, with one level of indirection.
2117 /// (Since EFL 1.22)</summary>
2118 public System.IntPtr Info;
2119 ///<summary>Constructor for Event.</summary>
2121 Efl.Object Object = default(Efl.Object),
2122 Efl.EventDescription Desc = default(Efl.EventDescription),
2123 System.IntPtr Info = default(System.IntPtr) )
2125 this.Object = Object;
2130 ///<summary>Implicit conversion to the managed representation from a native pointer.</summary>
2131 ///<param name="ptr">Native pointer to be converted.</param>
2132 public static implicit operator Event(IntPtr ptr)
2134 var tmp = (Event.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Event.NativeStruct));
2138 #pragma warning disable CS1591
2140 ///<summary>Internal wrapper for struct Event.</summary>
2141 [StructLayout(LayoutKind.Sequential)]
2142 public struct NativeStruct
2144 ///<summary>Internal wrapper for field Object</summary>
2145 public System.IntPtr Object;
2147 public System.IntPtr Desc;
2149 public System.IntPtr Info;
2150 ///<summary>Implicit conversion to the internal/marshalling representation.</summary>
2151 public static implicit operator Event.NativeStruct(Event _external_struct)
2153 var _internal_struct = new Event.NativeStruct();
2154 _internal_struct.Object = _external_struct.Object?.NativeHandle ?? System.IntPtr.Zero;
2155 _internal_struct.Desc = Eina.PrimitiveConversion.ManagedToPointerAlloc(_external_struct.Desc);
2156 _internal_struct.Info = _external_struct.Info;
2157 return _internal_struct;
2160 ///<summary>Implicit conversion to the managed representation.</summary>
2161 public static implicit operator Event(Event.NativeStruct _internal_struct)
2163 var _external_struct = new Event();
2165 _external_struct.Object = (Efl.Object) Efl.Eo.Globals.CreateWrapperFor(_internal_struct.Object);
2166 _external_struct.Desc = Eina.PrimitiveConversion.PointerToManaged<Efl.EventDescription>(_internal_struct.Desc);
2167 _external_struct.Info = _internal_struct.Info;
2168 return _external_struct;
2173 #pragma warning restore CS1591