#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 Gfx { public partial class Constants { /// bottom-most layer number public static readonly short StackLayerMin = -32768; } } } namespace Efl { namespace Gfx { public partial class Constants { /// top-most layer number public static readonly short StackLayerMax = 32767; } } } namespace Efl { namespace Gfx { /// Efl graphics stack interface /// (Since EFL 1.22) [Efl.Gfx.IStackConcrete.NativeMethods] public interface IStack : Efl.Eo.IWrapper, IDisposable { /// Retrieves the layer of its canvas that the given object is part of. /// See also /// (Since EFL 1.22) /// The number of the layer to place the object on. Must be between and . short GetLayer(); /// Sets the layer of its canvas that the given object will be part of. /// If you don't use this function, you'll be dealing with an unique layer of objects (the default one). Additional layers are handy when you don't want a set of objects to interfere with another set with regard to stacking. Two layers are completely disjoint in that matter. /// /// This is a low-level function, which you'd be using when something should be always on top, for example. /// /// Warning: Don't change the layer of smart objects' children. Smart objects have a layer of their own, which should contain all their child objects. /// /// See also /// (Since EFL 1.22) /// The number of the layer to place the object on. Must be between and . void SetLayer(short l); /// Get the Evas object stacked right below obj /// This function will traverse layers in its search, if there are objects on layers below the one obj is placed at. /// /// See also , and /// (Since EFL 1.22) /// The object directly below obj, if any, or null, if none. Efl.Gfx.IStack GetBelow(); /// Get the Evas object stacked right above obj /// This function will traverse layers in its search, if there are objects on layers above the one obj is placed at. /// /// See also , and /// (Since EFL 1.22) /// The object directly below obj, if any, or null, if none. Efl.Gfx.IStack GetAbove(); /// Stack obj immediately below /// Objects, in a given canvas, are stacked in the order they're added. This means that, if they overlap, the highest ones will cover the lowest ones, in that order. This function is a way to change the stacking order for the objects. /// /// Its intended to be used with objects belonging to the same layer in a given canvas, otherwise it will fail (and accomplish nothing). /// /// If you have smart objects on your canvas and obj is a member of one of them, then below must also be a member of the same smart object. /// /// Similarly, if obj is not a member of a smart object, below must not be either. /// /// See also , and /// (Since EFL 1.22) /// The object below which to stack void StackBelow(Efl.Gfx.IStack below); /// Raise obj to the top of its layer. /// obj will, then, be the highest one in the layer it belongs to. Object on other layers won't get touched. /// /// See also , and /// (Since EFL 1.22) void RaiseToTop(); /// Stack obj immediately above /// Objects, in a given canvas, are stacked in the order they're added. This means that, if they overlap, the highest ones will cover the lowest ones, in that order. This function is a way to change the stacking order for the objects. /// /// Its intended to be used with objects belonging to the same layer in a given canvas, otherwise it will fail (and accomplish nothing). /// /// If you have smart objects on your canvas and obj is a member of one of them, then above must also be a member of the same smart object. /// /// Similarly, if obj is not a member of a smart object, above must not be either. /// /// See also , and /// (Since EFL 1.22) /// The object above which to stack void StackAbove(Efl.Gfx.IStack above); /// Lower obj to the bottom of its layer. /// obj will, then, be the lowest one in the layer it belongs to. Objects on other layers won't get touched. /// /// See also , and /// (Since EFL 1.22) void LowerToBottom(); /// Object stacking was changed. /// (Since EFL 1.22) event EventHandler StackingChangedEvt; /// Retrieves the layer of its canvas that the given object is part of. /// See also /// (Since EFL 1.22) /// The number of the layer to place the object on. Must be between and . short Layer { get ; set ; } /// Get the Evas object stacked right below obj /// This function will traverse layers in its search, if there are objects on layers below the one obj is placed at. /// /// See also , and /// (Since EFL 1.22) /// The object directly below obj, if any, or null, if none. Efl.Gfx.IStack Below { get ; } /// Get the Evas object stacked right above obj /// This function will traverse layers in its search, if there are objects on layers above the one obj is placed at. /// /// See also , and /// (Since EFL 1.22) /// The object directly below obj, if any, or null, if none. Efl.Gfx.IStack Above { get ; } } /// Efl graphics stack interface /// (Since EFL 1.22) sealed public class IStackConcrete : Efl.Eo.EoWrapper , IStack { ///Pointer to the native class description. public override System.IntPtr NativeClass { get { if (((object)this).GetType() == typeof(IStackConcrete)) { return GetEflClassStatic(); } else { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; } } } [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_stack_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 IStackConcrete(System.IntPtr raw) : base(raw) { } /// Object stacking was changed. /// (Since EFL 1.22) public event EventHandler StackingChangedEvt { add { lock (eventLock) { 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_GFX_ENTITY_EVENT_STACKING_CHANGED"; AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } remove { lock (eventLock) { string key = "_EFL_GFX_ENTITY_EVENT_STACKING_CHANGED"; RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event StackingChangedEvt. public void OnStackingChangedEvt(EventArgs e) { var key = "_EFL_GFX_ENTITY_EVENT_STACKING_CHANGED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, 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); } /// Retrieves the layer of its canvas that the given object is part of. /// See also /// (Since EFL 1.22) /// The number of the layer to place the object on. Must be between and . public short GetLayer() { var _ret_var = Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_layer_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the layer of its canvas that the given object will be part of. /// If you don't use this function, you'll be dealing with an unique layer of objects (the default one). Additional layers are handy when you don't want a set of objects to interfere with another set with regard to stacking. Two layers are completely disjoint in that matter. /// /// This is a low-level function, which you'd be using when something should be always on top, for example. /// /// Warning: Don't change the layer of smart objects' children. Smart objects have a layer of their own, which should contain all their child objects. /// /// See also /// (Since EFL 1.22) /// The number of the layer to place the object on. Must be between and . public void SetLayer(short l) { Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_layer_set_ptr.Value.Delegate(this.NativeHandle,l); Eina.Error.RaiseIfUnhandledException(); } /// Get the Evas object stacked right below obj /// This function will traverse layers in its search, if there are objects on layers below the one obj is placed at. /// /// See also , and /// (Since EFL 1.22) /// The object directly below obj, if any, or null, if none. public Efl.Gfx.IStack GetBelow() { var _ret_var = Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_below_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the Evas object stacked right above obj /// This function will traverse layers in its search, if there are objects on layers above the one obj is placed at. /// /// See also , and /// (Since EFL 1.22) /// The object directly below obj, if any, or null, if none. public Efl.Gfx.IStack GetAbove() { var _ret_var = Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_above_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Stack obj immediately below /// Objects, in a given canvas, are stacked in the order they're added. This means that, if they overlap, the highest ones will cover the lowest ones, in that order. This function is a way to change the stacking order for the objects. /// /// Its intended to be used with objects belonging to the same layer in a given canvas, otherwise it will fail (and accomplish nothing). /// /// If you have smart objects on your canvas and obj is a member of one of them, then below must also be a member of the same smart object. /// /// Similarly, if obj is not a member of a smart object, below must not be either. /// /// See also , and /// (Since EFL 1.22) /// The object below which to stack public void StackBelow(Efl.Gfx.IStack below) { Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_below_ptr.Value.Delegate(this.NativeHandle,below); Eina.Error.RaiseIfUnhandledException(); } /// Raise obj to the top of its layer. /// obj will, then, be the highest one in the layer it belongs to. Object on other layers won't get touched. /// /// See also , and /// (Since EFL 1.22) public void RaiseToTop() { Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_raise_to_top_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Stack obj immediately above /// Objects, in a given canvas, are stacked in the order they're added. This means that, if they overlap, the highest ones will cover the lowest ones, in that order. This function is a way to change the stacking order for the objects. /// /// Its intended to be used with objects belonging to the same layer in a given canvas, otherwise it will fail (and accomplish nothing). /// /// If you have smart objects on your canvas and obj is a member of one of them, then above must also be a member of the same smart object. /// /// Similarly, if obj is not a member of a smart object, above must not be either. /// /// See also , and /// (Since EFL 1.22) /// The object above which to stack public void StackAbove(Efl.Gfx.IStack above) { Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_above_ptr.Value.Delegate(this.NativeHandle,above); Eina.Error.RaiseIfUnhandledException(); } /// Lower obj to the bottom of its layer. /// obj will, then, be the lowest one in the layer it belongs to. Objects on other layers won't get touched. /// /// See also , and /// (Since EFL 1.22) public void LowerToBottom() { Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_lower_to_bottom_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the layer of its canvas that the given object is part of. /// See also /// (Since EFL 1.22) /// The number of the layer to place the object on. Must be between and . public short Layer { get { return GetLayer(); } set { SetLayer(value); } } /// Get the Evas object stacked right below obj /// This function will traverse layers in its search, if there are objects on layers below the one obj is placed at. /// /// See also , and /// (Since EFL 1.22) /// The object directly below obj, if any, or null, if none. public Efl.Gfx.IStack Below { get { return GetBelow(); } } /// Get the Evas object stacked right above obj /// This function will traverse layers in its search, if there are objects on layers above the one obj is placed at. /// /// See also , and /// (Since EFL 1.22) /// The object directly below obj, if any, or null, if none. public Efl.Gfx.IStack Above { get { return GetAbove(); } } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IStackConcrete.efl_gfx_stack_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_gfx_stack_layer_get_static_delegate == null) { efl_gfx_stack_layer_get_static_delegate = new efl_gfx_stack_layer_get_delegate(layer_get); } if (methods.FirstOrDefault(m => m.Name == "GetLayer") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_layer_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_layer_get_static_delegate) }); } if (efl_gfx_stack_layer_set_static_delegate == null) { efl_gfx_stack_layer_set_static_delegate = new efl_gfx_stack_layer_set_delegate(layer_set); } if (methods.FirstOrDefault(m => m.Name == "SetLayer") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_layer_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_layer_set_static_delegate) }); } if (efl_gfx_stack_below_get_static_delegate == null) { efl_gfx_stack_below_get_static_delegate = new efl_gfx_stack_below_get_delegate(below_get); } if (methods.FirstOrDefault(m => m.Name == "GetBelow") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_below_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_below_get_static_delegate) }); } if (efl_gfx_stack_above_get_static_delegate == null) { efl_gfx_stack_above_get_static_delegate = new efl_gfx_stack_above_get_delegate(above_get); } if (methods.FirstOrDefault(m => m.Name == "GetAbove") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_above_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_above_get_static_delegate) }); } if (efl_gfx_stack_below_static_delegate == null) { efl_gfx_stack_below_static_delegate = new efl_gfx_stack_below_delegate(stack_below); } if (methods.FirstOrDefault(m => m.Name == "StackBelow") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_below"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_below_static_delegate) }); } if (efl_gfx_stack_raise_to_top_static_delegate == null) { efl_gfx_stack_raise_to_top_static_delegate = new efl_gfx_stack_raise_to_top_delegate(raise_to_top); } if (methods.FirstOrDefault(m => m.Name == "RaiseToTop") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_raise_to_top"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_raise_to_top_static_delegate) }); } if (efl_gfx_stack_above_static_delegate == null) { efl_gfx_stack_above_static_delegate = new efl_gfx_stack_above_delegate(stack_above); } if (methods.FirstOrDefault(m => m.Name == "StackAbove") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_above"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_above_static_delegate) }); } if (efl_gfx_stack_lower_to_bottom_static_delegate == null) { efl_gfx_stack_lower_to_bottom_static_delegate = new efl_gfx_stack_lower_to_bottom_delegate(lower_to_bottom); } if (methods.FirstOrDefault(m => m.Name == "LowerToBottom") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_lower_to_bottom"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_lower_to_bottom_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.Gfx.IStackConcrete.efl_gfx_stack_interface_get(); } #pragma warning disable CA1707, CS1591, SA1300, SA1600 private delegate short efl_gfx_stack_layer_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate short efl_gfx_stack_layer_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_gfx_stack_layer_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_layer_get"); private static short layer_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_gfx_stack_layer_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { short _ret_var = default(short); try { _ret_var = ((IStack)ws.Target).GetLayer(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_gfx_stack_layer_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_gfx_stack_layer_get_delegate efl_gfx_stack_layer_get_static_delegate; private delegate void efl_gfx_stack_layer_set_delegate(System.IntPtr obj, System.IntPtr pd, short l); public delegate void efl_gfx_stack_layer_set_api_delegate(System.IntPtr obj, short l); public static Efl.Eo.FunctionWrapper efl_gfx_stack_layer_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_layer_set"); private static void layer_set(System.IntPtr obj, System.IntPtr pd, short l) { Eina.Log.Debug("function efl_gfx_stack_layer_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((IStack)ws.Target).SetLayer(l); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_gfx_stack_layer_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l); } } private static efl_gfx_stack_layer_set_delegate efl_gfx_stack_layer_set_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Gfx.IStack efl_gfx_stack_below_get_delegate(System.IntPtr obj, System.IntPtr pd); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Gfx.IStack efl_gfx_stack_below_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_gfx_stack_below_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_below_get"); private static Efl.Gfx.IStack below_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_gfx_stack_below_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Gfx.IStack _ret_var = default(Efl.Gfx.IStack); try { _ret_var = ((IStack)ws.Target).GetBelow(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_gfx_stack_below_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_gfx_stack_below_get_delegate efl_gfx_stack_below_get_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Gfx.IStack efl_gfx_stack_above_get_delegate(System.IntPtr obj, System.IntPtr pd); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Gfx.IStack efl_gfx_stack_above_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_gfx_stack_above_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_above_get"); private static Efl.Gfx.IStack above_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_gfx_stack_above_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Gfx.IStack _ret_var = default(Efl.Gfx.IStack); try { _ret_var = ((IStack)ws.Target).GetAbove(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_gfx_stack_above_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_gfx_stack_above_get_delegate efl_gfx_stack_above_get_static_delegate; private delegate void efl_gfx_stack_below_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack below); public delegate void efl_gfx_stack_below_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack below); public static Efl.Eo.FunctionWrapper efl_gfx_stack_below_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_below"); private static void stack_below(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IStack below) { Eina.Log.Debug("function efl_gfx_stack_below was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((IStack)ws.Target).StackBelow(below); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_gfx_stack_below_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), below); } } private static efl_gfx_stack_below_delegate efl_gfx_stack_below_static_delegate; private delegate void efl_gfx_stack_raise_to_top_delegate(System.IntPtr obj, System.IntPtr pd); public delegate void efl_gfx_stack_raise_to_top_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_gfx_stack_raise_to_top_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_raise_to_top"); private static void raise_to_top(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_gfx_stack_raise_to_top was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((IStack)ws.Target).RaiseToTop(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_gfx_stack_raise_to_top_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_gfx_stack_raise_to_top_delegate efl_gfx_stack_raise_to_top_static_delegate; private delegate void efl_gfx_stack_above_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack above); public delegate void efl_gfx_stack_above_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack above); public static Efl.Eo.FunctionWrapper efl_gfx_stack_above_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_above"); private static void stack_above(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IStack above) { Eina.Log.Debug("function efl_gfx_stack_above was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((IStack)ws.Target).StackAbove(above); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_gfx_stack_above_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), above); } } private static efl_gfx_stack_above_delegate efl_gfx_stack_above_static_delegate; private delegate void efl_gfx_stack_lower_to_bottom_delegate(System.IntPtr obj, System.IntPtr pd); public delegate void efl_gfx_stack_lower_to_bottom_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_gfx_stack_lower_to_bottom_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_lower_to_bottom"); private static void lower_to_bottom(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_gfx_stack_lower_to_bottom was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((IStack)ws.Target).LowerToBottom(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_gfx_stack_lower_to_bottom_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_gfx_stack_lower_to_bottom_delegate efl_gfx_stack_lower_to_bottom_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 } } } }