示例#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_container_model_child_property_value_type_get_static_delegate == null)
            {
                efl_container_model_child_property_value_type_get_static_delegate = new efl_container_model_child_property_value_type_get_delegate(child_property_value_type_get);
            }
            if (methods.FirstOrDefault(m => m.Name == "GetChildPropertyValueType") != null)
            {
                descs.Add(new Efl_Op_Description()
                {
                    api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_container_model_child_property_value_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_container_model_child_property_value_type_get_static_delegate)
                });
            }
            if (efl_container_model_child_property_add_static_delegate == null)
            {
                efl_container_model_child_property_add_static_delegate = new efl_container_model_child_property_add_delegate(child_property_add);
            }
            if (methods.FirstOrDefault(m => m.Name == "AddChildProperty") != null)
            {
                descs.Add(new Efl_Op_Description()
                {
                    api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_container_model_child_property_add"), func = Marshal.GetFunctionPointerForDelegate(efl_container_model_child_property_add_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_container_model_child_property_value_type_get_static_delegate == null)
            {
                efl_container_model_child_property_value_type_get_static_delegate = new efl_container_model_child_property_value_type_get_delegate(child_property_value_type_get);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_container_model_child_property_value_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_container_model_child_property_value_type_get_static_delegate)
            });
            if (efl_container_model_child_property_add_static_delegate == null)
            {
                efl_container_model_child_property_add_static_delegate = new efl_container_model_child_property_add_delegate(child_property_add);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_container_model_child_property_add"), func = Marshal.GetFunctionPointerForDelegate(efl_container_model_child_property_add_static_delegate)
            });
            descs.AddRange(base.GetEoOps(type));
            return(descs);
        }