Esempio n. 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_orientation_get_static_delegate == null)
                {
                    efl_orientation_get_static_delegate = new efl_orientation_get_delegate(orientation_get);
                }

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

                if (efl_orientation_set_static_delegate == null)
                {
                    efl_orientation_set_static_delegate = new efl_orientation_set_delegate(orientation_set);
                }

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

                if (efl_orientation_flip_get_static_delegate == null)
                {
                    efl_orientation_flip_get_static_delegate = new efl_orientation_flip_get_delegate(flip_get);
                }

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

                if (efl_orientation_flip_set_static_delegate == null)
                {
                    efl_orientation_flip_set_static_delegate = new efl_orientation_flip_set_delegate(flip_set);
                }

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

                return(descs);
            }
Esempio n. 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_orientation_get_static_delegate == null)
            {
                efl_orientation_get_static_delegate = new efl_orientation_get_delegate(orientation_get);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_get_static_delegate)
            });
            if (efl_orientation_set_static_delegate == null)
            {
                efl_orientation_set_static_delegate = new efl_orientation_set_delegate(orientation_set);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_set_static_delegate)
            });
            if (efl_orientation_flip_get_static_delegate == null)
            {
                efl_orientation_flip_get_static_delegate = new efl_orientation_flip_get_delegate(flip_get);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_orientation_flip_get"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_flip_get_static_delegate)
            });
            if (efl_orientation_flip_set_static_delegate == null)
            {
                efl_orientation_flip_set_static_delegate = new efl_orientation_flip_set_delegate(flip_set);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_orientation_flip_set"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_flip_set_static_delegate)
            });
            return(descs);
        }