/// <summary>Set the list of color stops for the gradient</summary>
 /// <param name="colors">Color stops list</param>
 /// <param name="length">Length of the list</param>
 virtual public void SetStop(ref Efl.Gfx.GradientStop colors, uint length)
 {
     Efl.Gfx.GradientStop.NativeStruct _in_colors = colors;
     Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_stop_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)), ref _in_colors, length);
     Eina.Error.RaiseIfUnhandledException();
     colors = _in_colors;
 }
                    private static void stop_set(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length)
                    {
                        Eina.Log.Debug("function efl_gfx_gradient_stop_set was called");
                        var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                        if (ws != null)
                        {
                            Efl.Gfx.GradientStop _in_colors = colors;

                            try
                            {
                                ((Gradient)ws.Target).SetStop(ref _in_colors, length);
                            }
                            catch (Exception e)
                            {
                                Eina.Log.Warning($"Callback error: {e.ToString()}");
                                Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                            }

                            colors = _in_colors;
                        }
                        else
                        {
                            efl_gfx_gradient_stop_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref colors, length);
                        }
                    }
                    private static void stop_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr colors, out uint length)
                    {
                        Eina.Log.Debug("function efl_gfx_gradient_stop_get was called");
                        var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                        if (ws != null)
                        {
                            Efl.Gfx.GradientStop _out_colors = default(Efl.Gfx.GradientStop);
                            length = default(uint);
                            try
                            {
                                ((Gradient)ws.Target).GetStop(out _out_colors, out length);
                            }
                            catch (Exception e)
                            {
                                Eina.Log.Warning($"Callback error: {e.ToString()}");
                                Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                            }

                            colors = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_colors);
                        }
                        else
                        {
                            efl_gfx_gradient_stop_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out colors, out length);
                        }
                    }
Exemplo n.º 4
0
 /// <summary>Set the list of color stops for the gradient</summary>
 /// <param name="colors">Color stops list</param>
 /// <param name="length">Length of the list</param>
 /// <returns></returns>
 public void SetStop(ref Efl.Gfx.GradientStop colors, uint length)
 {
     Efl.Gfx.GradientStop.NativeStruct _in_colors = colors;
     Efl.Gfx.IGradientNativeInherit.efl_gfx_gradient_stop_set_ptr.Value.Delegate(this.NativeHandle, ref _in_colors, length);
     Eina.Error.RaiseIfUnhandledException();
     colors = _in_colors;
 }
Exemplo n.º 5
0
 /// <summary>Set the list of color stops for the gradient</summary>
 /// <param name="colors">Color stops list</param>
 /// <param name="length">Length of the list</param>
 /// <returns></returns>
 virtual public void SetStop(ref Efl.Gfx.GradientStop colors, uint length)
 {
     Efl.Gfx.GradientStop.NativeStruct _in_colors = colors;
     Efl.Gfx.IGradientNativeInherit.efl_gfx_gradient_stop_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref _in_colors, length);
     Eina.Error.RaiseIfUnhandledException();
     colors = _in_colors;
 }
                /// <summary>Get the list of color stops.</summary>
                /// <param name="colors">Color stops list</param>
                /// <param name="length">Length of the list</param>
                virtual public void GetStop(out Efl.Gfx.GradientStop colors, out uint length)
                {
                    var _out_colors = new System.IntPtr();

                    Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_stop_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)), out _out_colors, out length);
                    Eina.Error.RaiseIfUnhandledException();
                    colors = Eina.PrimitiveConversion.PointerToManaged <Efl.Gfx.GradientStop>(_out_colors);
                }
Exemplo n.º 7
0
        /// <summary>Get the list of color stops.</summary>
        /// <param name="colors">Color stops list</param>
        /// <param name="length">Length of the list</param>
        /// <returns></returns>
        public void GetStop(out Efl.Gfx.GradientStop colors, out uint length)
        {
            var _out_colors = new System.IntPtr();

            Efl.Gfx.IGradientNativeInherit.efl_gfx_gradient_stop_get_ptr.Value.Delegate(this.NativeHandle, out _out_colors, out length);
            Eina.Error.RaiseIfUnhandledException();
            colors = Eina.PrimitiveConversion.PointerToManaged <Efl.Gfx.GradientStop>(_out_colors);
        }
Exemplo n.º 8
0
        /// <summary>Set the list of color stops for the gradient</summary>
        /// <param name="colors">Color stops list</param>
        /// <param name="length">Length of the list</param>
        /// <returns></returns>
        public void SetStop(ref Efl.Gfx.GradientStop colors, uint length)
        {
            var _in_colors = Efl.Gfx.GradientStop_StructConversion.ToInternal(colors);

            Efl.Gfx.GradientNativeInherit.efl_gfx_gradient_stop_set_ptr.Value.Delegate(this.NativeHandle, ref _in_colors, length);
            Eina.Error.RaiseIfUnhandledException();
            colors = Efl.Gfx.GradientStop_StructConversion.ToManaged(_in_colors);
        }