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>Elementary layout class
13 /// When loading layouts from a file, use the <see cref="Efl.IFile.Key"/> property to specify the group that the data belongs to, in case it's an EET file (including Edje files).
14 /// (Since EFL 1.22)</summary>
15 [Efl.Ui.Layout.NativeMethods]
16 public class Layout : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile
18 ///<summary>Pointer to the native class description.</summary>
19 public override System.IntPtr NativeClass
23 if (((object)this).GetType() == typeof(Layout))
25 return GetEflClassStatic();
29 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
34 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
35 efl_ui_layout_class_get();
36 /// <summary>Initializes a new instance of the <see cref="Layout"/> class.</summary>
37 /// <param name="parent">Parent instance.</param>
38 /// <param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle"/></param>
39 public Layout(Efl.Object parent
40 , System.String style = null) : base(efl_ui_layout_class_get(), typeof(Layout), parent)
42 if (Efl.Eo.Globals.ParamHelperCheck(style))
44 SetStyle(Efl.Eo.Globals.GetParamHelper(style));
47 FinishInstantiation();
50 /// <summary>Initializes a new instance of the <see cref="Layout"/> class.
51 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
52 /// <param name="raw">The native pointer to be wrapped.</param>
53 protected Layout(System.IntPtr raw) : base(raw)
57 /// <summary>Initializes a new instance of the <see cref="Layout"/> class.
58 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
59 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
60 /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
61 /// <param name="parent">The Efl.Object parent of this instance.</param>
62 protected Layout(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
66 /// <summary>Verifies if the given object is equal to this one.</summary>
67 /// <param name="instance">The object to compare to.</param>
68 /// <returns>True if both objects point to the same native object.</returns>
69 public override bool Equals(object instance)
71 var other = instance as Efl.Object;
76 return this.NativeHandle == other.NativeHandle;
79 /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
80 /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
81 public override int GetHashCode()
83 return this.NativeHandle.ToInt32();
86 /// <summary>Turns the native pointer into a string representation.</summary>
87 /// <returns>A string with the type and the native pointer for this object.</returns>
88 public override String ToString()
90 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
93 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
94 /// (Since EFL 1.22)</summary>
95 /// <returns>The handle to the <see cref="Eina.File"/> that will be used</returns>
96 virtual public Eina.File GetMmap() {
97 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
98 Eina.Error.RaiseIfUnhandledException();
101 /// <summary>Set the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
102 /// If mmap is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
103 /// (Since EFL 1.22)</summary>
104 /// <param name="f">The handle to the <see cref="Eina.File"/> that will be used</param>
105 /// <returns>0 on success, error code otherwise</returns>
106 virtual public Eina.Error SetMmap(Eina.File f) {
107 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);
108 Eina.Error.RaiseIfUnhandledException();
111 /// <summary>Retrieve the file path from where an object is to fetch the data.
112 /// You must not modify the strings on the returned pointers.
113 /// (Since EFL 1.22)</summary>
114 /// <returns>The file path.</returns>
115 virtual public System.String GetFile() {
116 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
117 Eina.Error.RaiseIfUnhandledException();
120 /// <summary>Set the file path from where an object will fetch the data.
121 /// If file is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
122 /// (Since EFL 1.22)</summary>
123 /// <param name="file">The file path.</param>
124 /// <returns>0 on success, error code otherwise</returns>
125 virtual public Eina.Error SetFile(System.String file) {
126 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),file);
127 Eina.Error.RaiseIfUnhandledException();
130 /// <summary>Get the previously-set key which corresponds to the target data within a file.
131 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example <see cref="Efl.Ui.Image"/> or <see cref="Efl.Ui.Layout"/>).
133 /// You must not modify the strings on the returned pointers.
134 /// (Since EFL 1.22)</summary>
135 /// <returns>The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used.</returns>
136 virtual public System.String GetKey() {
137 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
138 Eina.Error.RaiseIfUnhandledException();
141 /// <summary>Set the key which corresponds to the target data within a file.
142 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases.
143 /// (Since EFL 1.22)</summary>
144 /// <param name="key">The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used.</param>
145 virtual public void SetKey(System.String key) {
146 Efl.IFileConcrete.NativeMethods.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key);
147 Eina.Error.RaiseIfUnhandledException();
149 /// <summary>Get the load state of the object.
150 /// (Since EFL 1.22)</summary>
151 /// <returns><c>true</c> if the object is loaded, <c>false</c> otherwise.</returns>
152 virtual public bool GetLoaded() {
153 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
154 Eina.Error.RaiseIfUnhandledException();
157 /// <summary>Perform all necessary operations to open and load file data into the object using the <see cref="Efl.IFile.File"/> (or <see cref="Efl.IFile.Mmap"/>) and <see cref="Efl.IFile.Key"/> properties.
158 /// In the case where <see cref="Efl.IFile.SetFile"/> has been called on an object, this will internally open the file and call <see cref="Efl.IFile.SetMmap"/> on the object using the opened file handle.
160 /// Calling <see cref="Efl.IFile.Load"/> on an object which has already performed file operations based on the currently set properties will have no effect.
161 /// (Since EFL 1.22)</summary>
162 /// <returns>0 on success, error code otherwise</returns>
163 virtual public Eina.Error Load() {
164 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
165 Eina.Error.RaiseIfUnhandledException();
168 /// <summary>Perform all necessary operations to unload file data from the object.
169 /// In the case where <see cref="Efl.IFile.SetMmap"/> has been externally called on an object, the file handle stored in the object will be preserved.
171 /// Calling <see cref="Efl.IFile.Unload"/> on an object which is not currently loaded will have no effect.
172 /// (Since EFL 1.22)</summary>
173 virtual public void Unload() {
174 Efl.IFileConcrete.NativeMethods.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
175 Eina.Error.RaiseIfUnhandledException();
177 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
178 /// (Since EFL 1.22)</summary>
179 /// <value>The handle to the <see cref="Eina.File"/> that will be used</value>
180 public Eina.File Mmap {
181 get { return GetMmap(); }
182 set { SetMmap(value); }
184 /// <summary>Retrieve the file path from where an object is to fetch the data.
185 /// You must not modify the strings on the returned pointers.
186 /// (Since EFL 1.22)</summary>
187 /// <value>The file path.</value>
188 public System.String File {
189 get { return GetFile(); }
190 set { SetFile(value); }
192 /// <summary>Get the previously-set key which corresponds to the target data within a file.
193 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example <see cref="Efl.Ui.Image"/> or <see cref="Efl.Ui.Layout"/>).
195 /// You must not modify the strings on the returned pointers.
196 /// (Since EFL 1.22)</summary>
197 /// <value>The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used.</value>
198 public System.String Key {
199 get { return GetKey(); }
200 set { SetKey(value); }
202 /// <summary>Get the load state of the object.
203 /// (Since EFL 1.22)</summary>
204 /// <value><c>true</c> if the object is loaded, <c>false</c> otherwise.</value>
206 get { return GetLoaded(); }
208 private static IntPtr GetEflClassStatic()
210 return Efl.Ui.Layout.efl_ui_layout_class_get();
212 /// <summary>Wrapper for native methods and virtual method delegates.
213 /// For internal use by generated code only.</summary>
214 public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods
216 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary);
217 /// <summary>Gets the list of Eo operations to override.</summary>
218 /// <returns>The list of Eo operations to be overload.</returns>
219 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
221 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
222 var methods = Efl.Eo.Globals.GetUserMethods(type);
224 if (efl_file_mmap_get_static_delegate == null)
226 efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get);
229 if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null)
231 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate) });
234 if (efl_file_mmap_set_static_delegate == null)
236 efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set);
239 if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null)
241 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate) });
244 if (efl_file_get_static_delegate == null)
246 efl_file_get_static_delegate = new efl_file_get_delegate(file_get);
249 if (methods.FirstOrDefault(m => m.Name == "GetFile") != null)
251 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate) });
254 if (efl_file_set_static_delegate == null)
256 efl_file_set_static_delegate = new efl_file_set_delegate(file_set);
259 if (methods.FirstOrDefault(m => m.Name == "SetFile") != null)
261 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate) });
264 if (efl_file_key_get_static_delegate == null)
266 efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get);
269 if (methods.FirstOrDefault(m => m.Name == "GetKey") != null)
271 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate) });
274 if (efl_file_key_set_static_delegate == null)
276 efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set);
279 if (methods.FirstOrDefault(m => m.Name == "SetKey") != null)
281 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate) });
284 if (efl_file_loaded_get_static_delegate == null)
286 efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get);
289 if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null)
291 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate) });
294 if (efl_file_load_static_delegate == null)
296 efl_file_load_static_delegate = new efl_file_load_delegate(load);
299 if (methods.FirstOrDefault(m => m.Name == "Load") != null)
301 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate) });
304 if (efl_file_unload_static_delegate == null)
306 efl_file_unload_static_delegate = new efl_file_unload_delegate(unload);
309 if (methods.FirstOrDefault(m => m.Name == "Unload") != null)
311 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate) });
314 descs.AddRange(base.GetEoOps(type));
317 /// <summary>Returns the Eo class for the native methods of this class.</summary>
318 /// <returns>The native class pointer.</returns>
319 public override IntPtr GetEflClass()
321 return Efl.Ui.Layout.efl_ui_layout_class_get();
324 #pragma warning disable CA1707, SA1300, SA1600
327 private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd);
330 public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj);
332 public static Efl.Eo.FunctionWrapper<efl_file_mmap_get_api_delegate> efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper<efl_file_mmap_get_api_delegate>(Module, "efl_file_mmap_get");
334 private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd)
336 Eina.Log.Debug("function efl_file_mmap_get was called");
337 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
340 Eina.File _ret_var = default(Eina.File);
343 _ret_var = ((Layout)wrapper).GetMmap();
347 Eina.Log.Warning($"Callback error: {e.ToString()}");
348 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
356 return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
360 private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate;
363 private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f);
366 public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f);
368 public static Efl.Eo.FunctionWrapper<efl_file_mmap_set_api_delegate> efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper<efl_file_mmap_set_api_delegate>(Module, "efl_file_mmap_set");
370 private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f)
372 Eina.Log.Debug("function efl_file_mmap_set was called");
373 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
376 Eina.Error _ret_var = default(Eina.Error);
379 _ret_var = ((Layout)wrapper).SetMmap(f);
383 Eina.Log.Warning($"Callback error: {e.ToString()}");
384 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
392 return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f);
396 private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate;
398 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
399 private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd);
401 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
402 public delegate System.String efl_file_get_api_delegate(System.IntPtr obj);
404 public static Efl.Eo.FunctionWrapper<efl_file_get_api_delegate> efl_file_get_ptr = new Efl.Eo.FunctionWrapper<efl_file_get_api_delegate>(Module, "efl_file_get");
406 private static System.String file_get(System.IntPtr obj, System.IntPtr pd)
408 Eina.Log.Debug("function efl_file_get was called");
409 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
412 System.String _ret_var = default(System.String);
415 _ret_var = ((Layout)wrapper).GetFile();
419 Eina.Log.Warning($"Callback error: {e.ToString()}");
420 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
428 return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
432 private static efl_file_get_delegate efl_file_get_static_delegate;
435 private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file);
438 public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file);
440 public static Efl.Eo.FunctionWrapper<efl_file_set_api_delegate> efl_file_set_ptr = new Efl.Eo.FunctionWrapper<efl_file_set_api_delegate>(Module, "efl_file_set");
442 private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file)
444 Eina.Log.Debug("function efl_file_set was called");
445 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
448 Eina.Error _ret_var = default(Eina.Error);
451 _ret_var = ((Layout)wrapper).SetFile(file);
455 Eina.Log.Warning($"Callback error: {e.ToString()}");
456 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
464 return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file);
468 private static efl_file_set_delegate efl_file_set_static_delegate;
470 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
471 private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd);
473 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
474 public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj);
476 public static Efl.Eo.FunctionWrapper<efl_file_key_get_api_delegate> efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper<efl_file_key_get_api_delegate>(Module, "efl_file_key_get");
478 private static System.String key_get(System.IntPtr obj, System.IntPtr pd)
480 Eina.Log.Debug("function efl_file_key_get was called");
481 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
484 System.String _ret_var = default(System.String);
487 _ret_var = ((Layout)wrapper).GetKey();
491 Eina.Log.Warning($"Callback error: {e.ToString()}");
492 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
500 return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
504 private static efl_file_key_get_delegate efl_file_key_get_static_delegate;
507 private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key);
510 public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key);
512 public static Efl.Eo.FunctionWrapper<efl_file_key_set_api_delegate> efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper<efl_file_key_set_api_delegate>(Module, "efl_file_key_set");
514 private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key)
516 Eina.Log.Debug("function efl_file_key_set was called");
517 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
523 ((Layout)wrapper).SetKey(key);
527 Eina.Log.Warning($"Callback error: {e.ToString()}");
528 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
535 efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key);
539 private static efl_file_key_set_delegate efl_file_key_set_static_delegate;
541 [return: MarshalAs(UnmanagedType.U1)]
542 private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd);
544 [return: MarshalAs(UnmanagedType.U1)]
545 public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj);
547 public static Efl.Eo.FunctionWrapper<efl_file_loaded_get_api_delegate> efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper<efl_file_loaded_get_api_delegate>(Module, "efl_file_loaded_get");
549 private static bool loaded_get(System.IntPtr obj, System.IntPtr pd)
551 Eina.Log.Debug("function efl_file_loaded_get was called");
552 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
555 bool _ret_var = default(bool);
558 _ret_var = ((Layout)wrapper).GetLoaded();
562 Eina.Log.Warning($"Callback error: {e.ToString()}");
563 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
571 return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
575 private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate;
578 private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd);
581 public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj);
583 public static Efl.Eo.FunctionWrapper<efl_file_load_api_delegate> efl_file_load_ptr = new Efl.Eo.FunctionWrapper<efl_file_load_api_delegate>(Module, "efl_file_load");
585 private static Eina.Error load(System.IntPtr obj, System.IntPtr pd)
587 Eina.Log.Debug("function efl_file_load was called");
588 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
591 Eina.Error _ret_var = default(Eina.Error);
594 _ret_var = ((Layout)wrapper).Load();
598 Eina.Log.Warning($"Callback error: {e.ToString()}");
599 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
607 return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
611 private static efl_file_load_delegate efl_file_load_static_delegate;
614 private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd);
617 public delegate void efl_file_unload_api_delegate(System.IntPtr obj);
619 public static Efl.Eo.FunctionWrapper<efl_file_unload_api_delegate> efl_file_unload_ptr = new Efl.Eo.FunctionWrapper<efl_file_unload_api_delegate>(Module, "efl_file_unload");
621 private static void unload(System.IntPtr obj, System.IntPtr pd)
623 Eina.Log.Debug("function efl_file_unload was called");
624 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
630 ((Layout)wrapper).Unload();
634 Eina.Log.Warning($"Callback error: {e.ToString()}");
635 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
642 efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
646 private static efl_file_unload_delegate efl_file_unload_static_delegate;
648 #pragma warning restore CA1707, SA1300, SA1600