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>Efl UI window interal part class</summary>
13 [Efl.Ui.WinPart.NativeMethods]
14 public class WinPart : Efl.Ui.WidgetPart, Efl.IContent, Efl.IFile, Efl.Gfx.IColor
16 ///<summary>Pointer to the native class description.</summary>
17 public override System.IntPtr NativeClass
21 if (((object)this).GetType() == typeof(WinPart))
23 return GetEflClassStatic();
27 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
32 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
33 efl_ui_win_part_class_get();
34 /// <summary>Initializes a new instance of the <see cref="WinPart"/> class.</summary>
35 /// <param name="parent">Parent instance.</param>
36 public WinPart(Efl.Object parent= null
37 ) : base(efl_ui_win_part_class_get(), typeof(WinPart), parent)
39 FinishInstantiation();
42 /// <summary>Initializes a new instance of the <see cref="WinPart"/> class.
43 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
44 /// <param name="raw">The native pointer to be wrapped.</param>
45 protected WinPart(System.IntPtr raw) : base(raw)
49 /// <summary>Initializes a new instance of the <see cref="WinPart"/> class.
50 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
51 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
52 /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
53 /// <param name="parent">The Efl.Object parent of this instance.</param>
54 protected WinPart(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
58 /// <summary>Sent after the content is set or unset using the current content object.
59 /// (Since EFL 1.22)</summary>
60 public event EventHandler<Efl.IContentContentChangedEvt_Args> ContentChangedEvt
66 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
68 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
71 Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args();
72 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete);
75 value?.Invoke(obj, args);
79 Eina.Log.Error(e.ToString());
80 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
85 string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED";
86 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
94 string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED";
95 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
99 ///<summary>Method to raise event ContentChangedEvt.</summary>
100 public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e)
102 var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED";
103 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
104 if (desc == IntPtr.Zero)
106 Eina.Log.Error($"Failed to get native event {key}");
110 IntPtr info = e.arg.NativeHandle;
111 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
113 /// <summary>Sub-object currently set as this object's single content.
114 /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid <c>content</c> is set the object will become empty (it will have no sub-object).
115 /// (Since EFL 1.22)</summary>
116 /// <returns>The sub-object.</returns>
117 virtual public Efl.Gfx.IEntity GetContent() {
118 var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
119 Eina.Error.RaiseIfUnhandledException();
122 /// <summary>Sub-object currently set as this object's single content.
123 /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid <c>content</c> is set the object will become empty (it will have no sub-object).
124 /// (Since EFL 1.22)</summary>
125 /// <param name="content">The sub-object.</param>
126 /// <returns><c>true</c> if <c>content</c> was successfully swallowed.</returns>
127 virtual public bool SetContent(Efl.Gfx.IEntity content) {
128 var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content);
129 Eina.Error.RaiseIfUnhandledException();
132 /// <summary>Remove the sub-object currently set as content of this object and return it. This object becomes empty.
133 /// (Since EFL 1.22)</summary>
134 /// <returns>Unswallowed object</returns>
135 virtual public Efl.Gfx.IEntity UnsetContent() {
136 var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
137 Eina.Error.RaiseIfUnhandledException();
140 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
141 /// (Since EFL 1.22)</summary>
142 /// <returns>The handle to the <see cref="Eina.File"/> that will be used</returns>
143 virtual public Eina.File GetMmap() {
144 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));
145 Eina.Error.RaiseIfUnhandledException();
148 /// <summary>Set the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
149 /// If mmap is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
150 /// (Since EFL 1.22)</summary>
151 /// <param name="f">The handle to the <see cref="Eina.File"/> that will be used</param>
152 /// <returns>0 on success, error code otherwise</returns>
153 virtual public Eina.Error SetMmap(Eina.File f) {
154 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);
155 Eina.Error.RaiseIfUnhandledException();
158 /// <summary>Retrieve the file path from where an object is to fetch the data.
159 /// You must not modify the strings on the returned pointers.
160 /// (Since EFL 1.22)</summary>
161 /// <returns>The file path.</returns>
162 virtual public System.String GetFile() {
163 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
164 Eina.Error.RaiseIfUnhandledException();
167 /// <summary>Set the file path from where an object will fetch the data.
168 /// If file is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
169 /// (Since EFL 1.22)</summary>
170 /// <param name="file">The file path.</param>
171 /// <returns>0 on success, error code otherwise</returns>
172 virtual public Eina.Error SetFile(System.String file) {
173 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);
174 Eina.Error.RaiseIfUnhandledException();
177 /// <summary>Get the previously-set key which corresponds to the target data within a file.
178 /// 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"/>).
180 /// You must not modify the strings on the returned pointers.
181 /// (Since EFL 1.22)</summary>
182 /// <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>
183 virtual public System.String GetKey() {
184 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));
185 Eina.Error.RaiseIfUnhandledException();
188 /// <summary>Set the key which corresponds to the target data within a file.
189 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases.
190 /// (Since EFL 1.22)</summary>
191 /// <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>
192 virtual public void SetKey(System.String key) {
193 Efl.IFileConcrete.NativeMethods.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key);
194 Eina.Error.RaiseIfUnhandledException();
196 /// <summary>Get the load state of the object.
197 /// (Since EFL 1.22)</summary>
198 /// <returns><c>true</c> if the object is loaded, <c>false</c> otherwise.</returns>
199 virtual public bool GetLoaded() {
200 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));
201 Eina.Error.RaiseIfUnhandledException();
204 /// <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.
205 /// 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.
207 /// 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.
208 /// (Since EFL 1.22)</summary>
209 /// <returns>0 on success, error code otherwise</returns>
210 virtual public Eina.Error Load() {
211 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
212 Eina.Error.RaiseIfUnhandledException();
215 /// <summary>Perform all necessary operations to unload file data from the object.
216 /// 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.
218 /// Calling <see cref="Efl.IFile.Unload"/> on an object which is not currently loaded will have no effect.
219 /// (Since EFL 1.22)</summary>
220 virtual public void Unload() {
221 Efl.IFileConcrete.NativeMethods.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
222 Eina.Error.RaiseIfUnhandledException();
224 /// <summary>Retrieves the general/main color of the given Evas object.
225 /// Retrieves the main color's RGB component (and alpha channel) values, which range from 0 to 255. For the alpha channel, which defines the object's transparency level, 0 means totally transparent, while 255 means opaque. These color values are premultiplied by the alpha value.
227 /// Usually youll use this attribute for text and rectangle objects, where the main color is their unique one. If set for objects which themselves have colors, like the images one, those colors get modulated by this one.
229 /// All newly created Evas rectangles get the default color values of 255 255 255 255 (opaque white).
231 /// Use null pointers on the components you're not interested in: they'll be ignored by the function.
232 /// (Since EFL 1.22)</summary>
233 virtual public void GetColor(out int r, out int g, out int b, out int a) {
234 Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a);
235 Eina.Error.RaiseIfUnhandledException();
237 /// <summary>Sets the general/main color of the given Evas object to the given one.
238 /// See also <see cref="Efl.Gfx.IColor.GetColor"/> (for an example)
240 /// These color values are expected to be premultiplied by alpha.
241 /// (Since EFL 1.22)</summary>
242 virtual public void SetColor(int r, int g, int b, int a) {
243 Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a);
244 Eina.Error.RaiseIfUnhandledException();
246 /// <summary>Get hex color code of given Evas object. This returns a short lived hex color code string.
247 /// (Since EFL 1.22)</summary>
248 /// <returns>the hex color code.</returns>
249 virtual public System.String GetColorCode() {
250 var _ret_var = Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_code_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
251 Eina.Error.RaiseIfUnhandledException();
254 /// <summary>Set the color of given Evas object to the given hex color code(#RRGGBBAA). e.g. efl_gfx_color_code_set(obj, "#FFCCAACC");
255 /// (Since EFL 1.22)</summary>
256 /// <param name="colorcode">the hex color code.</param>
257 virtual public void SetColorCode(System.String colorcode) {
258 Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_code_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),colorcode);
259 Eina.Error.RaiseIfUnhandledException();
261 /// <summary>Sub-object currently set as this object's single content.
262 /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid <c>content</c> is set the object will become empty (it will have no sub-object).
263 /// (Since EFL 1.22)</summary>
264 /// <value>The sub-object.</value>
265 public Efl.Gfx.IEntity Content {
266 get { return GetContent(); }
267 set { SetContent(value); }
269 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
270 /// (Since EFL 1.22)</summary>
271 /// <value>The handle to the <see cref="Eina.File"/> that will be used</value>
272 public Eina.File Mmap {
273 get { return GetMmap(); }
274 set { SetMmap(value); }
276 /// <summary>Retrieve the file path from where an object is to fetch the data.
277 /// You must not modify the strings on the returned pointers.
278 /// (Since EFL 1.22)</summary>
279 /// <value>The file path.</value>
280 public System.String File {
281 get { return GetFile(); }
282 set { SetFile(value); }
284 /// <summary>Get the previously-set key which corresponds to the target data within a file.
285 /// 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"/>).
287 /// You must not modify the strings on the returned pointers.
288 /// (Since EFL 1.22)</summary>
289 /// <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>
290 public System.String Key {
291 get { return GetKey(); }
292 set { SetKey(value); }
294 /// <summary>Get the load state of the object.
295 /// (Since EFL 1.22)</summary>
296 /// <value><c>true</c> if the object is loaded, <c>false</c> otherwise.</value>
298 get { return GetLoaded(); }
300 /// <summary>Get hex color code of given Evas object. This returns a short lived hex color code string.
301 /// (Since EFL 1.22)</summary>
302 /// <value>the hex color code.</value>
303 public System.String ColorCode {
304 get { return GetColorCode(); }
305 set { SetColorCode(value); }
307 private static IntPtr GetEflClassStatic()
309 return Efl.Ui.WinPart.efl_ui_win_part_class_get();
311 /// <summary>Wrapper for native methods and virtual method delegates.
312 /// For internal use by generated code only.</summary>
313 public new class NativeMethods : Efl.Ui.WidgetPart.NativeMethods
315 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary);
316 /// <summary>Gets the list of Eo operations to override.</summary>
317 /// <returns>The list of Eo operations to be overload.</returns>
318 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
320 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
321 var methods = Efl.Eo.Globals.GetUserMethods(type);
323 if (efl_content_get_static_delegate == null)
325 efl_content_get_static_delegate = new efl_content_get_delegate(content_get);
328 if (methods.FirstOrDefault(m => m.Name == "GetContent") != null)
330 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) });
333 if (efl_content_set_static_delegate == null)
335 efl_content_set_static_delegate = new efl_content_set_delegate(content_set);
338 if (methods.FirstOrDefault(m => m.Name == "SetContent") != null)
340 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) });
343 if (efl_content_unset_static_delegate == null)
345 efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset);
348 if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null)
350 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) });
353 if (efl_file_mmap_get_static_delegate == null)
355 efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get);
358 if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null)
360 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) });
363 if (efl_file_mmap_set_static_delegate == null)
365 efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set);
368 if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null)
370 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) });
373 if (efl_file_get_static_delegate == null)
375 efl_file_get_static_delegate = new efl_file_get_delegate(file_get);
378 if (methods.FirstOrDefault(m => m.Name == "GetFile") != null)
380 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) });
383 if (efl_file_set_static_delegate == null)
385 efl_file_set_static_delegate = new efl_file_set_delegate(file_set);
388 if (methods.FirstOrDefault(m => m.Name == "SetFile") != null)
390 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) });
393 if (efl_file_key_get_static_delegate == null)
395 efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get);
398 if (methods.FirstOrDefault(m => m.Name == "GetKey") != null)
400 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) });
403 if (efl_file_key_set_static_delegate == null)
405 efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set);
408 if (methods.FirstOrDefault(m => m.Name == "SetKey") != null)
410 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) });
413 if (efl_file_loaded_get_static_delegate == null)
415 efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get);
418 if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null)
420 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) });
423 if (efl_file_load_static_delegate == null)
425 efl_file_load_static_delegate = new efl_file_load_delegate(load);
428 if (methods.FirstOrDefault(m => m.Name == "Load") != null)
430 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) });
433 if (efl_file_unload_static_delegate == null)
435 efl_file_unload_static_delegate = new efl_file_unload_delegate(unload);
438 if (methods.FirstOrDefault(m => m.Name == "Unload") != null)
440 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) });
443 if (efl_gfx_color_get_static_delegate == null)
445 efl_gfx_color_get_static_delegate = new efl_gfx_color_get_delegate(color_get);
448 if (methods.FirstOrDefault(m => m.Name == "GetColor") != null)
450 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_get_static_delegate) });
453 if (efl_gfx_color_set_static_delegate == null)
455 efl_gfx_color_set_static_delegate = new efl_gfx_color_set_delegate(color_set);
458 if (methods.FirstOrDefault(m => m.Name == "SetColor") != null)
460 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_set_static_delegate) });
463 if (efl_gfx_color_code_get_static_delegate == null)
465 efl_gfx_color_code_get_static_delegate = new efl_gfx_color_code_get_delegate(color_code_get);
468 if (methods.FirstOrDefault(m => m.Name == "GetColorCode") != null)
470 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_get_static_delegate) });
473 if (efl_gfx_color_code_set_static_delegate == null)
475 efl_gfx_color_code_set_static_delegate = new efl_gfx_color_code_set_delegate(color_code_set);
478 if (methods.FirstOrDefault(m => m.Name == "SetColorCode") != null)
480 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_code_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_set_static_delegate) });
483 descs.AddRange(base.GetEoOps(type));
486 /// <summary>Returns the Eo class for the native methods of this class.</summary>
487 /// <returns>The native class pointer.</returns>
488 public override IntPtr GetEflClass()
490 return Efl.Ui.WinPart.efl_ui_win_part_class_get();
493 #pragma warning disable CA1707, CS1591, SA1300, SA1600
495 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
496 private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd);
498 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
499 public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj);
501 public static Efl.Eo.FunctionWrapper<efl_content_get_api_delegate> efl_content_get_ptr = new Efl.Eo.FunctionWrapper<efl_content_get_api_delegate>(Module, "efl_content_get");
503 private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd)
505 Eina.Log.Debug("function efl_content_get was called");
506 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
509 Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
512 _ret_var = ((WinPart)ws.Target).GetContent();
516 Eina.Log.Warning($"Callback error: {e.ToString()}");
517 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
525 return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
529 private static efl_content_get_delegate efl_content_get_static_delegate;
531 [return: MarshalAs(UnmanagedType.U1)]
532 private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity content);
534 [return: MarshalAs(UnmanagedType.U1)]
535 public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity content);
537 public static Efl.Eo.FunctionWrapper<efl_content_set_api_delegate> efl_content_set_ptr = new Efl.Eo.FunctionWrapper<efl_content_set_api_delegate>(Module, "efl_content_set");
539 private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content)
541 Eina.Log.Debug("function efl_content_set was called");
542 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
545 bool _ret_var = default(bool);
548 _ret_var = ((WinPart)ws.Target).SetContent(content);
552 Eina.Log.Warning($"Callback error: {e.ToString()}");
553 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
561 return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content);
565 private static efl_content_set_delegate efl_content_set_static_delegate;
567 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
568 private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd);
570 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
571 public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj);
573 public static Efl.Eo.FunctionWrapper<efl_content_unset_api_delegate> efl_content_unset_ptr = new Efl.Eo.FunctionWrapper<efl_content_unset_api_delegate>(Module, "efl_content_unset");
575 private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd)
577 Eina.Log.Debug("function efl_content_unset was called");
578 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
581 Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
584 _ret_var = ((WinPart)ws.Target).UnsetContent();
588 Eina.Log.Warning($"Callback error: {e.ToString()}");
589 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
597 return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
601 private static efl_content_unset_delegate efl_content_unset_static_delegate;
604 private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd);
607 public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj);
609 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");
611 private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd)
613 Eina.Log.Debug("function efl_file_mmap_get was called");
614 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
617 Eina.File _ret_var = default(Eina.File);
620 _ret_var = ((WinPart)ws.Target).GetMmap();
624 Eina.Log.Warning($"Callback error: {e.ToString()}");
625 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
633 return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
637 private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate;
640 private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f);
643 public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f);
645 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");
647 private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f)
649 Eina.Log.Debug("function efl_file_mmap_set was called");
650 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
653 Eina.Error _ret_var = default(Eina.Error);
656 _ret_var = ((WinPart)ws.Target).SetMmap(f);
660 Eina.Log.Warning($"Callback error: {e.ToString()}");
661 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
669 return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f);
673 private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate;
675 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
676 private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd);
678 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
679 public delegate System.String efl_file_get_api_delegate(System.IntPtr obj);
681 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");
683 private static System.String file_get(System.IntPtr obj, System.IntPtr pd)
685 Eina.Log.Debug("function efl_file_get was called");
686 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
689 System.String _ret_var = default(System.String);
692 _ret_var = ((WinPart)ws.Target).GetFile();
696 Eina.Log.Warning($"Callback error: {e.ToString()}");
697 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
705 return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
709 private static efl_file_get_delegate efl_file_get_static_delegate;
712 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);
715 public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file);
717 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");
719 private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file)
721 Eina.Log.Debug("function efl_file_set was called");
722 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
725 Eina.Error _ret_var = default(Eina.Error);
728 _ret_var = ((WinPart)ws.Target).SetFile(file);
732 Eina.Log.Warning($"Callback error: {e.ToString()}");
733 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
741 return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file);
745 private static efl_file_set_delegate efl_file_set_static_delegate;
747 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
748 private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd);
750 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
751 public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj);
753 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");
755 private static System.String key_get(System.IntPtr obj, System.IntPtr pd)
757 Eina.Log.Debug("function efl_file_key_get was called");
758 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
761 System.String _ret_var = default(System.String);
764 _ret_var = ((WinPart)ws.Target).GetKey();
768 Eina.Log.Warning($"Callback error: {e.ToString()}");
769 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
777 return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
781 private static efl_file_key_get_delegate efl_file_key_get_static_delegate;
784 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);
787 public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key);
789 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");
791 private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key)
793 Eina.Log.Debug("function efl_file_key_set was called");
794 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
800 ((WinPart)ws.Target).SetKey(key);
804 Eina.Log.Warning($"Callback error: {e.ToString()}");
805 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
812 efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key);
816 private static efl_file_key_set_delegate efl_file_key_set_static_delegate;
818 [return: MarshalAs(UnmanagedType.U1)]
819 private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd);
821 [return: MarshalAs(UnmanagedType.U1)]
822 public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj);
824 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");
826 private static bool loaded_get(System.IntPtr obj, System.IntPtr pd)
828 Eina.Log.Debug("function efl_file_loaded_get was called");
829 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
832 bool _ret_var = default(bool);
835 _ret_var = ((WinPart)ws.Target).GetLoaded();
839 Eina.Log.Warning($"Callback error: {e.ToString()}");
840 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
848 return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
852 private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate;
855 private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd);
858 public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj);
860 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");
862 private static Eina.Error load(System.IntPtr obj, System.IntPtr pd)
864 Eina.Log.Debug("function efl_file_load was called");
865 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
868 Eina.Error _ret_var = default(Eina.Error);
871 _ret_var = ((WinPart)ws.Target).Load();
875 Eina.Log.Warning($"Callback error: {e.ToString()}");
876 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
884 return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
888 private static efl_file_load_delegate efl_file_load_static_delegate;
891 private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd);
894 public delegate void efl_file_unload_api_delegate(System.IntPtr obj);
896 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");
898 private static void unload(System.IntPtr obj, System.IntPtr pd)
900 Eina.Log.Debug("function efl_file_unload was called");
901 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
907 ((WinPart)ws.Target).Unload();
911 Eina.Log.Warning($"Callback error: {e.ToString()}");
912 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
919 efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
923 private static efl_file_unload_delegate efl_file_unload_static_delegate;
926 private delegate void efl_gfx_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a);
929 public delegate void efl_gfx_color_get_api_delegate(System.IntPtr obj, out int r, out int g, out int b, out int a);
931 public static Efl.Eo.FunctionWrapper<efl_gfx_color_get_api_delegate> efl_gfx_color_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_color_get_api_delegate>(Module, "efl_gfx_color_get");
933 private static void color_get(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a)
935 Eina.Log.Debug("function efl_gfx_color_get was called");
936 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
939 r = default(int); g = default(int); b = default(int); a = default(int);
942 ((WinPart)ws.Target).GetColor(out r, out g, out b, out a);
946 Eina.Log.Warning($"Callback error: {e.ToString()}");
947 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
954 efl_gfx_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a);
958 private static efl_gfx_color_get_delegate efl_gfx_color_get_static_delegate;
961 private delegate void efl_gfx_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a);
964 public delegate void efl_gfx_color_set_api_delegate(System.IntPtr obj, int r, int g, int b, int a);
966 public static Efl.Eo.FunctionWrapper<efl_gfx_color_set_api_delegate> efl_gfx_color_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_color_set_api_delegate>(Module, "efl_gfx_color_set");
968 private static void color_set(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a)
970 Eina.Log.Debug("function efl_gfx_color_set was called");
971 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
977 ((WinPart)ws.Target).SetColor(r, g, b, a);
981 Eina.Log.Warning($"Callback error: {e.ToString()}");
982 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
989 efl_gfx_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a);
993 private static efl_gfx_color_set_delegate efl_gfx_color_set_static_delegate;
995 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
996 private delegate System.String efl_gfx_color_code_get_delegate(System.IntPtr obj, System.IntPtr pd);
998 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
999 public delegate System.String efl_gfx_color_code_get_api_delegate(System.IntPtr obj);
1001 public static Efl.Eo.FunctionWrapper<efl_gfx_color_code_get_api_delegate> efl_gfx_color_code_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_color_code_get_api_delegate>(Module, "efl_gfx_color_code_get");
1003 private static System.String color_code_get(System.IntPtr obj, System.IntPtr pd)
1005 Eina.Log.Debug("function efl_gfx_color_code_get was called");
1006 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1009 System.String _ret_var = default(System.String);
1012 _ret_var = ((WinPart)ws.Target).GetColorCode();
1016 Eina.Log.Warning($"Callback error: {e.ToString()}");
1017 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1025 return efl_gfx_color_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1029 private static efl_gfx_color_code_get_delegate efl_gfx_color_code_get_static_delegate;
1032 private delegate void efl_gfx_color_code_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode);
1035 public delegate void efl_gfx_color_code_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode);
1037 public static Efl.Eo.FunctionWrapper<efl_gfx_color_code_set_api_delegate> efl_gfx_color_code_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_color_code_set_api_delegate>(Module, "efl_gfx_color_code_set");
1039 private static void color_code_set(System.IntPtr obj, System.IntPtr pd, System.String colorcode)
1041 Eina.Log.Debug("function efl_gfx_color_code_set was called");
1042 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1048 ((WinPart)ws.Target).SetColorCode(colorcode);
1052 Eina.Log.Warning($"Callback error: {e.ToString()}");
1053 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1060 efl_gfx_color_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), colorcode);
1064 private static efl_gfx_color_code_set_delegate efl_gfx_color_code_set_static_delegate;
1066 #pragma warning restore CA1707, CS1591, SA1300, SA1600