1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.ComponentModel;
7 namespace Efl { namespace Ui {
8 /// <summary>Elementary layout class
9 /// 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).
10 /// (Since EFL 1.22)</summary>
12 public class Layout : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile
14 ///<summary>Pointer to the native class description.</summary>
15 public override System.IntPtr NativeClass {
17 if (((object)this).GetType() == typeof (Layout))
18 return Efl.Ui.LayoutNativeInherit.GetEflClassStatic();
20 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
23 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
24 efl_ui_layout_class_get();
25 ///<summary>Creates a new instance.</summary>
26 ///<param name="parent">Parent instance.</param>
27 ///<param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle"/></param>
28 public Layout(Efl.Object parent
29 , System.String style = null) :
30 base(efl_ui_layout_class_get(), typeof(Layout), parent)
32 if (Efl.Eo.Globals.ParamHelperCheck(style))
33 SetStyle(Efl.Eo.Globals.GetParamHelper(style));
34 FinishInstantiation();
36 ///<summary>Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
37 protected Layout(System.IntPtr raw) : base(raw)
39 RegisterEventProxies();
41 ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
42 protected Layout(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
43 ///<summary>Verifies if the given object is equal to this one.</summary>
44 public override bool Equals(object obj)
46 var other = obj as Efl.Object;
49 return this.NativeHandle == other.NativeHandle;
51 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
52 public override int GetHashCode()
54 return this.NativeHandle.ToInt32();
56 ///<summary>Turns the native pointer into a string representation.</summary>
57 public override String ToString()
59 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
61 ///<summary>Register the Eo event wrappers making the bridge to C# events. Internal usage only.</summary>
62 protected override void RegisterEventProxies()
64 base.RegisterEventProxies();
66 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
67 /// (Since EFL 1.22)</summary>
68 /// <returns>The handle to the <see cref="Eina.File"/> that will be used</returns>
69 virtual public Eina.File GetMmap() {
70 var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
71 Eina.Error.RaiseIfUnhandledException();
74 /// <summary>Set the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
75 /// If mmap is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
76 /// (Since EFL 1.22)</summary>
77 /// <param name="f">The handle to the <see cref="Eina.File"/> that will be used</param>
78 /// <returns>0 on success, error code otherwise</returns>
79 virtual public Eina.Error SetMmap( Eina.File f) {
80 var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), f);
81 Eina.Error.RaiseIfUnhandledException();
84 /// <summary>Retrieve the file path from where an object is to fetch the data.
85 /// You must not modify the strings on the returned pointers.
86 /// (Since EFL 1.22)</summary>
87 /// <returns>The file path.</returns>
88 virtual public System.String GetFile() {
89 var _ret_var = Efl.IFileNativeInherit.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
90 Eina.Error.RaiseIfUnhandledException();
93 /// <summary>Set the file path from where an object will fetch the data.
94 /// If file is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
95 /// (Since EFL 1.22)</summary>
96 /// <param name="file">The file path.</param>
97 /// <returns>0 on success, error code otherwise</returns>
98 virtual public Eina.Error SetFile( System.String file) {
99 var _ret_var = Efl.IFileNativeInherit.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), file);
100 Eina.Error.RaiseIfUnhandledException();
103 /// <summary>Get the previously-set key which corresponds to the target data within a file.
104 /// 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"/>).
106 /// You must not modify the strings on the returned pointers.
107 /// (Since EFL 1.22)</summary>
108 /// <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>
109 virtual public System.String GetKey() {
110 var _ret_var = Efl.IFileNativeInherit.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
111 Eina.Error.RaiseIfUnhandledException();
114 /// <summary>Set the key which corresponds to the target data within a file.
115 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases.
116 /// (Since EFL 1.22)</summary>
117 /// <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>
118 /// <returns></returns>
119 virtual public void SetKey( System.String key) {
120 Efl.IFileNativeInherit.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key);
121 Eina.Error.RaiseIfUnhandledException();
123 /// <summary>Get the load state of the object.
124 /// (Since EFL 1.22)</summary>
125 /// <returns><c>true</c> if the object is loaded, <c>false</c> otherwise.</returns>
126 virtual public bool GetLoaded() {
127 var _ret_var = Efl.IFileNativeInherit.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
128 Eina.Error.RaiseIfUnhandledException();
131 /// <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.
132 /// 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.
134 /// 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.
135 /// (Since EFL 1.22)</summary>
136 /// <returns>0 on success, error code otherwise</returns>
137 virtual public Eina.Error Load() {
138 var _ret_var = Efl.IFileNativeInherit.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
139 Eina.Error.RaiseIfUnhandledException();
142 /// <summary>Perform all necessary operations to unload file data from the object.
143 /// 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.
145 /// Calling <see cref="Efl.IFile.Unload"/> on an object which is not currently loaded will have no effect.
146 /// (Since EFL 1.22)</summary>
147 /// <returns></returns>
148 virtual public void Unload() {
149 Efl.IFileNativeInherit.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
150 Eina.Error.RaiseIfUnhandledException();
152 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
153 /// (Since EFL 1.22)</summary>
154 /// <value>The handle to the <see cref="Eina.File"/> that will be used</value>
155 public Eina.File Mmap {
156 get { return GetMmap(); }
157 set { SetMmap( value); }
159 /// <summary>Retrieve the file path from where an object is to fetch the data.
160 /// You must not modify the strings on the returned pointers.
161 /// (Since EFL 1.22)</summary>
162 /// <value>The file path.</value>
163 public System.String File {
164 get { return GetFile(); }
165 set { SetFile( value); }
167 /// <summary>Get the previously-set key which corresponds to the target data within a file.
168 /// 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"/>).
170 /// You must not modify the strings on the returned pointers.
171 /// (Since EFL 1.22)</summary>
172 /// <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>
173 public System.String Key {
174 get { return GetKey(); }
175 set { SetKey( value); }
177 /// <summary>Get the load state of the object.
178 /// (Since EFL 1.22)</summary>
179 /// <value><c>true</c> if the object is loaded, <c>false</c> otherwise.</value>
181 get { return GetLoaded(); }
183 private static IntPtr GetEflClassStatic()
185 return Efl.Ui.Layout.efl_ui_layout_class_get();
188 public class LayoutNativeInherit : Efl.Ui.LayoutBaseNativeInherit{
189 public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary);
190 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
192 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
193 var methods = Efl.Eo.Globals.GetUserMethods(type);
194 if (efl_file_mmap_get_static_delegate == null)
195 efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get);
196 if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null)
197 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)});
198 if (efl_file_mmap_set_static_delegate == null)
199 efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set);
200 if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null)
201 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)});
202 if (efl_file_get_static_delegate == null)
203 efl_file_get_static_delegate = new efl_file_get_delegate(file_get);
204 if (methods.FirstOrDefault(m => m.Name == "GetFile") != null)
205 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)});
206 if (efl_file_set_static_delegate == null)
207 efl_file_set_static_delegate = new efl_file_set_delegate(file_set);
208 if (methods.FirstOrDefault(m => m.Name == "SetFile") != null)
209 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)});
210 if (efl_file_key_get_static_delegate == null)
211 efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get);
212 if (methods.FirstOrDefault(m => m.Name == "GetKey") != null)
213 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)});
214 if (efl_file_key_set_static_delegate == null)
215 efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set);
216 if (methods.FirstOrDefault(m => m.Name == "SetKey") != null)
217 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)});
218 if (efl_file_loaded_get_static_delegate == null)
219 efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get);
220 if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null)
221 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)});
222 if (efl_file_load_static_delegate == null)
223 efl_file_load_static_delegate = new efl_file_load_delegate(load);
224 if (methods.FirstOrDefault(m => m.Name == "Load") != null)
225 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)});
226 if (efl_file_unload_static_delegate == null)
227 efl_file_unload_static_delegate = new efl_file_unload_delegate(unload);
228 if (methods.FirstOrDefault(m => m.Name == "Unload") != null)
229 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)});
230 descs.AddRange(base.GetEoOps(type));
233 public override IntPtr GetEflClass()
235 return Efl.Ui.Layout.efl_ui_layout_class_get();
237 public static new IntPtr GetEflClassStatic()
239 return Efl.Ui.Layout.efl_ui_layout_class_get();
243 private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd);
246 public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj);
247 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");
248 private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd)
250 Eina.Log.Debug("function efl_file_mmap_get was called");
251 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
252 if(wrapper != null) {
253 Eina.File _ret_var = default(Eina.File);
255 _ret_var = ((Layout)wrapper).GetMmap();
256 } catch (Exception e) {
257 Eina.Log.Warning($"Callback error: {e.ToString()}");
258 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
262 return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
265 private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate;
268 private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f);
271 public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f);
272 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");
273 private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f)
275 Eina.Log.Debug("function efl_file_mmap_set was called");
276 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
277 if(wrapper != null) {
278 Eina.Error _ret_var = default(Eina.Error);
280 _ret_var = ((Layout)wrapper).SetMmap( f);
281 } catch (Exception e) {
282 Eina.Log.Warning($"Callback error: {e.ToString()}");
283 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
287 return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f);
290 private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate;
293 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd);
296 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_get_api_delegate(System.IntPtr obj);
297 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");
298 private static System.String file_get(System.IntPtr obj, System.IntPtr pd)
300 Eina.Log.Debug("function efl_file_get was called");
301 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
302 if(wrapper != null) {
303 System.String _ret_var = default(System.String);
305 _ret_var = ((Layout)wrapper).GetFile();
306 } catch (Exception e) {
307 Eina.Log.Warning($"Callback error: {e.ToString()}");
308 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
312 return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
315 private static efl_file_get_delegate efl_file_get_static_delegate;
318 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);
321 public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file);
322 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");
323 private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file)
325 Eina.Log.Debug("function efl_file_set was called");
326 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
327 if(wrapper != null) {
328 Eina.Error _ret_var = default(Eina.Error);
330 _ret_var = ((Layout)wrapper).SetFile( file);
331 } catch (Exception e) {
332 Eina.Log.Warning($"Callback error: {e.ToString()}");
333 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
337 return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file);
340 private static efl_file_set_delegate efl_file_set_static_delegate;
343 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd);
346 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj);
347 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");
348 private static System.String key_get(System.IntPtr obj, System.IntPtr pd)
350 Eina.Log.Debug("function efl_file_key_get was called");
351 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
352 if(wrapper != null) {
353 System.String _ret_var = default(System.String);
355 _ret_var = ((Layout)wrapper).GetKey();
356 } catch (Exception e) {
357 Eina.Log.Warning($"Callback error: {e.ToString()}");
358 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
362 return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
365 private static efl_file_key_get_delegate efl_file_key_get_static_delegate;
368 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);
371 public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key);
372 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");
373 private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key)
375 Eina.Log.Debug("function efl_file_key_set was called");
376 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
377 if(wrapper != null) {
380 ((Layout)wrapper).SetKey( key);
381 } catch (Exception e) {
382 Eina.Log.Warning($"Callback error: {e.ToString()}");
383 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
386 efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key);
389 private static efl_file_key_set_delegate efl_file_key_set_static_delegate;
392 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd);
395 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj);
396 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");
397 private static bool loaded_get(System.IntPtr obj, System.IntPtr pd)
399 Eina.Log.Debug("function efl_file_loaded_get was called");
400 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
401 if(wrapper != null) {
402 bool _ret_var = default(bool);
404 _ret_var = ((Layout)wrapper).GetLoaded();
405 } catch (Exception e) {
406 Eina.Log.Warning($"Callback error: {e.ToString()}");
407 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
411 return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
414 private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate;
417 private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd);
420 public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj);
421 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");
422 private static Eina.Error load(System.IntPtr obj, System.IntPtr pd)
424 Eina.Log.Debug("function efl_file_load was called");
425 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
426 if(wrapper != null) {
427 Eina.Error _ret_var = default(Eina.Error);
429 _ret_var = ((Layout)wrapper).Load();
430 } catch (Exception e) {
431 Eina.Log.Warning($"Callback error: {e.ToString()}");
432 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
436 return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
439 private static efl_file_load_delegate efl_file_load_static_delegate;
442 private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd);
445 public delegate void efl_file_unload_api_delegate(System.IntPtr obj);
446 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");
447 private static void unload(System.IntPtr obj, System.IntPtr pd)
449 Eina.Log.Debug("function efl_file_unload was called");
450 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
451 if(wrapper != null) {
454 ((Layout)wrapper).Unload();
455 } catch (Exception e) {
456 Eina.Log.Warning($"Callback error: {e.ToString()}");
457 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
460 efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
463 private static efl_file_unload_delegate efl_file_unload_static_delegate;