コード例 #1
0
            private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd)
            {
                Eina.Log.Debug("function efl_content_iterate was called");
                var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

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

                    _ret_var.Own = false; return(_ret_var.Handle);
                }
                else
                {
                    return(efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))));
                }
            }
コード例 #2
0
            private static System.IntPtr profile_iterate(System.IntPtr obj, System.IntPtr pd, bool hidden)
            {
                Eina.Log.Debug("function efl_config_profile_iterate was called");
                var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                if (ws != null)
                {
                    Eina.Iterator <System.String> _ret_var = default(Eina.Iterator <System.String>);
                    try
                    {
                        _ret_var = ((ConfigGlobal)ws.Target).ProfileIterate(hidden);
                    }
                    catch (Exception e)
                    {
                        Eina.Log.Warning($"Callback error: {e.ToString()}");
                        Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                    }

                    _ret_var.Own = false; return(_ret_var.Handle);
                }
                else
                {
                    return(efl_config_profile_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hidden));
                }
            }
コード例 #3
0
            private static System.IntPtr boolean_iterator_get(System.IntPtr obj, System.IntPtr pd, System.String name, bool request)
            {
                Eina.Log.Debug("function efl_boolean_model_boolean_iterator_get was called");
                var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                if (ws != null)
                {
                    Eina.Iterator <ulong> _ret_var = default(Eina.Iterator <ulong>);
                    try
                    {
                        _ret_var = ((BooleanModel)ws.Target).GetBooleanIterator(name, request);
                    }
                    catch (Exception e)
                    {
                        Eina.Log.Warning($"Callback error: {e.ToString()}");
                        Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                    }

                    return(_ret_var.Handle);
                }
                else
                {
                    return(efl_boolean_model_boolean_iterator_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, request));
                }
            }
コード例 #4
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));
                    }
                }
コード例 #5
0
            private static System.IntPtr properties_get(System.IntPtr obj, System.IntPtr pd)
            {
                Eina.Log.Debug("function efl_model_properties_get was called");
                var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                if (ws != null)
                {
                    Eina.Iterator <System.String> _ret_var = default(Eina.Iterator <System.String>);
                    try
                    {
                        _ret_var = ((MonoModelInternalChild)ws.Target).GetProperties();
                    }
                    catch (Exception e)
                    {
                        Eina.Log.Warning($"Callback error: {e.ToString()}");
                        Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                    }

                    _ret_var.Own = false; return(_ret_var.Handle);
                }
                else
                {
                    return(efl_model_properties_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))));
                }
            }
コード例 #6
0
            private static System.IntPtr range_annotations_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end)
            {
                Eina.Log.Debug("function efl_text_range_annotations_get was called");
                var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                if (ws != null)
                {
                    Eina.Iterator <Efl.TextAnnotateAnnotation> _ret_var = default(Eina.Iterator <Efl.TextAnnotateAnnotation>);
                    try
                    {
                        _ret_var = ((ITextAnnotate)ws.Target).GetRangeAnnotations(start, end);
                    }
                    catch (Exception e)
                    {
                        Eina.Log.Warning($"Callback error: {e.ToString()}");
                        Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                    }

                    _ret_var.Own = false; return(_ret_var.Handle);
                }
                else
                {
                    return(efl_text_range_annotations_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end));
                }
            }
コード例 #7
0
            private static bool child_property_add(System.IntPtr obj, System.IntPtr pd, System.String name, Eina.ValueType type, System.IntPtr values)
            {
                Eina.Log.Debug("function efl_container_model_child_property_add was called");

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

                if (ws != null)
                {
                    var  _in_values = new Eina.Iterator <System.IntPtr>(values, true);
                    bool _ret_var   = default(bool);
                    try
                    {
                        _ret_var = ((ContainerModel)ws.Target).AddChildProperty(name, type, _in_values);
                    }
                    catch (Exception e)
                    {
                        Eina.Log.Warning($"Callback error: {e.ToString()}");
                        Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                    }

                    return(_ret_var);
                }
                else
                {
                    return(efl_container_model_child_property_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, type, values));
                }
            }
コード例 #8
0
                    private static System.IntPtr children_get(System.IntPtr obj, System.IntPtr pd)
                    {
                        Eina.Log.Debug("function efl_canvas_vg_container_children_get was called");
                        var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                        if (ws != null)
                        {
                            Eina.Iterator <Efl.Canvas.Vg.Node> _ret_var = default(Eina.Iterator <Efl.Canvas.Vg.Node>);
                            try
                            {
                                _ret_var = ((Container)ws.Target).GetChildren();
                            }
                            catch (Exception e)
                            {
                                Eina.Log.Warning($"Callback error: {e.ToString()}");
                                Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                            }

                            _ret_var.Own = false; return(_ret_var.Handle);
                        }
                        else
                        {
                            return(efl_canvas_vg_container_children_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))));
                        }
                    }
コード例 #9
0
 /// <summary>Constructor for ObservableTuple.</summary>
 /// <param name="Key">Touple key</param>;
 /// <param name="Data">Touple data</param>;
 public ObservableTuple(
     System.String Key = default(System.String),
     Eina.Iterator <Efl.IObserver> Data = default(Eina.Iterator <Efl.IObserver>))
 {
     this.Key  = Key;
     this.Data = Data;
 }
コード例 #10
0
            private static System.IntPtr iterator_tuple_new(System.IntPtr obj, System.IntPtr pd)
            {
                Eina.Log.Debug("function efl_observable_iterator_tuple_new was called");
                var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                if (ws != null)
                {
                    Eina.Iterator <Efl.ObservableTuple> _ret_var = default(Eina.Iterator <Efl.ObservableTuple>);
                    try
                    {
                        _ret_var = ((Observable)ws.Target).NewIteratorTuple();
                    }
                    catch (Exception e)
                    {
                        Eina.Log.Warning($"Callback error: {e.ToString()}");
                        Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                    }

                    _ret_var.Own = false; return(_ret_var.Handle);
                }
                else
                {
                    return(efl_observable_iterator_tuple_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))));
                }
            }
コード例 #11
0
            private static Eina.Error property_logic_add(System.IntPtr obj, System.IntPtr pd, System.String property, IntPtr get_data, EflViewModelPropertyGetInternal get, EinaFreeCb get_free_cb, IntPtr set_data, EflViewModelPropertySetInternal set, EinaFreeCb set_free_cb, System.IntPtr binded)
            {
                Eina.Log.Debug("function efl_view_model_property_logic_add was called");
                var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                if (ws != null)
                {
                    var _in_binded = new Eina.Iterator <System.String>(binded, false, false);
                    EflViewModelPropertyGetWrapper get_wrapper = new EflViewModelPropertyGetWrapper(get, get_data, get_free_cb);
                    EflViewModelPropertySetWrapper set_wrapper = new EflViewModelPropertySetWrapper(set, set_data, set_free_cb);
                    Eina.Error _ret_var = default(Eina.Error);
                    try
                    {
                        _ret_var = ((ViewModel)ws.Target).AddPropertyLogic(property, get_wrapper.ManagedCb, set_wrapper.ManagedCb, _in_binded);
                    }
                    catch (Exception e)
                    {
                        Eina.Log.Warning($"Callback error: {e.ToString()}");
                        Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                    }

                    return(_ret_var);
                }
                else
                {
                    return(efl_view_model_property_logic_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property, get_data, get, get_free_cb, set_data, set, set_free_cb, binded));
                }
            }
コード例 #12
0
                private static Eina.Future create(System.IntPtr obj, System.IntPtr pd, System.IntPtr models, Efl.Gfx.IEntity parent)
                {
                    Eina.Log.Debug("function efl_ui_factory_create 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 = ((IFactory)ws.Target).Create(_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_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), models, parent));
                    }
                }
コード例 #13
0
            /// <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);
            }
コード例 #14
0
            /// <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>
            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(this.NativeHandle, _in_models, parent);

                Eina.Error.RaiseIfUnhandledException();
                return(_ret_var);
            }
コード例 #15
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);
            }
コード例 #16
0
 private static System.IntPtr observers_iterator_new(System.IntPtr obj, System.IntPtr pd, System.String key)
 {
     Eina.Log.Debug("function efl_observable_observers_iterator_new was called");
     Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
     if (wrapper != null)
     {
         Eina.Iterator <Efl.Observer> _ret_var = default(Eina.Iterator <Efl.Observer>);
         try {
             _ret_var = ((Observable)wrapper).NewObserversIterator(key);
         } catch (Exception e) {
             Eina.Log.Warning($"Callback error: {e.ToString()}");
             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
         }
         _ret_var.Own = false; return(_ret_var.Handle);
     }
     else
     {
         return(efl_observable_observers_iterator_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key));
     }
 }
コード例 #17
0
ファイル: efl_canvas_group.eo.cs プロジェクト: yl33/TizenFX
 private static System.IntPtr group_members_iterate(System.IntPtr obj, System.IntPtr pd)
 {
     Eina.Log.Debug("function efl_canvas_group_members_iterate was called");
     Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
     if (wrapper != null)
     {
         Eina.Iterator <Efl.Canvas.Object> _ret_var = default(Eina.Iterator <Efl.Canvas.Object>);
         try {
             _ret_var = ((Group)wrapper).GroupMembersIterate();
         } catch (Exception e) {
             Eina.Log.Warning($"Callback error: {e.ToString()}");
             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
         }
         _ret_var.Own = false; return(_ret_var.Handle);
     }
     else
     {
         return(efl_canvas_group_members_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))));
     }
 }
コード例 #18
0
 private static System.IntPtr children_iterate(System.IntPtr obj, System.IntPtr pd)
 {
     Eina.Log.Debug("function efl_ui_relative_layout_children_iterate was called");
     Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
     if (wrapper != null)
     {
         Eina.Iterator <Efl.Object> _ret_var = default(Eina.Iterator <Efl.Object>);
         try {
             _ret_var = ((RelativeLayout)wrapper).ChildrenIterate();
         } catch (Exception e) {
             Eina.Log.Warning($"Callback error: {e.ToString()}");
             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
         }
         _ret_var.Own = false; return(_ret_var.Handle);
     }
     else
     {
         return(efl_ui_relative_layout_children_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))));
     }
 }
コード例 #19
0
ファイル: efl_core_env.eo.cs プロジェクト: y01k/TizenFX
 private static System.IntPtr content_get(System.IntPtr obj, System.IntPtr pd)
 {
     Eina.Log.Debug("function efl_core_env_content_get was called");
     Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
     if (wrapper != null)
     {
         Eina.Iterator <System.String> _ret_var = default(Eina.Iterator <System.String>);
         try {
             _ret_var = ((Env)wrapper).GetContent();
         } catch (Exception e) {
             Eina.Log.Warning($"Callback error: {e.ToString()}");
             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
         }
         return(_ret_var.Handle);
     }
     else
     {
         return(efl_core_env_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))));
     }
 }
コード例 #20
0
        /// <summary>Add callbacks that will be triggered when someone ask for the specified property name when getting or setting a property.
        /// A get or set should at least be provided for this call to succeed.
        ///
        /// See <see cref="Efl.ViewModel.DelPropertyLogic"/></summary>
        /// <param name="property">The property to bind on to.</param>
        /// <param name="get">Define the get callback called when the <see cref="Efl.IModel.GetProperty"/> is called with the above property name.</param>
        /// <param name="set">Define the set callback called when the <see cref="Efl.IModel.GetProperty"/> is called with the above property name.</param>
        /// <param name="binded">Iterator of property name to bind with this defined property see <see cref="Efl.ViewModel.PropertyBind"/>.</param>
        virtual public Eina.Error AddPropertyLogic(System.String property, EflViewModelPropertyGet get, EflViewModelPropertySet set, Eina.Iterator <System.String> binded)
        {
            var      _in_binded = binded.Handle;
            GCHandle get_handle = GCHandle.Alloc(get);
            GCHandle set_handle = GCHandle.Alloc(set);
            var      _ret_var   = Efl.ViewModel.NativeMethods.efl_view_model_property_logic_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), property, GCHandle.ToIntPtr(get_handle), EflViewModelPropertyGetWrapper.Cb, Efl.Eo.Globals.free_gchandle, GCHandle.ToIntPtr(set_handle), EflViewModelPropertySetWrapper.Cb, Efl.Eo.Globals.free_gchandle, _in_binded);

            Eina.Error.RaiseIfUnhandledException();
            return(_ret_var);
        }
コード例 #21
0
        /// <summary>Adds the given property to child objects and supply the values.
        /// Each item will represent the value of the given property in the respective child within the data model.
        ///
        /// New children objects are allocated as necessary.
        ///
        /// Value type is required for compatibility with the <see cref="Efl.IModel"/> API.</summary>
        /// <param name="name">Property name</param>
        /// <param name="type">Property type</param>
        /// <param name="values">Values to be added</param>
        /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
        virtual public bool AddChildProperty(System.String name, Eina.ValueType type, Eina.Iterator <System.IntPtr> values)
        {
            var _in_values = values.Handle;

            values.Own = false;
            var _ret_var = Efl.ContainerModelNativeInherit.efl_container_model_child_property_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name, type, _in_values);

            Eina.Error.RaiseIfUnhandledException();
            return(_ret_var);
        }
コード例 #22
0
 /// <summary>Async wrapper for <see cref="Create" />.</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>
 /// <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(Eina.Iterator <Efl.IModel> models, Efl.Gfx.IEntity parent, System.Threading.CancellationToken token = default(System.Threading.CancellationToken))
 {
     Eina.Future future = Create(models, parent);
     return(Efl.Eo.Globals.WrapAsync(future, token));
 }