Example #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_fill_auto_get_static_delegate == null)
                    {
                        efl_gfx_fill_auto_get_static_delegate = new efl_gfx_fill_auto_get_delegate(fill_auto_get);
                    }

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

                    if (efl_gfx_fill_auto_set_static_delegate == null)
                    {
                        efl_gfx_fill_auto_set_static_delegate = new efl_gfx_fill_auto_set_delegate(fill_auto_set);
                    }

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

                    if (efl_gfx_fill_get_static_delegate == null)
                    {
                        efl_gfx_fill_get_static_delegate = new efl_gfx_fill_get_delegate(fill_get);
                    }

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

                    if (efl_gfx_fill_set_static_delegate == null)
                    {
                        efl_gfx_fill_set_static_delegate = new efl_gfx_fill_set_delegate(fill_set);
                    }

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

                    return(descs);
                }
Example #2
0
        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_fill_auto_get_static_delegate == null)
            {
                efl_gfx_fill_auto_get_static_delegate = new efl_gfx_fill_auto_get_delegate(fill_auto_get);
            }
            descs.Add(new Efl_Op_Description()
                {
                    api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_fill_auto_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_auto_get_static_delegate)
                });
            if (efl_gfx_fill_auto_set_static_delegate == null)
            {
                efl_gfx_fill_auto_set_static_delegate = new efl_gfx_fill_auto_set_delegate(fill_auto_set);
            }
            descs.Add(new Efl_Op_Description()
                {
                    api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_fill_auto_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_auto_set_static_delegate)
                });
            if (efl_gfx_fill_get_static_delegate == null)
            {
                efl_gfx_fill_get_static_delegate = new efl_gfx_fill_get_delegate(fill_get);
            }
            descs.Add(new Efl_Op_Description()
                {
                    api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_get_static_delegate)
                });
            if (efl_gfx_fill_set_static_delegate == null)
            {
                efl_gfx_fill_set_static_delegate = new efl_gfx_fill_set_delegate(fill_set);
            }
            descs.Add(new Efl_Op_Description()
                {
                    api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_set_static_delegate)
                });
            return(descs);
        }