[EflSharp] Update Circle and efl cs files (#945)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_canvas_animation_scale.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 Canvas {
11
12 /// <summary>Efl scale animation class</summary>
13 [Efl.Canvas.AnimationScale.NativeMethods]
14 [Efl.Eo.BindingEntity]
15 public class AnimationScale : Efl.Canvas.Animation
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(AnimationScale))
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.Evas)] internal static extern System.IntPtr
34         efl_canvas_animation_scale_class_get();
35     /// <summary>Initializes a new instance of the <see cref="AnimationScale"/> class.</summary>
36     /// <param name="parent">Parent instance.</param>
37     public AnimationScale(Efl.Object parent= null
38             ) : base(efl_canvas_animation_scale_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 AnimationScale(ConstructingHandle ch) : base(ch)
46     {
47     }
48
49     /// <summary>Initializes a new instance of the <see cref="AnimationScale"/> 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 AnimationScale(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
53     {
54     }
55
56     /// <summary>Initializes a new instance of the <see cref="AnimationScale"/> 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 AnimationScale(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
61     {
62     }
63
64     /// <summary>Scale property</summary>
65     /// <param name="from_scale_x">Scale factor along x axis when animation starts</param>
66     /// <param name="from_scale_y">Scale factor along y axis when animation starts</param>
67     /// <param name="to_scale_x">Scale factor along x axis when animation ends</param>
68     /// <param name="to_scale_y">Scale factor along y axis when animation ends</param>
69     /// <param name="pivot">Pivot object for the center point. If the pivot object is NULL, then the object is scaled on itself.</param>
70     /// <param name="cx">X relative coordinate of the center point. The left end is 0.0 and the right end is 1.0 (the center is 0.5).</param>
71     /// <param name="cy">Y relative coordinate of the center point. The top end is 0.0 and the bottom end is 1.0 (the center is 0.5).</param>
72     virtual public void GetScale(out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, out Efl.Canvas.Object pivot, out double cx, out double cy) {
73                                                                                                                                                                                  Efl.Canvas.AnimationScale.NativeMethods.efl_animation_scale_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out pivot, out cx, out cy);
74         Eina.Error.RaiseIfUnhandledException();
75                                                                                                                          }
76     /// <summary>Scale property</summary>
77     /// <param name="from_scale_x">Scale factor along x axis when animation starts</param>
78     /// <param name="from_scale_y">Scale factor along y axis when animation starts</param>
79     /// <param name="to_scale_x">Scale factor along x axis when animation ends</param>
80     /// <param name="to_scale_y">Scale factor along y axis when animation ends</param>
81     /// <param name="pivot">Pivot object for the center point. If the pivot object is NULL, then the object is scaled on itself.</param>
82     /// <param name="cx">X relative coordinate of the center point. The left end is 0.0 and the right end is 1.0 (the center is 0.5).</param>
83     /// <param name="cy">Y relative coordinate of the center point. The top end is 0.0 and the bottom end is 1.0 (the center is 0.5).</param>
84     virtual public void SetScale(double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, Efl.Canvas.Object pivot, double cx, double cy) {
85                                                                                                                                                                                  Efl.Canvas.AnimationScale.NativeMethods.efl_animation_scale_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),from_scale_x, from_scale_y, to_scale_x, to_scale_y, pivot, cx, cy);
86         Eina.Error.RaiseIfUnhandledException();
87                                                                                                                          }
88     /// <summary>Scale absolute property</summary>
89     /// <param name="from_scale_x">Scale factor along x axis when animation starts</param>
90     /// <param name="from_scale_y">Scale factor along y axis when animation starts</param>
91     /// <param name="to_scale_x">Scale factor along x axis when animation ends</param>
92     /// <param name="to_scale_y">Scale factor along y axis when animation ends</param>
93     /// <param name="cx">X absolute coordinate of the center point.</param>
94     /// <param name="cy">Y absolute coordinate of the center point.</param>
95     virtual public void GetScaleAbsolute(out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, out int cx, out int cy) {
96                                                                                                                                                          Efl.Canvas.AnimationScale.NativeMethods.efl_animation_scale_absolute_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out cx, out cy);
97         Eina.Error.RaiseIfUnhandledException();
98                                                                                                          }
99     /// <summary>Scale absolute property</summary>
100     /// <param name="from_scale_x">Scale factor along x axis when animation starts</param>
101     /// <param name="from_scale_y">Scale factor along y axis when animation starts</param>
102     /// <param name="to_scale_x">Scale factor along x axis when animation ends</param>
103     /// <param name="to_scale_y">Scale factor along y axis when animation ends</param>
104     /// <param name="cx">X absolute coordinate of the center point.</param>
105     /// <param name="cy">Y absolute coordinate of the center point.</param>
106     virtual public void SetScaleAbsolute(double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, int cx, int cy) {
107                                                                                                                                                          Efl.Canvas.AnimationScale.NativeMethods.efl_animation_scale_absolute_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),from_scale_x, from_scale_y, to_scale_x, to_scale_y, cx, cy);
108         Eina.Error.RaiseIfUnhandledException();
109                                                                                                          }
110     private static IntPtr GetEflClassStatic()
111     {
112         return Efl.Canvas.AnimationScale.efl_canvas_animation_scale_class_get();
113     }
114     /// <summary>Wrapper for native methods and virtual method delegates.
115     /// For internal use by generated code only.</summary>
116     public new class NativeMethods : Efl.Canvas.Animation.NativeMethods
117     {
118         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Evas);
119         /// <summary>Gets the list of Eo operations to override.</summary>
120         /// <returns>The list of Eo operations to be overload.</returns>
121         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
122         {
123             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
124             var methods = Efl.Eo.Globals.GetUserMethods(type);
125
126             if (efl_animation_scale_get_static_delegate == null)
127             {
128                 efl_animation_scale_get_static_delegate = new efl_animation_scale_get_delegate(scale_get);
129             }
130
131             if (methods.FirstOrDefault(m => m.Name == "GetScale") != null)
132             {
133                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_scale_get_static_delegate) });
134             }
135
136             if (efl_animation_scale_set_static_delegate == null)
137             {
138                 efl_animation_scale_set_static_delegate = new efl_animation_scale_set_delegate(scale_set);
139             }
140
141             if (methods.FirstOrDefault(m => m.Name == "SetScale") != null)
142             {
143                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_scale_set_static_delegate) });
144             }
145
146             if (efl_animation_scale_absolute_get_static_delegate == null)
147             {
148                 efl_animation_scale_absolute_get_static_delegate = new efl_animation_scale_absolute_get_delegate(scale_absolute_get);
149             }
150
151             if (methods.FirstOrDefault(m => m.Name == "GetScaleAbsolute") != null)
152             {
153                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_scale_absolute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_scale_absolute_get_static_delegate) });
154             }
155
156             if (efl_animation_scale_absolute_set_static_delegate == null)
157             {
158                 efl_animation_scale_absolute_set_static_delegate = new efl_animation_scale_absolute_set_delegate(scale_absolute_set);
159             }
160
161             if (methods.FirstOrDefault(m => m.Name == "SetScaleAbsolute") != null)
162             {
163                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_scale_absolute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_scale_absolute_set_static_delegate) });
164             }
165
166             descs.AddRange(base.GetEoOps(type));
167             return descs;
168         }
169         /// <summary>Returns the Eo class for the native methods of this class.</summary>
170         /// <returns>The native class pointer.</returns>
171         public override IntPtr GetEflClass()
172         {
173             return Efl.Canvas.AnimationScale.efl_canvas_animation_scale_class_get();
174         }
175
176         #pragma warning disable CA1707, CS1591, SA1300, SA1600
177
178         
179         private delegate void efl_animation_scale_get_delegate(System.IntPtr obj, System.IntPtr pd,  out double from_scale_x,  out double from_scale_y,  out double to_scale_x,  out double to_scale_y, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] out Efl.Canvas.Object pivot,  out double cx,  out double cy);
180
181         
182         public delegate void efl_animation_scale_get_api_delegate(System.IntPtr obj,  out double from_scale_x,  out double from_scale_y,  out double to_scale_x,  out double to_scale_y, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] out Efl.Canvas.Object pivot,  out double cx,  out double cy);
183
184         public static Efl.Eo.FunctionWrapper<efl_animation_scale_get_api_delegate> efl_animation_scale_get_ptr = new Efl.Eo.FunctionWrapper<efl_animation_scale_get_api_delegate>(Module, "efl_animation_scale_get");
185
186         private static void scale_get(System.IntPtr obj, System.IntPtr pd, out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, out Efl.Canvas.Object pivot, out double cx, out double cy)
187         {
188             Eina.Log.Debug("function efl_animation_scale_get was called");
189             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
190             if (ws != null)
191             {
192                                                                 from_scale_x = default(double);        from_scale_y = default(double);        to_scale_x = default(double);        to_scale_y = default(double);        pivot = default(Efl.Canvas.Object);        cx = default(double);        cy = default(double);                                                                    
193                 try
194                 {
195                     ((AnimationScale)ws.Target).GetScale(out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out pivot, out cx, out cy);
196                 }
197                 catch (Exception e)
198                 {
199                     Eina.Log.Warning($"Callback error: {e.ToString()}");
200                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
201                 }
202
203                                                                                                                         
204             }
205             else
206             {
207                 efl_animation_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out pivot, out cx, out cy);
208             }
209         }
210
211         private static efl_animation_scale_get_delegate efl_animation_scale_get_static_delegate;
212
213         
214         private delegate void efl_animation_scale_set_delegate(System.IntPtr obj, System.IntPtr pd,  double from_scale_x,  double from_scale_y,  double to_scale_x,  double to_scale_y, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Canvas.Object pivot,  double cx,  double cy);
215
216         
217         public delegate void efl_animation_scale_set_api_delegate(System.IntPtr obj,  double from_scale_x,  double from_scale_y,  double to_scale_x,  double to_scale_y, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Canvas.Object pivot,  double cx,  double cy);
218
219         public static Efl.Eo.FunctionWrapper<efl_animation_scale_set_api_delegate> efl_animation_scale_set_ptr = new Efl.Eo.FunctionWrapper<efl_animation_scale_set_api_delegate>(Module, "efl_animation_scale_set");
220
221         private static void scale_set(System.IntPtr obj, System.IntPtr pd, double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, Efl.Canvas.Object pivot, double cx, double cy)
222         {
223             Eina.Log.Debug("function efl_animation_scale_set was called");
224             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
225             if (ws != null)
226             {
227                                                                                                                                                                                     
228                 try
229                 {
230                     ((AnimationScale)ws.Target).SetScale(from_scale_x, from_scale_y, to_scale_x, to_scale_y, pivot, cx, cy);
231                 }
232                 catch (Exception e)
233                 {
234                     Eina.Log.Warning($"Callback error: {e.ToString()}");
235                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
236                 }
237
238                                                                                                                         
239             }
240             else
241             {
242                 efl_animation_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from_scale_x, from_scale_y, to_scale_x, to_scale_y, pivot, cx, cy);
243             }
244         }
245
246         private static efl_animation_scale_set_delegate efl_animation_scale_set_static_delegate;
247
248         
249         private delegate void efl_animation_scale_absolute_get_delegate(System.IntPtr obj, System.IntPtr pd,  out double from_scale_x,  out double from_scale_y,  out double to_scale_x,  out double to_scale_y,  out int cx,  out int cy);
250
251         
252         public delegate void efl_animation_scale_absolute_get_api_delegate(System.IntPtr obj,  out double from_scale_x,  out double from_scale_y,  out double to_scale_x,  out double to_scale_y,  out int cx,  out int cy);
253
254         public static Efl.Eo.FunctionWrapper<efl_animation_scale_absolute_get_api_delegate> efl_animation_scale_absolute_get_ptr = new Efl.Eo.FunctionWrapper<efl_animation_scale_absolute_get_api_delegate>(Module, "efl_animation_scale_absolute_get");
255
256         private static void scale_absolute_get(System.IntPtr obj, System.IntPtr pd, out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, out int cx, out int cy)
257         {
258             Eina.Log.Debug("function efl_animation_scale_absolute_get was called");
259             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
260             if (ws != null)
261             {
262                                                         from_scale_x = default(double);        from_scale_y = default(double);        to_scale_x = default(double);        to_scale_y = default(double);        cx = default(int);        cy = default(int);                                                            
263                 try
264                 {
265                     ((AnimationScale)ws.Target).GetScaleAbsolute(out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out cx, out cy);
266                 }
267                 catch (Exception e)
268                 {
269                     Eina.Log.Warning($"Callback error: {e.ToString()}");
270                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
271                 }
272
273                                                                                                         
274             }
275             else
276             {
277                 efl_animation_scale_absolute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out cx, out cy);
278             }
279         }
280
281         private static efl_animation_scale_absolute_get_delegate efl_animation_scale_absolute_get_static_delegate;
282
283         
284         private delegate void efl_animation_scale_absolute_set_delegate(System.IntPtr obj, System.IntPtr pd,  double from_scale_x,  double from_scale_y,  double to_scale_x,  double to_scale_y,  int cx,  int cy);
285
286         
287         public delegate void efl_animation_scale_absolute_set_api_delegate(System.IntPtr obj,  double from_scale_x,  double from_scale_y,  double to_scale_x,  double to_scale_y,  int cx,  int cy);
288
289         public static Efl.Eo.FunctionWrapper<efl_animation_scale_absolute_set_api_delegate> efl_animation_scale_absolute_set_ptr = new Efl.Eo.FunctionWrapper<efl_animation_scale_absolute_set_api_delegate>(Module, "efl_animation_scale_absolute_set");
290
291         private static void scale_absolute_set(System.IntPtr obj, System.IntPtr pd, double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, int cx, int cy)
292         {
293             Eina.Log.Debug("function efl_animation_scale_absolute_set was called");
294             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
295             if (ws != null)
296             {
297                                                                                                                                                             
298                 try
299                 {
300                     ((AnimationScale)ws.Target).SetScaleAbsolute(from_scale_x, from_scale_y, to_scale_x, to_scale_y, cx, cy);
301                 }
302                 catch (Exception e)
303                 {
304                     Eina.Log.Warning($"Callback error: {e.ToString()}");
305                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
306                 }
307
308                                                                                                         
309             }
310             else
311             {
312                 efl_animation_scale_absolute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from_scale_x, from_scale_y, to_scale_x, to_scale_y, cx, cy);
313             }
314         }
315
316         private static efl_animation_scale_absolute_set_delegate efl_animation_scale_absolute_set_static_delegate;
317
318         #pragma warning restore CA1707, CS1591, SA1300, SA1600
319
320 }
321 }
322 }
323
324 }
325