示例#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>();
            var methods = Efl.Eo.Globals.GetUserMethods(type);

            if (efl_boolean_model_boolean_add_static_delegate == null)
            {
                efl_boolean_model_boolean_add_static_delegate = new efl_boolean_model_boolean_add_delegate(boolean_add);
            }
            if (methods.FirstOrDefault(m => m.Name == "AddBoolean") != null)
            {
                descs.Add(new Efl_Op_Description()
                {
                    api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_boolean_model_boolean_add"), func = Marshal.GetFunctionPointerForDelegate(efl_boolean_model_boolean_add_static_delegate)
                });
            }
            if (efl_boolean_model_boolean_del_static_delegate == null)
            {
                efl_boolean_model_boolean_del_static_delegate = new efl_boolean_model_boolean_del_delegate(boolean_del);
            }
            if (methods.FirstOrDefault(m => m.Name == "DelBoolean") != null)
            {
                descs.Add(new Efl_Op_Description()
                {
                    api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_boolean_model_boolean_del"), func = Marshal.GetFunctionPointerForDelegate(efl_boolean_model_boolean_del_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_boolean_model_boolean_add_static_delegate == null)
            {
                efl_boolean_model_boolean_add_static_delegate = new efl_boolean_model_boolean_add_delegate(boolean_add);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_boolean_model_boolean_add"), func = Marshal.GetFunctionPointerForDelegate(efl_boolean_model_boolean_add_static_delegate)
            });
            if (efl_boolean_model_boolean_del_static_delegate == null)
            {
                efl_boolean_model_boolean_del_static_delegate = new efl_boolean_model_boolean_del_delegate(boolean_del);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_boolean_model_boolean_del"), func = Marshal.GetFunctionPointerForDelegate(efl_boolean_model_boolean_del_static_delegate)
            });
            descs.AddRange(base.GetEoOps(type));
            return(descs);
        }