dd9e2298c3321af9880f05559335ef0149b84be6
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_canvas_animation_rotate.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 rotate animation class</summary>
13 [Efl.Canvas.AnimationRotate.NativeMethods]
14 public class AnimationRotate : Efl.Canvas.Animation, Efl.Eo.IWrapper
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(AnimationRotate))
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_rotate_class_get();
34     /// <summary>Initializes a new instance of the <see cref="AnimationRotate"/> class.</summary>
35     /// <param name="parent">Parent instance.</param>
36     public AnimationRotate(Efl.Object parent= null
37             ) : base(efl_canvas_animation_rotate_class_get(), typeof(AnimationRotate), parent)
38     {
39         FinishInstantiation();
40     }
41
42     /// <summary>Initializes a new instance of the <see cref="AnimationRotate"/> 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 AnimationRotate(System.IntPtr raw) : base(raw)
46     {
47             }
48
49     /// <summary>Initializes a new instance of the <see cref="AnimationRotate"/> 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 AnimationRotate(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
55     {
56     }
57
58     /// <summary>Verifies if the given object is equal to this one.</summary>
59     /// <param name="instance">The object to compare to.</param>
60     /// <returns>True if both objects point to the same native object.</returns>
61     public override bool Equals(object instance)
62     {
63         var other = instance as Efl.Object;
64         if (other == null)
65         {
66             return false;
67         }
68         return this.NativeHandle == other.NativeHandle;
69     }
70
71     /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
72     /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
73     public override int GetHashCode()
74     {
75         return this.NativeHandle.ToInt32();
76     }
77
78     /// <summary>Turns the native pointer into a string representation.</summary>
79     /// <returns>A string with the type and the native pointer for this object.</returns>
80     public override String ToString()
81     {
82         return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
83     }
84
85     /// <summary>Rotate property</summary>
86     /// <param name="from_degree">Rotation degree when animation starts</param>
87     /// <param name="to_degree">Rotation degree when animation ends</param>
88     /// <param name="pivot">Pivot object for the center point. If the pivot object is NULL, then the object is rotated on itself.</param>
89     /// <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>
90     /// <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>
91     virtual public void GetRotate(out double from_degree, out double to_degree, out Efl.Canvas.Object pivot, out double cx, out double cy) {
92                                                                                                                                  Efl.Canvas.AnimationRotate.NativeMethods.efl_animation_rotate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out from_degree, out to_degree, out pivot, out cx, out cy);
93         Eina.Error.RaiseIfUnhandledException();
94                                                                                          }
95     /// <summary>Rotate property</summary>
96     /// <param name="from_degree">Rotation degree when animation starts</param>
97     /// <param name="to_degree">Rotation degree when animation ends</param>
98     /// <param name="pivot">Pivot object for the center point. If the pivot object is NULL, then the object is rotated on itself.</param>
99     /// <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>
100     /// <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>
101     virtual public void SetRotate(double from_degree, double to_degree, Efl.Canvas.Object pivot, double cx, double cy) {
102                                                                                                                                  Efl.Canvas.AnimationRotate.NativeMethods.efl_animation_rotate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),from_degree, to_degree, pivot, cx, cy);
103         Eina.Error.RaiseIfUnhandledException();
104                                                                                          }
105     /// <summary>Rotate absolute property</summary>
106     /// <param name="from_degree">Rotation degree when animation starts</param>
107     /// <param name="to_degree">Rotation degree when animation ends</param>
108     /// <param name="cx">X absolute coordinate of the center point.</param>
109     /// <param name="cy">Y absolute coordinate of the center point.</param>
110     virtual public void GetRotateAbsolute(out double from_degree, out double to_degree, out int cx, out int cy) {
111                                                                                                          Efl.Canvas.AnimationRotate.NativeMethods.efl_animation_rotate_absolute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out from_degree, out to_degree, out cx, out cy);
112         Eina.Error.RaiseIfUnhandledException();
113                                                                          }
114     /// <summary>Rotate absolute property</summary>
115     /// <param name="from_degree">Rotation degree when animation starts</param>
116     /// <param name="to_degree">Rotation degree when animation ends</param>
117     /// <param name="cx">X absolute coordinate of the center point.</param>
118     /// <param name="cy">Y absolute coordinate of the center point.</param>
119     virtual public void SetRotateAbsolute(double from_degree, double to_degree, int cx, int cy) {
120                                                                                                          Efl.Canvas.AnimationRotate.NativeMethods.efl_animation_rotate_absolute_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),from_degree, to_degree, cx, cy);
121         Eina.Error.RaiseIfUnhandledException();
122                                                                          }
123     private static IntPtr GetEflClassStatic()
124     {
125         return Efl.Canvas.AnimationRotate.efl_canvas_animation_rotate_class_get();
126     }
127     /// <summary>Wrapper for native methods and virtual method delegates.
128     /// For internal use by generated code only.</summary>
129     public new class NativeMethods : Efl.Canvas.Animation.NativeMethods
130     {
131         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Evas);
132         /// <summary>Gets the list of Eo operations to override.</summary>
133         /// <returns>The list of Eo operations to be overload.</returns>
134         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
135         {
136             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
137             var methods = Efl.Eo.Globals.GetUserMethods(type);
138
139             if (efl_animation_rotate_get_static_delegate == null)
140             {
141                 efl_animation_rotate_get_static_delegate = new efl_animation_rotate_get_delegate(rotate_get);
142             }
143
144             if (methods.FirstOrDefault(m => m.Name == "GetRotate") != null)
145             {
146                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_rotate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_rotate_get_static_delegate) });
147             }
148
149             if (efl_animation_rotate_set_static_delegate == null)
150             {
151                 efl_animation_rotate_set_static_delegate = new efl_animation_rotate_set_delegate(rotate_set);
152             }
153
154             if (methods.FirstOrDefault(m => m.Name == "SetRotate") != null)
155             {
156                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_rotate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_rotate_set_static_delegate) });
157             }
158
159             if (efl_animation_rotate_absolute_get_static_delegate == null)
160             {
161                 efl_animation_rotate_absolute_get_static_delegate = new efl_animation_rotate_absolute_get_delegate(rotate_absolute_get);
162             }
163
164             if (methods.FirstOrDefault(m => m.Name == "GetRotateAbsolute") != null)
165             {
166                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_rotate_absolute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_rotate_absolute_get_static_delegate) });
167             }
168
169             if (efl_animation_rotate_absolute_set_static_delegate == null)
170             {
171                 efl_animation_rotate_absolute_set_static_delegate = new efl_animation_rotate_absolute_set_delegate(rotate_absolute_set);
172             }
173
174             if (methods.FirstOrDefault(m => m.Name == "SetRotateAbsolute") != null)
175             {
176                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_rotate_absolute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_rotate_absolute_set_static_delegate) });
177             }
178
179             descs.AddRange(base.GetEoOps(type));
180             return descs;
181         }
182         /// <summary>Returns the Eo class for the native methods of this class.</summary>
183         /// <returns>The native class pointer.</returns>
184         public override IntPtr GetEflClass()
185         {
186             return Efl.Canvas.AnimationRotate.efl_canvas_animation_rotate_class_get();
187         }
188
189         #pragma warning disable CA1707, SA1300, SA1600
190
191         
192         private delegate void efl_animation_rotate_get_delegate(System.IntPtr obj, System.IntPtr pd,  out double from_degree,  out double to_degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] out Efl.Canvas.Object pivot,  out double cx,  out double cy);
193
194         
195         public delegate void efl_animation_rotate_get_api_delegate(System.IntPtr obj,  out double from_degree,  out double to_degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] out Efl.Canvas.Object pivot,  out double cx,  out double cy);
196
197         public static Efl.Eo.FunctionWrapper<efl_animation_rotate_get_api_delegate> efl_animation_rotate_get_ptr = new Efl.Eo.FunctionWrapper<efl_animation_rotate_get_api_delegate>(Module, "efl_animation_rotate_get");
198
199         private static void rotate_get(System.IntPtr obj, System.IntPtr pd, out double from_degree, out double to_degree, out Efl.Canvas.Object pivot, out double cx, out double cy)
200         {
201             Eina.Log.Debug("function efl_animation_rotate_get was called");
202             Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
203             if (wrapper != null)
204             {
205                                                 from_degree = default(double);        to_degree = default(double);        pivot = default(Efl.Canvas.Object);        cx = default(double);        cy = default(double);                                                    
206                 try
207                 {
208                     ((AnimationRotate)wrapper).GetRotate(out from_degree, out to_degree, out pivot, out cx, out cy);
209                 }
210                 catch (Exception e)
211                 {
212                     Eina.Log.Warning($"Callback error: {e.ToString()}");
213                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
214                 }
215
216                                                                                         
217             }
218             else
219             {
220                 efl_animation_rotate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from_degree, out to_degree, out pivot, out cx, out cy);
221             }
222         }
223
224         private static efl_animation_rotate_get_delegate efl_animation_rotate_get_static_delegate;
225
226         
227         private delegate void efl_animation_rotate_set_delegate(System.IntPtr obj, System.IntPtr pd,  double from_degree,  double to_degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Canvas.Object pivot,  double cx,  double cy);
228
229         
230         public delegate void efl_animation_rotate_set_api_delegate(System.IntPtr obj,  double from_degree,  double to_degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Canvas.Object pivot,  double cx,  double cy);
231
232         public static Efl.Eo.FunctionWrapper<efl_animation_rotate_set_api_delegate> efl_animation_rotate_set_ptr = new Efl.Eo.FunctionWrapper<efl_animation_rotate_set_api_delegate>(Module, "efl_animation_rotate_set");
233
234         private static void rotate_set(System.IntPtr obj, System.IntPtr pd, double from_degree, double to_degree, Efl.Canvas.Object pivot, double cx, double cy)
235         {
236             Eina.Log.Debug("function efl_animation_rotate_set was called");
237             Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
238             if (wrapper != null)
239             {
240                                                                                                                                     
241                 try
242                 {
243                     ((AnimationRotate)wrapper).SetRotate(from_degree, to_degree, pivot, cx, cy);
244                 }
245                 catch (Exception e)
246                 {
247                     Eina.Log.Warning($"Callback error: {e.ToString()}");
248                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
249                 }
250
251                                                                                         
252             }
253             else
254             {
255                 efl_animation_rotate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from_degree, to_degree, pivot, cx, cy);
256             }
257         }
258
259         private static efl_animation_rotate_set_delegate efl_animation_rotate_set_static_delegate;
260
261         
262         private delegate void efl_animation_rotate_absolute_get_delegate(System.IntPtr obj, System.IntPtr pd,  out double from_degree,  out double to_degree,  out int cx,  out int cy);
263
264         
265         public delegate void efl_animation_rotate_absolute_get_api_delegate(System.IntPtr obj,  out double from_degree,  out double to_degree,  out int cx,  out int cy);
266
267         public static Efl.Eo.FunctionWrapper<efl_animation_rotate_absolute_get_api_delegate> efl_animation_rotate_absolute_get_ptr = new Efl.Eo.FunctionWrapper<efl_animation_rotate_absolute_get_api_delegate>(Module, "efl_animation_rotate_absolute_get");
268
269         private static void rotate_absolute_get(System.IntPtr obj, System.IntPtr pd, out double from_degree, out double to_degree, out int cx, out int cy)
270         {
271             Eina.Log.Debug("function efl_animation_rotate_absolute_get was called");
272             Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
273             if (wrapper != null)
274             {
275                                         from_degree = default(double);        to_degree = default(double);        cx = default(int);        cy = default(int);                                            
276                 try
277                 {
278                     ((AnimationRotate)wrapper).GetRotateAbsolute(out from_degree, out to_degree, out cx, out cy);
279                 }
280                 catch (Exception e)
281                 {
282                     Eina.Log.Warning($"Callback error: {e.ToString()}");
283                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
284                 }
285
286                                                                         
287             }
288             else
289             {
290                 efl_animation_rotate_absolute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from_degree, out to_degree, out cx, out cy);
291             }
292         }
293
294         private static efl_animation_rotate_absolute_get_delegate efl_animation_rotate_absolute_get_static_delegate;
295
296         
297         private delegate void efl_animation_rotate_absolute_set_delegate(System.IntPtr obj, System.IntPtr pd,  double from_degree,  double to_degree,  int cx,  int cy);
298
299         
300         public delegate void efl_animation_rotate_absolute_set_api_delegate(System.IntPtr obj,  double from_degree,  double to_degree,  int cx,  int cy);
301
302         public static Efl.Eo.FunctionWrapper<efl_animation_rotate_absolute_set_api_delegate> efl_animation_rotate_absolute_set_ptr = new Efl.Eo.FunctionWrapper<efl_animation_rotate_absolute_set_api_delegate>(Module, "efl_animation_rotate_absolute_set");
303
304         private static void rotate_absolute_set(System.IntPtr obj, System.IntPtr pd, double from_degree, double to_degree, int cx, int cy)
305         {
306             Eina.Log.Debug("function efl_animation_rotate_absolute_set was called");
307             Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
308             if (wrapper != null)
309             {
310                                                                                                             
311                 try
312                 {
313                     ((AnimationRotate)wrapper).SetRotateAbsolute(from_degree, to_degree, cx, cy);
314                 }
315                 catch (Exception e)
316                 {
317                     Eina.Log.Warning($"Callback error: {e.ToString()}");
318                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
319                 }
320
321                                                                         
322             }
323             else
324             {
325                 efl_animation_rotate_absolute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from_degree, to_degree, cx, cy);
326             }
327         }
328
329         private static efl_animation_rotate_absolute_set_delegate efl_animation_rotate_absolute_set_static_delegate;
330
331         #pragma warning restore CA1707, SA1300, SA1600
332
333 }
334 }
335 }
336
337 }
338