/// <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_composite_model_index_get_static_delegate == null)
                {
                    efl_composite_model_index_get_static_delegate = new efl_composite_model_index_get_delegate(index_get);
                }

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

                if (efl_composite_model_index_set_static_delegate == null)
                {
                    efl_composite_model_index_set_static_delegate = new efl_composite_model_index_set_delegate(index_set);
                }

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

                if (efl_ui_view_model_get_static_delegate == null)
                {
                    efl_ui_view_model_get_static_delegate = new efl_ui_view_model_get_delegate(model_get);
                }

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

                if (efl_ui_view_model_set_static_delegate == null)
                {
                    efl_ui_view_model_set_static_delegate = new efl_ui_view_model_set_delegate(model_set);
                }

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

                descs.AddRange(base.GetEoOps(type));
                return(descs);
            }
Пример #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_composite_model_index_get_static_delegate == null)
            {
                efl_composite_model_index_get_static_delegate = new efl_composite_model_index_get_delegate(index_get);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_composite_model_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_composite_model_index_get_static_delegate)
            });
            if (efl_composite_model_index_set_static_delegate == null)
            {
                efl_composite_model_index_set_static_delegate = new efl_composite_model_index_set_delegate(index_set);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_composite_model_index_set"), func = Marshal.GetFunctionPointerForDelegate(efl_composite_model_index_set_static_delegate)
            });
            if (efl_ui_view_model_get_static_delegate == null)
            {
                efl_ui_view_model_get_static_delegate = new efl_ui_view_model_get_delegate(model_get);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_view_model_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_view_model_get_static_delegate)
            });
            if (efl_ui_view_model_set_static_delegate == null)
            {
                efl_ui_view_model_set_static_delegate = new efl_ui_view_model_set_delegate(model_set);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_view_model_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_view_model_set_static_delegate)
            });
            descs.AddRange(base.GetEoOps(type));
            return(descs);
        }