[EflSharp] Update Circle and efl cs files (#945)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_ui_progressbar_part.eo.cs
1 #pragma warning disable CS1591
2 using System;
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.Threading;
7 using System.ComponentModel;
8 namespace Efl {
9
10 namespace Ui {
11
12 /// <summary>Elementary progressbar internal part class</summary>
13 [Efl.Ui.ProgressbarPart.NativeMethods]
14 [Efl.Eo.BindingEntity]
15 public class ProgressbarPart : Efl.Ui.LayoutPart, Efl.Ui.IRangeDisplay
16 {
17     ///<summary>Pointer to the native class description.</summary>
18     public override System.IntPtr NativeClass
19     {
20         get
21         {
22             if (((object)this).GetType() == typeof(ProgressbarPart))
23             {
24                 return GetEflClassStatic();
25             }
26             else
27             {
28                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
29             }
30         }
31     }
32
33     [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
34         efl_ui_progressbar_part_class_get();
35     /// <summary>Initializes a new instance of the <see cref="ProgressbarPart"/> class.</summary>
36     /// <param name="parent">Parent instance.</param>
37     public ProgressbarPart(Efl.Object parent= null
38             ) : base(efl_ui_progressbar_part_class_get(), parent)
39     {
40         FinishInstantiation();
41     }
42
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 ProgressbarPart(ConstructingHandle ch) : base(ch)
46     {
47     }
48
49     /// <summary>Initializes a new instance of the <see cref="ProgressbarPart"/> 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 ProgressbarPart(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
53     {
54     }
55
56     /// <summary>Initializes a new instance of the <see cref="ProgressbarPart"/> 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 ProgressbarPart(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
61     {
62     }
63
64     /// <summary>Control the range value (in percentage) on a given range widget
65     /// Use this call to set range levels.
66     /// 
67     /// Note: If you pass a value out of the specified interval for <c>val</c>, it will be interpreted as the closest of the boundary values in the interval.</summary>
68     /// <returns>The range value (must be between $0.0 and 1.0)</returns>
69     virtual public double GetRangeValue() {
70          var _ret_var = Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
71         Eina.Error.RaiseIfUnhandledException();
72         return _ret_var;
73  }
74     /// <summary>Control the range value (in percentage) on a given range widget
75     /// Use this call to set range levels.
76     /// 
77     /// Note: If you pass a value out of the specified interval for <c>val</c>, it will be interpreted as the closest of the boundary values in the interval.</summary>
78     /// <param name="val">The range value (must be between $0.0 and 1.0)</param>
79     virtual public void SetRangeValue(double val) {
80                                  Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),val);
81         Eina.Error.RaiseIfUnhandledException();
82                          }
83     /// <summary>Get the minimum and maximum values of the given range widget.
84     /// Note: If only one value is needed, the other pointer can be passed as <c>null</c>.</summary>
85     /// <param name="min">The minimum value.</param>
86     /// <param name="max">The maximum value.</param>
87     virtual public void GetRangeLimits(out double min, out double max) {
88                                                          Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_limits_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out min, out max);
89         Eina.Error.RaiseIfUnhandledException();
90                                          }
91     /// <summary>Set the minimum and maximum values for given range widget.
92     /// Define the allowed range of values to be selected by the user.
93     /// 
94     /// If actual value is less than <c>min</c>, it will be updated to <c>min</c>. If it is bigger then <c>max</c>, will be updated to <c>max</c>. The actual value can be obtained with <see cref="Efl.Ui.IRangeDisplay.GetRangeValue"/>
95     /// 
96     /// The minimum and maximum values may be different for each class.
97     /// 
98     /// Warning: maximum must be greater than minimum, otherwise behavior is undefined.</summary>
99     /// <param name="min">The minimum value.</param>
100     /// <param name="max">The maximum value.</param>
101     virtual public void SetRangeLimits(double min, double max) {
102                                                          Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_limits_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),min, max);
103         Eina.Error.RaiseIfUnhandledException();
104                                          }
105     /// <summary>Control the range value (in percentage) on a given range widget
106     /// Use this call to set range levels.
107     /// 
108     /// Note: If you pass a value out of the specified interval for <c>val</c>, it will be interpreted as the closest of the boundary values in the interval.</summary>
109     /// <value>The range value (must be between $0.0 and 1.0)</value>
110     public double RangeValue {
111         get { return GetRangeValue(); }
112         set { SetRangeValue(value); }
113     }
114     private static IntPtr GetEflClassStatic()
115     {
116         return Efl.Ui.ProgressbarPart.efl_ui_progressbar_part_class_get();
117     }
118     /// <summary>Wrapper for native methods and virtual method delegates.
119     /// For internal use by generated code only.</summary>
120     public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods
121     {
122         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Elementary);
123         /// <summary>Gets the list of Eo operations to override.</summary>
124         /// <returns>The list of Eo operations to be overload.</returns>
125         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
126         {
127             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
128             var methods = Efl.Eo.Globals.GetUserMethods(type);
129
130             if (efl_ui_range_value_get_static_delegate == null)
131             {
132                 efl_ui_range_value_get_static_delegate = new efl_ui_range_value_get_delegate(range_value_get);
133             }
134
135             if (methods.FirstOrDefault(m => m.Name == "GetRangeValue") != null)
136             {
137                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_get_static_delegate) });
138             }
139
140             if (efl_ui_range_value_set_static_delegate == null)
141             {
142                 efl_ui_range_value_set_static_delegate = new efl_ui_range_value_set_delegate(range_value_set);
143             }
144
145             if (methods.FirstOrDefault(m => m.Name == "SetRangeValue") != null)
146             {
147                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_set_static_delegate) });
148             }
149
150             if (efl_ui_range_limits_get_static_delegate == null)
151             {
152                 efl_ui_range_limits_get_static_delegate = new efl_ui_range_limits_get_delegate(range_limits_get);
153             }
154
155             if (methods.FirstOrDefault(m => m.Name == "GetRangeLimits") != null)
156             {
157                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_limits_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_limits_get_static_delegate) });
158             }
159
160             if (efl_ui_range_limits_set_static_delegate == null)
161             {
162                 efl_ui_range_limits_set_static_delegate = new efl_ui_range_limits_set_delegate(range_limits_set);
163             }
164
165             if (methods.FirstOrDefault(m => m.Name == "SetRangeLimits") != null)
166             {
167                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_limits_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_limits_set_static_delegate) });
168             }
169
170             descs.AddRange(base.GetEoOps(type));
171             return descs;
172         }
173         /// <summary>Returns the Eo class for the native methods of this class.</summary>
174         /// <returns>The native class pointer.</returns>
175         public override IntPtr GetEflClass()
176         {
177             return Efl.Ui.ProgressbarPart.efl_ui_progressbar_part_class_get();
178         }
179
180         #pragma warning disable CA1707, CS1591, SA1300, SA1600
181
182         
183         private delegate double efl_ui_range_value_get_delegate(System.IntPtr obj, System.IntPtr pd);
184
185         
186         public delegate double efl_ui_range_value_get_api_delegate(System.IntPtr obj);
187
188         public static Efl.Eo.FunctionWrapper<efl_ui_range_value_get_api_delegate> efl_ui_range_value_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_range_value_get_api_delegate>(Module, "efl_ui_range_value_get");
189
190         private static double range_value_get(System.IntPtr obj, System.IntPtr pd)
191         {
192             Eina.Log.Debug("function efl_ui_range_value_get was called");
193             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
194             if (ws != null)
195             {
196             double _ret_var = default(double);
197                 try
198                 {
199                     _ret_var = ((ProgressbarPart)ws.Target).GetRangeValue();
200                 }
201                 catch (Exception e)
202                 {
203                     Eina.Log.Warning($"Callback error: {e.ToString()}");
204                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
205                 }
206
207         return _ret_var;
208
209             }
210             else
211             {
212                 return efl_ui_range_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
213             }
214         }
215
216         private static efl_ui_range_value_get_delegate efl_ui_range_value_get_static_delegate;
217
218         
219         private delegate void efl_ui_range_value_set_delegate(System.IntPtr obj, System.IntPtr pd,  double val);
220
221         
222         public delegate void efl_ui_range_value_set_api_delegate(System.IntPtr obj,  double val);
223
224         public static Efl.Eo.FunctionWrapper<efl_ui_range_value_set_api_delegate> efl_ui_range_value_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_range_value_set_api_delegate>(Module, "efl_ui_range_value_set");
225
226         private static void range_value_set(System.IntPtr obj, System.IntPtr pd, double val)
227         {
228             Eina.Log.Debug("function efl_ui_range_value_set was called");
229             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
230             if (ws != null)
231             {
232                                     
233                 try
234                 {
235                     ((ProgressbarPart)ws.Target).SetRangeValue(val);
236                 }
237                 catch (Exception e)
238                 {
239                     Eina.Log.Warning($"Callback error: {e.ToString()}");
240                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
241                 }
242
243                         
244             }
245             else
246             {
247                 efl_ui_range_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val);
248             }
249         }
250
251         private static efl_ui_range_value_set_delegate efl_ui_range_value_set_static_delegate;
252
253         
254         private delegate void efl_ui_range_limits_get_delegate(System.IntPtr obj, System.IntPtr pd,  out double min,  out double max);
255
256         
257         public delegate void efl_ui_range_limits_get_api_delegate(System.IntPtr obj,  out double min,  out double max);
258
259         public static Efl.Eo.FunctionWrapper<efl_ui_range_limits_get_api_delegate> efl_ui_range_limits_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_range_limits_get_api_delegate>(Module, "efl_ui_range_limits_get");
260
261         private static void range_limits_get(System.IntPtr obj, System.IntPtr pd, out double min, out double max)
262         {
263             Eina.Log.Debug("function efl_ui_range_limits_get was called");
264             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
265             if (ws != null)
266             {
267                         min = default(double);        max = default(double);                            
268                 try
269                 {
270                     ((ProgressbarPart)ws.Target).GetRangeLimits(out min, out max);
271                 }
272                 catch (Exception e)
273                 {
274                     Eina.Log.Warning($"Callback error: {e.ToString()}");
275                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
276                 }
277
278                                         
279             }
280             else
281             {
282                 efl_ui_range_limits_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out min, out max);
283             }
284         }
285
286         private static efl_ui_range_limits_get_delegate efl_ui_range_limits_get_static_delegate;
287
288         
289         private delegate void efl_ui_range_limits_set_delegate(System.IntPtr obj, System.IntPtr pd,  double min,  double max);
290
291         
292         public delegate void efl_ui_range_limits_set_api_delegate(System.IntPtr obj,  double min,  double max);
293
294         public static Efl.Eo.FunctionWrapper<efl_ui_range_limits_set_api_delegate> efl_ui_range_limits_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_range_limits_set_api_delegate>(Module, "efl_ui_range_limits_set");
295
296         private static void range_limits_set(System.IntPtr obj, System.IntPtr pd, double min, double max)
297         {
298             Eina.Log.Debug("function efl_ui_range_limits_set was called");
299             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
300             if (ws != null)
301             {
302                                                             
303                 try
304                 {
305                     ((ProgressbarPart)ws.Target).SetRangeLimits(min, max);
306                 }
307                 catch (Exception e)
308                 {
309                     Eina.Log.Warning($"Callback error: {e.ToString()}");
310                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
311                 }
312
313                                         
314             }
315             else
316             {
317                 efl_ui_range_limits_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min, max);
318             }
319         }
320
321         private static efl_ui_range_limits_set_delegate efl_ui_range_limits_set_static_delegate;
322
323         #pragma warning restore CA1707, CS1591, SA1300, SA1600
324
325 }
326 }
327 }
328
329 }
330