Пример #1
0
            private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj)
            {
                Eina.Log.Debug("function efl_pack was called");

                var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                if (ws != null)
                {
                    bool _ret_var = default(bool);
                    try
                    {
                        _ret_var = ((IPack)ws.Target).Pack(subobj);
                    }
                    catch (Exception e)
                    {
                        Eina.Log.Warning($"Callback error: {e.ToString()}");
                        Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                    }

                    return(_ret_var);
                }
                else
                {
                    return(efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj));
                }
            }
Пример #2
0
                private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd)
                {
                    Eina.Log.Debug("function efl_content_unset was called");

                    var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                    if (ws != null)
                    {
                        Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
                        try
                        {
                            _ret_var = ((FlipPart)ws.Target).UnsetContent();
                        }
                        catch (Exception e)
                        {
                            Eina.Log.Warning($"Callback error: {e.ToString()}");
                            Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                        }

                        return(_ret_var);
                    }
                    else
                    {
                        return(efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))));
                    }
                }
Пример #3
0
            /// <summary>Removes an existing sub-object from the container without deleting it.</summary>
            /// <param name="subobj">The sub-object to unpack.</param>
            /// <returns><c>false</c> if <c>subobj</c> wasn&apos;t in the container or couldn&apos;t be removed.</returns>
            virtual public bool Unpack(Efl.Gfx.IEntity subobj)
            {
                var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)), subobj);

                Eina.Error.RaiseIfUnhandledException();
                return(_ret_var);
            }
Пример #4
0
                private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content)
                {
                    Eina.Log.Debug("function efl_content_set was called");

                    Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
                    if (wrapper != null)
                    {
                        bool _ret_var = default(bool);
                        try
                        {
                            _ret_var = ((ListEmptyItem)wrapper).SetContent(content);
                        }
                        catch (Exception e)
                        {
                            Eina.Log.Warning($"Callback error: {e.ToString()}");
                            Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                        }

                        return(_ret_var);
                    }
                    else
                    {
                        return(efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content));
                    }
                }
Пример #5
0
                private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index)
                {
                    Eina.Log.Debug("function efl_pack_unpack_at was called");

                    var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                    if (ws != null)
                    {
                        Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
                        try
                        {
                            _ret_var = ((GroupItem)ws.Target).PackUnpackAt(index);
                        }
                        catch (Exception e)
                        {
                            Eina.Log.Warning($"Callback error: {e.ToString()}");
                            Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                        }

                        return(_ret_var);
                    }
                    else
                    {
                        return(efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index));
                    }
                }
Пример #6
0
        /// <summary>Adds a sub-object to this container.
        /// Depending on the container this will either fill in the default spot, replacing any already existing element or append to the end of the container if there is no default part.
        ///
        /// When this container is deleted, it will request deletion of the given <c>subobj</c>. Use <see cref="Efl.IPack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
        /// <param name="subobj">The object to pack.</param>
        /// <returns><c>false</c> if <c>subobj</c> could not be packed.</returns>
        public bool Pack(Efl.Gfx.IEntity subobj)
        {
            var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate(this.NativeHandle, subobj);

            Eina.Error.RaiseIfUnhandledException();
            return(_ret_var);
        }
Пример #7
0
                private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd)
                {
                    Eina.Log.Debug("function efl_content_unset was called");

                    Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
                    if (wrapper != null)
                    {
                        Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
                        try
                        {
                            _ret_var = ((ScrollAlertPopupPart)wrapper).UnsetContent();
                        }
                        catch (Exception e)
                        {
                            Eina.Log.Warning($"Callback error: {e.ToString()}");
                            Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                        }

                        return(_ret_var);
                    }
                    else
                    {
                        return(efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))));
                    }
                }
Пример #8
0
            /// <summary>Create a UI object from the necessary properties in the specified model.</summary>
            /// <param name="model">Efl model</param>
            /// <param name="parent">Efl canvas</param>
            /// <returns>Created UI object</returns>
            public Eina.Future Create(Efl.IModel model, Efl.Gfx.IEntity parent)
            {
                var _ret_var = Efl.Ui.IFactoryConcrete.NativeMethods.efl_ui_factory_create_ptr.Value.Delegate(this.NativeHandle, model, parent);

                Eina.Error.RaiseIfUnhandledException();
                return(_ret_var);
            }
Пример #9
0
        /// <summary>Sub-object currently set as this object&apos;s single content.
        /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid <c>content</c> is set the object will become empty (it will have no sub-object).
        /// (Since EFL 1.22)</summary>
        /// <param name="content">The sub-object.</param>
        /// <returns><c>true</c> if <c>content</c> was successfully swallowed.</returns>
        public bool SetContent(Efl.Gfx.IEntity content)
        {
            var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate(this.NativeHandle, content);

            Eina.Error.RaiseIfUnhandledException();
            return(_ret_var);
        }
Пример #10
0
        /// <summary>Removes an existing item from the container, without deleting it.</summary>
        /// <param name="subobj">The unpacked object.</param>
        /// <returns><c>false</c> if <c>subobj</c> wasn&apos;t a child or can&apos;t be removed</returns>
        public bool Unpack(Efl.Gfx.IEntity subobj)
        {
            var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_ptr.Value.Delegate(this.NativeHandle, subobj);

            Eina.Error.RaiseIfUnhandledException();
            return(_ret_var);
        }
Пример #11
0
                private static Efl.Gfx.IEntity filter_source_get(System.IntPtr obj, System.IntPtr pd, System.String name)
                {
                    Eina.Log.Debug("function efl_gfx_filter_source_get was called");

                    var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                    if (ws != null)
                    {
                        Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
                        try
                        {
                            _ret_var = ((IFilter)ws.Target).GetFilterSource(name);
                        }
                        catch (Exception e)
                        {
                            Eina.Log.Warning($"Callback error: {e.ToString()}");
                            Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                        }

                        return(_ret_var);
                    }
                    else
                    {
                        return(efl_gfx_filter_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name));
                    }
                }
Пример #12
0
 ///<summary>Constructor for FactoryItemCreatedEvent.</summary>
 public FactoryItemCreatedEvent(
     Efl.IModel Model     = default(Efl.IModel),
     Efl.Gfx.IEntity Item = default(Efl.Gfx.IEntity))
 {
     this.Model = Model;
     this.Item  = Item;
 }
Пример #13
0
            /// <summary>Sub-object currently set as this object&apos;s single content.
            /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid <c>content</c> is set the object will become empty (it will have no sub-object).
            /// (Since EFL 1.22)</summary>
            /// <param name="content">The sub-object.</param>
            /// <returns><c>true</c> if <c>content</c> was successfully swallowed.</returns>
            virtual public bool SetContent(Efl.Gfx.IEntity content)
            {
                var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content);

                Eina.Error.RaiseIfUnhandledException();
                return(_ret_var);
            }
Пример #14
0
            /// <summary>Create a UI object from the necessary properties in the specified model.</summary>
            /// <param name="model">Efl model</param>
            /// <param name="parent">Efl canvas</param>
            /// <returns>Created UI object</returns>
            virtual public Eina.Future Create(Efl.IModel model, Efl.Gfx.IEntity parent)
            {
                var _ret_var = Efl.Ui.IFactoryConcrete.NativeMethods.efl_ui_factory_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), model, parent);

                Eina.Error.RaiseIfUnhandledException();
                return(_ret_var);
            }
            /// <summary>Create a UI object from the necessary properties in the specified model.
            /// Note: This is the function you need to implement for a custom factory, but if you want to use a factory, you should rely on <see cref="Efl.Ui.ViewFactory.CreateWithEvent"/>.</summary>
            /// <param name="models">Efl iterator providing the model to be associated to the new item. It should remain valid until the end of the function call.</param>
            /// <param name="parent">Efl canvas</param>
            /// <returns>Created UI object</returns>
            virtual public Eina.Future Create(Eina.Iterator <Efl.IModel> models, Efl.Gfx.IEntity parent)
            {
                var _in_models = models.Handle;
                var _ret_var   = Efl.Ui.IFactoryConcrete.NativeMethods.efl_ui_factory_create_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)), _in_models, parent);

                Eina.Error.RaiseIfUnhandledException();
                return(_ret_var);
            }
Пример #16
0
 private static void release(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity ui_view)
 {
     Eina.Log.Debug("function efl_ui_factory_release was called");
     Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
     if (wrapper != null)
     {
         try {
             ((IFactory)wrapper).Release(ui_view);
         } catch (Exception e) {
             Eina.Log.Warning($"Callback error: {e.ToString()}");
             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
         }
     }
     else
     {
         efl_ui_factory_release_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ui_view);
     }
 }
Пример #17
0
                private static void building(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity ui_view)
                {
                    Eina.Log.Debug("function efl_ui_factory_building was called");
                    var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                    if (ws != null)
                    {
                        try
                        {
                            ((IFactory)ws.Target).Building(ui_view);
                        }
                        catch (Exception e)
                        {
                            Eina.Log.Warning($"Callback error: {e.ToString()}");
                            Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                        }
                    }
                    else
                    {
                        efl_ui_factory_building_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ui_view);
                    }
                }
Пример #18
0
 /// <summary>Bind an object to use as a mask or texture in a filter program.
 /// This will create automatically a new RGBA buffer containing the source object&apos;s pixels (as it is rendered).</summary>
 /// <param name="name">Buffer name as used in the program.</param>
 /// <param name="source">Object to use as a source of pixels.</param>
 public void SetFilterSource(System.String name, Efl.Gfx.IEntity source)
 {
     Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_source_set_ptr.Value.Delegate(this.NativeHandle, name, source);
     Eina.Error.RaiseIfUnhandledException();
 }
Пример #19
0
                private static Eina.Future create(System.IntPtr obj, System.IntPtr pd, Efl.IModel model, Efl.Gfx.IEntity parent)
                {
                    Eina.Log.Debug("function efl_ui_factory_create was called");

                    var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                    if (ws != null)
                    {
                        Eina.Future _ret_var = default(Eina.Future);
                        try
                        {
                            _ret_var = ((IFactory)ws.Target).Create(model, parent);
                        }
                        catch (Exception e)
                        {
                            Eina.Log.Warning($"Callback error: {e.ToString()}");
                            Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                        }

                        return(_ret_var);
                    }
                    else
                    {
                        return(efl_ui_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), model, parent));
                    }
                }
Пример #20
0
 /// <summary>Async wrapper for <see cref="Create" />.</summary>
 /// <param name="model">Efl model</param>
 /// <param name="parent">Efl canvas</param>
 /// <param name="token">Token to notify the async operation of external request to cancel.</param>
 /// <returns>An async task wrapping the result of the operation.</returns>
 public System.Threading.Tasks.Task <Eina.Value> CreateAsync(Efl.IModel model, Efl.Gfx.IEntity parent, System.Threading.CancellationToken token = default(System.Threading.CancellationToken))
 {
     Eina.Future future = Create(model, parent);
     return(Efl.Eo.Globals.WrapAsync(future, token));
 }
Пример #21
0
 /// <summary>Release a UI object and disconnect from models.</summary>
 /// <param name="ui_view">Efl canvas</param>
 public void Release(Efl.Gfx.IEntity ui_view)
 {
     Efl.Ui.IFactoryConcrete.NativeMethods.efl_ui_factory_release_ptr.Value.Delegate(this.NativeHandle, ui_view);
     Eina.Error.RaiseIfUnhandledException();
 }
 /// <summary>The <c>subobj</c> at position <c>index</c> in the bound container has been removed.
 /// The manager should check the container&apos;s <see cref="Efl.Ui.Spotlight.Container.ActiveIndex"/> since indices might have shifted due to the removal of the object.</summary>
 /// <param name="subobj">The object being removed from the container.</param>
 /// <param name="index">The index this object had in the container&apos;s list.</param>
 virtual public void DelContent(Efl.Gfx.IEntity subobj, int index)
 {
     Efl.Ui.Spotlight.Manager.NativeMethods.efl_ui_spotlight_manager_content_del_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)), subobj, index);
     Eina.Error.RaiseIfUnhandledException();
 }
Пример #23
0
                    private static void content_del(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index)
                    {
                        Eina.Log.Debug("function efl_ui_active_view_indicator_content_del was called");
                        var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                        if (ws != null)
                        {
                            try
                            {
                                ((Indicator)ws.Target).DelContent(subobj, index);
                            }
                            catch (Exception e)
                            {
                                Eina.Log.Warning($"Callback error: {e.ToString()}");
                                Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                            }
                        }
                        else
                        {
                            efl_ui_active_view_indicator_content_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index);
                        }
                    }
Пример #24
0
 /// <summary>Release a UI object and disconnect from models.</summary>
 /// <param name="ui_view">Efl canvas</param>
 virtual public void Release(Efl.Gfx.IEntity ui_view)
 {
     Efl.Ui.IFactoryConcrete.NativeMethods.efl_ui_factory_release_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ui_view);
     Eina.Error.RaiseIfUnhandledException();
 }
 /// <summary>This function is called during the creation of an UI object between the Efl.Object.constructor and <see cref="Efl.Object.FinalizeAdd"/> call.
 /// Note: if the <see cref="Efl.Ui.IFactory"/> does keep a cache of object, this won&apos;t be called when object are pulled out of the cache.</summary>
 /// <param name="ui_view">The UI object being created.</param>
 virtual public void Building(Efl.Gfx.IEntity ui_view)
 {
     Efl.Ui.IFactoryConcrete.NativeMethods.efl_ui_factory_building_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)), ui_view);
     Eina.Error.RaiseIfUnhandledException();
 }
Пример #26
0
 /// <summary>The <c>subobj</c> at position <c>index</c> in the bound container has been removed.
 /// The manager should check the container&apos;s <see cref="Efl.Ui.ActiveView.Container.ActiveIndex"/> since indices might have shifted due to the removal of the object.</summary>
 /// <param name="subobj">The object being removed from the container.</param>
 /// <param name="index">The index this object had in the container&apos;s list.</param>
 virtual public void DelContent(Efl.Gfx.IEntity subobj, int index)
 {
     Efl.Ui.ActiveView.Indicator.NativeMethods.efl_ui_active_view_indicator_content_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, index);
     Eina.Error.RaiseIfUnhandledException();
 }
Пример #27
0
            /// <summary>Create a UI object from the necessary properties in the specified model and generate the created event on the factory when the object is done building. This function must be use by all <see cref="Efl.Ui.IView"/> that need to create object. They should not use <see cref="Efl.Ui.IFactory.Create"/> directly.</summary>
            /// <param name="factory">The factory to use for requesting the new object from and generating the created event onto.</param>
            /// <param name="models">Efl iterator providing the model to be associated to the new item. It should remain valid until the end of the function call.</param>
            /// <param name="parent">Efl canvas</param>
            /// <returns>Created UI object</returns>
            public static Eina.Future CreateWithEvent(Efl.Ui.IFactory factory, Eina.Iterator <Efl.IModel> models, Efl.Gfx.IEntity parent)
            {
                var _in_models = models.Handle;
                var _ret_var   = Efl.Ui.ViewFactory.NativeMethods.efl_ui_view_factory_create_with_event_ptr.Value.Delegate(factory, _in_models, parent);

                Eina.Error.RaiseIfUnhandledException();
                return(_ret_var);
            }
Пример #28
0
                private static Eina.Future create_with_event(System.IntPtr obj, System.IntPtr pd, Efl.Ui.IFactory factory, System.IntPtr models, Efl.Gfx.IEntity parent)
                {
                    Eina.Log.Debug("function efl_ui_view_factory_create_with_event was called");

                    var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                    if (ws != null)
                    {
                        var         _in_models = new Eina.Iterator <Efl.IModel>(models, false);
                        Eina.Future _ret_var   = default(Eina.Future);
                        try
                        {
                            _ret_var = ViewFactory.CreateWithEvent(factory, _in_models, parent);
                        }
                        catch (Exception e)
                        {
                            Eina.Log.Warning($"Callback error: {e.ToString()}");
                            Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                        }

                        return(_ret_var);
                    }
                    else
                    {
                        return(efl_ui_view_factory_create_with_event_ptr.Value.Delegate(factory, models, parent));
                    }
                }
Пример #29
0
 private static void filter_source_set(System.IntPtr obj, System.IntPtr pd, System.String name, Efl.Gfx.IEntity source)
 {
     Eina.Log.Debug("function efl_gfx_filter_source_set was called");
     Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
     if (wrapper != null)
     {
         try
         {
             ((IFilter)wrapper).SetFilterSource(name, source);
         }
         catch (Exception e)
         {
             Eina.Log.Warning($"Callback error: {e.ToString()}");
             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
         }
     }
     else
     {
         efl_gfx_filter_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, source);
     }
 }