#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 { namespace Canvas { ///Event argument wrapper for event . public class GroupMemberAddedEvt_Args : EventArgs { ///Actual event payload. public Efl.Gfx.IEntity arg { get; set; } } ///Event argument wrapper for event . public class GroupMemberRemovedEvt_Args : EventArgs { ///Actual event payload. public Efl.Gfx.IEntity arg { get; set; } } /// A group object is a container for other canvas objects. Its children move along their parent and are often clipped with a common clipper. This is part of the legacy smart object concept. /// A group is not necessarily a container (see ) in the sense that a standard widget may not have any empty slots for content. However it's still a group of low-level canvas objects (clipper, raw objects, etc.). /// (Since EFL 1.22) [Efl.Canvas.Group.NativeMethods] public class Group : Efl.Canvas.Object, Efl.Eo.IWrapper { ///Pointer to the native class description. public override System.IntPtr NativeClass { get { if (((object)this).GetType() == typeof(Group)) { return GetEflClassStatic(); } else { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; } } } [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_group_class_get(); /// Initializes a new instance of the class. /// Parent instance. public Group(Efl.Object parent= null ) : base(efl_canvas_group_class_get(), typeof(Group), parent) { FinishInstantiation(); } /// 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 Group(System.IntPtr raw) : base(raw) { } /// 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 managed type of the public constructor that originated this call. /// The Efl.Object parent of this instance. protected Group(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) { } /// Verifies if the given object is equal to this one. /// The object to compare to. /// True if both objects point to the same native object. public override bool Equals(object instance) { var other = instance 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. /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } /// Turns the native pointer into a string representation. /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } /// Called when a member is added to the group. /// (Since EFL 1.22) public event EventHandler MemberAddedEvt { add { lock (eventLock) { var wRef = new WeakReference(this); Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = wRef.Target as Efl.Eo.IWrapper; if (obj != null) { Efl.Canvas.GroupMemberAddedEvt_Args args = new Efl.Canvas.GroupMemberAddedEvt_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_CANVAS_GROUP_EVENT_MEMBER_ADDED"; AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } remove { lock (eventLock) { string key = "_EFL_CANVAS_GROUP_EVENT_MEMBER_ADDED"; RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event MemberAddedEvt. public void OnMemberAddedEvt(Efl.Canvas.GroupMemberAddedEvt_Args e) { var key = "_EFL_CANVAS_GROUP_EVENT_MEMBER_ADDED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, 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); } /// Called when a member is removed from the group. /// (Since EFL 1.22) public event EventHandler MemberRemovedEvt { add { lock (eventLock) { var wRef = new WeakReference(this); Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = wRef.Target as Efl.Eo.IWrapper; if (obj != null) { Efl.Canvas.GroupMemberRemovedEvt_Args args = new Efl.Canvas.GroupMemberRemovedEvt_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_CANVAS_GROUP_EVENT_MEMBER_REMOVED"; AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } remove { lock (eventLock) { string key = "_EFL_CANVAS_GROUP_EVENT_MEMBER_REMOVED"; RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event MemberRemovedEvt. public void OnMemberRemovedEvt(Efl.Canvas.GroupMemberRemovedEvt_Args e) { var key = "_EFL_CANVAS_GROUP_EVENT_MEMBER_REMOVED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, 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); } /// Indicates that the group's layout needs to be recalculated. /// If this flag is set, then the function will be called, during rendering phase of the canvas. After that, this flag will be automatically unset. /// /// Note: setting this flag alone will not make the canvas' whole scene dirty. Using evas_render() will have no effect. To force this, use , which will also call this function automatically, with the parameter set to true. /// /// See also . /// (Since EFL 1.22) /// true if the group layout needs to be recalculated, false otherwise virtual public bool GetGroupNeedRecalculate() { var _ret_var = Efl.Canvas.Group.NativeMethods.efl_canvas_group_need_recalculate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Indicates that the group's layout needs to be recalculated. /// If this flag is set, then the function will be called, during rendering phase of the canvas. After that, this flag will be automatically unset. /// /// Note: setting this flag alone will not make the canvas' whole scene dirty. Using evas_render() will have no effect. To force this, use , which will also call this function automatically, with the parameter set to true. /// /// See also . /// (Since EFL 1.22) /// true if the group layout needs to be recalculated, false otherwise virtual public void SetGroupNeedRecalculate(bool value) { Efl.Canvas.Group.NativeMethods.efl_canvas_group_need_recalculate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } /// Get the internal clipper. /// (Since EFL 1.22) /// A clipper rectangle. virtual public Efl.Canvas.Object GetGroupClipper() { var _ret_var = Efl.Canvas.Group.NativeMethods.efl_canvas_group_clipper_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Marks the object as dirty. /// This also forcefully marks the given object as needing recalculation. As an effect, on the next rendering cycle its method will be called. /// (Since EFL 1.22) virtual public void GroupChange() { Efl.Canvas.Group.NativeMethods.efl_canvas_group_change_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Triggers an immediate recalculation of this object's geometry. /// This will also reset the flag . /// (Since EFL 1.22) virtual public void CalculateGroup() { Efl.Canvas.Group.NativeMethods.efl_canvas_group_calculate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Returns an iterator over the children of this object, which are canvas objects. /// This returns the list of "smart" children. This might be different from both the children list as well as the content list. /// (Since EFL 1.22) /// Iterator to object children virtual public Eina.Iterator GroupMembersIterate() { var _ret_var = Efl.Canvas.Group.NativeMethods.efl_canvas_group_members_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } /// Set a canvas object as a member of a given group (or smart object). /// Members will automatically be stacked and layered together with the smart object. The various stacking functions will operate on members relative to the other members instead of the entire canvas, since they now live on an exclusive layer (see , for more details). /// /// Subclasses inheriting from this one may override this function to ensure the proper stacking of special objects, such as clippers, event rectangles, etc... /// /// See also . See also . /// (Since EFL 1.22) /// The member object. virtual public void AddGroupMember(Efl.Canvas.Object sub_obj) { Efl.Canvas.Group.NativeMethods.efl_canvas_group_member_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sub_obj); Eina.Error.RaiseIfUnhandledException(); } /// Removes a member object from a given smart object. /// This removes a member object from a smart object, if it was added to any. The object will still be on the canvas, but no longer associated with whichever smart object it was associated with. /// /// See also . See also . /// (Since EFL 1.22) /// The member object to remove. virtual public void GroupMemberRemove(Efl.Canvas.Object sub_obj) { Efl.Canvas.Group.NativeMethods.efl_canvas_group_member_remove_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sub_obj); Eina.Error.RaiseIfUnhandledException(); } /// Finds out if a given object is a member of this group. /// (Since EFL 1.22) /// A potential sub object. /// true if sub_obj is a member of this group. virtual public bool IsGroupMember(Efl.Canvas.Object sub_obj) { var _ret_var = Efl.Canvas.Group.NativeMethods.efl_canvas_group_member_is_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sub_obj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Indicates that the group's layout needs to be recalculated. /// If this flag is set, then the function will be called, during rendering phase of the canvas. After that, this flag will be automatically unset. /// /// Note: setting this flag alone will not make the canvas' whole scene dirty. Using evas_render() will have no effect. To force this, use , which will also call this function automatically, with the parameter set to true. /// /// See also . /// (Since EFL 1.22) /// true if the group layout needs to be recalculated, false otherwise public bool GroupNeedRecalculate { get { return GetGroupNeedRecalculate(); } set { SetGroupNeedRecalculate(value); } } /// The internal clipper object used by this group. /// This is the object clipping all the child objects. Do not delete or otherwise modify this clipper! /// (Since EFL 1.22) /// A clipper rectangle. public Efl.Canvas.Object GroupClipper { get { return GetGroupClipper(); } } private static IntPtr GetEflClassStatic() { return Efl.Canvas.Group.efl_canvas_group_class_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. public new class NativeMethods : Efl.Canvas.Object.NativeMethods { private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); /// 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_canvas_group_need_recalculate_get_static_delegate == null) { efl_canvas_group_need_recalculate_get_static_delegate = new efl_canvas_group_need_recalculate_get_delegate(group_need_recalculate_get); } if (methods.FirstOrDefault(m => m.Name == "GetGroupNeedRecalculate") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_group_need_recalculate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_need_recalculate_get_static_delegate) }); } if (efl_canvas_group_need_recalculate_set_static_delegate == null) { efl_canvas_group_need_recalculate_set_static_delegate = new efl_canvas_group_need_recalculate_set_delegate(group_need_recalculate_set); } if (methods.FirstOrDefault(m => m.Name == "SetGroupNeedRecalculate") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_group_need_recalculate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_need_recalculate_set_static_delegate) }); } if (efl_canvas_group_clipper_get_static_delegate == null) { efl_canvas_group_clipper_get_static_delegate = new efl_canvas_group_clipper_get_delegate(group_clipper_get); } if (methods.FirstOrDefault(m => m.Name == "GetGroupClipper") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_group_clipper_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_clipper_get_static_delegate) }); } if (efl_canvas_group_change_static_delegate == null) { efl_canvas_group_change_static_delegate = new efl_canvas_group_change_delegate(group_change); } if (methods.FirstOrDefault(m => m.Name == "GroupChange") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_group_change"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_change_static_delegate) }); } if (efl_canvas_group_calculate_static_delegate == null) { efl_canvas_group_calculate_static_delegate = new efl_canvas_group_calculate_delegate(group_calculate); } if (methods.FirstOrDefault(m => m.Name == "CalculateGroup") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_group_calculate"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_calculate_static_delegate) }); } if (efl_canvas_group_members_iterate_static_delegate == null) { efl_canvas_group_members_iterate_static_delegate = new efl_canvas_group_members_iterate_delegate(group_members_iterate); } if (methods.FirstOrDefault(m => m.Name == "GroupMembersIterate") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_group_members_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_members_iterate_static_delegate) }); } if (efl_canvas_group_member_add_static_delegate == null) { efl_canvas_group_member_add_static_delegate = new efl_canvas_group_member_add_delegate(group_member_add); } if (methods.FirstOrDefault(m => m.Name == "AddGroupMember") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_group_member_add"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_member_add_static_delegate) }); } if (efl_canvas_group_member_remove_static_delegate == null) { efl_canvas_group_member_remove_static_delegate = new efl_canvas_group_member_remove_delegate(group_member_remove); } if (methods.FirstOrDefault(m => m.Name == "GroupMemberRemove") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_group_member_remove"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_member_remove_static_delegate) }); } if (efl_canvas_group_member_is_static_delegate == null) { efl_canvas_group_member_is_static_delegate = new efl_canvas_group_member_is_delegate(group_member_is); } if (methods.FirstOrDefault(m => m.Name == "IsGroupMember") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_group_member_is"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_member_is_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.Canvas.Group.efl_canvas_group_class_get(); } #pragma warning disable CA1707, SA1300, SA1600 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_group_need_recalculate_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_group_need_recalculate_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_canvas_group_need_recalculate_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_group_need_recalculate_get"); private static bool group_need_recalculate_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_canvas_group_need_recalculate_get was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { bool _ret_var = default(bool); try { _ret_var = ((Group)wrapper).GetGroupNeedRecalculate(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_canvas_group_need_recalculate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_canvas_group_need_recalculate_get_delegate efl_canvas_group_need_recalculate_get_static_delegate; private delegate void efl_canvas_group_need_recalculate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool value); public delegate void efl_canvas_group_need_recalculate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool value); public static Efl.Eo.FunctionWrapper efl_canvas_group_need_recalculate_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_group_need_recalculate_set"); private static void group_need_recalculate_set(System.IntPtr obj, System.IntPtr pd, bool value) { Eina.Log.Debug("function efl_canvas_group_need_recalculate_set was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { try { ((Group)wrapper).SetGroupNeedRecalculate(value); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_canvas_group_need_recalculate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); } } private static efl_canvas_group_need_recalculate_set_delegate efl_canvas_group_need_recalculate_set_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Canvas.Object efl_canvas_group_clipper_get_delegate(System.IntPtr obj, System.IntPtr pd); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Canvas.Object efl_canvas_group_clipper_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_canvas_group_clipper_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_group_clipper_get"); private static Efl.Canvas.Object group_clipper_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_canvas_group_clipper_get was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); try { _ret_var = ((Group)wrapper).GetGroupClipper(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_canvas_group_clipper_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_canvas_group_clipper_get_delegate efl_canvas_group_clipper_get_static_delegate; private delegate void efl_canvas_group_change_delegate(System.IntPtr obj, System.IntPtr pd); public delegate void efl_canvas_group_change_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_canvas_group_change_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_group_change"); private static void group_change(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_canvas_group_change was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { try { ((Group)wrapper).GroupChange(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_canvas_group_change_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_canvas_group_change_delegate efl_canvas_group_change_static_delegate; private delegate void efl_canvas_group_calculate_delegate(System.IntPtr obj, System.IntPtr pd); public delegate void efl_canvas_group_calculate_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_canvas_group_calculate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_group_calculate"); private static void group_calculate(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_canvas_group_calculate was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { try { ((Group)wrapper).CalculateGroup(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_canvas_group_calculate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_canvas_group_calculate_delegate efl_canvas_group_calculate_static_delegate; private delegate System.IntPtr efl_canvas_group_members_iterate_delegate(System.IntPtr obj, System.IntPtr pd); public delegate System.IntPtr efl_canvas_group_members_iterate_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_canvas_group_members_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_group_members_iterate"); private static System.IntPtr group_members_iterate(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_canvas_group_members_iterate was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { Eina.Iterator _ret_var = default(Eina.Iterator); try { _ret_var = ((Group)wrapper).GroupMembersIterate(); } 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_canvas_group_members_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_canvas_group_members_iterate_delegate efl_canvas_group_members_iterate_static_delegate; private delegate void efl_canvas_group_member_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object sub_obj); public delegate void efl_canvas_group_member_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object sub_obj); public static Efl.Eo.FunctionWrapper efl_canvas_group_member_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_group_member_add"); private static void group_member_add(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object sub_obj) { Eina.Log.Debug("function efl_canvas_group_member_add was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { try { ((Group)wrapper).AddGroupMember(sub_obj); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_canvas_group_member_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sub_obj); } } private static efl_canvas_group_member_add_delegate efl_canvas_group_member_add_static_delegate; private delegate void efl_canvas_group_member_remove_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object sub_obj); public delegate void efl_canvas_group_member_remove_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object sub_obj); public static Efl.Eo.FunctionWrapper efl_canvas_group_member_remove_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_group_member_remove"); private static void group_member_remove(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object sub_obj) { Eina.Log.Debug("function efl_canvas_group_member_remove was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { try { ((Group)wrapper).GroupMemberRemove(sub_obj); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_canvas_group_member_remove_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sub_obj); } } private static efl_canvas_group_member_remove_delegate efl_canvas_group_member_remove_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_group_member_is_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object sub_obj); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_group_member_is_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object sub_obj); public static Efl.Eo.FunctionWrapper efl_canvas_group_member_is_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_group_member_is"); private static bool group_member_is(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object sub_obj) { Eina.Log.Debug("function efl_canvas_group_member_is was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { bool _ret_var = default(bool); try { _ret_var = ((Group)wrapper).IsGroupMember(sub_obj); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_canvas_group_member_is_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sub_obj); } } private static efl_canvas_group_member_is_delegate efl_canvas_group_member_is_static_delegate; #pragma warning restore CA1707, SA1300, SA1600 } } } }