private static Eina.ValueType child_property_value_type_get(System.IntPtr obj, System.IntPtr pd, System.String name) { Eina.Log.Debug("function efl_container_model_child_property_value_type_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.ValueType _ret_var = default(Eina.ValueType); try { _ret_var = ((ContainerModel)ws.Target).GetChildPropertyValueType(name); } 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_value_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name)); } }
/// <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); }
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"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { var _in_values = new Eina.Iterator <System.IntPtr>(values, true, false); bool _ret_var = default(bool); try { _ret_var = ((ContainerModel)wrapper).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)); } }
virtual public void AddProperty(System.String name, Eina.ValueType type) { Efl.MonoModelInternal.NativeMethods.efl_mono_model_internal_add_property_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)), name, type); Eina.Error.RaiseIfUnhandledException(); }