1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.ComponentModel;
8 /// <summary></summary>
9 /// <param name="view_model">The ViewModel object the @.property.get is issued on.</param>
10 /// <param name="property">The property name the @.property.get is issued on.</param>
11 /// <returns></returns>
12 public delegate Eina.Value EflViewModelPropertyGet( Efl.ViewModel view_model, System.String property);
13 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))]public delegate Eina.Value EflViewModelPropertyGetInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.ViewModel, Efl.Eo.NonOwnTag>))] Efl.ViewModel view_model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String property);
14 internal class EflViewModelPropertyGetWrapper
17 private EflViewModelPropertyGetInternal _cb;
18 private IntPtr _cb_data;
19 private EinaFreeCb _cb_free_cb;
21 internal EflViewModelPropertyGetWrapper (EflViewModelPropertyGetInternal _cb, IntPtr _cb_data, EinaFreeCb _cb_free_cb)
24 this._cb_data = _cb_data;
25 this._cb_free_cb = _cb_free_cb;
28 ~EflViewModelPropertyGetWrapper()
30 if (this._cb_free_cb != null)
31 this._cb_free_cb(this._cb_data);
34 internal Eina.Value ManagedCb( Efl.ViewModel view_model, System.String property)
36 var _ret_var = _cb(_cb_data, view_model, property);
37 Eina.Error.RaiseIfUnhandledException();
41 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] internal static Eina.Value Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.ViewModel, Efl.Eo.NonOwnTag>))] Efl.ViewModel view_model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String property)
43 GCHandle handle = GCHandle.FromIntPtr(cb_data);
44 EflViewModelPropertyGet cb = (EflViewModelPropertyGet)handle.Target;
45 Eina.Value _ret_var = default( Eina.Value);
47 _ret_var = cb( view_model, property);
48 } catch (Exception e) {
49 Eina.Log.Warning($"Callback error: {e.ToString()}");
50 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
57 /// <summary></summary>
58 /// <param name="view_model">The ViewModel object the @.property.set is issued on.</param>
59 /// <param name="property">The property name the @.property.set is issued on.</param>
60 /// <param name="value">The new value to set.</param>
61 /// <returns></returns>
62 public delegate Eina.Future EflViewModelPropertySet( Efl.ViewModel view_model, System.String property, Eina.Value value);
63 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))]public delegate Eina.Future EflViewModelPropertySetInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.ViewModel, Efl.Eo.NonOwnTag>))] Efl.ViewModel view_model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String property, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))] Eina.Value value);
64 internal class EflViewModelPropertySetWrapper
67 private EflViewModelPropertySetInternal _cb;
68 private IntPtr _cb_data;
69 private EinaFreeCb _cb_free_cb;
71 internal EflViewModelPropertySetWrapper (EflViewModelPropertySetInternal _cb, IntPtr _cb_data, EinaFreeCb _cb_free_cb)
74 this._cb_data = _cb_data;
75 this._cb_free_cb = _cb_free_cb;
78 ~EflViewModelPropertySetWrapper()
80 if (this._cb_free_cb != null)
81 this._cb_free_cb(this._cb_data);
84 internal Eina.Future ManagedCb( Efl.ViewModel view_model, System.String property, Eina.Value value)
86 var _ret_var = _cb(_cb_data, view_model, property, value);
87 Eina.Error.RaiseIfUnhandledException();
91 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] internal static Eina.Future Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.ViewModel, Efl.Eo.NonOwnTag>))] Efl.ViewModel view_model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String property, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))] Eina.Value value)
93 GCHandle handle = GCHandle.FromIntPtr(cb_data);
94 EflViewModelPropertySet cb = (EflViewModelPropertySet)handle.Target;
95 Eina.Future _ret_var = default( Eina.Future);
97 _ret_var = cb( view_model, property, value);
98 } catch (Exception e) {
99 Eina.Log.Warning($"Callback error: {e.ToString()}");
100 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
107 /// <summary>Efl model providing helpers for custom properties used when linking a model to a view and you need to generate/adapt values for display.
108 /// There is two ways to use this class, you can either inherit from it and have a custom constructor for example. Or you can just instantiate it and manually define your property on it via callbacks.</summary>
109 [ViewModelNativeInherit]
110 public class ViewModel : Efl.CompositeModel, Efl.Eo.IWrapper
112 public new static System.IntPtr klass = System.IntPtr.Zero;
113 public new static Efl.ViewModelNativeInherit nativeInherit = new Efl.ViewModelNativeInherit();
114 ///<summary>Pointer to the native class description.</summary>
115 public override System.IntPtr NativeClass {
117 if (((object)this).GetType() == typeof (ViewModel))
118 return Efl.ViewModelNativeInherit.GetEflClassStatic();
120 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
123 [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr
124 efl_view_model_class_get();
125 ///<summary>Creates a new instance.</summary>
126 ///<param name="parent">Parent instance.</param>
127 ///<param name="model">Model that is/will be See <see cref="Efl.Ui.View.SetModel"/></param>
128 ///<param name="childrenBind">Define if we will intercept all childrens object reference and bind them through the ViewModel with the same property logic as this one. Be careful of recursivity. See <see cref="Efl.ViewModel.SetChildrenBind"/></param>
129 ///<param name="index">Position of this object in the parent model. See <see cref="Efl.CompositeModel.SetIndex"/></param>
130 public ViewModel(Efl.Object parent
131 , Efl.Model model, bool? childrenBind = null, uint? index = null) :
132 base(efl_view_model_class_get(), typeof(ViewModel), parent)
134 if (Efl.Eo.Globals.ParamHelperCheck(model))
135 SetModel(Efl.Eo.Globals.GetParamHelper(model));
136 if (Efl.Eo.Globals.ParamHelperCheck(childrenBind))
137 SetChildrenBind(Efl.Eo.Globals.GetParamHelper(childrenBind));
138 if (Efl.Eo.Globals.ParamHelperCheck(index))
139 SetIndex(Efl.Eo.Globals.GetParamHelper(index));
140 FinishInstantiation();
142 ///<summary>Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
143 public ViewModel(System.IntPtr raw) : base(raw)
145 register_event_proxies();
147 ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
148 protected ViewModel(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
149 ///<summary>Casts obj into an instance of this type.</summary>
150 public new static ViewModel static_cast(Efl.Object obj)
153 throw new System.ArgumentNullException("obj");
154 return new ViewModel(obj.NativeHandle);
156 ///<summary>Verifies if the given object is equal to this one.</summary>
157 public override bool Equals(object obj)
159 var other = obj as Efl.Object;
162 return this.NativeHandle == other.NativeHandle;
164 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
165 public override int GetHashCode()
167 return this.NativeHandle.ToInt32();
169 ///<summary>Turns the native pointer into a string representation.</summary>
170 public override String ToString()
172 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
174 protected override void register_event_proxies()
176 base.register_event_proxies();
178 /// <summary>Get the state of the automatic binding of children object.</summary>
179 /// <returns>Do you automatically bind children. Default to true.</returns>
180 virtual public bool GetChildrenBind() {
181 var _ret_var = Efl.ViewModelNativeInherit.efl_view_model_children_bind_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
182 Eina.Error.RaiseIfUnhandledException();
185 /// <summary>Set the state of the automatic binding of children object.</summary>
186 /// <param name="enable">Do you automatically bind children. Default to true.</param>
187 /// <returns></returns>
188 virtual public void SetChildrenBind( bool enable) {
189 Efl.ViewModelNativeInherit.efl_view_model_children_bind_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), enable);
190 Eina.Error.RaiseIfUnhandledException();
192 /// <summary>Add callbacks that will be triggered when someone ask for the specified property name when getting or setting a property.
193 /// A get or set should at least be provided for this call to succeed.
195 /// See <see cref="Efl.ViewModel.DelPropertyLogic"/></summary>
196 /// <param name="property">The property to bind on to.</param>
197 /// <param name="get">Define the get callback called when the <see cref="Efl.Model.GetProperty"/> is called with the above property name.</param>
198 /// <param name="set">Define the set callback called when the <see cref="Efl.Model.GetProperty"/> is called with the above property name.</param>
199 /// <param name="binded">Iterator of property name to bind with this defined property see <see cref="Efl.ViewModel.PropertyBind"/>.</param>
200 /// <returns></returns>
201 virtual public Eina.Error AddPropertyLogic( System.String property, EflViewModelPropertyGet get, EflViewModelPropertySet set, Eina.Iterator< System.String> binded) {
202 var _in_binded = binded.Handle;
203 GCHandle get_handle = GCHandle.Alloc(get);
204 GCHandle set_handle = GCHandle.Alloc(set);
205 var _ret_var = Efl.ViewModelNativeInherit.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);
206 Eina.Error.RaiseIfUnhandledException();
209 /// <summary>Delete previously added callbacks that were triggered when someone asked for the specified property name when getting or setting a property.
210 /// A get or set should at least be provided for this call to succeed.
212 /// See <see cref="Efl.ViewModel.AddPropertyLogic"/></summary>
213 /// <param name="property">The property to bind on to.</param>
214 /// <returns></returns>
215 virtual public Eina.Error DelPropertyLogic( System.String property) {
216 var _ret_var = Efl.ViewModelNativeInherit.efl_view_model_property_logic_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), property);
217 Eina.Error.RaiseIfUnhandledException();
220 /// <summary>Automatically update the field for the event <see cref="Efl.Model.PropertiesChangedEvt"/> to include property that are impacted with change in a property from the composited model.
221 /// The source doesn't have to be provided at this point by the composited model.</summary>
222 /// <param name="source">Property name in the composited model.</param>
223 /// <param name="destination">Property name in the <see cref="Efl.ViewModel"/></param>
224 /// <returns></returns>
225 virtual public void PropertyBind( System.String source, System.String destination) {
226 Efl.ViewModelNativeInherit.efl_view_model_property_bind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), source, destination);
227 Eina.Error.RaiseIfUnhandledException();
229 /// <summary>Stop automatically updating the field for the event <see cref="Efl.Model.PropertiesChangedEvt"/> to include property that are impacted with change in a property from the composited model.</summary>
230 /// <param name="source">Property name in the composited model.</param>
231 /// <param name="destination">Property name in the <see cref="Efl.ViewModel"/></param>
232 /// <returns></returns>
233 virtual public void PropertyUnbind( System.String source, System.String destination) {
234 Efl.ViewModelNativeInherit.efl_view_model_property_unbind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), source, destination);
235 Eina.Error.RaiseIfUnhandledException();
237 /// <summary>Define if we will intercept all childrens object reference and bind them through the ViewModel with the same property logic as this one. Be careful of recursivity.
238 /// This can only be applied at construction time.</summary>
239 /// <value>Do you automatically bind children. Default to true.</value>
240 public bool ChildrenBind {
241 get { return GetChildrenBind(); }
242 set { SetChildrenBind( value); }
244 private static new IntPtr GetEflClassStatic()
246 return Efl.ViewModel.efl_view_model_class_get();
249 public class ViewModelNativeInherit : Efl.CompositeModelNativeInherit{
250 public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore);
251 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
253 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
254 if (efl_view_model_children_bind_get_static_delegate == null)
255 efl_view_model_children_bind_get_static_delegate = new efl_view_model_children_bind_get_delegate(children_bind_get);
256 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_view_model_children_bind_get"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_children_bind_get_static_delegate)});
257 if (efl_view_model_children_bind_set_static_delegate == null)
258 efl_view_model_children_bind_set_static_delegate = new efl_view_model_children_bind_set_delegate(children_bind_set);
259 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_view_model_children_bind_set"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_children_bind_set_static_delegate)});
260 if (efl_view_model_property_logic_add_static_delegate == null)
261 efl_view_model_property_logic_add_static_delegate = new efl_view_model_property_logic_add_delegate(property_logic_add);
262 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_view_model_property_logic_add"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_property_logic_add_static_delegate)});
263 if (efl_view_model_property_logic_del_static_delegate == null)
264 efl_view_model_property_logic_del_static_delegate = new efl_view_model_property_logic_del_delegate(property_logic_del);
265 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_view_model_property_logic_del"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_property_logic_del_static_delegate)});
266 if (efl_view_model_property_bind_static_delegate == null)
267 efl_view_model_property_bind_static_delegate = new efl_view_model_property_bind_delegate(property_bind);
268 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_view_model_property_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_property_bind_static_delegate)});
269 if (efl_view_model_property_unbind_static_delegate == null)
270 efl_view_model_property_unbind_static_delegate = new efl_view_model_property_unbind_delegate(property_unbind);
271 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_view_model_property_unbind"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_property_unbind_static_delegate)});
272 descs.AddRange(base.GetEoOps(type));
275 public override IntPtr GetEflClass()
277 return Efl.ViewModel.efl_view_model_class_get();
279 public static new IntPtr GetEflClassStatic()
281 return Efl.ViewModel.efl_view_model_class_get();
285 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_view_model_children_bind_get_delegate(System.IntPtr obj, System.IntPtr pd);
288 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_view_model_children_bind_get_api_delegate(System.IntPtr obj);
289 public static Efl.Eo.FunctionWrapper<efl_view_model_children_bind_get_api_delegate> efl_view_model_children_bind_get_ptr = new Efl.Eo.FunctionWrapper<efl_view_model_children_bind_get_api_delegate>(_Module, "efl_view_model_children_bind_get");
290 private static bool children_bind_get(System.IntPtr obj, System.IntPtr pd)
292 Eina.Log.Debug("function efl_view_model_children_bind_get was called");
293 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
294 if(wrapper != null) {
295 bool _ret_var = default(bool);
297 _ret_var = ((ViewModel)wrapper).GetChildrenBind();
298 } catch (Exception e) {
299 Eina.Log.Warning($"Callback error: {e.ToString()}");
300 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
304 return efl_view_model_children_bind_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
307 private static efl_view_model_children_bind_get_delegate efl_view_model_children_bind_get_static_delegate;
310 private delegate void efl_view_model_children_bind_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable);
313 public delegate void efl_view_model_children_bind_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable);
314 public static Efl.Eo.FunctionWrapper<efl_view_model_children_bind_set_api_delegate> efl_view_model_children_bind_set_ptr = new Efl.Eo.FunctionWrapper<efl_view_model_children_bind_set_api_delegate>(_Module, "efl_view_model_children_bind_set");
315 private static void children_bind_set(System.IntPtr obj, System.IntPtr pd, bool enable)
317 Eina.Log.Debug("function efl_view_model_children_bind_set was called");
318 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
319 if(wrapper != null) {
322 ((ViewModel)wrapper).SetChildrenBind( enable);
323 } catch (Exception e) {
324 Eina.Log.Warning($"Callback error: {e.ToString()}");
325 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
328 efl_view_model_children_bind_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable);
331 private static efl_view_model_children_bind_set_delegate efl_view_model_children_bind_set_static_delegate;
334 private delegate Eina.Error efl_view_model_property_logic_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property, IntPtr get_data, EflViewModelPropertyGetInternal get, EinaFreeCb get_free_cb, IntPtr set_data, EflViewModelPropertySetInternal set, EinaFreeCb set_free_cb, System.IntPtr binded);
337 public delegate Eina.Error efl_view_model_property_logic_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property, IntPtr get_data, EflViewModelPropertyGetInternal get, EinaFreeCb get_free_cb, IntPtr set_data, EflViewModelPropertySetInternal set, EinaFreeCb set_free_cb, System.IntPtr binded);
338 public static Efl.Eo.FunctionWrapper<efl_view_model_property_logic_add_api_delegate> efl_view_model_property_logic_add_ptr = new Efl.Eo.FunctionWrapper<efl_view_model_property_logic_add_api_delegate>(_Module, "efl_view_model_property_logic_add");
339 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)
341 Eina.Log.Debug("function efl_view_model_property_logic_add was called");
342 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
343 if(wrapper != null) {
344 var _in_binded = new Eina.Iterator< System.String>(binded, false, false);
345 EflViewModelPropertyGetWrapper get_wrapper = new EflViewModelPropertyGetWrapper(get, get_data, get_free_cb);
346 EflViewModelPropertySetWrapper set_wrapper = new EflViewModelPropertySetWrapper(set, set_data, set_free_cb);
347 Eina.Error _ret_var = default( Eina.Error);
349 _ret_var = ((ViewModel)wrapper).AddPropertyLogic( property, get_wrapper.ManagedCb, set_wrapper.ManagedCb, _in_binded);
350 } catch (Exception e) {
351 Eina.Log.Warning($"Callback error: {e.ToString()}");
352 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
356 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);
359 private static efl_view_model_property_logic_add_delegate efl_view_model_property_logic_add_static_delegate;
362 private delegate Eina.Error efl_view_model_property_logic_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property);
365 public delegate Eina.Error efl_view_model_property_logic_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property);
366 public static Efl.Eo.FunctionWrapper<efl_view_model_property_logic_del_api_delegate> efl_view_model_property_logic_del_ptr = new Efl.Eo.FunctionWrapper<efl_view_model_property_logic_del_api_delegate>(_Module, "efl_view_model_property_logic_del");
367 private static Eina.Error property_logic_del(System.IntPtr obj, System.IntPtr pd, System.String property)
369 Eina.Log.Debug("function efl_view_model_property_logic_del was called");
370 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
371 if(wrapper != null) {
372 Eina.Error _ret_var = default( Eina.Error);
374 _ret_var = ((ViewModel)wrapper).DelPropertyLogic( property);
375 } catch (Exception e) {
376 Eina.Log.Warning($"Callback error: {e.ToString()}");
377 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
381 return efl_view_model_property_logic_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property);
384 private static efl_view_model_property_logic_del_delegate efl_view_model_property_logic_del_static_delegate;
387 private delegate void efl_view_model_property_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String destination);
390 public delegate void efl_view_model_property_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String destination);
391 public static Efl.Eo.FunctionWrapper<efl_view_model_property_bind_api_delegate> efl_view_model_property_bind_ptr = new Efl.Eo.FunctionWrapper<efl_view_model_property_bind_api_delegate>(_Module, "efl_view_model_property_bind");
392 private static void property_bind(System.IntPtr obj, System.IntPtr pd, System.String source, System.String destination)
394 Eina.Log.Debug("function efl_view_model_property_bind was called");
395 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
396 if(wrapper != null) {
399 ((ViewModel)wrapper).PropertyBind( source, destination);
400 } catch (Exception e) {
401 Eina.Log.Warning($"Callback error: {e.ToString()}");
402 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
405 efl_view_model_property_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), source, destination);
408 private static efl_view_model_property_bind_delegate efl_view_model_property_bind_static_delegate;
411 private delegate void efl_view_model_property_unbind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String destination);
414 public delegate void efl_view_model_property_unbind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String destination);
415 public static Efl.Eo.FunctionWrapper<efl_view_model_property_unbind_api_delegate> efl_view_model_property_unbind_ptr = new Efl.Eo.FunctionWrapper<efl_view_model_property_unbind_api_delegate>(_Module, "efl_view_model_property_unbind");
416 private static void property_unbind(System.IntPtr obj, System.IntPtr pd, System.String source, System.String destination)
418 Eina.Log.Debug("function efl_view_model_property_unbind was called");
419 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
420 if(wrapper != null) {
423 ((ViewModel)wrapper).PropertyUnbind( source, destination);
424 } catch (Exception e) {
425 Eina.Log.Warning($"Callback error: {e.ToString()}");
426 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
429 efl_view_model_property_unbind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), source, destination);
432 private static efl_view_model_property_unbind_delegate efl_view_model_property_unbind_static_delegate;