#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 { /// Common interface for objects (containers) with multiple contents (sub-objects) which can be added and removed at runtime in a linear fashion. /// This means the sub-objects are internally organized in an ordered list. [Efl.IPackLinearConcrete.NativeMethods] public interface IPackLinear : Efl.IPack , Efl.Eo.IWrapper, IDisposable { /// Prepend an object at the beginning of this container. /// This is the same as (subobj, 0). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Object to pack at the beginning. /// false if subobj could not be packed. bool PackBegin(Efl.Gfx.IEntity subobj); /// Append object at the end of this container. /// This is the same as (subobj, -1). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Object to pack at the end. /// false if subobj could not be packed. bool PackEnd(Efl.Gfx.IEntity subobj); /// Prepend an object before an existing sub-object. /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Object to pack before existing. /// Existing reference sub-object. /// false if existing could not be found or subobj could not be packed. bool PackBefore(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing); /// Append an object after an existing sub-object. /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Object to pack after existing. /// Existing reference sub-object. /// false if existing could not be found or subobj could not be packed. bool PackAfter(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing); /// Inserts subobj BEFORE the sub-object at position index. /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . /// /// If index is less than -count, it will trigger (subobj) whereas index greater than count-1 will trigger (subobj). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Object to pack. /// Index of existing sub-object to insert BEFORE. Valid range is -count to (count-1). /// false if subobj could not be packed. bool PackAt(Efl.Gfx.IEntity subobj, int index); /// Sub-object at a given index in this container. /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . /// /// If index is less than -count, it will return the first sub-object whereas index greater than count-1 will return the last sub-object. /// Index of the existing sub-object to retrieve. Valid range is -count to (count-1). /// The sub-object contained at the given index. Efl.Gfx.IEntity GetPackContent(int index); /// Get the index of a sub-object in this container. /// An existing sub-object in this container. /// -1 in case subobj is not found, or the index of subobj in the range 0 to (count-1). int GetPackIndex(Efl.Gfx.IEntity subobj); /// Pop out (remove) the sub-object at the specified index. /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . /// /// If index is less than -count, it will remove the first sub-object whereas index greater than count-1 will remove the last sub-object. /// Index of the sub-object to remove. Valid range is -count to (count-1). /// The sub-object if it could be removed. Efl.Gfx.IEntity PackUnpackAt(int index); } /// Common interface for objects (containers) with multiple contents (sub-objects) which can be added and removed at runtime in a linear fashion. /// This means the sub-objects are internally organized in an ordered list. sealed public class IPackLinearConcrete : Efl.Eo.EoWrapper , IPackLinear , Efl.IContainer, Efl.IPack { ///Pointer to the native class description. public override System.IntPtr NativeClass { get { if (((object)this).GetType() == typeof(IPackLinearConcrete)) { return GetEflClassStatic(); } else { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; } } } [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_pack_linear_interface_get(); /// Initializes a new instance of the class. /// Internal usage: This is used when interacting with C code and should not be used directly. private IPackLinearConcrete(System.IntPtr raw) : base(raw) { } /// Sent after a new sub-object was added. /// (Since EFL 1.22) public event EventHandler ContentAddedEvt { add { lock (eventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } remove { lock (eventLock) { string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentAddedEvt. public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = e.arg.NativeHandle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Sent after a sub-object was removed, before unref. /// (Since EFL 1.22) public event EventHandler ContentRemovedEvt { add { lock (eventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } remove { lock (eventLock) { string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentRemovedEvt. public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = e.arg.NativeHandle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Prepend an object at the beginning of this container. /// This is the same as (subobj, 0). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Object to pack at the beginning. /// false if subobj could not be packed. public bool PackBegin(Efl.Gfx.IEntity subobj) { var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_begin_ptr.Value.Delegate(this.NativeHandle,subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Append object at the end of this container. /// This is the same as (subobj, -1). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Object to pack at the end. /// false if subobj could not be packed. public bool PackEnd(Efl.Gfx.IEntity subobj) { var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_end_ptr.Value.Delegate(this.NativeHandle,subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Prepend an object before an existing sub-object. /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Object to pack before existing. /// Existing reference sub-object. /// false if existing could not be found or subobj could not be packed. public bool PackBefore(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_before_ptr.Value.Delegate(this.NativeHandle,subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Append an object after an existing sub-object. /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Object to pack after existing. /// Existing reference sub-object. /// false if existing could not be found or subobj could not be packed. public bool PackAfter(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_after_ptr.Value.Delegate(this.NativeHandle,subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Inserts subobj BEFORE the sub-object at position index. /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . /// /// If index is less than -count, it will trigger (subobj) whereas index greater than count-1 will trigger (subobj). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Object to pack. /// Index of existing sub-object to insert BEFORE. Valid range is -count to (count-1). /// false if subobj could not be packed. public bool PackAt(Efl.Gfx.IEntity subobj, int index) { var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_at_ptr.Value.Delegate(this.NativeHandle,subobj, index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sub-object at a given index in this container. /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . /// /// If index is less than -count, it will return the first sub-object whereas index greater than count-1 will return the last sub-object. /// Index of the existing sub-object to retrieve. Valid range is -count to (count-1). /// The sub-object contained at the given index. public Efl.Gfx.IEntity GetPackContent(int index) { var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_content_get_ptr.Value.Delegate(this.NativeHandle,index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the index of a sub-object in this container. /// An existing sub-object in this container. /// -1 in case subobj is not found, or the index of subobj in the range 0 to (count-1). public int GetPackIndex(Efl.Gfx.IEntity subobj) { var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_index_get_ptr.Value.Delegate(this.NativeHandle,subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Pop out (remove) the sub-object at the specified index. /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . /// /// If index is less than -count, it will remove the first sub-object whereas index greater than count-1 will remove the last sub-object. /// Index of the sub-object to remove. Valid range is -count to (count-1). /// The sub-object if it could be removed. public Efl.Gfx.IEntity PackUnpackAt(int index) { var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_unpack_at_ptr.Value.Delegate(this.NativeHandle,index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Begin iterating over this object's contents. /// (Since EFL 1.22) /// Iterator on object's content. public Eina.Iterator ContentIterate() { var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_iterate_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } /// Returns the number of contained sub-objects. /// (Since EFL 1.22) /// Number of sub-objects. public int ContentCount() { var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_count_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes all packed sub-objects and unreferences them. /// true on success, false otherwise. public bool ClearPack() { var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_clear_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes all packed sub-objects without unreferencing them. /// Use with caution. /// true on success, false otherwise. public bool UnpackAll() { var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_all_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes an existing sub-object from the container without deleting it. /// The sub-object to unpack. /// false if subobj wasn't in the container or couldn't be removed. public bool Unpack(Efl.Gfx.IEntity subobj) { var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate(this.NativeHandle,subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Adds a sub-object to this container. /// Depending on the container this will either fill in the default spot, replacing any already existing element or append to the end of the container if there is no default part. /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// The object to pack. /// false if subobj could not be packed. public bool Pack(Efl.Gfx.IEntity subobj) { var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate(this.NativeHandle,subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } private static IntPtr GetEflClassStatic() { return Efl.IPackLinearConcrete.efl_pack_linear_interface_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. public class NativeMethods : Efl.Eo.NativeClass { private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl); /// 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_pack_begin_static_delegate == null) { efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); } if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate) }); } if (efl_pack_end_static_delegate == null) { efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); } if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate) }); } if (efl_pack_before_static_delegate == null) { efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); } if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate) }); } if (efl_pack_after_static_delegate == null) { efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); } if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate) }); } if (efl_pack_at_static_delegate == null) { efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); } if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate) }); } if (efl_pack_content_get_static_delegate == null) { efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); } if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate) }); } if (efl_pack_index_get_static_delegate == null) { efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); } if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate) }); } if (efl_pack_unpack_at_static_delegate == null) { efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); } if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate) }); } if (efl_content_iterate_static_delegate == null) { efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); } if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate) }); } if (efl_content_count_static_delegate == null) { efl_content_count_static_delegate = new efl_content_count_delegate(content_count); } if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate) }); } if (efl_pack_clear_static_delegate == null) { efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); } if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate) }); } if (efl_pack_unpack_all_static_delegate == null) { efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); } if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate) }); } if (efl_pack_unpack_static_delegate == null) { efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); } if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate) }); } if (efl_pack_static_delegate == null) { efl_pack_static_delegate = new efl_pack_delegate(pack); } if (methods.FirstOrDefault(m => m.Name == "Pack") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); } return descs; } /// Returns the Eo class for the native methods of this class. /// The native class pointer. public override IntPtr GetEflClass() { return Efl.IPackLinearConcrete.efl_pack_linear_interface_get(); } #pragma warning disable CA1707, CS1591, SA1300, SA1600 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_begin"); private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) { Eina.Log.Debug("function efl_pack_begin was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((IPackLinear)ws.Target).PackBegin(subobj); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); } } private static efl_pack_begin_delegate efl_pack_begin_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_end"); private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) { Eina.Log.Debug("function efl_pack_end was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((IPackLinear)ws.Target).PackEnd(subobj); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); } } private static efl_pack_end_delegate efl_pack_end_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_before"); private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { Eina.Log.Debug("function efl_pack_before was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((IPackLinear)ws.Target).PackBefore(subobj, existing); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); } } private static efl_pack_before_delegate efl_pack_before_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_after"); private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { Eina.Log.Debug("function efl_pack_after was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((IPackLinear)ws.Target).PackAfter(subobj, existing); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); } } private static efl_pack_after_delegate efl_pack_after_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_at"); private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) { Eina.Log.Debug("function efl_pack_at was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((IPackLinear)ws.Target).PackAt(subobj, index); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); } } private static efl_pack_at_delegate efl_pack_at_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_content_get"); private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) { Eina.Log.Debug("function efl_pack_content_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); try { _ret_var = ((IPackLinear)ws.Target).GetPackContent(index); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); } } private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_index_get"); private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) { Eina.Log.Debug("function efl_pack_index_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { int _ret_var = default(int); try { _ret_var = ((IPackLinear)ws.Target).GetPackIndex(subobj); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); } } private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_at"); private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) { Eina.Log.Debug("function efl_pack_unpack_at was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); try { _ret_var = ((IPackLinear)ws.Target).PackUnpackAt(index); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); } } private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_iterate"); private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_content_iterate was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Iterator _ret_var = default(Eina.Iterator); try { _ret_var = ((IPackLinear)ws.Target).ContentIterate(); } 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_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_content_iterate_delegate efl_content_iterate_static_delegate; private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); public delegate int efl_content_count_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_count"); private static int content_count(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_content_count was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { int _ret_var = default(int); try { _ret_var = ((IPackLinear)ws.Target).ContentCount(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_content_count_delegate efl_content_count_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_clear"); private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_pack_clear was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((IPackLinear)ws.Target).ClearPack(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_pack_clear_delegate efl_pack_clear_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_all"); private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_pack_unpack_all was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((IPackLinear)ws.Target).UnpackAll(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack"); private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) { Eina.Log.Debug("function efl_pack_unpack was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((IPackLinear)ws.Target).Unpack(subobj); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); } } private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack"); private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) { Eina.Log.Debug("function efl_pack was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((IPackLinear)ws.Target).Pack(subobj); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); } } private static efl_pack_delegate efl_pack_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 } } }