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 [Efl.Eo.BindingEntity]
17 public class Layout : Efl.Ui.LayoutBase, Efl.IFile
19 ///<summary>Pointer to the native class description.</summary>
20 public override System.IntPtr NativeClass
24 if (((object)this).GetType() == typeof(Layout))
26 return GetEflClassStatic();
30 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
35 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
36 efl_ui_layout_class_get();
37 /// <summary>Initializes a new instance of the <see cref="Layout"/> class.</summary>
38 /// <param name="parent">Parent instance.</param>
39 /// <param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle" /></param>
40 public Layout(Efl.Object parent
41 , System.String style = null) : base(efl_ui_layout_class_get(), parent)
43 if (Efl.Eo.Globals.ParamHelperCheck(style))
45 SetStyle(Efl.Eo.Globals.GetParamHelper(style));
48 FinishInstantiation();
51 /// <summary>Constructor to be used when objects are expected to be constructed from native code.</summary>
52 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
53 protected Layout(ConstructingHandle ch) : base(ch)
57 /// <summary>Initializes a new instance of the <see cref="Layout"/> class.
58 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
59 /// <param name="wh">The native pointer to be wrapped.</param>
60 protected Layout(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
64 /// <summary>Initializes a new instance of the <see cref="Layout"/> class.
65 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
66 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
67 /// <param name="parent">The Efl.Object parent of this instance.</param>
68 protected Layout(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
72 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
73 /// (Since EFL 1.22)</summary>
74 /// <returns>The handle to the <see cref="Eina.File"/> that will be used</returns>
75 virtual public Eina.File GetMmap() {
76 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
77 Eina.Error.RaiseIfUnhandledException();
80 /// <summary>Set the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
81 /// If mmap is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
82 /// (Since EFL 1.22)</summary>
83 /// <param name="f">The handle to the <see cref="Eina.File"/> that will be used</param>
84 /// <returns>0 on success, error code otherwise</returns>
85 virtual public Eina.Error SetMmap(Eina.File f) {
86 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),f);
87 Eina.Error.RaiseIfUnhandledException();
90 /// <summary>Retrieve the file path from where an object is to fetch the data.
91 /// You must not modify the strings on the returned pointers.
92 /// (Since EFL 1.22)</summary>
93 /// <returns>The file path.</returns>
94 virtual public System.String GetFile() {
95 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
96 Eina.Error.RaiseIfUnhandledException();
99 /// <summary>Set the file path from where an object will fetch the data.
100 /// If file is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
101 /// (Since EFL 1.22)</summary>
102 /// <param name="file">The file path.</param>
103 /// <returns>0 on success, error code otherwise</returns>
104 virtual public Eina.Error SetFile(System.String file) {
105 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),file);
106 Eina.Error.RaiseIfUnhandledException();
109 /// <summary>Get the previously-set key which corresponds to the target data within a file.
110 /// 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"/>).
112 /// You must not modify the strings on the returned pointers.
113 /// (Since EFL 1.22)</summary>
114 /// <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>
115 virtual public System.String GetKey() {
116 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_key_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
117 Eina.Error.RaiseIfUnhandledException();
120 /// <summary>Set the key which corresponds to the target data within a file.
121 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases.
122 /// (Since EFL 1.22)</summary>
123 /// <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>
124 virtual public void SetKey(System.String key) {
125 Efl.IFileConcrete.NativeMethods.efl_file_key_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),key);
126 Eina.Error.RaiseIfUnhandledException();
128 /// <summary>Get the load state of the object.
129 /// (Since EFL 1.22)</summary>
130 /// <returns><c>true</c> if the object is loaded, <c>false</c> otherwise.</returns>
131 virtual public bool GetLoaded() {
132 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_loaded_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
133 Eina.Error.RaiseIfUnhandledException();
136 /// <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.
137 /// 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.
139 /// 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.
140 /// (Since EFL 1.22)</summary>
141 /// <returns>0 on success, error code otherwise</returns>
142 virtual public Eina.Error Load() {
143 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_load_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
144 Eina.Error.RaiseIfUnhandledException();
147 /// <summary>Perform all necessary operations to unload file data from the object.
148 /// 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.
150 /// Calling <see cref="Efl.IFile.Unload"/> on an object which is not currently loaded will have no effect.
151 /// (Since EFL 1.22)</summary>
152 virtual public void Unload() {
153 Efl.IFileConcrete.NativeMethods.efl_file_unload_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
154 Eina.Error.RaiseIfUnhandledException();
156 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
157 /// (Since EFL 1.22)</summary>
158 /// <value>The handle to the <see cref="Eina.File"/> that will be used</value>
159 public Eina.File Mmap {
160 get { return GetMmap(); }
161 set { SetMmap(value); }
163 /// <summary>Retrieve the file path from where an object is to fetch the data.
164 /// You must not modify the strings on the returned pointers.
165 /// (Since EFL 1.22)</summary>
166 /// <value>The file path.</value>
167 public System.String File {
168 get { return GetFile(); }
169 set { SetFile(value); }
171 /// <summary>Get the previously-set key which corresponds to the target data within a file.
172 /// 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"/>).
174 /// You must not modify the strings on the returned pointers.
175 /// (Since EFL 1.22)</summary>
176 /// <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>
177 public System.String Key {
178 get { return GetKey(); }
179 set { SetKey(value); }
181 /// <summary>Get the load state of the object.
182 /// (Since EFL 1.22)</summary>
183 /// <value><c>true</c> if the object is loaded, <c>false</c> otherwise.</value>
185 get { return GetLoaded(); }
187 private static IntPtr GetEflClassStatic()
189 return Efl.Ui.Layout.efl_ui_layout_class_get();
191 /// <summary>Wrapper for native methods and virtual method delegates.
192 /// For internal use by generated code only.</summary>
193 public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods
195 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary);
196 /// <summary>Gets the list of Eo operations to override.</summary>
197 /// <returns>The list of Eo operations to be overload.</returns>
198 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
200 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
201 var methods = Efl.Eo.Globals.GetUserMethods(type);
203 if (efl_file_mmap_get_static_delegate == null)
205 efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get);
208 if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null)
210 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) });
213 if (efl_file_mmap_set_static_delegate == null)
215 efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set);
218 if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null)
220 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) });
223 if (efl_file_get_static_delegate == null)
225 efl_file_get_static_delegate = new efl_file_get_delegate(file_get);
228 if (methods.FirstOrDefault(m => m.Name == "GetFile") != null)
230 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) });
233 if (efl_file_set_static_delegate == null)
235 efl_file_set_static_delegate = new efl_file_set_delegate(file_set);
238 if (methods.FirstOrDefault(m => m.Name == "SetFile") != null)
240 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) });
243 if (efl_file_key_get_static_delegate == null)
245 efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get);
248 if (methods.FirstOrDefault(m => m.Name == "GetKey") != null)
250 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) });
253 if (efl_file_key_set_static_delegate == null)
255 efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set);
258 if (methods.FirstOrDefault(m => m.Name == "SetKey") != null)
260 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) });
263 if (efl_file_loaded_get_static_delegate == null)
265 efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get);
268 if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null)
270 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) });
273 if (efl_file_load_static_delegate == null)
275 efl_file_load_static_delegate = new efl_file_load_delegate(load);
278 if (methods.FirstOrDefault(m => m.Name == "Load") != null)
280 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) });
283 if (efl_file_unload_static_delegate == null)
285 efl_file_unload_static_delegate = new efl_file_unload_delegate(unload);
288 if (methods.FirstOrDefault(m => m.Name == "Unload") != null)
290 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) });
293 descs.AddRange(base.GetEoOps(type));
296 /// <summary>Returns the Eo class for the native methods of this class.</summary>
297 /// <returns>The native class pointer.</returns>
298 public override IntPtr GetEflClass()
300 return Efl.Ui.Layout.efl_ui_layout_class_get();
303 #pragma warning disable CA1707, CS1591, SA1300, SA1600
306 private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd);
309 public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj);
311 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");
313 private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd)
315 Eina.Log.Debug("function efl_file_mmap_get was called");
316 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
319 Eina.File _ret_var = default(Eina.File);
322 _ret_var = ((Layout)ws.Target).GetMmap();
326 Eina.Log.Warning($"Callback error: {e.ToString()}");
327 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
335 return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
339 private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate;
342 private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f);
345 public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f);
347 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");
349 private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f)
351 Eina.Log.Debug("function efl_file_mmap_set was called");
352 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
355 Eina.Error _ret_var = default(Eina.Error);
358 _ret_var = ((Layout)ws.Target).SetMmap(f);
362 Eina.Log.Warning($"Callback error: {e.ToString()}");
363 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
371 return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f);
375 private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate;
377 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
378 private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd);
380 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
381 public delegate System.String efl_file_get_api_delegate(System.IntPtr obj);
383 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");
385 private static System.String file_get(System.IntPtr obj, System.IntPtr pd)
387 Eina.Log.Debug("function efl_file_get was called");
388 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
391 System.String _ret_var = default(System.String);
394 _ret_var = ((Layout)ws.Target).GetFile();
398 Eina.Log.Warning($"Callback error: {e.ToString()}");
399 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
407 return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
411 private static efl_file_get_delegate efl_file_get_static_delegate;
414 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);
417 public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file);
419 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");
421 private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file)
423 Eina.Log.Debug("function efl_file_set was called");
424 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
427 Eina.Error _ret_var = default(Eina.Error);
430 _ret_var = ((Layout)ws.Target).SetFile(file);
434 Eina.Log.Warning($"Callback error: {e.ToString()}");
435 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
443 return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file);
447 private static efl_file_set_delegate efl_file_set_static_delegate;
449 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
450 private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd);
452 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
453 public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj);
455 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");
457 private static System.String key_get(System.IntPtr obj, System.IntPtr pd)
459 Eina.Log.Debug("function efl_file_key_get was called");
460 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
463 System.String _ret_var = default(System.String);
466 _ret_var = ((Layout)ws.Target).GetKey();
470 Eina.Log.Warning($"Callback error: {e.ToString()}");
471 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
479 return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
483 private static efl_file_key_get_delegate efl_file_key_get_static_delegate;
486 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);
489 public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key);
491 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");
493 private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key)
495 Eina.Log.Debug("function efl_file_key_set was called");
496 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
502 ((Layout)ws.Target).SetKey(key);
506 Eina.Log.Warning($"Callback error: {e.ToString()}");
507 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
514 efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key);
518 private static efl_file_key_set_delegate efl_file_key_set_static_delegate;
520 [return: MarshalAs(UnmanagedType.U1)]
521 private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd);
523 [return: MarshalAs(UnmanagedType.U1)]
524 public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj);
526 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");
528 private static bool loaded_get(System.IntPtr obj, System.IntPtr pd)
530 Eina.Log.Debug("function efl_file_loaded_get was called");
531 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
534 bool _ret_var = default(bool);
537 _ret_var = ((Layout)ws.Target).GetLoaded();
541 Eina.Log.Warning($"Callback error: {e.ToString()}");
542 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
550 return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
554 private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate;
557 private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd);
560 public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj);
562 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");
564 private static Eina.Error load(System.IntPtr obj, System.IntPtr pd)
566 Eina.Log.Debug("function efl_file_load was called");
567 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
570 Eina.Error _ret_var = default(Eina.Error);
573 _ret_var = ((Layout)ws.Target).Load();
577 Eina.Log.Warning($"Callback error: {e.ToString()}");
578 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
586 return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
590 private static efl_file_load_delegate efl_file_load_static_delegate;
593 private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd);
596 public delegate void efl_file_unload_api_delegate(System.IntPtr obj);
598 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");
600 private static void unload(System.IntPtr obj, System.IntPtr pd)
602 Eina.Log.Debug("function efl_file_unload was called");
603 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
609 ((Layout)ws.Target).Unload();
613 Eina.Log.Warning($"Callback error: {e.ToString()}");
614 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
621 efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
625 private static efl_file_unload_delegate efl_file_unload_static_delegate;
627 #pragma warning restore CA1707, CS1591, SA1300, SA1600