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 [Efl.Eo.BindingEntity]
15 public class WinPart : Efl.Ui.WidgetPart, Efl.IContent, Efl.IFile, Efl.Gfx.IColor
17 ///<summary>Pointer to the native class description.</summary>
18 public override System.IntPtr NativeClass
22 if (((object)this).GetType() == typeof(WinPart))
24 return GetEflClassStatic();
28 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
33 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
34 efl_ui_win_part_class_get();
35 /// <summary>Initializes a new instance of the <see cref="WinPart"/> class.</summary>
36 /// <param name="parent">Parent instance.</param>
37 public WinPart(Efl.Object parent= null
38 ) : base(efl_ui_win_part_class_get(), parent)
40 FinishInstantiation();
43 /// <summary>Constructor to be used when objects are expected to be constructed from native code.</summary>
44 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
45 protected WinPart(ConstructingHandle ch) : base(ch)
49 /// <summary>Initializes a new instance of the <see cref="WinPart"/> class.
50 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
51 /// <param name="wh">The native pointer to be wrapped.</param>
52 protected WinPart(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
56 /// <summary>Initializes a new instance of the <see cref="WinPart"/> class.
57 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
58 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
59 /// <param name="parent">The Efl.Object parent of this instance.</param>
60 protected WinPart(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
64 /// <summary>Sent after the content is set or unset using the current content object.
65 /// (Since EFL 1.22)</summary>
66 public event EventHandler<Efl.IContentContentChangedEvt_Args> ContentChangedEvt
70 lock (eflBindingEventLock)
72 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
74 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
77 Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args();
78 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete);
81 value?.Invoke(obj, args);
85 Eina.Log.Error(e.ToString());
86 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
91 string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED";
92 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
98 lock (eflBindingEventLock)
100 string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED";
101 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
105 ///<summary>Method to raise event ContentChangedEvt.</summary>
106 public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e)
108 var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED";
109 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
110 if (desc == IntPtr.Zero)
112 Eina.Log.Error($"Failed to get native event {key}");
116 IntPtr info = e.arg.NativeHandle;
117 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
119 /// <summary>Sub-object currently set as this object's single content.
120 /// 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).
121 /// (Since EFL 1.22)</summary>
122 /// <returns>The sub-object.</returns>
123 virtual public Efl.Gfx.IEntity GetContent() {
124 var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
125 Eina.Error.RaiseIfUnhandledException();
128 /// <summary>Sub-object currently set as this object's single content.
129 /// 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).
130 /// (Since EFL 1.22)</summary>
131 /// <param name="content">The sub-object.</param>
132 /// <returns><c>true</c> if <c>content</c> was successfully swallowed.</returns>
133 virtual public bool SetContent(Efl.Gfx.IEntity content) {
134 var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),content);
135 Eina.Error.RaiseIfUnhandledException();
138 /// <summary>Remove the sub-object currently set as content of this object and return it. This object becomes empty.
139 /// (Since EFL 1.22)</summary>
140 /// <returns>Unswallowed object</returns>
141 virtual public Efl.Gfx.IEntity UnsetContent() {
142 var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
143 Eina.Error.RaiseIfUnhandledException();
146 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
147 /// (Since EFL 1.22)</summary>
148 /// <returns>The handle to the <see cref="Eina.File"/> that will be used</returns>
149 virtual public Eina.File GetMmap() {
150 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)));
151 Eina.Error.RaiseIfUnhandledException();
154 /// <summary>Set the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
155 /// If mmap is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
156 /// (Since EFL 1.22)</summary>
157 /// <param name="f">The handle to the <see cref="Eina.File"/> that will be used</param>
158 /// <returns>0 on success, error code otherwise</returns>
159 virtual public Eina.Error SetMmap(Eina.File f) {
160 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);
161 Eina.Error.RaiseIfUnhandledException();
164 /// <summary>Retrieve the file path from where an object is to fetch the data.
165 /// You must not modify the strings on the returned pointers.
166 /// (Since EFL 1.22)</summary>
167 /// <returns>The file path.</returns>
168 virtual public System.String GetFile() {
169 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
170 Eina.Error.RaiseIfUnhandledException();
173 /// <summary>Set the file path from where an object will fetch the data.
174 /// If file is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
175 /// (Since EFL 1.22)</summary>
176 /// <param name="file">The file path.</param>
177 /// <returns>0 on success, error code otherwise</returns>
178 virtual public Eina.Error SetFile(System.String file) {
179 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);
180 Eina.Error.RaiseIfUnhandledException();
183 /// <summary>Get the previously-set key which corresponds to the target data within a file.
184 /// 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"/>).
186 /// You must not modify the strings on the returned pointers.
187 /// (Since EFL 1.22)</summary>
188 /// <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>
189 virtual public System.String GetKey() {
190 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)));
191 Eina.Error.RaiseIfUnhandledException();
194 /// <summary>Set the key which corresponds to the target data within a file.
195 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases.
196 /// (Since EFL 1.22)</summary>
197 /// <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>
198 virtual public void SetKey(System.String key) {
199 Efl.IFileConcrete.NativeMethods.efl_file_key_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),key);
200 Eina.Error.RaiseIfUnhandledException();
202 /// <summary>Get the load state of the object.
203 /// (Since EFL 1.22)</summary>
204 /// <returns><c>true</c> if the object is loaded, <c>false</c> otherwise.</returns>
205 virtual public bool GetLoaded() {
206 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)));
207 Eina.Error.RaiseIfUnhandledException();
210 /// <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.
211 /// 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.
213 /// 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.
214 /// (Since EFL 1.22)</summary>
215 /// <returns>0 on success, error code otherwise</returns>
216 virtual public Eina.Error Load() {
217 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_load_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
218 Eina.Error.RaiseIfUnhandledException();
221 /// <summary>Perform all necessary operations to unload file data from the object.
222 /// 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.
224 /// Calling <see cref="Efl.IFile.Unload"/> on an object which is not currently loaded will have no effect.
225 /// (Since EFL 1.22)</summary>
226 virtual public void Unload() {
227 Efl.IFileConcrete.NativeMethods.efl_file_unload_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
228 Eina.Error.RaiseIfUnhandledException();
230 /// <summary>Retrieves the general/main color of the given Evas object.
231 /// 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.
233 /// 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.
235 /// All newly created Evas rectangles get the default color values of 255 255 255 255 (opaque white).
237 /// Use null pointers on the components you're not interested in: they'll be ignored by the function.
238 /// (Since EFL 1.22)</summary>
239 virtual public void GetColor(out int r, out int g, out int b, out int a) {
240 Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out r, out g, out b, out a);
241 Eina.Error.RaiseIfUnhandledException();
243 /// <summary>Sets the general/main color of the given Evas object to the given one.
244 /// See also <see cref="Efl.Gfx.IColor.GetColor"/> (for an example)
246 /// These color values are expected to be premultiplied by alpha.
247 /// (Since EFL 1.22)</summary>
248 virtual public void SetColor(int r, int g, int b, int a) {
249 Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),r, g, b, a);
250 Eina.Error.RaiseIfUnhandledException();
252 /// <summary>Get hex color code of given Evas object. This returns a short lived hex color code string.
253 /// (Since EFL 1.22)</summary>
254 /// <returns>the hex color code.</returns>
255 virtual public System.String GetColorCode() {
256 var _ret_var = Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_code_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
257 Eina.Error.RaiseIfUnhandledException();
260 /// <summary>Set the color of given Evas object to the given hex color code(#RRGGBBAA). e.g. efl_gfx_color_code_set(obj, "#FFCCAACC");
261 /// (Since EFL 1.22)</summary>
262 /// <param name="colorcode">the hex color code.</param>
263 virtual public void SetColorCode(System.String colorcode) {
264 Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_code_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),colorcode);
265 Eina.Error.RaiseIfUnhandledException();
267 /// <summary>Sub-object currently set as this object's single content.
268 /// 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).
269 /// (Since EFL 1.22)</summary>
270 /// <value>The sub-object.</value>
271 public Efl.Gfx.IEntity Content {
272 get { return GetContent(); }
273 set { SetContent(value); }
275 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
276 /// (Since EFL 1.22)</summary>
277 /// <value>The handle to the <see cref="Eina.File"/> that will be used</value>
278 public Eina.File Mmap {
279 get { return GetMmap(); }
280 set { SetMmap(value); }
282 /// <summary>Retrieve the file path from where an object is to fetch the data.
283 /// You must not modify the strings on the returned pointers.
284 /// (Since EFL 1.22)</summary>
285 /// <value>The file path.</value>
286 public System.String File {
287 get { return GetFile(); }
288 set { SetFile(value); }
290 /// <summary>Get the previously-set key which corresponds to the target data within a file.
291 /// 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"/>).
293 /// You must not modify the strings on the returned pointers.
294 /// (Since EFL 1.22)</summary>
295 /// <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>
296 public System.String Key {
297 get { return GetKey(); }
298 set { SetKey(value); }
300 /// <summary>Get the load state of the object.
301 /// (Since EFL 1.22)</summary>
302 /// <value><c>true</c> if the object is loaded, <c>false</c> otherwise.</value>
304 get { return GetLoaded(); }
306 /// <summary>Get hex color code of given Evas object. This returns a short lived hex color code string.
307 /// (Since EFL 1.22)</summary>
308 /// <value>the hex color code.</value>
309 public System.String ColorCode {
310 get { return GetColorCode(); }
311 set { SetColorCode(value); }
313 private static IntPtr GetEflClassStatic()
315 return Efl.Ui.WinPart.efl_ui_win_part_class_get();
317 /// <summary>Wrapper for native methods and virtual method delegates.
318 /// For internal use by generated code only.</summary>
319 public new class NativeMethods : Efl.Ui.WidgetPart.NativeMethods
321 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary);
322 /// <summary>Gets the list of Eo operations to override.</summary>
323 /// <returns>The list of Eo operations to be overload.</returns>
324 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
326 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
327 var methods = Efl.Eo.Globals.GetUserMethods(type);
329 if (efl_content_get_static_delegate == null)
331 efl_content_get_static_delegate = new efl_content_get_delegate(content_get);
334 if (methods.FirstOrDefault(m => m.Name == "GetContent") != null)
336 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) });
339 if (efl_content_set_static_delegate == null)
341 efl_content_set_static_delegate = new efl_content_set_delegate(content_set);
344 if (methods.FirstOrDefault(m => m.Name == "SetContent") != null)
346 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) });
349 if (efl_content_unset_static_delegate == null)
351 efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset);
354 if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null)
356 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) });
359 if (efl_file_mmap_get_static_delegate == null)
361 efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get);
364 if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null)
366 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) });
369 if (efl_file_mmap_set_static_delegate == null)
371 efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set);
374 if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null)
376 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) });
379 if (efl_file_get_static_delegate == null)
381 efl_file_get_static_delegate = new efl_file_get_delegate(file_get);
384 if (methods.FirstOrDefault(m => m.Name == "GetFile") != null)
386 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) });
389 if (efl_file_set_static_delegate == null)
391 efl_file_set_static_delegate = new efl_file_set_delegate(file_set);
394 if (methods.FirstOrDefault(m => m.Name == "SetFile") != null)
396 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) });
399 if (efl_file_key_get_static_delegate == null)
401 efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get);
404 if (methods.FirstOrDefault(m => m.Name == "GetKey") != null)
406 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) });
409 if (efl_file_key_set_static_delegate == null)
411 efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set);
414 if (methods.FirstOrDefault(m => m.Name == "SetKey") != null)
416 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) });
419 if (efl_file_loaded_get_static_delegate == null)
421 efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get);
424 if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null)
426 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) });
429 if (efl_file_load_static_delegate == null)
431 efl_file_load_static_delegate = new efl_file_load_delegate(load);
434 if (methods.FirstOrDefault(m => m.Name == "Load") != null)
436 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) });
439 if (efl_file_unload_static_delegate == null)
441 efl_file_unload_static_delegate = new efl_file_unload_delegate(unload);
444 if (methods.FirstOrDefault(m => m.Name == "Unload") != null)
446 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) });
449 if (efl_gfx_color_get_static_delegate == null)
451 efl_gfx_color_get_static_delegate = new efl_gfx_color_get_delegate(color_get);
454 if (methods.FirstOrDefault(m => m.Name == "GetColor") != null)
456 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) });
459 if (efl_gfx_color_set_static_delegate == null)
461 efl_gfx_color_set_static_delegate = new efl_gfx_color_set_delegate(color_set);
464 if (methods.FirstOrDefault(m => m.Name == "SetColor") != null)
466 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) });
469 if (efl_gfx_color_code_get_static_delegate == null)
471 efl_gfx_color_code_get_static_delegate = new efl_gfx_color_code_get_delegate(color_code_get);
474 if (methods.FirstOrDefault(m => m.Name == "GetColorCode") != null)
476 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) });
479 if (efl_gfx_color_code_set_static_delegate == null)
481 efl_gfx_color_code_set_static_delegate = new efl_gfx_color_code_set_delegate(color_code_set);
484 if (methods.FirstOrDefault(m => m.Name == "SetColorCode") != null)
486 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) });
489 descs.AddRange(base.GetEoOps(type));
492 /// <summary>Returns the Eo class for the native methods of this class.</summary>
493 /// <returns>The native class pointer.</returns>
494 public override IntPtr GetEflClass()
496 return Efl.Ui.WinPart.efl_ui_win_part_class_get();
499 #pragma warning disable CA1707, CS1591, SA1300, SA1600
501 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
502 private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd);
504 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
505 public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj);
507 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");
509 private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd)
511 Eina.Log.Debug("function efl_content_get was called");
512 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
515 Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
518 _ret_var = ((WinPart)ws.Target).GetContent();
522 Eina.Log.Warning($"Callback error: {e.ToString()}");
523 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
531 return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
535 private static efl_content_get_delegate efl_content_get_static_delegate;
537 [return: MarshalAs(UnmanagedType.U1)]
538 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);
540 [return: MarshalAs(UnmanagedType.U1)]
541 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);
543 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");
545 private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content)
547 Eina.Log.Debug("function efl_content_set was called");
548 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
551 bool _ret_var = default(bool);
554 _ret_var = ((WinPart)ws.Target).SetContent(content);
558 Eina.Log.Warning($"Callback error: {e.ToString()}");
559 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
567 return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content);
571 private static efl_content_set_delegate efl_content_set_static_delegate;
573 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
574 private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd);
576 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
577 public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj);
579 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");
581 private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd)
583 Eina.Log.Debug("function efl_content_unset was called");
584 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
587 Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
590 _ret_var = ((WinPart)ws.Target).UnsetContent();
594 Eina.Log.Warning($"Callback error: {e.ToString()}");
595 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
603 return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
607 private static efl_content_unset_delegate efl_content_unset_static_delegate;
610 private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd);
613 public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj);
615 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");
617 private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd)
619 Eina.Log.Debug("function efl_file_mmap_get was called");
620 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
623 Eina.File _ret_var = default(Eina.File);
626 _ret_var = ((WinPart)ws.Target).GetMmap();
630 Eina.Log.Warning($"Callback error: {e.ToString()}");
631 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
639 return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
643 private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate;
646 private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f);
649 public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f);
651 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");
653 private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f)
655 Eina.Log.Debug("function efl_file_mmap_set was called");
656 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
659 Eina.Error _ret_var = default(Eina.Error);
662 _ret_var = ((WinPart)ws.Target).SetMmap(f);
666 Eina.Log.Warning($"Callback error: {e.ToString()}");
667 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
675 return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f);
679 private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate;
681 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
682 private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd);
684 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
685 public delegate System.String efl_file_get_api_delegate(System.IntPtr obj);
687 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");
689 private static System.String file_get(System.IntPtr obj, System.IntPtr pd)
691 Eina.Log.Debug("function efl_file_get was called");
692 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
695 System.String _ret_var = default(System.String);
698 _ret_var = ((WinPart)ws.Target).GetFile();
702 Eina.Log.Warning($"Callback error: {e.ToString()}");
703 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
711 return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
715 private static efl_file_get_delegate efl_file_get_static_delegate;
718 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);
721 public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file);
723 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");
725 private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file)
727 Eina.Log.Debug("function efl_file_set was called");
728 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
731 Eina.Error _ret_var = default(Eina.Error);
734 _ret_var = ((WinPart)ws.Target).SetFile(file);
738 Eina.Log.Warning($"Callback error: {e.ToString()}");
739 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
747 return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file);
751 private static efl_file_set_delegate efl_file_set_static_delegate;
753 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
754 private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd);
756 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
757 public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj);
759 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");
761 private static System.String key_get(System.IntPtr obj, System.IntPtr pd)
763 Eina.Log.Debug("function efl_file_key_get was called");
764 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
767 System.String _ret_var = default(System.String);
770 _ret_var = ((WinPart)ws.Target).GetKey();
774 Eina.Log.Warning($"Callback error: {e.ToString()}");
775 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
783 return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
787 private static efl_file_key_get_delegate efl_file_key_get_static_delegate;
790 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);
793 public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key);
795 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");
797 private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key)
799 Eina.Log.Debug("function efl_file_key_set was called");
800 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
806 ((WinPart)ws.Target).SetKey(key);
810 Eina.Log.Warning($"Callback error: {e.ToString()}");
811 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
818 efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key);
822 private static efl_file_key_set_delegate efl_file_key_set_static_delegate;
824 [return: MarshalAs(UnmanagedType.U1)]
825 private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd);
827 [return: MarshalAs(UnmanagedType.U1)]
828 public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj);
830 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");
832 private static bool loaded_get(System.IntPtr obj, System.IntPtr pd)
834 Eina.Log.Debug("function efl_file_loaded_get was called");
835 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
838 bool _ret_var = default(bool);
841 _ret_var = ((WinPart)ws.Target).GetLoaded();
845 Eina.Log.Warning($"Callback error: {e.ToString()}");
846 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
854 return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
858 private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate;
861 private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd);
864 public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj);
866 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");
868 private static Eina.Error load(System.IntPtr obj, System.IntPtr pd)
870 Eina.Log.Debug("function efl_file_load was called");
871 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
874 Eina.Error _ret_var = default(Eina.Error);
877 _ret_var = ((WinPart)ws.Target).Load();
881 Eina.Log.Warning($"Callback error: {e.ToString()}");
882 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
890 return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
894 private static efl_file_load_delegate efl_file_load_static_delegate;
897 private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd);
900 public delegate void efl_file_unload_api_delegate(System.IntPtr obj);
902 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");
904 private static void unload(System.IntPtr obj, System.IntPtr pd)
906 Eina.Log.Debug("function efl_file_unload was called");
907 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
913 ((WinPart)ws.Target).Unload();
917 Eina.Log.Warning($"Callback error: {e.ToString()}");
918 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
925 efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
929 private static efl_file_unload_delegate efl_file_unload_static_delegate;
932 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);
935 public delegate void efl_gfx_color_get_api_delegate(System.IntPtr obj, out int r, out int g, out int b, out int a);
937 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");
939 private static void color_get(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a)
941 Eina.Log.Debug("function efl_gfx_color_get was called");
942 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
945 r = default(int); g = default(int); b = default(int); a = default(int);
948 ((WinPart)ws.Target).GetColor(out r, out g, out b, out a);
952 Eina.Log.Warning($"Callback error: {e.ToString()}");
953 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
960 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);
964 private static efl_gfx_color_get_delegate efl_gfx_color_get_static_delegate;
967 private delegate void efl_gfx_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a);
970 public delegate void efl_gfx_color_set_api_delegate(System.IntPtr obj, int r, int g, int b, int a);
972 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");
974 private static void color_set(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a)
976 Eina.Log.Debug("function efl_gfx_color_set was called");
977 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
983 ((WinPart)ws.Target).SetColor(r, g, b, a);
987 Eina.Log.Warning($"Callback error: {e.ToString()}");
988 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
995 efl_gfx_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a);
999 private static efl_gfx_color_set_delegate efl_gfx_color_set_static_delegate;
1001 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
1002 private delegate System.String efl_gfx_color_code_get_delegate(System.IntPtr obj, System.IntPtr pd);
1004 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
1005 public delegate System.String efl_gfx_color_code_get_api_delegate(System.IntPtr obj);
1007 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");
1009 private static System.String color_code_get(System.IntPtr obj, System.IntPtr pd)
1011 Eina.Log.Debug("function efl_gfx_color_code_get was called");
1012 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1015 System.String _ret_var = default(System.String);
1018 _ret_var = ((WinPart)ws.Target).GetColorCode();
1022 Eina.Log.Warning($"Callback error: {e.ToString()}");
1023 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1031 return efl_gfx_color_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1035 private static efl_gfx_color_code_get_delegate efl_gfx_color_code_get_static_delegate;
1038 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);
1041 public delegate void efl_gfx_color_code_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode);
1043 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");
1045 private static void color_code_set(System.IntPtr obj, System.IntPtr pd, System.String colorcode)
1047 Eina.Log.Debug("function efl_gfx_color_code_set was called");
1048 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1054 ((WinPart)ws.Target).SetColorCode(colorcode);
1058 Eina.Log.Warning($"Callback error: {e.ToString()}");
1059 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1066 efl_gfx_color_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), colorcode);
1070 private static efl_gfx_color_code_set_delegate efl_gfx_color_code_set_static_delegate;
1072 #pragma warning restore CA1707, CS1591, SA1300, SA1600