#pragma warning disable CS1591 using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; using System.ComponentModel; namespace Efl { namespace Access { /// Elementary access selection interface [ISelectionNativeInherit] public interface ISelection : Efl.Eo.IWrapper, IDisposable { /// Gets the number of currently selected children /// Number of currently selected children int GetSelectedChildrenCount(); /// Gets child for given child index /// Index of child /// Child object Efl.Object GetSelectedChild( int selected_child_index); /// Adds selection for given child index /// Index of child /// true if selection was added, false otherwise bool ChildSelect( int child_index); /// Removes selection for given child index /// Index of child /// true if selection was removed, false otherwise bool SelectedChildDeselect( int child_index); /// Determines if child specified by index is selected /// Index of child /// true if child is selected, false otherwise bool IsChildSelected( int child_index); /// Adds selection for all children /// true if selection was added to all children, false otherwise bool AllChildrenSelect(); /// Clears the current selection /// true if selection was cleared, false otherwise bool ClearAccessSelection(); /// Removes selection for given child index /// Index of child /// true if selection was removed, false otherwise bool ChildDeselect( int child_index); /// Called when selection has been changed. event EventHandler AccessSelectionChangedEvt; /// Gets the number of currently selected children /// Number of currently selected children int SelectedChildrenCount { get ; } } /// Elementary access selection interface sealed public class ISelectionConcrete : ISelection { ///Pointer to the native class description. public System.IntPtr NativeClass { get { if (((object)this).GetType() == typeof (ISelectionConcrete)) return Efl.Access.ISelectionNativeInherit.GetEflClassStatic(); else return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; } } private EventHandlerList eventHandlers = new EventHandlerList(); private System.IntPtr handle; ///Pointer to the native instance. public System.IntPtr NativeHandle { get { return handle; } } [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_access_selection_interface_get(); ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. private ISelectionConcrete(System.IntPtr raw) { handle = raw; RegisterEventProxies(); } ///Destructor. ~ISelectionConcrete() { Dispose(false); } ///Releases the underlying native instance. void Dispose(bool disposing) { if (handle != System.IntPtr.Zero) { Efl.Eo.Globals.efl_unref(handle); handle = System.IntPtr.Zero; } } ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } ///Verifies if the given object is equal to this one. public override bool Equals(object obj) { var other = obj as Efl.Object; if (other == null) return false; return this.NativeHandle == other.NativeHandle; } ///Gets the hash code for this object based on the native pointer it points to. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } ///Turns the native pointer into a string representation. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } private readonly object eventLock = new object(); private Dictionary event_cb_count = new Dictionary(); ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. ///The delegate to be called on event raising. ///True if the delegate was successfully registered. private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { int event_count = 0; if (!event_cb_count.TryGetValue(key, out event_count)) event_cb_count[key] = event_count; if (event_count == 0) { IntPtr desc = Efl.EventDescription.GetNative(lib, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return false; } bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); if (!result) { Eina.Log.Error($"Failed to add event proxy for event {key}"); return false; } Eina.Error.RaiseIfUnhandledException(); } event_cb_count[key]++; return true; } ///Removes the given event handler for the given event. For internal use only. ///The name of the native event. ///The delegate to be removed. ///True if the delegate was successfully registered. private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { int event_count = 0; if (!event_cb_count.TryGetValue(key, out event_count)) event_cb_count[key] = event_count; if (event_count == 1) { IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return false; } bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); if (!result) { Eina.Log.Error($"Failed to remove event proxy for event {key}"); return false; } Eina.Error.RaiseIfUnhandledException(); } else if (event_count == 0) { Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); return false; } event_cb_count[key]--; return true; } private static object AccessSelectionChangedEvtKey = new object(); /// Called when selection has been changed. public event EventHandler AccessSelectionChangedEvt { add { lock (eventLock) { string key = "_EFL_ACCESS_SELECTION_EVENT_ACCESS_SELECTION_CHANGED"; if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AccessSelectionChangedEvt_delegate)) { eventHandlers.AddHandler(AccessSelectionChangedEvtKey , value); } else Eina.Log.Error($"Error adding proxy for event {key}"); } } remove { lock (eventLock) { string key = "_EFL_ACCESS_SELECTION_EVENT_ACCESS_SELECTION_CHANGED"; if (RemoveNativeEventHandler(key, this.evt_AccessSelectionChangedEvt_delegate)) { eventHandlers.RemoveHandler(AccessSelectionChangedEvtKey , value); } else Eina.Log.Error($"Error removing proxy for event {key}"); } } } ///Method to raise event AccessSelectionChangedEvt. public void On_AccessSelectionChangedEvt(EventArgs e) { EventHandler evt; lock (eventLock) { evt = (EventHandler)eventHandlers[AccessSelectionChangedEvtKey]; } evt?.Invoke(this, e); } Efl.EventCb evt_AccessSelectionChangedEvt_delegate; private void on_AccessSelectionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) { EventArgs args = EventArgs.Empty; try { On_AccessSelectionChangedEvt(args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. void RegisterEventProxies() { evt_AccessSelectionChangedEvt_delegate = new Efl.EventCb(on_AccessSelectionChangedEvt_NativeCallback); } /// Gets the number of currently selected children /// Number of currently selected children public int GetSelectedChildrenCount() { var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_selected_children_count_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets child for given child index /// Index of child /// Child object public Efl.Object GetSelectedChild( int selected_child_index) { var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_selected_child_get_ptr.Value.Delegate(this.NativeHandle, selected_child_index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Adds selection for given child index /// Index of child /// true if selection was added, false otherwise public bool ChildSelect( int child_index) { var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_child_select_ptr.Value.Delegate(this.NativeHandle, child_index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes selection for given child index /// Index of child /// true if selection was removed, false otherwise public bool SelectedChildDeselect( int child_index) { var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_selected_child_deselect_ptr.Value.Delegate(this.NativeHandle, child_index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Determines if child specified by index is selected /// Index of child /// true if child is selected, false otherwise public bool IsChildSelected( int child_index) { var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_is_child_selected_ptr.Value.Delegate(this.NativeHandle, child_index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Adds selection for all children /// true if selection was added to all children, false otherwise public bool AllChildrenSelect() { var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_all_children_select_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Clears the current selection /// true if selection was cleared, false otherwise public bool ClearAccessSelection() { var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_clear_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes selection for given child index /// Index of child /// true if selection was removed, false otherwise public bool ChildDeselect( int child_index) { var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_child_deselect_ptr.Value.Delegate(this.NativeHandle, child_index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets the number of currently selected children /// Number of currently selected children public int SelectedChildrenCount { get { return GetSelectedChildrenCount(); } } private static IntPtr GetEflClassStatic() { return Efl.Access.ISelectionConcrete.efl_access_selection_interface_get(); } } public class ISelectionNativeInherit : Efl.Eo.NativeClass{ public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); 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_access_selection_selected_children_count_get_static_delegate == null) efl_access_selection_selected_children_count_get_static_delegate = new efl_access_selection_selected_children_count_get_delegate(selected_children_count_get); if (methods.FirstOrDefault(m => m.Name == "GetSelectedChildrenCount") != null) descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_selected_children_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_selected_children_count_get_static_delegate)}); if (efl_access_selection_selected_child_get_static_delegate == null) efl_access_selection_selected_child_get_static_delegate = new efl_access_selection_selected_child_get_delegate(selected_child_get); if (methods.FirstOrDefault(m => m.Name == "GetSelectedChild") != null) descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_selected_child_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_selected_child_get_static_delegate)}); if (efl_access_selection_child_select_static_delegate == null) efl_access_selection_child_select_static_delegate = new efl_access_selection_child_select_delegate(child_select); if (methods.FirstOrDefault(m => m.Name == "ChildSelect") != null) descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_child_select"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_child_select_static_delegate)}); if (efl_access_selection_selected_child_deselect_static_delegate == null) efl_access_selection_selected_child_deselect_static_delegate = new efl_access_selection_selected_child_deselect_delegate(selected_child_deselect); if (methods.FirstOrDefault(m => m.Name == "SelectedChildDeselect") != null) descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_selected_child_deselect"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_selected_child_deselect_static_delegate)}); if (efl_access_selection_is_child_selected_static_delegate == null) efl_access_selection_is_child_selected_static_delegate = new efl_access_selection_is_child_selected_delegate(is_child_selected); if (methods.FirstOrDefault(m => m.Name == "IsChildSelected") != null) descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_is_child_selected"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_is_child_selected_static_delegate)}); if (efl_access_selection_all_children_select_static_delegate == null) efl_access_selection_all_children_select_static_delegate = new efl_access_selection_all_children_select_delegate(all_children_select); if (methods.FirstOrDefault(m => m.Name == "AllChildrenSelect") != null) descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_all_children_select"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_all_children_select_static_delegate)}); if (efl_access_selection_clear_static_delegate == null) efl_access_selection_clear_static_delegate = new efl_access_selection_clear_delegate(access_selection_clear); if (methods.FirstOrDefault(m => m.Name == "ClearAccessSelection") != null) descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_clear_static_delegate)}); if (efl_access_selection_child_deselect_static_delegate == null) efl_access_selection_child_deselect_static_delegate = new efl_access_selection_child_deselect_delegate(child_deselect); if (methods.FirstOrDefault(m => m.Name == "ChildDeselect") != null) descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_child_deselect"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_child_deselect_static_delegate)}); return descs; } public override IntPtr GetEflClass() { return Efl.Access.ISelectionConcrete.efl_access_selection_interface_get(); } public static IntPtr GetEflClassStatic() { return Efl.Access.ISelectionConcrete.efl_access_selection_interface_get(); } private delegate int efl_access_selection_selected_children_count_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate int efl_access_selection_selected_children_count_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_access_selection_selected_children_count_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_selected_children_count_get"); private static int selected_children_count_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_access_selection_selected_children_count_get was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if(wrapper != null) { int _ret_var = default(int); try { _ret_var = ((ISelection)wrapper).GetSelectedChildrenCount(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_access_selection_selected_children_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_access_selection_selected_children_count_get_delegate efl_access_selection_selected_children_count_get_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Object efl_access_selection_selected_child_get_delegate(System.IntPtr obj, System.IntPtr pd, int selected_child_index); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Object efl_access_selection_selected_child_get_api_delegate(System.IntPtr obj, int selected_child_index); public static Efl.Eo.FunctionWrapper efl_access_selection_selected_child_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_selected_child_get"); private static Efl.Object selected_child_get(System.IntPtr obj, System.IntPtr pd, int selected_child_index) { Eina.Log.Debug("function efl_access_selection_selected_child_get was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if(wrapper != null) { Efl.Object _ret_var = default(Efl.Object); try { _ret_var = ((ISelection)wrapper).GetSelectedChild( selected_child_index); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_access_selection_selected_child_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selected_child_index); } } private static efl_access_selection_selected_child_get_delegate efl_access_selection_selected_child_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_selection_child_select_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_selection_child_select_api_delegate(System.IntPtr obj, int child_index); public static Efl.Eo.FunctionWrapper efl_access_selection_child_select_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_child_select"); private static bool child_select(System.IntPtr obj, System.IntPtr pd, int child_index) { Eina.Log.Debug("function efl_access_selection_child_select was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if(wrapper != null) { bool _ret_var = default(bool); try { _ret_var = ((ISelection)wrapper).ChildSelect( child_index); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_access_selection_child_select_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); } } private static efl_access_selection_child_select_delegate efl_access_selection_child_select_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_selection_selected_child_deselect_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_selection_selected_child_deselect_api_delegate(System.IntPtr obj, int child_index); public static Efl.Eo.FunctionWrapper efl_access_selection_selected_child_deselect_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_selected_child_deselect"); private static bool selected_child_deselect(System.IntPtr obj, System.IntPtr pd, int child_index) { Eina.Log.Debug("function efl_access_selection_selected_child_deselect was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if(wrapper != null) { bool _ret_var = default(bool); try { _ret_var = ((ISelection)wrapper).SelectedChildDeselect( child_index); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_access_selection_selected_child_deselect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); } } private static efl_access_selection_selected_child_deselect_delegate efl_access_selection_selected_child_deselect_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_selection_is_child_selected_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_selection_is_child_selected_api_delegate(System.IntPtr obj, int child_index); public static Efl.Eo.FunctionWrapper efl_access_selection_is_child_selected_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_is_child_selected"); private static bool is_child_selected(System.IntPtr obj, System.IntPtr pd, int child_index) { Eina.Log.Debug("function efl_access_selection_is_child_selected was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if(wrapper != null) { bool _ret_var = default(bool); try { _ret_var = ((ISelection)wrapper).IsChildSelected( child_index); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_access_selection_is_child_selected_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); } } private static efl_access_selection_is_child_selected_delegate efl_access_selection_is_child_selected_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_selection_all_children_select_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_selection_all_children_select_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_access_selection_all_children_select_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_all_children_select"); private static bool all_children_select(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_access_selection_all_children_select was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if(wrapper != null) { bool _ret_var = default(bool); try { _ret_var = ((ISelection)wrapper).AllChildrenSelect(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_access_selection_all_children_select_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_access_selection_all_children_select_delegate efl_access_selection_all_children_select_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_selection_clear_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_selection_clear_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_access_selection_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_clear"); private static bool access_selection_clear(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_access_selection_clear was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if(wrapper != null) { bool _ret_var = default(bool); try { _ret_var = ((ISelection)wrapper).ClearAccessSelection(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_access_selection_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_access_selection_clear_delegate efl_access_selection_clear_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_selection_child_deselect_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_selection_child_deselect_api_delegate(System.IntPtr obj, int child_index); public static Efl.Eo.FunctionWrapper efl_access_selection_child_deselect_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_child_deselect"); private static bool child_deselect(System.IntPtr obj, System.IntPtr pd, int child_index) { Eina.Log.Debug("function efl_access_selection_child_deselect was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if(wrapper != null) { bool _ret_var = default(bool); try { _ret_var = ((ISelection)wrapper).ChildDeselect( child_index); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_access_selection_child_deselect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); } } private static efl_access_selection_child_deselect_delegate efl_access_selection_child_deselect_static_delegate; } } }