Esempio n. 1
0
 /// <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.Factory"/> need to be <see cref="Efl.Ui.PropertyBind.PropertyBind"/> at least once.</summary>
 /// <param name="key">Key string for bind model property data</param>
 /// <param name="factory"><see cref="Efl.Ui.Factory"/> for create and bind model property data</param>
 /// <returns></returns>
 public void FactoryBind(System.String key, Efl.Ui.Factory factory)
 {
     Efl.Ui.FactoryBindNativeInherit.efl_ui_factory_bind_ptr.Value.Delegate(this.NativeHandle, key, factory);
     Eina.Error.RaiseIfUnhandledException();
 }
Esempio n. 2
0
 private static void factory_bind(System.IntPtr obj, System.IntPtr pd, System.String key, Efl.Ui.Factory factory)
 {
     Eina.Log.Debug("function efl_ui_factory_bind was called");
     Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
     if (wrapper != null)
     {
         try {
             ((Factory)wrapper).FactoryBind(key, factory);
         } catch (Exception e) {
             Eina.Log.Warning($"Callback error: {e.ToString()}");
             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
         }
     }
     else
     {
         efl_ui_factory_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, factory);
     }
 }
Esempio n. 3
0
 /// <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.Factory"/> need to be <see cref="Efl.Ui.PropertyBind.PropertyBind"/> at least once.</summary>
 /// <param name="key">Key string for bind model property data</param>
 /// <param name="factory"><see cref="Efl.Ui.Factory"/> for create and bind model property data</param>
 /// <returns></returns>
 virtual public void FactoryBind(System.String key, Efl.Ui.Factory factory)
 {
     Efl.Ui.FactoryBindNativeInherit.efl_ui_factory_bind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key, factory);
     Eina.Error.RaiseIfUnhandledException();
 }