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 [Efl.Eo.BindingEntity]
15 public class AnimationScale : Efl.Canvas.Animation
17 ///<summary>Pointer to the native class description.</summary>
18 public override System.IntPtr NativeClass
22 if (((object)this).GetType() == typeof(AnimationScale))
24 return GetEflClassStatic();
28 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
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)
40 FinishInstantiation();
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)
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)
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)
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();
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();
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();
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();
110 private static IntPtr GetEflClassStatic()
112 return Efl.Canvas.AnimationScale.efl_canvas_animation_scale_class_get();
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
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)
123 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
124 var methods = Efl.Eo.Globals.GetUserMethods(type);
126 if (efl_animation_scale_get_static_delegate == null)
128 efl_animation_scale_get_static_delegate = new efl_animation_scale_get_delegate(scale_get);
131 if (methods.FirstOrDefault(m => m.Name == "GetScale") != null)
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) });
136 if (efl_animation_scale_set_static_delegate == null)
138 efl_animation_scale_set_static_delegate = new efl_animation_scale_set_delegate(scale_set);
141 if (methods.FirstOrDefault(m => m.Name == "SetScale") != null)
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) });
146 if (efl_animation_scale_absolute_get_static_delegate == null)
148 efl_animation_scale_absolute_get_static_delegate = new efl_animation_scale_absolute_get_delegate(scale_absolute_get);
151 if (methods.FirstOrDefault(m => m.Name == "GetScaleAbsolute") != null)
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) });
156 if (efl_animation_scale_absolute_set_static_delegate == null)
158 efl_animation_scale_absolute_set_static_delegate = new efl_animation_scale_absolute_set_delegate(scale_absolute_set);
161 if (methods.FirstOrDefault(m => m.Name == "SetScaleAbsolute") != null)
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) });
166 descs.AddRange(base.GetEoOps(type));
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()
173 return Efl.Canvas.AnimationScale.efl_canvas_animation_scale_class_get();
176 #pragma warning disable CA1707, CS1591, SA1300, SA1600
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);
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);
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");
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)
188 Eina.Log.Debug("function efl_animation_scale_get was called");
189 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
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);
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);
199 Eina.Log.Warning($"Callback error: {e.ToString()}");
200 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
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);
211 private static efl_animation_scale_get_delegate efl_animation_scale_get_static_delegate;
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);
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);
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");
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)
223 Eina.Log.Debug("function efl_animation_scale_set was called");
224 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
230 ((AnimationScale)ws.Target).SetScale(from_scale_x, from_scale_y, to_scale_x, to_scale_y, pivot, cx, cy);
234 Eina.Log.Warning($"Callback error: {e.ToString()}");
235 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
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);
246 private static efl_animation_scale_set_delegate efl_animation_scale_set_static_delegate;
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);
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);
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");
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)
258 Eina.Log.Debug("function efl_animation_scale_absolute_get was called");
259 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
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);
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);
269 Eina.Log.Warning($"Callback error: {e.ToString()}");
270 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
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);
281 private static efl_animation_scale_absolute_get_delegate efl_animation_scale_absolute_get_static_delegate;
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);
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);
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");
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)
293 Eina.Log.Debug("function efl_animation_scale_absolute_set was called");
294 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
300 ((AnimationScale)ws.Target).SetScaleAbsolute(from_scale_x, from_scale_y, to_scale_x, to_scale_y, cx, cy);
304 Eina.Log.Warning($"Callback error: {e.ToString()}");
305 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
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);
316 private static efl_animation_scale_absolute_set_delegate efl_animation_scale_absolute_set_static_delegate;
318 #pragma warning restore CA1707, CS1591, SA1300, SA1600