[EflSharp] Update Circle and efl cs files (#896)
[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 public class AnimationScale : Efl.Canvas.Animation
15 {
16     ///<summary>Pointer to the native class description.</summary>
17     public override System.IntPtr NativeClass
18     {
19         get
20         {
21             if (((object)this).GetType() == typeof(AnimationScale))
22             {
23                 return GetEflClassStatic();
24             }
25             else
26             {
27                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
28             }
29         }
30     }
31
32     [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr
33         efl_canvas_animation_scale_class_get();
34     /// <summary>Initializes a new instance of the <see cref="AnimationScale"/> class.</summary>
35     /// <param name="parent">Parent instance.</param>
36     public AnimationScale(Efl.Object parent= null
37             ) : base(efl_canvas_animation_scale_class_get(), typeof(AnimationScale), parent)
38     {
39         FinishInstantiation();
40     }
41
42     /// <summary>Initializes a new instance of the <see cref="AnimationScale"/> class.
43     /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
44     /// <param name="raw">The native pointer to be wrapped.</param>
45     protected AnimationScale(System.IntPtr raw) : base(raw)
46     {
47     }
48
49     /// <summary>Initializes a new instance of the <see cref="AnimationScale"/> class.
50     /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
51     /// <param name="baseKlass">The pointer to the base native Eo class.</param>
52     /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
53     /// <param name="parent">The Efl.Object parent of this instance.</param>
54     protected AnimationScale(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
55     {
56     }
57
58     /// <summary>Scale property</summary>
59     /// <param name="from_scale_x">Scale factor along x axis when animation starts</param>
60     /// <param name="from_scale_y">Scale factor along y axis when animation starts</param>
61     /// <param name="to_scale_x">Scale factor along x axis when animation ends</param>
62     /// <param name="to_scale_y">Scale factor along y axis when animation ends</param>
63     /// <param name="pivot">Pivot object for the center point. If the pivot object is NULL, then the object is scaled on itself.</param>
64     /// <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>
65     /// <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>
66     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) {
67                                                                                                                                                                                  Efl.Canvas.AnimationScale.NativeMethods.efl_animation_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out pivot, out cx, out cy);
68         Eina.Error.RaiseIfUnhandledException();
69                                                                                                                          }
70     /// <summary>Scale property</summary>
71     /// <param name="from_scale_x">Scale factor along x axis when animation starts</param>
72     /// <param name="from_scale_y">Scale factor along y axis when animation starts</param>
73     /// <param name="to_scale_x">Scale factor along x axis when animation ends</param>
74     /// <param name="to_scale_y">Scale factor along y axis when animation ends</param>
75     /// <param name="pivot">Pivot object for the center point. If the pivot object is NULL, then the object is scaled on itself.</param>
76     /// <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>
77     /// <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>
78     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) {
79                                                                                                                                                                                  Efl.Canvas.AnimationScale.NativeMethods.efl_animation_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),from_scale_x, from_scale_y, to_scale_x, to_scale_y, pivot, cx, cy);
80         Eina.Error.RaiseIfUnhandledException();
81                                                                                                                          }
82     /// <summary>Scale absolute property</summary>
83     /// <param name="from_scale_x">Scale factor along x axis when animation starts</param>
84     /// <param name="from_scale_y">Scale factor along y axis when animation starts</param>
85     /// <param name="to_scale_x">Scale factor along x axis when animation ends</param>
86     /// <param name="to_scale_y">Scale factor along y axis when animation ends</param>
87     /// <param name="cx">X absolute coordinate of the center point.</param>
88     /// <param name="cy">Y absolute coordinate of the center point.</param>
89     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) {
90                                                                                                                                                          Efl.Canvas.AnimationScale.NativeMethods.efl_animation_scale_absolute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out cx, out cy);
91         Eina.Error.RaiseIfUnhandledException();
92                                                                                                          }
93     /// <summary>Scale absolute property</summary>
94     /// <param name="from_scale_x">Scale factor along x axis when animation starts</param>
95     /// <param name="from_scale_y">Scale factor along y axis when animation starts</param>
96     /// <param name="to_scale_x">Scale factor along x axis when animation ends</param>
97     /// <param name="to_scale_y">Scale factor along y axis when animation ends</param>
98     /// <param name="cx">X absolute coordinate of the center point.</param>
99     /// <param name="cy">Y absolute coordinate of the center point.</param>
100     virtual public void SetScaleAbsolute(double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, int cx, int cy) {
101                                                                                                                                                          Efl.Canvas.AnimationScale.NativeMethods.efl_animation_scale_absolute_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),from_scale_x, from_scale_y, to_scale_x, to_scale_y, cx, cy);
102         Eina.Error.RaiseIfUnhandledException();
103                                                                                                          }
104     private static IntPtr GetEflClassStatic()
105     {
106         return Efl.Canvas.AnimationScale.efl_canvas_animation_scale_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.Canvas.Animation.NativeMethods
111     {
112         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Evas);
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_animation_scale_get_static_delegate == null)
121             {
122                 efl_animation_scale_get_static_delegate = new efl_animation_scale_get_delegate(scale_get);
123             }
124
125             if (methods.FirstOrDefault(m => m.Name == "GetScale") != null)
126             {
127                 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) });
128             }
129
130             if (efl_animation_scale_set_static_delegate == null)
131             {
132                 efl_animation_scale_set_static_delegate = new efl_animation_scale_set_delegate(scale_set);
133             }
134
135             if (methods.FirstOrDefault(m => m.Name == "SetScale") != null)
136             {
137                 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) });
138             }
139
140             if (efl_animation_scale_absolute_get_static_delegate == null)
141             {
142                 efl_animation_scale_absolute_get_static_delegate = new efl_animation_scale_absolute_get_delegate(scale_absolute_get);
143             }
144
145             if (methods.FirstOrDefault(m => m.Name == "GetScaleAbsolute") != null)
146             {
147                 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) });
148             }
149
150             if (efl_animation_scale_absolute_set_static_delegate == null)
151             {
152                 efl_animation_scale_absolute_set_static_delegate = new efl_animation_scale_absolute_set_delegate(scale_absolute_set);
153             }
154
155             if (methods.FirstOrDefault(m => m.Name == "SetScaleAbsolute") != null)
156             {
157                 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) });
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.Canvas.AnimationScale.efl_canvas_animation_scale_class_get();
168         }
169
170         #pragma warning disable CA1707, CS1591, SA1300, SA1600
171
172         
173         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);
174
175         
176         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);
177
178         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");
179
180         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)
181         {
182             Eina.Log.Debug("function efl_animation_scale_get was called");
183             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
184             if (ws != null)
185             {
186                                                                 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);                                                                    
187                 try
188                 {
189                     ((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);
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                                                                                                                         
198             }
199             else
200             {
201                 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);
202             }
203         }
204
205         private static efl_animation_scale_get_delegate efl_animation_scale_get_static_delegate;
206
207         
208         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);
209
210         
211         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);
212
213         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");
214
215         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)
216         {
217             Eina.Log.Debug("function efl_animation_scale_set was called");
218             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
219             if (ws != null)
220             {
221                                                                                                                                                                                     
222                 try
223                 {
224                     ((AnimationScale)ws.Target).SetScale(from_scale_x, from_scale_y, to_scale_x, to_scale_y, pivot, cx, cy);
225                 }
226                 catch (Exception e)
227                 {
228                     Eina.Log.Warning($"Callback error: {e.ToString()}");
229                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
230                 }
231
232                                                                                                                         
233             }
234             else
235             {
236                 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);
237             }
238         }
239
240         private static efl_animation_scale_set_delegate efl_animation_scale_set_static_delegate;
241
242         
243         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);
244
245         
246         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);
247
248         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");
249
250         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)
251         {
252             Eina.Log.Debug("function efl_animation_scale_absolute_get was called");
253             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
254             if (ws != null)
255             {
256                                                         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);                                                            
257                 try
258                 {
259                     ((AnimationScale)ws.Target).GetScaleAbsolute(out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out cx, out cy);
260                 }
261                 catch (Exception e)
262                 {
263                     Eina.Log.Warning($"Callback error: {e.ToString()}");
264                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
265                 }
266
267                                                                                                         
268             }
269             else
270             {
271                 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);
272             }
273         }
274
275         private static efl_animation_scale_absolute_get_delegate efl_animation_scale_absolute_get_static_delegate;
276
277         
278         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);
279
280         
281         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);
282
283         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");
284
285         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)
286         {
287             Eina.Log.Debug("function efl_animation_scale_absolute_set was called");
288             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
289             if (ws != null)
290             {
291                                                                                                                                                             
292                 try
293                 {
294                     ((AnimationScale)ws.Target).SetScaleAbsolute(from_scale_x, from_scale_y, to_scale_x, to_scale_y, cx, cy);
295                 }
296                 catch (Exception e)
297                 {
298                     Eina.Log.Warning($"Callback error: {e.ToString()}");
299                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
300                 }
301
302                                                                                                         
303             }
304             else
305             {
306                 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);
307             }
308         }
309
310         private static efl_animation_scale_absolute_set_delegate efl_animation_scale_absolute_set_static_delegate;
311
312         #pragma warning restore CA1707, CS1591, SA1300, SA1600
313
314 }
315 }
316 }
317
318 }
319