Beispiel #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_annotation_get_static_delegate == null)
                {
                    efl_text_annotation_get_static_delegate = new efl_text_annotation_get_delegate(annotation_get);
                }

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

                if (efl_text_annotation_set_static_delegate == null)
                {
                    efl_text_annotation_set_static_delegate = new efl_text_annotation_set_delegate(annotation_set);
                }

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

                if (efl_text_cursor_item_annotation_get_static_delegate == null)
                {
                    efl_text_cursor_item_annotation_get_static_delegate = new efl_text_cursor_item_annotation_get_delegate(cursor_item_annotation_get);
                }

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

                if (efl_text_range_annotations_get_static_delegate == null)
                {
                    efl_text_range_annotations_get_static_delegate = new efl_text_range_annotations_get_delegate(range_annotations_get);
                }

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

                if (efl_text_annotation_insert_static_delegate == null)
                {
                    efl_text_annotation_insert_static_delegate = new efl_text_annotation_insert_delegate(annotation_insert);
                }

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

                if (efl_text_annotation_del_static_delegate == null)
                {
                    efl_text_annotation_del_static_delegate = new efl_text_annotation_del_delegate(annotation_del);
                }

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

                if (efl_text_annotation_positions_get_static_delegate == null)
                {
                    efl_text_annotation_positions_get_static_delegate = new efl_text_annotation_positions_get_delegate(annotation_positions_get);
                }

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

                if (efl_text_annotation_is_item_static_delegate == null)
                {
                    efl_text_annotation_is_item_static_delegate = new efl_text_annotation_is_item_delegate(annotation_is_item);
                }

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

                if (efl_text_item_geometry_get_static_delegate == null)
                {
                    efl_text_item_geometry_get_static_delegate = new efl_text_item_geometry_get_delegate(item_geometry_get);
                }

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

                if (efl_text_cursor_item_insert_static_delegate == null)
                {
                    efl_text_cursor_item_insert_static_delegate = new efl_text_cursor_item_insert_delegate(cursor_item_insert);
                }

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

                return(descs);
            }
Beispiel #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_annotation_get_static_delegate == null)
            {
                efl_text_annotation_get_static_delegate = new efl_text_annotation_get_delegate(annotation_get);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_annotation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_annotation_get_static_delegate)
            });
            if (efl_text_annotation_set_static_delegate == null)
            {
                efl_text_annotation_set_static_delegate = new efl_text_annotation_set_delegate(annotation_set);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_annotation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_annotation_set_static_delegate)
            });
            if (efl_text_cursor_item_annotation_get_static_delegate == null)
            {
                efl_text_cursor_item_annotation_get_static_delegate = new efl_text_cursor_item_annotation_get_delegate(cursor_item_annotation_get);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_item_annotation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_item_annotation_get_static_delegate)
            });
            if (efl_text_range_annotations_get_static_delegate == null)
            {
                efl_text_range_annotations_get_static_delegate = new efl_text_range_annotations_get_delegate(range_annotations_get);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_range_annotations_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_range_annotations_get_static_delegate)
            });
            if (efl_text_annotation_insert_static_delegate == null)
            {
                efl_text_annotation_insert_static_delegate = new efl_text_annotation_insert_delegate(annotation_insert);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_annotation_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_text_annotation_insert_static_delegate)
            });
            if (efl_text_annotation_del_static_delegate == null)
            {
                efl_text_annotation_del_static_delegate = new efl_text_annotation_del_delegate(annotation_del);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_annotation_del"), func = Marshal.GetFunctionPointerForDelegate(efl_text_annotation_del_static_delegate)
            });
            if (efl_text_annotation_positions_get_static_delegate == null)
            {
                efl_text_annotation_positions_get_static_delegate = new efl_text_annotation_positions_get_delegate(annotation_positions_get);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_annotation_positions_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_annotation_positions_get_static_delegate)
            });
            if (efl_text_annotation_is_item_static_delegate == null)
            {
                efl_text_annotation_is_item_static_delegate = new efl_text_annotation_is_item_delegate(annotation_is_item);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_annotation_is_item"), func = Marshal.GetFunctionPointerForDelegate(efl_text_annotation_is_item_static_delegate)
            });
            if (efl_text_item_geometry_get_static_delegate == null)
            {
                efl_text_item_geometry_get_static_delegate = new efl_text_item_geometry_get_delegate(item_geometry_get);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_item_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_item_geometry_get_static_delegate)
            });
            if (efl_text_cursor_item_insert_static_delegate == null)
            {
                efl_text_cursor_item_insert_static_delegate = new efl_text_cursor_item_insert_delegate(cursor_item_insert);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_item_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_item_insert_static_delegate)
            });
            return(descs);
        }