[EflSharp] Update Circle and efl cs files (#995)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_ui_theme.eo.cs
1 #define EFL_BETA
2 #pragma warning disable CS1591
3 using System;
4 using System.Runtime.InteropServices;
5 using System.Collections.Generic;
6 using System.Linq;
7 using System.Threading;
8 using System.ComponentModel;
9 namespace Efl {
10
11 namespace Ui {
12
13 /// <summary>Efl Ui Theme class</summary>
14 /// <remarks>This is a <b>BETA</b> class. It can be modified or removed in the future. Do not use it for product development.</remarks>
15 [Efl.Ui.Theme.NativeMethods]
16 [Efl.Eo.BindingEntity]
17 public class Theme : Efl.Object
18 {
19     /// <summary>Pointer to the native class description.</summary>
20     public override System.IntPtr NativeClass
21     {
22         get
23         {
24             if (((object)this).GetType() == typeof(Theme))
25             {
26                 return GetEflClassStatic();
27             }
28             else
29             {
30                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
31             }
32         }
33     }
34
35     [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
36         efl_ui_theme_class_get();
37     /// <summary>Initializes a new instance of the <see cref="Theme"/> class.</summary>
38     /// <param name="parent">Parent instance.</param>
39     public Theme(Efl.Object parent= null
40             ) : base(efl_ui_theme_class_get(), parent)
41     {
42         FinishInstantiation();
43     }
44
45     /// <summary>Subclasses should override this constructor if they are expected to be instantiated from native code.
46     /// Do not call this constructor directly.</summary>
47     /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
48     protected Theme(ConstructingHandle ch) : base(ch)
49     {
50     }
51
52     /// <summary>Initializes a new instance of the <see cref="Theme"/> class.
53     /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
54     /// <param name="wh">The native pointer to be wrapped.</param>
55     protected Theme(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
56     {
57     }
58
59     /// <summary>Initializes a new instance of the <see cref="Theme"/> class.
60     /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
61     /// <param name="baseKlass">The pointer to the base native Eo class.</param>
62     /// <param name="parent">The Efl.Object parent of this instance.</param>
63     protected Theme(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
64     {
65     }
66
67     /// <summary>Gets the default theme handle.</summary>
68     /// <returns>The default theme handle</returns>
69     public static Efl.Ui.Theme GetDefault() {
70          var _ret_var = Efl.Ui.Theme.NativeMethods.efl_ui_theme_default_get_ptr.Value.Delegate();
71         Eina.Error.RaiseIfUnhandledException();
72         return _ret_var;
73  }
74     /// <summary>Appends a theme extension to the list of extensions. This is intended when an application needs more styles of widgets or new widget themes that the default does not provide (or may not provide). The application has &quot;extended&quot; usage by coming up with new custom style names for widgets for specific uses, but as these are not &quot;standard&quot;, they are not guaranteed to be provided by a default theme. This means the application is required to provide these extra elements itself in specific Edje files. This call adds one of those Edje files to the theme search path to be searched after the default theme. The use of this call is encouraged when default styles do not meet the needs of the application. Use this call instead of <see cref="Efl.Ui.Theme.AddOverlay"/> for almost all cases.</summary>
75     /// <param name="item">The Edje file path to be used</param>
76     virtual public void AddExtension(System.String item) {
77                                  Efl.Ui.Theme.NativeMethods.efl_ui_theme_extension_add_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),item);
78         Eina.Error.RaiseIfUnhandledException();
79                          }
80     /// <summary>Deletes a theme extension from the list of extensions.</summary>
81     /// <param name="item">The Edje file path not to be used</param>
82     virtual public void DelExtension(System.String item) {
83                                  Efl.Ui.Theme.NativeMethods.efl_ui_theme_extension_del_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),item);
84         Eina.Error.RaiseIfUnhandledException();
85                          }
86     /// <summary>Prepends a theme overlay to the list of overlays. Use this if your application needs to provide some custom overlay theme (An Edje file that replaces some default styles of widgets) where adding new styles, or changing system theme configuration is not possible. Do NOT use this instead of a proper system theme configuration. Use proper configuration files, profiles, environment variables etc. to set a theme so that the theme can be altered by simple configuration by a user. Using this call to achieve that effect is abusing the API and will create lots of trouble.</summary>
87     /// <param name="item">The Edje file path to be used</param>
88     virtual public void AddOverlay(System.String item) {
89                                  Efl.Ui.Theme.NativeMethods.efl_ui_theme_overlay_add_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),item);
90         Eina.Error.RaiseIfUnhandledException();
91                          }
92     /// <summary>Delete a theme overlay from the list of overlays.</summary>
93     /// <param name="item">The Edje file path not to be used</param>
94     virtual public void DelOverlay(System.String item) {
95                                  Efl.Ui.Theme.NativeMethods.efl_ui_theme_overlay_del_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),item);
96         Eina.Error.RaiseIfUnhandledException();
97                          }
98     /// <summary>This is the default theme.
99     /// All widgets use the default theme implicitly unless a specific theme is set.</summary>
100     /// <value>The default theme handle</value>
101     public static Efl.Ui.Theme Default {
102         get { return GetDefault(); }
103     }
104     private static IntPtr GetEflClassStatic()
105     {
106         return Efl.Ui.Theme.efl_ui_theme_class_get();
107     }
108     /// <summary>Wrapper for native methods and virtual method delegates.
109     /// For internal use by generated code only.</summary>
110     public new class NativeMethods : Efl.Object.NativeMethods
111     {
112         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Elementary);
113         /// <summary>Gets the list of Eo operations to override.</summary>
114         /// <returns>The list of Eo operations to be overload.</returns>
115         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
116         {
117             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
118             var methods = Efl.Eo.Globals.GetUserMethods(type);
119
120             if (efl_ui_theme_extension_add_static_delegate == null)
121             {
122                 efl_ui_theme_extension_add_static_delegate = new efl_ui_theme_extension_add_delegate(extension_add);
123             }
124
125             if (methods.FirstOrDefault(m => m.Name == "AddExtension") != null)
126             {
127                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_theme_extension_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_theme_extension_add_static_delegate) });
128             }
129
130             if (efl_ui_theme_extension_del_static_delegate == null)
131             {
132                 efl_ui_theme_extension_del_static_delegate = new efl_ui_theme_extension_del_delegate(extension_del);
133             }
134
135             if (methods.FirstOrDefault(m => m.Name == "DelExtension") != null)
136             {
137                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_theme_extension_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_theme_extension_del_static_delegate) });
138             }
139
140             if (efl_ui_theme_overlay_add_static_delegate == null)
141             {
142                 efl_ui_theme_overlay_add_static_delegate = new efl_ui_theme_overlay_add_delegate(overlay_add);
143             }
144
145             if (methods.FirstOrDefault(m => m.Name == "AddOverlay") != null)
146             {
147                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_theme_overlay_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_theme_overlay_add_static_delegate) });
148             }
149
150             if (efl_ui_theme_overlay_del_static_delegate == null)
151             {
152                 efl_ui_theme_overlay_del_static_delegate = new efl_ui_theme_overlay_del_delegate(overlay_del);
153             }
154
155             if (methods.FirstOrDefault(m => m.Name == "DelOverlay") != null)
156             {
157                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_theme_overlay_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_theme_overlay_del_static_delegate) });
158             }
159
160             descs.AddRange(base.GetEoOps(type));
161             return descs;
162         }
163         /// <summary>Returns the Eo class for the native methods of this class.</summary>
164         /// <returns>The native class pointer.</returns>
165         public override IntPtr GetEflClass()
166         {
167             return Efl.Ui.Theme.efl_ui_theme_class_get();
168         }
169
170         #pragma warning disable CA1707, CS1591, SA1300, SA1600
171
172         [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
173         private delegate Efl.Ui.Theme efl_ui_theme_default_get_delegate();
174
175         [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
176         public delegate Efl.Ui.Theme efl_ui_theme_default_get_api_delegate();
177
178         public static Efl.Eo.FunctionWrapper<efl_ui_theme_default_get_api_delegate> efl_ui_theme_default_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_theme_default_get_api_delegate>(Module, "efl_ui_theme_default_get");
179
180         private static Efl.Ui.Theme default_get(System.IntPtr obj, System.IntPtr pd)
181         {
182             Eina.Log.Debug("function efl_ui_theme_default_get was called");
183             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
184             if (ws != null)
185             {
186             Efl.Ui.Theme _ret_var = default(Efl.Ui.Theme);
187                 try
188                 {
189                     _ret_var = Theme.GetDefault();
190                 }
191                 catch (Exception e)
192                 {
193                     Eina.Log.Warning($"Callback error: {e.ToString()}");
194                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
195                 }
196
197         return _ret_var;
198
199             }
200             else
201             {
202                 return efl_ui_theme_default_get_ptr.Value.Delegate();
203             }
204         }
205
206         
207         private delegate void efl_ui_theme_extension_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item);
208
209         
210         public delegate void efl_ui_theme_extension_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item);
211
212         public static Efl.Eo.FunctionWrapper<efl_ui_theme_extension_add_api_delegate> efl_ui_theme_extension_add_ptr = new Efl.Eo.FunctionWrapper<efl_ui_theme_extension_add_api_delegate>(Module, "efl_ui_theme_extension_add");
213
214         private static void extension_add(System.IntPtr obj, System.IntPtr pd, System.String item)
215         {
216             Eina.Log.Debug("function efl_ui_theme_extension_add was called");
217             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
218             if (ws != null)
219             {
220                                     
221                 try
222                 {
223                     ((Theme)ws.Target).AddExtension(item);
224                 }
225                 catch (Exception e)
226                 {
227                     Eina.Log.Warning($"Callback error: {e.ToString()}");
228                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
229                 }
230
231                         
232             }
233             else
234             {
235                 efl_ui_theme_extension_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item);
236             }
237         }
238
239         private static efl_ui_theme_extension_add_delegate efl_ui_theme_extension_add_static_delegate;
240
241         
242         private delegate void efl_ui_theme_extension_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item);
243
244         
245         public delegate void efl_ui_theme_extension_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item);
246
247         public static Efl.Eo.FunctionWrapper<efl_ui_theme_extension_del_api_delegate> efl_ui_theme_extension_del_ptr = new Efl.Eo.FunctionWrapper<efl_ui_theme_extension_del_api_delegate>(Module, "efl_ui_theme_extension_del");
248
249         private static void extension_del(System.IntPtr obj, System.IntPtr pd, System.String item)
250         {
251             Eina.Log.Debug("function efl_ui_theme_extension_del was called");
252             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
253             if (ws != null)
254             {
255                                     
256                 try
257                 {
258                     ((Theme)ws.Target).DelExtension(item);
259                 }
260                 catch (Exception e)
261                 {
262                     Eina.Log.Warning($"Callback error: {e.ToString()}");
263                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
264                 }
265
266                         
267             }
268             else
269             {
270                 efl_ui_theme_extension_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item);
271             }
272         }
273
274         private static efl_ui_theme_extension_del_delegate efl_ui_theme_extension_del_static_delegate;
275
276         
277         private delegate void efl_ui_theme_overlay_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item);
278
279         
280         public delegate void efl_ui_theme_overlay_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item);
281
282         public static Efl.Eo.FunctionWrapper<efl_ui_theme_overlay_add_api_delegate> efl_ui_theme_overlay_add_ptr = new Efl.Eo.FunctionWrapper<efl_ui_theme_overlay_add_api_delegate>(Module, "efl_ui_theme_overlay_add");
283
284         private static void overlay_add(System.IntPtr obj, System.IntPtr pd, System.String item)
285         {
286             Eina.Log.Debug("function efl_ui_theme_overlay_add was called");
287             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
288             if (ws != null)
289             {
290                                     
291                 try
292                 {
293                     ((Theme)ws.Target).AddOverlay(item);
294                 }
295                 catch (Exception e)
296                 {
297                     Eina.Log.Warning($"Callback error: {e.ToString()}");
298                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
299                 }
300
301                         
302             }
303             else
304             {
305                 efl_ui_theme_overlay_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item);
306             }
307         }
308
309         private static efl_ui_theme_overlay_add_delegate efl_ui_theme_overlay_add_static_delegate;
310
311         
312         private delegate void efl_ui_theme_overlay_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item);
313
314         
315         public delegate void efl_ui_theme_overlay_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item);
316
317         public static Efl.Eo.FunctionWrapper<efl_ui_theme_overlay_del_api_delegate> efl_ui_theme_overlay_del_ptr = new Efl.Eo.FunctionWrapper<efl_ui_theme_overlay_del_api_delegate>(Module, "efl_ui_theme_overlay_del");
318
319         private static void overlay_del(System.IntPtr obj, System.IntPtr pd, System.String item)
320         {
321             Eina.Log.Debug("function efl_ui_theme_overlay_del was called");
322             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
323             if (ws != null)
324             {
325                                     
326                 try
327                 {
328                     ((Theme)ws.Target).DelOverlay(item);
329                 }
330                 catch (Exception e)
331                 {
332                     Eina.Log.Warning($"Callback error: {e.ToString()}");
333                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
334                 }
335
336                         
337             }
338             else
339             {
340                 efl_ui_theme_overlay_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item);
341             }
342         }
343
344         private static efl_ui_theme_overlay_del_delegate efl_ui_theme_overlay_del_static_delegate;
345
346         #pragma warning restore CA1707, CS1591, SA1300, SA1600
347
348 }
349 }
350 }
351
352 }
353
354 #if EFL_BETA
355 #pragma warning disable CS1591
356 public static class Efl_UiTheme_ExtensionMethods {
357     
358 }
359 #pragma warning restore CS1591
360 #endif