1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
12 /// <summary>Efl Ui Factory that provides <see cref="Efl.Ui.Widget"/>.
13 /// This factory is designed to build <see cref="Efl.Ui.Widget"/> and optionally set their <see cref="Efl.Ui.Widget.Style"/> if it was connected with <see cref="Efl.Ui.IPropertyBind.PropertyBind"/> "<c>style</c>".</summary>
14 [Efl.Ui.WidgetFactory.NativeMethods]
15 public class WidgetFactory : Efl.LoopConsumer, Efl.Eo.IWrapper,Efl.Ui.IFactory,Efl.Ui.IFactoryBind,Efl.Ui.IPropertyBind
17 ///<summary>Pointer to the native class description.</summary>
18 public override System.IntPtr NativeClass
22 if (((object)this).GetType() == typeof(WidgetFactory))
24 return GetEflClassStatic();
28 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
33 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
34 efl_ui_widget_factory_class_get();
35 /// <summary>Initializes a new instance of the <see cref="WidgetFactory"/> class.</summary>
36 /// <param name="parent">Parent instance.</param>
37 /// <param name="itemClass">Define the class of the item returned by this factory. See <see cref="Efl.Ui.WidgetFactory.SetItemClass"/></param>
38 public WidgetFactory(Efl.Object parent
39 , Type itemClass = null) : base(efl_ui_widget_factory_class_get(), typeof(WidgetFactory), parent)
41 if (Efl.Eo.Globals.ParamHelperCheck(itemClass))
43 SetItemClass(Efl.Eo.Globals.GetParamHelper(itemClass));
46 FinishInstantiation();
49 /// <summary>Initializes a new instance of the <see cref="WidgetFactory"/> class.
50 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
51 /// <param name="raw">The native pointer to be wrapped.</param>
52 protected WidgetFactory(System.IntPtr raw) : base(raw)
56 /// <summary>Initializes a new instance of the <see cref="WidgetFactory"/> class.
57 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
58 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
59 /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
60 /// <param name="parent">The Efl.Object parent of this instance.</param>
61 protected WidgetFactory(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
65 /// <summary>Verifies if the given object is equal to this one.</summary>
66 /// <param name="instance">The object to compare to.</param>
67 /// <returns>True if both objects point to the same native object.</returns>
68 public override bool Equals(object instance)
70 var other = instance as Efl.Object;
75 return this.NativeHandle == other.NativeHandle;
78 /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
79 /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
80 public override int GetHashCode()
82 return this.NativeHandle.ToInt32();
85 /// <summary>Turns the native pointer into a string representation.</summary>
86 /// <returns>A string with the type and the native pointer for this object.</returns>
87 public override String ToString()
89 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
92 /// <summary>Event triggered when an item has been successfully created.</summary>
93 public event EventHandler<Efl.Ui.IFactoryCreatedEvt_Args> CreatedEvt
99 var wRef = new WeakReference(this);
100 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
102 var obj = wRef.Target as Efl.Eo.IWrapper;
105 Efl.Ui.IFactoryCreatedEvt_Args args = new Efl.Ui.IFactoryCreatedEvt_Args();
109 value?.Invoke(obj, args);
113 Eina.Log.Error(e.ToString());
114 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
119 string key = "_EFL_UI_FACTORY_EVENT_CREATED";
120 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
128 string key = "_EFL_UI_FACTORY_EVENT_CREATED";
129 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
133 ///<summary>Method to raise event CreatedEvt.</summary>
134 public void OnCreatedEvt(Efl.Ui.IFactoryCreatedEvt_Args e)
136 var key = "_EFL_UI_FACTORY_EVENT_CREATED";
137 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
138 if (desc == IntPtr.Zero)
140 Eina.Log.Error($"Failed to get native event {key}");
144 IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg));
147 Marshal.StructureToPtr(e.arg, info, false);
148 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
152 Marshal.FreeHGlobal(info);
155 /// <summary>Event dispatched when a property on the object has changed due to an user interaction on the object that a model could be interested in.</summary>
156 public event EventHandler<Efl.Ui.IPropertyBindPropertiesChangedEvt_Args> PropertiesChangedEvt
162 var wRef = new WeakReference(this);
163 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
165 var obj = wRef.Target as Efl.Eo.IWrapper;
168 Efl.Ui.IPropertyBindPropertiesChangedEvt_Args args = new Efl.Ui.IPropertyBindPropertiesChangedEvt_Args();
172 value?.Invoke(obj, args);
176 Eina.Log.Error(e.ToString());
177 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
182 string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED";
183 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
191 string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED";
192 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
196 ///<summary>Method to raise event PropertiesChangedEvt.</summary>
197 public void OnPropertiesChangedEvt(Efl.Ui.IPropertyBindPropertiesChangedEvt_Args e)
199 var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED";
200 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
201 if (desc == IntPtr.Zero)
203 Eina.Log.Error($"Failed to get native event {key}");
207 IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg));
210 Marshal.StructureToPtr(e.arg, info, false);
211 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
215 Marshal.FreeHGlobal(info);
218 /// <summary>Event dispatched when a property on the object is bound to a model. This is useful to not overgenerate event.</summary>
219 public event EventHandler<Efl.Ui.IPropertyBindPropertyBoundEvt_Args> PropertyBoundEvt
225 var wRef = new WeakReference(this);
226 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
228 var obj = wRef.Target as Efl.Eo.IWrapper;
231 Efl.Ui.IPropertyBindPropertyBoundEvt_Args args = new Efl.Ui.IPropertyBindPropertyBoundEvt_Args();
232 args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info);
235 value?.Invoke(obj, args);
239 Eina.Log.Error(e.ToString());
240 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
245 string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND";
246 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
254 string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND";
255 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
259 ///<summary>Method to raise event PropertyBoundEvt.</summary>
260 public void OnPropertyBoundEvt(Efl.Ui.IPropertyBindPropertyBoundEvt_Args e)
262 var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND";
263 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
264 if (desc == IntPtr.Zero)
266 Eina.Log.Error($"Failed to get native event {key}");
270 IntPtr info = Eina.StringConversion.ManagedStringToNativeUtf8Alloc(e.arg);
273 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
277 Eina.MemoryNative.Free(info);
280 /// <summary>Define the class of the item returned by this factory.</summary>
281 /// <returns>The class identifier to create item from.</returns>
282 virtual public Type GetItemClass() {
283 var _ret_var = Efl.Ui.WidgetFactory.NativeMethods.efl_ui_widget_factory_item_class_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
284 Eina.Error.RaiseIfUnhandledException();
287 /// <summary>Define the class of the item returned by this factory.</summary>
288 /// <param name="klass">The class identifier to create item from.</param>
289 virtual public void SetItemClass(Type klass) {
290 Efl.Ui.WidgetFactory.NativeMethods.efl_ui_widget_factory_item_class_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),klass);
291 Eina.Error.RaiseIfUnhandledException();
293 /// <summary>Create a UI object from the necessary properties in the specified model.</summary>
294 /// <param name="model">Efl model</param>
295 /// <param name="parent">Efl canvas</param>
296 /// <returns>Created UI object</returns>
297 virtual public Eina.Future Create(Efl.IModel model, Efl.Gfx.IEntity parent) {
298 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);
299 Eina.Error.RaiseIfUnhandledException();
302 /// <summary>Release a UI object and disconnect from models.</summary>
303 /// <param name="ui_view">Efl canvas</param>
304 virtual public void Release(Efl.Gfx.IEntity ui_view) {
305 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);
306 Eina.Error.RaiseIfUnhandledException();
308 /// <summary>bind the factory with the given key string. when the data is ready or changed, factory create the object and bind the data to the key action and process promised work. Note: the input <see cref="Efl.Ui.IFactory"/> need to be <see cref="Efl.Ui.IPropertyBind.PropertyBind"/> at least once.</summary>
309 /// <param name="key">Key string for bind model property data</param>
310 /// <param name="factory"><see cref="Efl.Ui.IFactory"/> for create and bind model property data</param>
311 virtual public void FactoryBind(System.String key, Efl.Ui.IFactory factory) {
312 Efl.Ui.IFactoryBindConcrete.NativeMethods.efl_ui_factory_bind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key, factory);
313 Eina.Error.RaiseIfUnhandledException();
315 /// <summary>bind property data with the given key string. when the data is ready or changed, bind the data to the key action and process promised work.</summary>
316 /// <param name="key">key string for bind model property data</param>
317 /// <param name="property">Model property name</param>
318 /// <returns>0 when it succeed, an error code otherwise.</returns>
319 virtual public Eina.Error PropertyBind(System.String key, System.String property) {
320 var _ret_var = Efl.Ui.IPropertyBindConcrete.NativeMethods.efl_ui_property_bind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key, property);
321 Eina.Error.RaiseIfUnhandledException();
324 public System.Threading.Tasks.Task<Eina.Value> CreateAsync(Efl.IModel model,Efl.Gfx.IEntity parent, System.Threading.CancellationToken token = default(System.Threading.CancellationToken))
326 Eina.Future future = Create( model, parent);
327 return Efl.Eo.Globals.WrapAsync(future, token);
329 /// <summary>Define the class of the item returned by this factory.</summary>
330 /// <value>The class identifier to create item from.</value>
331 public Type ItemClass {
332 get { return GetItemClass(); }
333 set { SetItemClass(value); }
335 private static IntPtr GetEflClassStatic()
337 return Efl.Ui.WidgetFactory.efl_ui_widget_factory_class_get();
339 /// <summary>Wrapper for native methods and virtual method delegates.
340 /// For internal use by generated code only.</summary>
341 public new class NativeMethods : Efl.LoopConsumer.NativeMethods
343 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary);
344 /// <summary>Gets the list of Eo operations to override.</summary>
345 /// <returns>The list of Eo operations to be overload.</returns>
346 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
348 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
349 var methods = Efl.Eo.Globals.GetUserMethods(type);
351 if (efl_ui_widget_factory_item_class_get_static_delegate == null)
353 efl_ui_widget_factory_item_class_get_static_delegate = new efl_ui_widget_factory_item_class_get_delegate(item_class_get);
356 if (methods.FirstOrDefault(m => m.Name == "GetItemClass") != null)
358 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_factory_item_class_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_factory_item_class_get_static_delegate) });
361 if (efl_ui_widget_factory_item_class_set_static_delegate == null)
363 efl_ui_widget_factory_item_class_set_static_delegate = new efl_ui_widget_factory_item_class_set_delegate(item_class_set);
366 if (methods.FirstOrDefault(m => m.Name == "SetItemClass") != null)
368 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_factory_item_class_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_factory_item_class_set_static_delegate) });
371 if (efl_ui_factory_create_static_delegate == null)
373 efl_ui_factory_create_static_delegate = new efl_ui_factory_create_delegate(create);
376 if (methods.FirstOrDefault(m => m.Name == "Create") != null)
378 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_factory_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_create_static_delegate) });
381 if (efl_ui_factory_release_static_delegate == null)
383 efl_ui_factory_release_static_delegate = new efl_ui_factory_release_delegate(release);
386 if (methods.FirstOrDefault(m => m.Name == "Release") != null)
388 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_factory_release"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_release_static_delegate) });
391 if (efl_ui_factory_bind_static_delegate == null)
393 efl_ui_factory_bind_static_delegate = new efl_ui_factory_bind_delegate(factory_bind);
396 if (methods.FirstOrDefault(m => m.Name == "FactoryBind") != null)
398 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_factory_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_bind_static_delegate) });
401 if (efl_ui_property_bind_static_delegate == null)
403 efl_ui_property_bind_static_delegate = new efl_ui_property_bind_delegate(property_bind);
406 if (methods.FirstOrDefault(m => m.Name == "PropertyBind") != null)
408 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_property_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_property_bind_static_delegate) });
411 descs.AddRange(base.GetEoOps(type));
414 /// <summary>Returns the Eo class for the native methods of this class.</summary>
415 /// <returns>The native class pointer.</returns>
416 public override IntPtr GetEflClass()
418 return Efl.Ui.WidgetFactory.efl_ui_widget_factory_class_get();
421 #pragma warning disable CA1707, SA1300, SA1600
423 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))]
424 private delegate Type efl_ui_widget_factory_item_class_get_delegate(System.IntPtr obj, System.IntPtr pd);
426 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))]
427 public delegate Type efl_ui_widget_factory_item_class_get_api_delegate(System.IntPtr obj);
429 public static Efl.Eo.FunctionWrapper<efl_ui_widget_factory_item_class_get_api_delegate> efl_ui_widget_factory_item_class_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_widget_factory_item_class_get_api_delegate>(Module, "efl_ui_widget_factory_item_class_get");
431 private static Type item_class_get(System.IntPtr obj, System.IntPtr pd)
433 Eina.Log.Debug("function efl_ui_widget_factory_item_class_get was called");
434 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
437 Type _ret_var = default(Type);
440 _ret_var = ((WidgetFactory)wrapper).GetItemClass();
444 Eina.Log.Warning($"Callback error: {e.ToString()}");
445 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
453 return efl_ui_widget_factory_item_class_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
457 private static efl_ui_widget_factory_item_class_get_delegate efl_ui_widget_factory_item_class_get_static_delegate;
460 private delegate void efl_ui_widget_factory_item_class_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass);
463 public delegate void efl_ui_widget_factory_item_class_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass);
465 public static Efl.Eo.FunctionWrapper<efl_ui_widget_factory_item_class_set_api_delegate> efl_ui_widget_factory_item_class_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_widget_factory_item_class_set_api_delegate>(Module, "efl_ui_widget_factory_item_class_set");
467 private static void item_class_set(System.IntPtr obj, System.IntPtr pd, Type klass)
469 Eina.Log.Debug("function efl_ui_widget_factory_item_class_set was called");
470 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
476 ((WidgetFactory)wrapper).SetItemClass(klass);
480 Eina.Log.Warning($"Callback error: {e.ToString()}");
481 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
488 efl_ui_widget_factory_item_class_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass);
492 private static efl_ui_widget_factory_item_class_set_delegate efl_ui_widget_factory_item_class_set_static_delegate;
494 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))]
495 private delegate Eina.Future efl_ui_factory_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.IModel model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity parent);
497 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))]
498 public delegate Eina.Future efl_ui_factory_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.IModel model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity parent);
500 public static Efl.Eo.FunctionWrapper<efl_ui_factory_create_api_delegate> efl_ui_factory_create_ptr = new Efl.Eo.FunctionWrapper<efl_ui_factory_create_api_delegate>(Module, "efl_ui_factory_create");
502 private static Eina.Future create(System.IntPtr obj, System.IntPtr pd, Efl.IModel model, Efl.Gfx.IEntity parent)
504 Eina.Log.Debug("function efl_ui_factory_create was called");
505 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
508 Eina.Future _ret_var = default( Eina.Future);
511 _ret_var = ((WidgetFactory)wrapper).Create(model, parent);
515 Eina.Log.Warning($"Callback error: {e.ToString()}");
516 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
524 return efl_ui_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), model, parent);
528 private static efl_ui_factory_create_delegate efl_ui_factory_create_static_delegate;
531 private delegate void efl_ui_factory_release_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity ui_view);
534 public delegate void efl_ui_factory_release_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity ui_view);
536 public static Efl.Eo.FunctionWrapper<efl_ui_factory_release_api_delegate> efl_ui_factory_release_ptr = new Efl.Eo.FunctionWrapper<efl_ui_factory_release_api_delegate>(Module, "efl_ui_factory_release");
538 private static void release(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity ui_view)
540 Eina.Log.Debug("function efl_ui_factory_release was called");
541 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
547 ((WidgetFactory)wrapper).Release(ui_view);
551 Eina.Log.Warning($"Callback error: {e.ToString()}");
552 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
559 efl_ui_factory_release_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ui_view);
563 private static efl_ui_factory_release_delegate efl_ui_factory_release_static_delegate;
566 private delegate void efl_ui_factory_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.IFactory factory);
569 public delegate void efl_ui_factory_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.IFactory factory);
571 public static Efl.Eo.FunctionWrapper<efl_ui_factory_bind_api_delegate> efl_ui_factory_bind_ptr = new Efl.Eo.FunctionWrapper<efl_ui_factory_bind_api_delegate>(Module, "efl_ui_factory_bind");
573 private static void factory_bind(System.IntPtr obj, System.IntPtr pd, System.String key, Efl.Ui.IFactory factory)
575 Eina.Log.Debug("function efl_ui_factory_bind was called");
576 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
582 ((WidgetFactory)wrapper).FactoryBind(key, factory);
586 Eina.Log.Warning($"Callback error: {e.ToString()}");
587 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
594 efl_ui_factory_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, factory);
598 private static efl_ui_factory_bind_delegate efl_ui_factory_bind_static_delegate;
601 private delegate Eina.Error efl_ui_property_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property);
604 public delegate Eina.Error efl_ui_property_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property);
606 public static Efl.Eo.FunctionWrapper<efl_ui_property_bind_api_delegate> efl_ui_property_bind_ptr = new Efl.Eo.FunctionWrapper<efl_ui_property_bind_api_delegate>(Module, "efl_ui_property_bind");
608 private static Eina.Error property_bind(System.IntPtr obj, System.IntPtr pd, System.String key, System.String property)
610 Eina.Log.Debug("function efl_ui_property_bind was called");
611 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
614 Eina.Error _ret_var = default(Eina.Error);
617 _ret_var = ((WidgetFactory)wrapper).PropertyBind(key, property);
621 Eina.Log.Warning($"Callback error: {e.ToString()}");
622 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
630 return efl_ui_property_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, property);
634 private static efl_ui_property_bind_delegate efl_ui_property_bind_static_delegate;
636 #pragma warning restore CA1707, SA1300, SA1600