示例#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_text_markup_get_static_delegate == null)
                {
                    efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get);
                }

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

                if (efl_text_markup_set_static_delegate == null)
                {
                    efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set);
                }

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

                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_text_markup_get_static_delegate == null)
            {
                efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate)
            });
            if (efl_text_markup_set_static_delegate == null)
            {
                efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate)
            });
            return(descs);
        }
                /// <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_content_get_static_delegate == null)
                    {
                        efl_content_get_static_delegate = new efl_content_get_delegate(content_get);
                    }

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

                    if (efl_content_set_static_delegate == null)
                    {
                        efl_content_set_static_delegate = new efl_content_set_delegate(content_set);
                    }

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

                    if (efl_content_unset_static_delegate == null)
                    {
                        efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset);
                    }

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

                    if (efl_text_get_static_delegate == null)
                    {
                        efl_text_get_static_delegate = new efl_text_get_delegate(text_get);
                    }

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

                    if (efl_text_set_static_delegate == null)
                    {
                        efl_text_set_static_delegate = new efl_text_set_delegate(text_set);
                    }

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

                    if (efl_text_markup_get_static_delegate == null)
                    {
                        efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get);
                    }

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

                    if (efl_text_markup_set_static_delegate == null)
                    {
                        efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set);
                    }

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

                    if (efl_ui_l10n_text_get_static_delegate == null)
                    {
                        efl_ui_l10n_text_get_static_delegate = new efl_ui_l10n_text_get_delegate(l10n_text_get);
                    }

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

                    if (efl_ui_l10n_text_set_static_delegate == null)
                    {
                        efl_ui_l10n_text_set_static_delegate = new efl_ui_l10n_text_set_delegate(l10n_text_set);
                    }

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

                    if (efl_ui_l10n_translation_update_static_delegate == null)
                    {
                        efl_ui_l10n_translation_update_static_delegate = new efl_ui_l10n_translation_update_delegate(translation_update);
                    }

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

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