/// <summary>Set the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>). /// If mmap is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction. /// (Since EFL 1.22)</summary> /// <param name="f">The handle to the <see cref="Eina.File"/> that will be used</param> /// <returns>0 on success, error code otherwise</returns> virtual public Eina.Error SetMmap(Eina.File f) { var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), f); Eina.Error.RaiseIfUnhandledException(); return(_ret_var); }
private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_file_mmap_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.File _ret_var = default(Eina.File); try { _ret_var = ((Layout)ws.Target).GetMmap(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return(_ret_var); } else { return(efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)))); } }
/// <summary>Set the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>). /// If mmap is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction. /// (Since EFL 1.22)</summary> /// <param name="f">The handle to the <see cref="Eina.File"/> that will be used</param> /// <returns>0 on success, error code otherwise</returns> public Eina.Error SetMmap(Eina.File f) { var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_set_ptr.Value.Delegate(this.NativeHandle, f); Eina.Error.RaiseIfUnhandledException(); return(_ret_var); }
/// <summary>Associates given name with a mmap'd image or EET file and key. /// see <see cref="Efl.Ui.TextFactory.Images.AddMatches"/> for string file path version see <see cref="Efl.Ui.TextFactory.Images.DelMatchesMmap"/></summary> /// <param name="name">the name associated with filename</param> /// <param name="file">the image or EET file</param> /// <param name="key">the key to use (in cases of loading an EET file</param> /// <returns><c>true</c> if successful, <c>false</c> otherwise</returns> virtual public bool AddMatchesMmap(System.String name, Eina.File file, System.String key) { var _ret_var = Efl.Ui.TextFactory.Images.NativeMethods.efl_ui_text_factory_images_matches_mmap_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name, file, key); Eina.Error.RaiseIfUnhandledException(); return(_ret_var); }
private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) { Eina.Log.Debug("function efl_file_mmap_set was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd); if (wrapper != null) { Eina.Error _ret_var = default(Eina.Error); try { _ret_var = ((Layout)wrapper).SetMmap(f); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return(_ret_var); } else { return(efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f)); } }
private static bool matches_mmap_add(System.IntPtr obj, System.IntPtr pd, System.String name, Eina.File file, System.String key) { Eina.Log.Debug("function efl_ui_text_factory_images_matches_mmap_add was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Images)ws.Target).AddMatchesMmap(name, file, key); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return(_ret_var); } else { return(efl_ui_text_factory_images_matches_mmap_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, file, key)); } }