/// <summary>Swallowed sub-object contained in this object.</summary>
        /// <param name="content">The object to swallow.</param>
        /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
        virtual public bool SetContent(Efl.Gfx.Entity content)
        {
            var _ret_var = Efl.ContentNativeInherit.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);
        }
Example #2
0
 ///<summary>Constructor for FactoryItemCreatedEvent.</summary>
 public FactoryItemCreatedEvent(
     Efl.Model Model     = default(Efl.Model),
     Efl.Gfx.Entity Item = default(Efl.Gfx.Entity))
 {
     this.Model = Model;
     this.Item  = Item;
 }
Example #3
0
        /// <summary>Swallowed sub-object contained in this object.</summary>
        /// <param name="content">The object to swallow.</param>
        /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
        public bool SetContent(Efl.Gfx.Entity content)
        {
            var _ret_var = Efl.ContentNativeInherit.efl_content_set_ptr.Value.Delegate(this.NativeHandle, content);

            Eina.Error.RaiseIfUnhandledException();
            return(_ret_var);
        }
Example #4
0
        /// <summary>Adds an item 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.Pack.Unpack"/> to remove <c>subobj</c> from this container without deleting it.</summary>
        /// <param name="subobj">An object to pack.</param>
        /// <returns><c>false</c> if <c>subobj</c> could not be packed.</returns>
        public bool DoPack(Efl.Gfx.Entity subobj)
        {
            var _ret_var = Efl.PackNativeInherit.efl_pack_ptr.Value.Delegate(this.NativeHandle, subobj);

            Eina.Error.RaiseIfUnhandledException();
            return(_ret_var);
        }
Example #5
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.Model model, Efl.Gfx.Entity parent)
        {
            var _ret_var = Efl.Ui.FactoryNativeInherit.efl_ui_factory_create_ptr.Value.Delegate(this.NativeHandle, model, parent);

            Eina.Error.RaiseIfUnhandledException();
            return(_ret_var);
        }
Example #6
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.Model model, Efl.Gfx.Entity parent)
        {
            var _ret_var = Efl.Ui.FactoryNativeInherit.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);
        }
Example #7
0
 private static void release(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Entity ui_view)
 {
     Eina.Log.Debug("function efl_ui_factory_release was called");
     Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
     if (wrapper != null)
     {
         try {
             ((Factory)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);
     }
 }
        private static Efl.Gfx.Entity content_unset(System.IntPtr obj, System.IntPtr pd)
        {
            Eina.Log.Debug("function efl_content_unset was called");

            Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
            if (wrapper != null)
            {
                Efl.Gfx.Entity _ret_var = default(Efl.Gfx.Entity);
                try {
                    _ret_var = ((LayoutPartContent)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))));
            }
        }
Example #9
0
        private static Efl.Gfx.Entity filter_source_get(System.IntPtr obj, System.IntPtr pd, System.String name)
        {
            Eina.Log.Debug("function efl_gfx_filter_source_get was called");

            Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
            if (wrapper != null)
            {
                Efl.Gfx.Entity _ret_var = default(Efl.Gfx.Entity);
                try {
                    _ret_var = ((Filter)wrapper).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));
            }
        }
Example #10
0
        private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Entity subobj)
        {
            Eina.Log.Debug("function efl_pack was called");

            Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
            if (wrapper != null)
            {
                bool _ret_var = default(bool);
                try {
                    _ret_var = ((Pack)wrapper).DoPack(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));
            }
        }
Example #11
0
        private static Eina.Future create(System.IntPtr obj, System.IntPtr pd, Efl.Model model, Efl.Gfx.Entity parent)
        {
            Eina.Log.Debug("function efl_ui_factory_create was called");

            Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
            if (wrapper != null)
            {
                Eina.Future _ret_var = default(Eina.Future);
                try {
                    _ret_var = ((Factory)wrapper).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));
            }
        }
Example #12
0
 public System.Threading.Tasks.Task <Eina.Value> CreateAsync(Efl.Model model, Efl.Gfx.Entity parent, System.Threading.CancellationToken token = default(System.Threading.CancellationToken))
 {
     Eina.Future future = Create(model, parent);
     return(Efl.Eo.Globals.WrapAsync(future, token));
 }
Example #13
0
 /// <summary>Release a UI object and disconnect from models.</summary>
 /// <param name="ui_view">Efl canvas</param>
 /// <returns></returns>
 public void Release(Efl.Gfx.Entity ui_view)
 {
     Efl.Ui.FactoryNativeInherit.efl_ui_factory_release_ptr.Value.Delegate(this.NativeHandle, ui_view);
     Eina.Error.RaiseIfUnhandledException();
 }
Example #14
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).
 /// 1.18</summary>
 /// <param name="name">Buffer name as used in the program.
 /// 1.18</param>
 /// <param name="source">Object to use as a source of pixels.
 /// 1.18</param>
 /// <returns></returns>
 public void SetFilterSource(System.String name, Efl.Gfx.Entity source)
 {
     Efl.Gfx.FilterNativeInherit.efl_gfx_filter_source_set_ptr.Value.Delegate(this.NativeHandle, name, source);
     Eina.Error.RaiseIfUnhandledException();
 }
Example #15
0
 /// <summary>Release a UI object and disconnect from models.</summary>
 /// <param name="ui_view">Efl canvas</param>
 /// <returns></returns>
 virtual public void Release(Efl.Gfx.Entity ui_view)
 {
     Efl.Ui.FactoryNativeInherit.efl_ui_factory_release_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ui_view);
     Eina.Error.RaiseIfUnhandledException();
 }