Exemplo n.º 1
0
                    /// <summary>Gets the list of Eo operations to override.</summary>
                    /// <returns>The list of Eo operations to be overload.</returns>
                    public override System.Collections.Generic.List <Efl_Op_Description> GetEoOps(System.Type type)
                    {
                        var descs   = new System.Collections.Generic.List <Efl_Op_Description>();
                        var methods = Efl.Eo.Globals.GetUserMethods(type);

                        if (efl_gfx_gradient_linear_start_get_static_delegate == null)
                        {
                            efl_gfx_gradient_linear_start_get_static_delegate = new efl_gfx_gradient_linear_start_get_delegate(start_get);
                        }

                        if (methods.FirstOrDefault(m => m.Name == "GetStart") != null)
                        {
                            descs.Add(new Efl_Op_Description()
                            {
                                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_linear_start_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_start_get_static_delegate)
                            });
                        }

                        if (efl_gfx_gradient_linear_start_set_static_delegate == null)
                        {
                            efl_gfx_gradient_linear_start_set_static_delegate = new efl_gfx_gradient_linear_start_set_delegate(start_set);
                        }

                        if (methods.FirstOrDefault(m => m.Name == "SetStart") != null)
                        {
                            descs.Add(new Efl_Op_Description()
                            {
                                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_linear_start_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_start_set_static_delegate)
                            });
                        }

                        if (efl_gfx_gradient_linear_end_get_static_delegate == null)
                        {
                            efl_gfx_gradient_linear_end_get_static_delegate = new efl_gfx_gradient_linear_end_get_delegate(end_get);
                        }

                        if (methods.FirstOrDefault(m => m.Name == "GetEnd") != null)
                        {
                            descs.Add(new Efl_Op_Description()
                            {
                                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_linear_end_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_end_get_static_delegate)
                            });
                        }

                        if (efl_gfx_gradient_linear_end_set_static_delegate == null)
                        {
                            efl_gfx_gradient_linear_end_set_static_delegate = new efl_gfx_gradient_linear_end_set_delegate(end_set);
                        }

                        if (methods.FirstOrDefault(m => m.Name == "SetEnd") != null)
                        {
                            descs.Add(new Efl_Op_Description()
                            {
                                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_linear_end_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_end_set_static_delegate)
                            });
                        }

                        descs.AddRange(base.GetEoOps(type));
                        return(descs);
                    }
        public override System.Collections.Generic.List <Efl_Op_Description> GetEoOps(System.Type type)
        {
            var descs = new System.Collections.Generic.List <Efl_Op_Description>();

            if (efl_gfx_gradient_linear_start_get_static_delegate == null)
            {
                efl_gfx_gradient_linear_start_get_static_delegate = new efl_gfx_gradient_linear_start_get_delegate(start_get);
            }
            descs.Add(new Efl_Op_Description()
                    {
                        api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_linear_start_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_start_get_static_delegate)
                    });
            if (efl_gfx_gradient_linear_start_set_static_delegate == null)
            {
                efl_gfx_gradient_linear_start_set_static_delegate = new efl_gfx_gradient_linear_start_set_delegate(start_set);
            }
            descs.Add(new Efl_Op_Description()
                    {
                        api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_linear_start_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_start_set_static_delegate)
                    });
            if (efl_gfx_gradient_linear_end_get_static_delegate == null)
            {
                efl_gfx_gradient_linear_end_get_static_delegate = new efl_gfx_gradient_linear_end_get_delegate(end_get);
            }
            descs.Add(new Efl_Op_Description()
                    {
                        api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_linear_end_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_end_get_static_delegate)
                    });
            if (efl_gfx_gradient_linear_end_set_static_delegate == null)
            {
                efl_gfx_gradient_linear_end_set_static_delegate = new efl_gfx_gradient_linear_end_set_delegate(end_set);
            }
            descs.Add(new Efl_Op_Description()
                    {
                        api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_linear_end_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_end_set_static_delegate)
                    });
            descs.AddRange(base.GetEoOps(type));
            return(descs);
        }