1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
12 /// <summary>Efl scale animation class</summary>
13 [Efl.Canvas.AnimationScale.NativeMethods]
14 public class AnimationScale : Efl.Canvas.Animation
16 ///<summary>Pointer to the native class description.</summary>
17 public override System.IntPtr NativeClass
21 if (((object)this).GetType() == typeof(AnimationScale))
23 return GetEflClassStatic();
27 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
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)
39 FinishInstantiation();
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)
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)
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();
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();
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();
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();
104 private static IntPtr GetEflClassStatic()
106 return Efl.Canvas.AnimationScale.efl_canvas_animation_scale_class_get();
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
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)
117 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
118 var methods = Efl.Eo.Globals.GetUserMethods(type);
120 if (efl_animation_scale_get_static_delegate == null)
122 efl_animation_scale_get_static_delegate = new efl_animation_scale_get_delegate(scale_get);
125 if (methods.FirstOrDefault(m => m.Name == "GetScale") != null)
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) });
130 if (efl_animation_scale_set_static_delegate == null)
132 efl_animation_scale_set_static_delegate = new efl_animation_scale_set_delegate(scale_set);
135 if (methods.FirstOrDefault(m => m.Name == "SetScale") != null)
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) });
140 if (efl_animation_scale_absolute_get_static_delegate == null)
142 efl_animation_scale_absolute_get_static_delegate = new efl_animation_scale_absolute_get_delegate(scale_absolute_get);
145 if (methods.FirstOrDefault(m => m.Name == "GetScaleAbsolute") != null)
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) });
150 if (efl_animation_scale_absolute_set_static_delegate == null)
152 efl_animation_scale_absolute_set_static_delegate = new efl_animation_scale_absolute_set_delegate(scale_absolute_set);
155 if (methods.FirstOrDefault(m => m.Name == "SetScaleAbsolute") != null)
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) });
160 descs.AddRange(base.GetEoOps(type));
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()
167 return Efl.Canvas.AnimationScale.efl_canvas_animation_scale_class_get();
170 #pragma warning disable CA1707, CS1591, SA1300, SA1600
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);
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);
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");
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)
182 Eina.Log.Debug("function efl_animation_scale_get was called");
183 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
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);
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);
193 Eina.Log.Warning($"Callback error: {e.ToString()}");
194 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
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);
205 private static efl_animation_scale_get_delegate efl_animation_scale_get_static_delegate;
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);
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);
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");
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)
217 Eina.Log.Debug("function efl_animation_scale_set was called");
218 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
224 ((AnimationScale)ws.Target).SetScale(from_scale_x, from_scale_y, to_scale_x, to_scale_y, pivot, cx, cy);
228 Eina.Log.Warning($"Callback error: {e.ToString()}");
229 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
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);
240 private static efl_animation_scale_set_delegate efl_animation_scale_set_static_delegate;
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);
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);
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");
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)
252 Eina.Log.Debug("function efl_animation_scale_absolute_get was called");
253 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
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);
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);
263 Eina.Log.Warning($"Callback error: {e.ToString()}");
264 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
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);
275 private static efl_animation_scale_absolute_get_delegate efl_animation_scale_absolute_get_static_delegate;
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);
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);
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");
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)
287 Eina.Log.Debug("function efl_animation_scale_absolute_set was called");
288 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
294 ((AnimationScale)ws.Target).SetScaleAbsolute(from_scale_x, from_scale_y, to_scale_x, to_scale_y, cx, cy);
298 Eina.Log.Warning($"Callback error: {e.ToString()}");
299 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
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);
310 private static efl_animation_scale_absolute_set_delegate efl_animation_scale_absolute_set_static_delegate;
312 #pragma warning restore CA1707, CS1591, SA1300, SA1600