#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; using System.Threading; using System.ComponentModel; namespace Efl { /// Callback priority. Range is -32k - 32k. The lower the number, the higher the priority. /// 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 is to be assumed. /// /// See /// (Since EFL 1.22) public struct CallbackPriority { private short payload; /// Converts an instance of short to this struct. /// The value to be converted. /// A struct with the given value. public static implicit operator CallbackPriority(short value) { return new CallbackPriority{payload=value}; } /// Converts an instance of this struct to short. /// The value to be converted packed in this struct. /// The actual value the alias is wrapping. public static implicit operator short(CallbackPriority value) { return value.payload; } } } namespace Efl { public partial class Constants { /// Slightly more prioritized than default. public static readonly Efl.CallbackPriority CallbackPriorityBefore = -100; } } namespace Efl { public partial class Constants { /// Default priority. public static readonly Efl.CallbackPriority CallbackPriorityDefault = 0; } } namespace Efl { public partial class Constants { /// Slightly less prioritized than default. public static readonly Efl.CallbackPriority CallbackPriorityAfter = 100; } } namespace Efl { /// Abstract EFL object class. /// All EFL objects inherit from this class, which provides basic functionality like naming, debugging, hierarchy traversal, event emission and life cycle management. /// /// 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 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 method is called and is set to true when it returns. Object is usable at this point. - Invalidation: The object has lost its parent. The method is called so all the object's relationships can be terminated. is set to true. - Destruction: The object has no parent and it can be destroyed. The method is called, use it to return any resources the object might have gathered during its life. /// (Since EFL 1.22) [Efl.Object.NativeMethods] [Efl.Eo.BindingEntity] public abstract partial class Object : Efl.Eo.EoWrapper { /// Pointer to the native class description. public override System.IntPtr NativeClass { get { if (((object)this).GetType() == typeof(Object)) { return GetEflClassStatic(); } else { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; } } } [System.Runtime.InteropServices.DllImport(efl.Libs.Eo)] internal static extern System.IntPtr efl_object_class_get(); /// Initializes a new instance of the class. /// Parent instance. public Object(Efl.Object parent= null ) : base(efl_object_class_get(), parent) { FinishInstantiation(); } /// Subclasses should override this constructor if they are expected to be instantiated from native code. /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Object(ConstructingHandle ch) : base(ch) { } /// Initializes a new instance of the class. /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. /// The native pointer to be wrapped. protected Object(Efl.Eo.Globals.WrappingHandle wh) : base(wh) { } [Efl.Eo.PrivateNativeClass] private class ObjectRealized : Object { private ObjectRealized(Efl.Eo.Globals.WrappingHandle wh) : base(wh) { } } /// Initializes a new instance of the class. /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. /// The pointer to the base native Eo class. /// The Efl.Object parent of this instance. protected Object(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) { } /// Object is being deleted. See . /// (Since EFL 1.22) public event EventHandler DelEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_EVENT_DEL"; AddNativeEventHandler(efl.Libs.Eo, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_EVENT_DEL"; RemoveNativeEventHandler(efl.Libs.Eo, key, value); } } } /// Method to raise event DelEvt. public void OnDelEvt(EventArgs e) { var key = "_EFL_EVENT_DEL"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Eo, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Object is being invalidated and losing its parent. See . /// (Since EFL 1.22) public event EventHandler InvalidateEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_EVENT_INVALIDATE"; AddNativeEventHandler(efl.Libs.Eo, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_EVENT_INVALIDATE"; RemoveNativeEventHandler(efl.Libs.Eo, key, value); } } } /// Method to raise event InvalidateEvt. public void OnInvalidateEvt(EventArgs e) { var key = "_EFL_EVENT_INVALIDATE"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Eo, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Object has lost its last reference, only parent relationship is keeping it alive. Advanced usage. /// (Since EFL 1.22) public event EventHandler NorefEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_EVENT_NOREF"; AddNativeEventHandler(efl.Libs.Eo, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_EVENT_NOREF"; RemoveNativeEventHandler(efl.Libs.Eo, key, value); } } } /// Method to raise event NorefEvt. public void OnNorefEvt(EventArgs e) { var key = "_EFL_EVENT_NOREF"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Eo, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// 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. /// (Since EFL 1.22) public event EventHandler OwnershipUniqueEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_EVENT_OWNERSHIP_UNIQUE"; AddNativeEventHandler(efl.Libs.Eo, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_EVENT_OWNERSHIP_UNIQUE"; RemoveNativeEventHandler(efl.Libs.Eo, key, value); } } } /// Method to raise event OwnershipUniqueEvt. public void OnOwnershipUniqueEvt(EventArgs e) { var key = "_EFL_EVENT_OWNERSHIP_UNIQUE"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Eo, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// 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. /// (Since EFL 1.22) public event EventHandler OwnershipSharedEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_EVENT_OWNERSHIP_SHARED"; AddNativeEventHandler(efl.Libs.Eo, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_EVENT_OWNERSHIP_SHARED"; RemoveNativeEventHandler(efl.Libs.Eo, key, value); } } } /// Method to raise event OwnershipSharedEvt. public void OnOwnershipSharedEvt(EventArgs e) { var key = "_EFL_EVENT_OWNERSHIP_SHARED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Eo, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// 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. /// (Since EFL 1.22) public event EventHandler DestructEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_EVENT_DESTRUCT"; AddNativeEventHandler(efl.Libs.Eo, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_EVENT_DESTRUCT"; RemoveNativeEventHandler(efl.Libs.Eo, key, value); } } } /// Method to raise event DestructEvt. public void OnDestructEvt(EventArgs e) { var key = "_EFL_EVENT_DESTRUCT"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Eo, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// The parent of an object. /// 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 NULL and use efl_unref(), or use efl_del() directly. /// /// The Eo parent is conceptually user set. That means that a parent should not be changed behind the scenes in an unexpected way. /// /// 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. /// (Since EFL 1.22) /// The new parent. virtual public Efl.Object GetParent() { var _ret_var = Efl.Object.NativeMethods.efl_parent_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The parent of an object. /// 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 NULL and use efl_unref(), or use efl_del() directly. /// /// The Eo parent is conceptually user set. That means that a parent should not be changed behind the scenes in an unexpected way. /// /// 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. /// (Since EFL 1.22) /// The new parent. virtual public void SetParent(Efl.Object parent) { Efl.Object.NativeMethods.efl_parent_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),parent); Eina.Error.RaiseIfUnhandledException(); } /// The name of the object. /// 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 NULL string or no string for the name. /// (Since EFL 1.22) /// The name. virtual public System.String GetName() { var _ret_var = Efl.Object.NativeMethods.efl_name_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The name of the object. /// 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 NULL string or no string for the name. /// (Since EFL 1.22) /// The name. virtual public void SetName(System.String name) { Efl.Object.NativeMethods.efl_name_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),name); Eina.Error.RaiseIfUnhandledException(); } /// A human readable comment for the object. /// Every EFL object can have a comment. This is intended for developers and debugging. An empty string is considered the same as a NULL string or no string for the comment. /// (Since EFL 1.22) /// The comment. virtual public System.String GetComment() { var _ret_var = Efl.Object.NativeMethods.efl_comment_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// A human readable comment for the object. /// Every EFL object can have a comment. This is intended for developers and debugging. An empty string is considered the same as a NULL string or no string for the comment. /// (Since EFL 1.22) /// The comment. virtual public void SetComment(System.String comment) { Efl.Object.NativeMethods.efl_comment_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),comment); Eina.Error.RaiseIfUnhandledException(); } /// Return the global count of freeze events. /// This is the amount of calls to minus the amount of calls to . EFL will not emit any event while this count is > 0 (Except events marked hot). /// (Since EFL 1.22) /// The global event freeze count. public static int GetEventGlobalFreezeCount() { var _ret_var = Efl.Object.NativeMethods.efl_event_global_freeze_count_get_ptr.Value.Delegate(); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Return the count of freeze events for this object. /// This is the amount of calls to minus the amount of calls to . This object will not emit any event while this count is > 0 (Except events marked hot). /// (Since EFL 1.22) /// The event freeze count of this object. virtual public int GetEventFreezeCount() { var _ret_var = Efl.Object.NativeMethods.efl_event_freeze_count_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// true if the object has been finalized, i.e. construction has finished. See the Life Cycle section in this class' description. /// (Since EFL 1.22) /// true if the object is finalized, false otherwise. virtual public bool GetFinalized() { var _ret_var = Efl.Object.NativeMethods.efl_finalized_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// true if the object has been invalidated, i.e. it has no parent. See the Life Cycle section in this class' description. /// (Since EFL 1.22) /// true if the object is invalidated, false otherwise. virtual public bool GetInvalidated() { var _ret_var = Efl.Object.NativeMethods.efl_invalidated_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// true if the object has started the invalidation phase, but has not finished it yet. Note: This might become true before is called. See the Life Cycle section in this class' description. /// (Since EFL 1.22) /// true if the object is invalidating, false otherwise. virtual public bool GetInvalidating() { var _ret_var = Efl.Object.NativeMethods.efl_invalidating_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Allow an object to be deleted by unref even if it has a parent. /// This simply hides the error message warning that an object being destroyed still has a parent. This property is false by default. /// /// 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. /// /// Warning: Use this function very carefully, unless you're absolutely sure of what you are doing. /// (Since EFL 1.22) /// /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Whether to allow efl_unref() to zero even if is not null. virtual public bool GetAllowParentUnref() { var _ret_var = Efl.Object.NativeMethods.efl_allow_parent_unref_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Allow an object to be deleted by unref even if it has a parent. /// This simply hides the error message warning that an object being destroyed still has a parent. This property is false by default. /// /// 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. /// /// Warning: Use this function very carefully, unless you're absolutely sure of what you are doing. /// (Since EFL 1.22) /// /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Whether to allow efl_unref() to zero even if is not null. virtual public void SetAllowParentUnref(bool allow) { Efl.Object.NativeMethods.efl_allow_parent_unref_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),allow); Eina.Error.RaiseIfUnhandledException(); } /// Build a read-only name for this object used for debugging. /// 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: /// /// efl_debug_name_override(efl_super(obj, MY_CLASS), sb); eina_strbuf_append_printf(sb, "new_information"); /// /// Usually more debug information should be added to sb after calling the super function. /// (Since EFL 1.22) /// A string buffer, must not be null. virtual public void DebugNameOverride(Eina.Strbuf sb) { Efl.Object.NativeMethods.efl_debug_name_override_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),sb); Eina.Error.RaiseIfUnhandledException(); } /// Searches upwards in the object tree for a provider which knows the given class/interface. /// 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. /// (Since EFL 1.22) /// The class identifier to search for. /// Object from the provider list. virtual public Efl.Object FindProvider(Type klass) { var _ret_var = Efl.Object.NativeMethods.efl_provider_find_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),klass); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Implement this method to provide deinitialization code for your object if you need it. /// Will be called once has returned. See the Life Cycle section in this class' description. /// (Since EFL 1.22) virtual public void Destructor() { Efl.Object.NativeMethods.efl_destructor_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// Implement this method to finish the initialization of your object after all (if any) user-provided configuration methods have been executed. /// 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 to true 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. /// (Since EFL 1.22) /// The new object. Return NULL to abort object creation. virtual public Efl.Object FinalizeAdd() { var _ret_var = Efl.Object.NativeMethods.efl_finalize_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Implement this method to perform special actions when your object loses its parent, if you need to. /// It is called when the parent reference is lost or set to NULL. After this call returns, is set to true. 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 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 and then to . See the Life Cycle section in this class' description. /// (Since EFL 1.22) virtual public void Invalidate() { Efl.Object.NativeMethods.efl_invalidate_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// Find a child object with the given name and return it. /// 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. /// (Since EFL 1.22) /// The name search string. /// The first object found. virtual public Efl.Object FindName(System.String search) { var _ret_var = Efl.Object.NativeMethods.efl_name_find_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),search); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Thaw events of object. /// Allows event callbacks to be called again for this object after a call to . The amount of thaws must match the amount of freezes for events to be re-enabled. /// (Since EFL 1.22) virtual public void ThawEvent() { Efl.Object.NativeMethods.efl_event_thaw_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// Freeze events of this object. /// Prevents event callbacks from being called for this object. Enable events again using . Events marked hot cannot be stopped. /// (Since EFL 1.22) virtual public void FreezeEvent() { Efl.Object.NativeMethods.efl_event_freeze_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// Gobally thaw events for ALL EFL OBJECTS. /// Allows event callbacks to be called for all EFL objects after they have been disabled by . The amount of thaws must match the amount of freezes for events to be re-enabled. /// (Since EFL 1.22) public static void ThawEventGlobal() { Efl.Object.NativeMethods.efl_event_global_thaw_ptr.Value.Delegate(); Eina.Error.RaiseIfUnhandledException(); } /// Globally freeze events for ALL EFL OBJECTS. /// Prevents event callbacks from being called for all EFL objects. Enable events again using . Events marked hot cannot be stopped. /// /// Note: USE WITH CAUTION. /// (Since EFL 1.22) public static void FreezeEventGlobal() { Efl.Object.NativeMethods.efl_event_global_freeze_ptr.Value.Delegate(); Eina.Error.RaiseIfUnhandledException(); } /// Stop the current callback call. /// 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. /// (Since EFL 1.22) virtual public void EventCallbackStop() { Efl.Object.NativeMethods.efl_event_callback_stop_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// Remove an event callback forwarder for a specified event and object. /// (Since EFL 1.22) /// The description of the event to listen to /// The object to emit events from virtual public void DelEventCallbackForwarder(Efl.EventDescription desc, Efl.Object new_obj) { var _in_desc = Eina.PrimitiveConversion.ManagedToPointerAlloc(desc); Efl.Object.NativeMethods.efl_event_callback_forwarder_del_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_desc, new_obj); Eina.Error.RaiseIfUnhandledException(); } /// Get an iterator on all childrens /// (Since EFL 1.22) /// Children iterator virtual public Eina.Iterator NewChildrenIterator() { var _ret_var = Efl.Object.NativeMethods.efl_children_iterator_new_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true); } /// Make an object a composite object of another. /// 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. /// /// See , . /// (Since EFL 1.22) /// /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// the object that will be used to composite the parent. /// true if successful. false otherwise. virtual public bool AttachComposite(Efl.Object comp_obj) { var _ret_var = Efl.Object.NativeMethods.efl_composite_attach_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),comp_obj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Detach a composite object from another object. /// This functions also sets the parent of comp_obj to null. /// /// See , . /// (Since EFL 1.22) /// /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The object that will be removed from the parent. /// true if successful. false otherwise. virtual public bool CompositeDetach(Efl.Object comp_obj) { var _ret_var = Efl.Object.NativeMethods.efl_composite_detach_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),comp_obj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Check if an object is part of a composite object. /// See , . /// (Since EFL 1.22) /// /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// true if it is. false otherwise. virtual public bool IsCompositePart() { var _ret_var = Efl.Object.NativeMethods.efl_composite_part_is_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Will register a manager of a specific class to be answered by eo.provider_find. /// (Since EFL 1.22) /// The class provided by the registered provider. /// The provider for the newly registered class that has to provide that said Efl.Class. /// true if successfully register, false otherwise. virtual public bool ProviderRegister(Type klass, Efl.Object provider) { var _ret_var = Efl.Object.NativeMethods.efl_provider_register_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),klass, provider); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Will unregister a manager of a specific class that was previously registered and answered by eo.provider_find. /// (Since EFL 1.22) /// The class provided by the provider to unregister for. /// The provider for the registered class to unregister. /// true if successfully unregistered, false otherwise. virtual public bool ProviderUnregister(Type klass, Efl.Object provider) { var _ret_var = Efl.Object.NativeMethods.efl_provider_unregister_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),klass, provider); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The parent of an object. /// 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 NULL and use efl_unref(), or use efl_del() directly. /// /// The Eo parent is conceptually user set. That means that a parent should not be changed behind the scenes in an unexpected way. /// /// 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. /// (Since EFL 1.22) /// The new parent. public Efl.Object Parent { get { return GetParent(); } set { SetParent(value); } } /// The name of the object. /// 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 NULL string or no string for the name. /// (Since EFL 1.22) /// The name. public System.String Name { get { return GetName(); } set { SetName(value); } } /// A human readable comment for the object. /// Every EFL object can have a comment. This is intended for developers and debugging. An empty string is considered the same as a NULL string or no string for the comment. /// (Since EFL 1.22) /// The comment. public System.String Comment { get { return GetComment(); } set { SetComment(value); } } /// Return the global count of freeze events. /// This is the amount of calls to minus the amount of calls to . EFL will not emit any event while this count is > 0 (Except events marked hot). /// (Since EFL 1.22) /// The global event freeze count. public static int EventGlobalFreezeCount { get { return GetEventGlobalFreezeCount(); } } /// Return the count of freeze events for this object. /// This is the amount of calls to minus the amount of calls to . This object will not emit any event while this count is > 0 (Except events marked hot). /// (Since EFL 1.22) /// The event freeze count of this object. public int EventFreezeCount { get { return GetEventFreezeCount(); } } /// true if the object has been finalized, i.e. construction has finished. See the Life Cycle section in this class' description. /// (Since EFL 1.22) /// true if the object is finalized, false otherwise. public bool Finalized { get { return GetFinalized(); } } /// true if the object has been invalidated, i.e. it has no parent. See the Life Cycle section in this class' description. /// (Since EFL 1.22) /// true if the object is invalidated, false otherwise. public bool Invalidated { get { return GetInvalidated(); } } /// true if the object has started the invalidation phase, but has not finished it yet. Note: This might become true before is called. See the Life Cycle section in this class' description. /// (Since EFL 1.22) /// true if the object is invalidating, false otherwise. public bool Invalidating { get { return GetInvalidating(); } } /// Allow an object to be deleted by unref even if it has a parent. /// This simply hides the error message warning that an object being destroyed still has a parent. This property is false by default. /// /// 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. /// /// Warning: Use this function very carefully, unless you're absolutely sure of what you are doing. /// (Since EFL 1.22) /// /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Whether to allow efl_unref() to zero even if is not null. public bool AllowParentUnref { get { return GetAllowParentUnref(); } set { SetAllowParentUnref(value); } } private static IntPtr GetEflClassStatic() { return Efl.Object.efl_object_class_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods { private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Eo); /// Gets the list of Eo operations to override. /// The list of Eo operations to be overload. public override System.Collections.Generic.List GetEoOps(System.Type type) { var descs = new System.Collections.Generic.List(); var methods = Efl.Eo.Globals.GetUserMethods(type); if (efl_parent_get_static_delegate == null) { efl_parent_get_static_delegate = new efl_parent_get_delegate(parent_get); } if (methods.FirstOrDefault(m => m.Name == "GetParent") != null) { 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) }); } if (efl_parent_set_static_delegate == null) { efl_parent_set_static_delegate = new efl_parent_set_delegate(parent_set); } if (methods.FirstOrDefault(m => m.Name == "SetParent") != null) { 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) }); } if (efl_name_get_static_delegate == null) { efl_name_get_static_delegate = new efl_name_get_delegate(name_get); } if (methods.FirstOrDefault(m => m.Name == "GetName") != null) { 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) }); } if (efl_name_set_static_delegate == null) { efl_name_set_static_delegate = new efl_name_set_delegate(name_set); } if (methods.FirstOrDefault(m => m.Name == "SetName") != null) { 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) }); } if (efl_comment_get_static_delegate == null) { efl_comment_get_static_delegate = new efl_comment_get_delegate(comment_get); } if (methods.FirstOrDefault(m => m.Name == "GetComment") != null) { 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) }); } if (efl_comment_set_static_delegate == null) { efl_comment_set_static_delegate = new efl_comment_set_delegate(comment_set); } if (methods.FirstOrDefault(m => m.Name == "SetComment") != null) { 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) }); } if (efl_event_freeze_count_get_static_delegate == null) { efl_event_freeze_count_get_static_delegate = new efl_event_freeze_count_get_delegate(event_freeze_count_get); } if (methods.FirstOrDefault(m => m.Name == "GetEventFreezeCount") != null) { 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) }); } if (efl_finalized_get_static_delegate == null) { efl_finalized_get_static_delegate = new efl_finalized_get_delegate(finalized_get); } if (methods.FirstOrDefault(m => m.Name == "GetFinalized") != null) { 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) }); } if (efl_invalidated_get_static_delegate == null) { efl_invalidated_get_static_delegate = new efl_invalidated_get_delegate(invalidated_get); } if (methods.FirstOrDefault(m => m.Name == "GetInvalidated") != null) { 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) }); } if (efl_invalidating_get_static_delegate == null) { efl_invalidating_get_static_delegate = new efl_invalidating_get_delegate(invalidating_get); } if (methods.FirstOrDefault(m => m.Name == "GetInvalidating") != null) { 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) }); } if (efl_allow_parent_unref_get_static_delegate == null) { efl_allow_parent_unref_get_static_delegate = new efl_allow_parent_unref_get_delegate(allow_parent_unref_get); } if (methods.FirstOrDefault(m => m.Name == "GetAllowParentUnref") != null) { 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) }); } if (efl_allow_parent_unref_set_static_delegate == null) { efl_allow_parent_unref_set_static_delegate = new efl_allow_parent_unref_set_delegate(allow_parent_unref_set); } if (methods.FirstOrDefault(m => m.Name == "SetAllowParentUnref") != null) { 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) }); } if (efl_debug_name_override_static_delegate == null) { efl_debug_name_override_static_delegate = new efl_debug_name_override_delegate(debug_name_override); } if (methods.FirstOrDefault(m => m.Name == "DebugNameOverride") != null) { 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) }); } if (efl_provider_find_static_delegate == null) { efl_provider_find_static_delegate = new efl_provider_find_delegate(provider_find); } if (methods.FirstOrDefault(m => m.Name == "FindProvider") != null) { 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) }); } if (efl_destructor_static_delegate == null) { efl_destructor_static_delegate = new efl_destructor_delegate(destructor); } if (methods.FirstOrDefault(m => m.Name == "Destructor") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_destructor"), func = Marshal.GetFunctionPointerForDelegate(efl_destructor_static_delegate) }); } if (efl_finalize_static_delegate == null) { efl_finalize_static_delegate = new efl_finalize_delegate(finalize); } if (methods.FirstOrDefault(m => m.Name == "FinalizeAdd") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_finalize"), func = Marshal.GetFunctionPointerForDelegate(efl_finalize_static_delegate) }); } if (efl_invalidate_static_delegate == null) { efl_invalidate_static_delegate = new efl_invalidate_delegate(invalidate); } if (methods.FirstOrDefault(m => m.Name == "Invalidate") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_invalidate"), func = Marshal.GetFunctionPointerForDelegate(efl_invalidate_static_delegate) }); } if (efl_name_find_static_delegate == null) { efl_name_find_static_delegate = new efl_name_find_delegate(name_find); } if (methods.FirstOrDefault(m => m.Name == "FindName") != null) { 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) }); } if (efl_event_thaw_static_delegate == null) { efl_event_thaw_static_delegate = new efl_event_thaw_delegate(event_thaw); } if (methods.FirstOrDefault(m => m.Name == "ThawEvent") != null) { 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) }); } if (efl_event_freeze_static_delegate == null) { efl_event_freeze_static_delegate = new efl_event_freeze_delegate(event_freeze); } if (methods.FirstOrDefault(m => m.Name == "FreezeEvent") != null) { 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) }); } if (efl_event_callback_stop_static_delegate == null) { efl_event_callback_stop_static_delegate = new efl_event_callback_stop_delegate(event_callback_stop); } if (methods.FirstOrDefault(m => m.Name == "EventCallbackStop") != null) { 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) }); } if (efl_event_callback_forwarder_del_static_delegate == null) { efl_event_callback_forwarder_del_static_delegate = new efl_event_callback_forwarder_del_delegate(event_callback_forwarder_del); } if (methods.FirstOrDefault(m => m.Name == "DelEventCallbackForwarder") != null) { 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) }); } if (efl_children_iterator_new_static_delegate == null) { efl_children_iterator_new_static_delegate = new efl_children_iterator_new_delegate(children_iterator_new); } if (methods.FirstOrDefault(m => m.Name == "NewChildrenIterator") != null) { 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) }); } if (efl_composite_attach_static_delegate == null) { efl_composite_attach_static_delegate = new efl_composite_attach_delegate(composite_attach); } if (methods.FirstOrDefault(m => m.Name == "AttachComposite") != null) { 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) }); } if (efl_composite_detach_static_delegate == null) { efl_composite_detach_static_delegate = new efl_composite_detach_delegate(composite_detach); } if (methods.FirstOrDefault(m => m.Name == "CompositeDetach") != null) { 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) }); } if (efl_composite_part_is_static_delegate == null) { efl_composite_part_is_static_delegate = new efl_composite_part_is_delegate(composite_part_is); } if (methods.FirstOrDefault(m => m.Name == "IsCompositePart") != null) { 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) }); } if (efl_provider_register_static_delegate == null) { efl_provider_register_static_delegate = new efl_provider_register_delegate(provider_register); } if (methods.FirstOrDefault(m => m.Name == "ProviderRegister") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_provider_register"), func = Marshal.GetFunctionPointerForDelegate(efl_provider_register_static_delegate) }); } if (efl_provider_unregister_static_delegate == null) { efl_provider_unregister_static_delegate = new efl_provider_unregister_delegate(provider_unregister); } if (methods.FirstOrDefault(m => m.Name == "ProviderUnregister") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_provider_unregister"), func = Marshal.GetFunctionPointerForDelegate(efl_provider_unregister_static_delegate) }); } descs.AddRange(base.GetEoOps(type)); return descs; } /// Returns the Eo class for the native methods of this class. /// The native class pointer. public override IntPtr GetEflClass() { return Efl.Object.efl_object_class_get(); } #pragma warning disable CA1707, CS1591, SA1300, SA1600 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Object efl_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Object efl_parent_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_parent_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_parent_get"); private static Efl.Object parent_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_parent_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Object _ret_var = default(Efl.Object); try { _ret_var = ((Object)ws.Target).GetParent(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_parent_get_delegate efl_parent_get_static_delegate; private delegate void efl_parent_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object parent); public delegate void efl_parent_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object parent); public static Efl.Eo.FunctionWrapper efl_parent_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_parent_set"); private static void parent_set(System.IntPtr obj, System.IntPtr pd, Efl.Object parent) { Eina.Log.Debug("function efl_parent_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Object)ws.Target).SetParent(parent); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_parent_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent); } } private static efl_parent_set_delegate efl_parent_set_static_delegate; [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_name_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_name_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_name_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_name_get"); private static System.String name_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_name_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { System.String _ret_var = default(System.String); try { _ret_var = ((Object)ws.Target).GetName(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_name_get_delegate efl_name_get_static_delegate; private delegate void efl_name_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); public delegate void efl_name_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); public static Efl.Eo.FunctionWrapper efl_name_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_name_set"); private static void name_set(System.IntPtr obj, System.IntPtr pd, System.String name) { Eina.Log.Debug("function efl_name_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Object)ws.Target).SetName(name); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_name_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); } } private static efl_name_set_delegate efl_name_set_static_delegate; [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_comment_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_comment_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_comment_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_comment_get"); private static System.String comment_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_comment_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { System.String _ret_var = default(System.String); try { _ret_var = ((Object)ws.Target).GetComment(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_comment_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_comment_get_delegate efl_comment_get_static_delegate; private delegate void efl_comment_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String comment); public delegate void efl_comment_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String comment); public static Efl.Eo.FunctionWrapper efl_comment_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_comment_set"); private static void comment_set(System.IntPtr obj, System.IntPtr pd, System.String comment) { Eina.Log.Debug("function efl_comment_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Object)ws.Target).SetComment(comment); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_comment_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), comment); } } private static efl_comment_set_delegate efl_comment_set_static_delegate; private delegate int efl_event_global_freeze_count_get_delegate(); public delegate int efl_event_global_freeze_count_get_api_delegate(); public static Efl.Eo.FunctionWrapper efl_event_global_freeze_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_event_global_freeze_count_get"); private static int event_global_freeze_count_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_event_global_freeze_count_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { int _ret_var = default(int); try { _ret_var = Object.GetEventGlobalFreezeCount(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_event_global_freeze_count_get_ptr.Value.Delegate(); } } private delegate int efl_event_freeze_count_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate int efl_event_freeze_count_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_event_freeze_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_event_freeze_count_get"); private static int event_freeze_count_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_event_freeze_count_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { int _ret_var = default(int); try { _ret_var = ((Object)ws.Target).GetEventFreezeCount(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_event_freeze_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_event_freeze_count_get_delegate efl_event_freeze_count_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_finalized_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_finalized_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_finalized_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_finalized_get"); private static bool finalized_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_finalized_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Object)ws.Target).GetFinalized(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_finalized_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_finalized_get_delegate efl_finalized_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_invalidated_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_invalidated_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_invalidated_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_invalidated_get"); private static bool invalidated_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_invalidated_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Object)ws.Target).GetInvalidated(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_invalidated_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_invalidated_get_delegate efl_invalidated_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_invalidating_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_invalidating_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_invalidating_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_invalidating_get"); private static bool invalidating_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_invalidating_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Object)ws.Target).GetInvalidating(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_invalidating_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_invalidating_get_delegate efl_invalidating_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_allow_parent_unref_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_allow_parent_unref_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_allow_parent_unref_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_allow_parent_unref_get"); private static bool allow_parent_unref_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_allow_parent_unref_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Object)ws.Target).GetAllowParentUnref(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_allow_parent_unref_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_allow_parent_unref_get_delegate efl_allow_parent_unref_get_static_delegate; private delegate void efl_allow_parent_unref_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool allow); public delegate void efl_allow_parent_unref_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool allow); public static Efl.Eo.FunctionWrapper efl_allow_parent_unref_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_allow_parent_unref_set"); private static void allow_parent_unref_set(System.IntPtr obj, System.IntPtr pd, bool allow) { Eina.Log.Debug("function efl_allow_parent_unref_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Object)ws.Target).SetAllowParentUnref(allow); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_allow_parent_unref_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), allow); } } private static efl_allow_parent_unref_set_delegate efl_allow_parent_unref_set_static_delegate; 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); public delegate void efl_debug_name_override_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StrbufKeepOwnershipMarshaler))] Eina.Strbuf sb); public static Efl.Eo.FunctionWrapper efl_debug_name_override_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_debug_name_override"); private static void debug_name_override(System.IntPtr obj, System.IntPtr pd, Eina.Strbuf sb) { Eina.Log.Debug("function efl_debug_name_override was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Object)ws.Target).DebugNameOverride(sb); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_debug_name_override_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sb); } } private static efl_debug_name_override_delegate efl_debug_name_override_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Object efl_provider_find_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Object efl_provider_find_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass); public static Efl.Eo.FunctionWrapper efl_provider_find_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_provider_find"); private static Efl.Object provider_find(System.IntPtr obj, System.IntPtr pd, Type klass) { Eina.Log.Debug("function efl_provider_find was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Object _ret_var = default(Efl.Object); try { _ret_var = ((Object)ws.Target).FindProvider(klass); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_provider_find_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass); } } private static efl_provider_find_delegate efl_provider_find_static_delegate; private delegate void efl_destructor_delegate(System.IntPtr obj, System.IntPtr pd); public delegate void efl_destructor_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_destructor_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_destructor"); private static void destructor(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_destructor was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Object)ws.Target).Destructor(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_destructor_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_destructor_delegate efl_destructor_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Object efl_finalize_delegate(System.IntPtr obj, System.IntPtr pd); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Object efl_finalize_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_finalize_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_finalize"); private static Efl.Object finalize(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_finalize was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Object _ret_var = default(Efl.Object); try { _ret_var = ((Object)ws.Target).FinalizeAdd(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_finalize_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_finalize_delegate efl_finalize_static_delegate; private delegate void efl_invalidate_delegate(System.IntPtr obj, System.IntPtr pd); public delegate void efl_invalidate_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_invalidate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_invalidate"); private static void invalidate(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_invalidate was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Object)ws.Target).Invalidate(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_invalidate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_invalidate_delegate efl_invalidate_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] 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); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Object efl_name_find_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String search); public static Efl.Eo.FunctionWrapper efl_name_find_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_name_find"); private static Efl.Object name_find(System.IntPtr obj, System.IntPtr pd, System.String search) { Eina.Log.Debug("function efl_name_find was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Object _ret_var = default(Efl.Object); try { _ret_var = ((Object)ws.Target).FindName(search); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_name_find_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), search); } } private static efl_name_find_delegate efl_name_find_static_delegate; private delegate void efl_event_thaw_delegate(System.IntPtr obj, System.IntPtr pd); public delegate void efl_event_thaw_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_event_thaw_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_event_thaw"); private static void event_thaw(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_event_thaw was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Object)ws.Target).ThawEvent(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_event_thaw_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_event_thaw_delegate efl_event_thaw_static_delegate; private delegate void efl_event_freeze_delegate(System.IntPtr obj, System.IntPtr pd); public delegate void efl_event_freeze_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_event_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_event_freeze"); private static void event_freeze(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_event_freeze was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Object)ws.Target).FreezeEvent(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_event_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_event_freeze_delegate efl_event_freeze_static_delegate; private delegate void efl_event_global_thaw_delegate(); public delegate void efl_event_global_thaw_api_delegate(); public static Efl.Eo.FunctionWrapper efl_event_global_thaw_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_event_global_thaw"); private static void event_global_thaw(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_event_global_thaw was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { Object.ThawEventGlobal(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_event_global_thaw_ptr.Value.Delegate(); } } private delegate void efl_event_global_freeze_delegate(); public delegate void efl_event_global_freeze_api_delegate(); public static Efl.Eo.FunctionWrapper efl_event_global_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_event_global_freeze"); private static void event_global_freeze(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_event_global_freeze was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { Object.FreezeEventGlobal(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_event_global_freeze_ptr.Value.Delegate(); } } private delegate void efl_event_callback_stop_delegate(System.IntPtr obj, System.IntPtr pd); public delegate void efl_event_callback_stop_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_event_callback_stop_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_event_callback_stop"); private static void event_callback_stop(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_event_callback_stop was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Object)ws.Target).EventCallbackStop(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_event_callback_stop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_event_callback_stop_delegate efl_event_callback_stop_static_delegate; 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.Object new_obj); 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.Object new_obj); public static Efl.Eo.FunctionWrapper efl_event_callback_forwarder_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_event_callback_forwarder_del"); private static void event_callback_forwarder_del(System.IntPtr obj, System.IntPtr pd, System.IntPtr desc, Efl.Object new_obj) { Eina.Log.Debug("function efl_event_callback_forwarder_del was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { var _in_desc = Eina.PrimitiveConversion.PointerToManaged(desc); try { ((Object)ws.Target).DelEventCallbackForwarder(_in_desc, new_obj); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_event_callback_forwarder_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), desc, new_obj); } } private static efl_event_callback_forwarder_del_delegate efl_event_callback_forwarder_del_static_delegate; private delegate System.IntPtr efl_children_iterator_new_delegate(System.IntPtr obj, System.IntPtr pd); public delegate System.IntPtr efl_children_iterator_new_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_children_iterator_new_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_children_iterator_new"); private static System.IntPtr children_iterator_new(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_children_iterator_new was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Iterator _ret_var = default(Eina.Iterator); try { _ret_var = ((Object)ws.Target).NewChildrenIterator(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } _ret_var.Own = false; return _ret_var.Handle; } else { return efl_children_iterator_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_children_iterator_new_delegate efl_children_iterator_new_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_composite_attach_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object comp_obj); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_composite_attach_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object comp_obj); public static Efl.Eo.FunctionWrapper efl_composite_attach_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_composite_attach"); private static bool composite_attach(System.IntPtr obj, System.IntPtr pd, Efl.Object comp_obj) { Eina.Log.Debug("function efl_composite_attach was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Object)ws.Target).AttachComposite(comp_obj); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_composite_attach_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), comp_obj); } } private static efl_composite_attach_delegate efl_composite_attach_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_composite_detach_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object comp_obj); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_composite_detach_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object comp_obj); public static Efl.Eo.FunctionWrapper efl_composite_detach_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_composite_detach"); private static bool composite_detach(System.IntPtr obj, System.IntPtr pd, Efl.Object comp_obj) { Eina.Log.Debug("function efl_composite_detach was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Object)ws.Target).CompositeDetach(comp_obj); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_composite_detach_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), comp_obj); } } private static efl_composite_detach_delegate efl_composite_detach_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_composite_part_is_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_composite_part_is_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_composite_part_is_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_composite_part_is"); private static bool composite_part_is(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_composite_part_is was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Object)ws.Target).IsCompositePart(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_composite_part_is_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_composite_part_is_delegate efl_composite_part_is_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_provider_register_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object provider); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_provider_register_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object provider); public static Efl.Eo.FunctionWrapper efl_provider_register_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_provider_register"); private static bool provider_register(System.IntPtr obj, System.IntPtr pd, Type klass, Efl.Object provider) { Eina.Log.Debug("function efl_provider_register was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Object)ws.Target).ProviderRegister(klass, provider); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_provider_register_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass, provider); } } private static efl_provider_register_delegate efl_provider_register_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_provider_unregister_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object provider); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_provider_unregister_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object provider); public static Efl.Eo.FunctionWrapper efl_provider_unregister_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_provider_unregister"); private static bool provider_unregister(System.IntPtr obj, System.IntPtr pd, Type klass, Efl.Object provider) { Eina.Log.Debug("function efl_provider_unregister was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Object)ws.Target).ProviderUnregister(klass, provider); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_provider_unregister_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass, provider); } } private static efl_provider_unregister_delegate efl_provider_unregister_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 } } } #if EFL_BETA #pragma warning disable CS1591 public static class EflObject_ExtensionMethods { public static Efl.BindableProperty Parent(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Object { return new Efl.BindableProperty("parent", fac); } public static Efl.BindableProperty Name(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Object { return new Efl.BindableProperty("name", fac); } public static Efl.BindableProperty Comment(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Object { return new Efl.BindableProperty("comment", fac); } public static Efl.BindableProperty AllowParentUnref(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Object { return new Efl.BindableProperty("allow_parent_unref", fac); } } #pragma warning restore CS1591 #endif