Exemplo n.º 1
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_view_model_children_bind_get_static_delegate == null)
            {
                efl_view_model_children_bind_get_static_delegate = new efl_view_model_children_bind_get_delegate(children_bind_get);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_view_model_children_bind_get"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_children_bind_get_static_delegate)
            });
            if (efl_view_model_children_bind_set_static_delegate == null)
            {
                efl_view_model_children_bind_set_static_delegate = new efl_view_model_children_bind_set_delegate(children_bind_set);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_view_model_children_bind_set"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_children_bind_set_static_delegate)
            });
            if (efl_view_model_property_logic_add_static_delegate == null)
            {
                efl_view_model_property_logic_add_static_delegate = new efl_view_model_property_logic_add_delegate(property_logic_add);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_view_model_property_logic_add"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_property_logic_add_static_delegate)
            });
            if (efl_view_model_property_logic_del_static_delegate == null)
            {
                efl_view_model_property_logic_del_static_delegate = new efl_view_model_property_logic_del_delegate(property_logic_del);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_view_model_property_logic_del"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_property_logic_del_static_delegate)
            });
            if (efl_view_model_property_bind_static_delegate == null)
            {
                efl_view_model_property_bind_static_delegate = new efl_view_model_property_bind_delegate(property_bind);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_view_model_property_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_property_bind_static_delegate)
            });
            if (efl_view_model_property_unbind_static_delegate == null)
            {
                efl_view_model_property_unbind_static_delegate = new efl_view_model_property_unbind_delegate(property_unbind);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_view_model_property_unbind"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_property_unbind_static_delegate)
            });
            descs.AddRange(base.GetEoOps(type));
            return(descs);
        }
Exemplo n.º 2
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_view_model_children_bind_get_static_delegate == null)
                {
                    efl_view_model_children_bind_get_static_delegate = new efl_view_model_children_bind_get_delegate(children_bind_get);
                }

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

                if (efl_view_model_children_bind_set_static_delegate == null)
                {
                    efl_view_model_children_bind_set_static_delegate = new efl_view_model_children_bind_set_delegate(children_bind_set);
                }

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

                if (efl_view_model_property_string_add_static_delegate == null)
                {
                    efl_view_model_property_string_add_static_delegate = new efl_view_model_property_string_add_delegate(property_string_add);
                }

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

                if (efl_view_model_property_string_del_static_delegate == null)
                {
                    efl_view_model_property_string_del_static_delegate = new efl_view_model_property_string_del_delegate(property_string_del);
                }

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

                if (efl_view_model_property_logic_add_static_delegate == null)
                {
                    efl_view_model_property_logic_add_static_delegate = new efl_view_model_property_logic_add_delegate(property_logic_add);
                }

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

                if (efl_view_model_property_logic_del_static_delegate == null)
                {
                    efl_view_model_property_logic_del_static_delegate = new efl_view_model_property_logic_del_delegate(property_logic_del);
                }

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

                if (efl_view_model_property_bind_static_delegate == null)
                {
                    efl_view_model_property_bind_static_delegate = new efl_view_model_property_bind_delegate(property_bind);
                }

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

                if (efl_view_model_property_unbind_static_delegate == null)
                {
                    efl_view_model_property_unbind_static_delegate = new efl_view_model_property_unbind_delegate(property_unbind);
                }

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

                descs.AddRange(base.GetEoOps(type));
                return(descs);
            }