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 animation class</summary>
13 [Efl.Canvas.Animation.NativeMethods]
14 public class Animation : Efl.Object, Efl.Eo.IWrapper,Efl.IPlayable
16 ///<summary>Pointer to the native class description.</summary>
17 public override System.IntPtr NativeClass
21 if (((object)this).GetType() == typeof(Animation))
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_class_get();
34 /// <summary>Initializes a new instance of the <see cref="Animation"/> class.</summary>
35 /// <param name="parent">Parent instance.</param>
36 public Animation(Efl.Object parent= null
37 ) : base(efl_canvas_animation_class_get(), typeof(Animation), parent)
39 FinishInstantiation();
42 /// <summary>Initializes a new instance of the <see cref="Animation"/> 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 Animation(System.IntPtr raw) : base(raw)
49 /// <summary>Initializes a new instance of the <see cref="Animation"/> 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 Animation(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
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)
63 var other = instance as Efl.Object;
68 return this.NativeHandle == other.NativeHandle;
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()
75 return this.NativeHandle.ToInt32();
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()
82 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
85 /// <summary>Keep final state property</summary>
86 /// <returns><c>true</c> to keep final state, <c>false</c> otherwise.</returns>
87 virtual public bool GetFinalStateKeep() {
88 var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_final_state_keep_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
89 Eina.Error.RaiseIfUnhandledException();
92 /// <summary>Keep final state property</summary>
93 /// <param name="keep"><c>true</c> to keep final state, <c>false</c> otherwise.</param>
94 virtual public void SetFinalStateKeep(bool keep) {
95 Efl.Canvas.Animation.NativeMethods.efl_animation_final_state_keep_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),keep);
96 Eina.Error.RaiseIfUnhandledException();
98 /// <summary>Duration property</summary>
99 /// <returns>Duration value.</returns>
100 virtual public double GetDuration() {
101 var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_duration_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
102 Eina.Error.RaiseIfUnhandledException();
105 /// <summary>Duration property</summary>
106 /// <param name="sec">Duration value.</param>
107 virtual public void SetDuration(double sec) {
108 Efl.Canvas.Animation.NativeMethods.efl_animation_duration_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sec);
109 Eina.Error.RaiseIfUnhandledException();
111 /// <summary>Repeat mode property</summary>
112 /// <returns>Repeat mode. EFL_ANIMATION_REPEAT_MODE_RESTART restarts animation when the animation ends and EFL_ANIMATION_REPEAT_MODE_REVERSE reverses animation when the animation ends.</returns>
113 virtual public Efl.Canvas.AnimationRepeatMode GetRepeatMode() {
114 var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_repeat_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
115 Eina.Error.RaiseIfUnhandledException();
118 /// <summary>Repeat mode property</summary>
119 /// <param name="mode">Repeat mode. EFL_ANIMATION_REPEAT_MODE_RESTART restarts animation when the animation ends and EFL_ANIMATION_REPEAT_MODE_REVERSE reverses animation when the animation ends.</param>
120 virtual public void SetRepeatMode(Efl.Canvas.AnimationRepeatMode mode) {
121 Efl.Canvas.Animation.NativeMethods.efl_animation_repeat_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mode);
122 Eina.Error.RaiseIfUnhandledException();
124 /// <summary>Repeat count property</summary>
125 /// <returns>Repeat count. EFL_ANIMATION_REPEAT_INFINITE repeats animation infinitely.</returns>
126 virtual public int GetRepeatCount() {
127 var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_repeat_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
128 Eina.Error.RaiseIfUnhandledException();
131 /// <summary>Repeat count property</summary>
132 /// <param name="count">Repeat count. EFL_ANIMATION_REPEAT_INFINITE repeats animation infinitely.</param>
133 virtual public void SetRepeatCount(int count) {
134 Efl.Canvas.Animation.NativeMethods.efl_animation_repeat_count_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),count);
135 Eina.Error.RaiseIfUnhandledException();
137 /// <summary>Start delay property</summary>
138 /// <returns>Delay time, in seconds, from when the animation starts until the animation is animated</returns>
139 virtual public double GetStartDelay() {
140 var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_start_delay_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
141 Eina.Error.RaiseIfUnhandledException();
144 /// <summary>Start delay property</summary>
145 /// <param name="sec">Delay time, in seconds, from when the animation starts until the animation is animated</param>
146 virtual public void SetStartDelay(double sec) {
147 Efl.Canvas.Animation.NativeMethods.efl_animation_start_delay_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sec);
148 Eina.Error.RaiseIfUnhandledException();
150 /// <summary>Interpolator property</summary>
151 /// <returns>Interpolator which indicates interpolation function. Efl_Interpolator is required.</returns>
152 virtual public Efl.IInterpolator GetInterpolator() {
153 var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_interpolator_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
154 Eina.Error.RaiseIfUnhandledException();
157 /// <summary>Interpolator property</summary>
158 /// <param name="interpolator">Interpolator which indicates interpolation function. Efl_Interpolator is required.</param>
159 virtual public void SetInterpolator(Efl.IInterpolator interpolator) {
160 Efl.Canvas.Animation.NativeMethods.efl_animation_interpolator_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),interpolator);
161 Eina.Error.RaiseIfUnhandledException();
163 /// <returns>Final applied progress.</returns>
164 virtual public double AnimationApply(double progress, Efl.Canvas.Object target) {
165 var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_apply_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),progress, target);
166 Eina.Error.RaiseIfUnhandledException();
169 /// <summary>Get the length of play for the media file.</summary>
170 /// <returns>The length of the stream in seconds.</returns>
171 virtual public double GetLength() {
172 var _ret_var = Efl.IPlayableConcrete.NativeMethods.efl_playable_length_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
173 Eina.Error.RaiseIfUnhandledException();
176 virtual public bool GetPlayable() {
177 var _ret_var = Efl.IPlayableConcrete.NativeMethods.efl_playable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
178 Eina.Error.RaiseIfUnhandledException();
181 /// <summary>Get whether the media file is seekable.</summary>
182 /// <returns><c>true</c> if seekable.</returns>
183 virtual public bool GetSeekable() {
184 var _ret_var = Efl.IPlayableConcrete.NativeMethods.efl_playable_seekable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
185 Eina.Error.RaiseIfUnhandledException();
188 /// <summary>Keep final state property</summary>
189 /// <value><c>true</c> to keep final state, <c>false</c> otherwise.</value>
190 public bool FinalStateKeep {
191 get { return GetFinalStateKeep(); }
192 set { SetFinalStateKeep(value); }
194 /// <summary>Duration property</summary>
195 /// <value>Duration value.</value>
196 public double Duration {
197 get { return GetDuration(); }
198 set { SetDuration(value); }
200 /// <summary>Repeat mode property</summary>
201 /// <value>Repeat mode. EFL_ANIMATION_REPEAT_MODE_RESTART restarts animation when the animation ends and EFL_ANIMATION_REPEAT_MODE_REVERSE reverses animation when the animation ends.</value>
202 public Efl.Canvas.AnimationRepeatMode RepeatMode {
203 get { return GetRepeatMode(); }
204 set { SetRepeatMode(value); }
206 /// <summary>Repeat count property</summary>
207 /// <value>Repeat count. EFL_ANIMATION_REPEAT_INFINITE repeats animation infinitely.</value>
208 public int RepeatCount {
209 get { return GetRepeatCount(); }
210 set { SetRepeatCount(value); }
212 /// <summary>Start delay property</summary>
213 /// <value>Delay time, in seconds, from when the animation starts until the animation is animated</value>
214 public double StartDelay {
215 get { return GetStartDelay(); }
216 set { SetStartDelay(value); }
218 /// <summary>Interpolator property</summary>
219 /// <value>Interpolator which indicates interpolation function. Efl_Interpolator is required.</value>
220 public Efl.IInterpolator Interpolator {
221 get { return GetInterpolator(); }
222 set { SetInterpolator(value); }
224 /// <summary>Get the length of play for the media file.</summary>
225 /// <value>The length of the stream in seconds.</value>
226 public double Length {
227 get { return GetLength(); }
229 public bool Playable {
230 get { return GetPlayable(); }
232 /// <summary>Get whether the media file is seekable.</summary>
233 /// <value><c>true</c> if seekable.</value>
234 public bool Seekable {
235 get { return GetSeekable(); }
237 private static IntPtr GetEflClassStatic()
239 return Efl.Canvas.Animation.efl_canvas_animation_class_get();
241 /// <summary>Wrapper for native methods and virtual method delegates.
242 /// For internal use by generated code only.</summary>
243 public new class NativeMethods : Efl.Object.NativeMethods
245 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas);
246 /// <summary>Gets the list of Eo operations to override.</summary>
247 /// <returns>The list of Eo operations to be overload.</returns>
248 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
250 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
251 var methods = Efl.Eo.Globals.GetUserMethods(type);
253 if (efl_animation_final_state_keep_get_static_delegate == null)
255 efl_animation_final_state_keep_get_static_delegate = new efl_animation_final_state_keep_get_delegate(final_state_keep_get);
258 if (methods.FirstOrDefault(m => m.Name == "GetFinalStateKeep") != null)
260 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_final_state_keep_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_final_state_keep_get_static_delegate) });
263 if (efl_animation_final_state_keep_set_static_delegate == null)
265 efl_animation_final_state_keep_set_static_delegate = new efl_animation_final_state_keep_set_delegate(final_state_keep_set);
268 if (methods.FirstOrDefault(m => m.Name == "SetFinalStateKeep") != null)
270 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_final_state_keep_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_final_state_keep_set_static_delegate) });
273 if (efl_animation_duration_get_static_delegate == null)
275 efl_animation_duration_get_static_delegate = new efl_animation_duration_get_delegate(duration_get);
278 if (methods.FirstOrDefault(m => m.Name == "GetDuration") != null)
280 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_duration_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_duration_get_static_delegate) });
283 if (efl_animation_duration_set_static_delegate == null)
285 efl_animation_duration_set_static_delegate = new efl_animation_duration_set_delegate(duration_set);
288 if (methods.FirstOrDefault(m => m.Name == "SetDuration") != null)
290 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_duration_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_duration_set_static_delegate) });
293 if (efl_animation_repeat_mode_get_static_delegate == null)
295 efl_animation_repeat_mode_get_static_delegate = new efl_animation_repeat_mode_get_delegate(repeat_mode_get);
298 if (methods.FirstOrDefault(m => m.Name == "GetRepeatMode") != null)
300 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_repeat_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_repeat_mode_get_static_delegate) });
303 if (efl_animation_repeat_mode_set_static_delegate == null)
305 efl_animation_repeat_mode_set_static_delegate = new efl_animation_repeat_mode_set_delegate(repeat_mode_set);
308 if (methods.FirstOrDefault(m => m.Name == "SetRepeatMode") != null)
310 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_repeat_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_repeat_mode_set_static_delegate) });
313 if (efl_animation_repeat_count_get_static_delegate == null)
315 efl_animation_repeat_count_get_static_delegate = new efl_animation_repeat_count_get_delegate(repeat_count_get);
318 if (methods.FirstOrDefault(m => m.Name == "GetRepeatCount") != null)
320 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_repeat_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_repeat_count_get_static_delegate) });
323 if (efl_animation_repeat_count_set_static_delegate == null)
325 efl_animation_repeat_count_set_static_delegate = new efl_animation_repeat_count_set_delegate(repeat_count_set);
328 if (methods.FirstOrDefault(m => m.Name == "SetRepeatCount") != null)
330 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_repeat_count_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_repeat_count_set_static_delegate) });
333 if (efl_animation_start_delay_get_static_delegate == null)
335 efl_animation_start_delay_get_static_delegate = new efl_animation_start_delay_get_delegate(start_delay_get);
338 if (methods.FirstOrDefault(m => m.Name == "GetStartDelay") != null)
340 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_start_delay_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_start_delay_get_static_delegate) });
343 if (efl_animation_start_delay_set_static_delegate == null)
345 efl_animation_start_delay_set_static_delegate = new efl_animation_start_delay_set_delegate(start_delay_set);
348 if (methods.FirstOrDefault(m => m.Name == "SetStartDelay") != null)
350 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_start_delay_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_start_delay_set_static_delegate) });
353 if (efl_animation_interpolator_get_static_delegate == null)
355 efl_animation_interpolator_get_static_delegate = new efl_animation_interpolator_get_delegate(interpolator_get);
358 if (methods.FirstOrDefault(m => m.Name == "GetInterpolator") != null)
360 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_interpolator_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_interpolator_get_static_delegate) });
363 if (efl_animation_interpolator_set_static_delegate == null)
365 efl_animation_interpolator_set_static_delegate = new efl_animation_interpolator_set_delegate(interpolator_set);
368 if (methods.FirstOrDefault(m => m.Name == "SetInterpolator") != null)
370 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_interpolator_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_interpolator_set_static_delegate) });
373 if (efl_animation_apply_static_delegate == null)
375 efl_animation_apply_static_delegate = new efl_animation_apply_delegate(animation_apply);
378 if (methods.FirstOrDefault(m => m.Name == "AnimationApply") != null)
380 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_apply"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_apply_static_delegate) });
383 if (efl_playable_length_get_static_delegate == null)
385 efl_playable_length_get_static_delegate = new efl_playable_length_get_delegate(length_get);
388 if (methods.FirstOrDefault(m => m.Name == "GetLength") != null)
390 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_playable_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_playable_length_get_static_delegate) });
393 if (efl_playable_get_static_delegate == null)
395 efl_playable_get_static_delegate = new efl_playable_get_delegate(playable_get);
398 if (methods.FirstOrDefault(m => m.Name == "GetPlayable") != null)
400 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_playable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_playable_get_static_delegate) });
403 if (efl_playable_seekable_get_static_delegate == null)
405 efl_playable_seekable_get_static_delegate = new efl_playable_seekable_get_delegate(seekable_get);
408 if (methods.FirstOrDefault(m => m.Name == "GetSeekable") != null)
410 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_playable_seekable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_playable_seekable_get_static_delegate) });
413 descs.AddRange(base.GetEoOps(type));
416 /// <summary>Returns the Eo class for the native methods of this class.</summary>
417 /// <returns>The native class pointer.</returns>
418 public override IntPtr GetEflClass()
420 return Efl.Canvas.Animation.efl_canvas_animation_class_get();
423 #pragma warning disable CA1707, SA1300, SA1600
425 [return: MarshalAs(UnmanagedType.U1)]
426 private delegate bool efl_animation_final_state_keep_get_delegate(System.IntPtr obj, System.IntPtr pd);
428 [return: MarshalAs(UnmanagedType.U1)]
429 public delegate bool efl_animation_final_state_keep_get_api_delegate(System.IntPtr obj);
431 public static Efl.Eo.FunctionWrapper<efl_animation_final_state_keep_get_api_delegate> efl_animation_final_state_keep_get_ptr = new Efl.Eo.FunctionWrapper<efl_animation_final_state_keep_get_api_delegate>(Module, "efl_animation_final_state_keep_get");
433 private static bool final_state_keep_get(System.IntPtr obj, System.IntPtr pd)
435 Eina.Log.Debug("function efl_animation_final_state_keep_get was called");
436 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
439 bool _ret_var = default(bool);
442 _ret_var = ((Animation)wrapper).GetFinalStateKeep();
446 Eina.Log.Warning($"Callback error: {e.ToString()}");
447 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
455 return efl_animation_final_state_keep_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
459 private static efl_animation_final_state_keep_get_delegate efl_animation_final_state_keep_get_static_delegate;
462 private delegate void efl_animation_final_state_keep_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool keep);
465 public delegate void efl_animation_final_state_keep_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool keep);
467 public static Efl.Eo.FunctionWrapper<efl_animation_final_state_keep_set_api_delegate> efl_animation_final_state_keep_set_ptr = new Efl.Eo.FunctionWrapper<efl_animation_final_state_keep_set_api_delegate>(Module, "efl_animation_final_state_keep_set");
469 private static void final_state_keep_set(System.IntPtr obj, System.IntPtr pd, bool keep)
471 Eina.Log.Debug("function efl_animation_final_state_keep_set was called");
472 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
478 ((Animation)wrapper).SetFinalStateKeep(keep);
482 Eina.Log.Warning($"Callback error: {e.ToString()}");
483 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
490 efl_animation_final_state_keep_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), keep);
494 private static efl_animation_final_state_keep_set_delegate efl_animation_final_state_keep_set_static_delegate;
497 private delegate double efl_animation_duration_get_delegate(System.IntPtr obj, System.IntPtr pd);
500 public delegate double efl_animation_duration_get_api_delegate(System.IntPtr obj);
502 public static Efl.Eo.FunctionWrapper<efl_animation_duration_get_api_delegate> efl_animation_duration_get_ptr = new Efl.Eo.FunctionWrapper<efl_animation_duration_get_api_delegate>(Module, "efl_animation_duration_get");
504 private static double duration_get(System.IntPtr obj, System.IntPtr pd)
506 Eina.Log.Debug("function efl_animation_duration_get was called");
507 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
510 double _ret_var = default(double);
513 _ret_var = ((Animation)wrapper).GetDuration();
517 Eina.Log.Warning($"Callback error: {e.ToString()}");
518 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
526 return efl_animation_duration_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
530 private static efl_animation_duration_get_delegate efl_animation_duration_get_static_delegate;
533 private delegate void efl_animation_duration_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec);
536 public delegate void efl_animation_duration_set_api_delegate(System.IntPtr obj, double sec);
538 public static Efl.Eo.FunctionWrapper<efl_animation_duration_set_api_delegate> efl_animation_duration_set_ptr = new Efl.Eo.FunctionWrapper<efl_animation_duration_set_api_delegate>(Module, "efl_animation_duration_set");
540 private static void duration_set(System.IntPtr obj, System.IntPtr pd, double sec)
542 Eina.Log.Debug("function efl_animation_duration_set was called");
543 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
549 ((Animation)wrapper).SetDuration(sec);
553 Eina.Log.Warning($"Callback error: {e.ToString()}");
554 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
561 efl_animation_duration_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec);
565 private static efl_animation_duration_set_delegate efl_animation_duration_set_static_delegate;
568 private delegate Efl.Canvas.AnimationRepeatMode efl_animation_repeat_mode_get_delegate(System.IntPtr obj, System.IntPtr pd);
571 public delegate Efl.Canvas.AnimationRepeatMode efl_animation_repeat_mode_get_api_delegate(System.IntPtr obj);
573 public static Efl.Eo.FunctionWrapper<efl_animation_repeat_mode_get_api_delegate> efl_animation_repeat_mode_get_ptr = new Efl.Eo.FunctionWrapper<efl_animation_repeat_mode_get_api_delegate>(Module, "efl_animation_repeat_mode_get");
575 private static Efl.Canvas.AnimationRepeatMode repeat_mode_get(System.IntPtr obj, System.IntPtr pd)
577 Eina.Log.Debug("function efl_animation_repeat_mode_get was called");
578 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
581 Efl.Canvas.AnimationRepeatMode _ret_var = default(Efl.Canvas.AnimationRepeatMode);
584 _ret_var = ((Animation)wrapper).GetRepeatMode();
588 Eina.Log.Warning($"Callback error: {e.ToString()}");
589 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
597 return efl_animation_repeat_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
601 private static efl_animation_repeat_mode_get_delegate efl_animation_repeat_mode_get_static_delegate;
604 private delegate void efl_animation_repeat_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.AnimationRepeatMode mode);
607 public delegate void efl_animation_repeat_mode_set_api_delegate(System.IntPtr obj, Efl.Canvas.AnimationRepeatMode mode);
609 public static Efl.Eo.FunctionWrapper<efl_animation_repeat_mode_set_api_delegate> efl_animation_repeat_mode_set_ptr = new Efl.Eo.FunctionWrapper<efl_animation_repeat_mode_set_api_delegate>(Module, "efl_animation_repeat_mode_set");
611 private static void repeat_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.AnimationRepeatMode mode)
613 Eina.Log.Debug("function efl_animation_repeat_mode_set was called");
614 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
620 ((Animation)wrapper).SetRepeatMode(mode);
624 Eina.Log.Warning($"Callback error: {e.ToString()}");
625 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
632 efl_animation_repeat_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode);
636 private static efl_animation_repeat_mode_set_delegate efl_animation_repeat_mode_set_static_delegate;
639 private delegate int efl_animation_repeat_count_get_delegate(System.IntPtr obj, System.IntPtr pd);
642 public delegate int efl_animation_repeat_count_get_api_delegate(System.IntPtr obj);
644 public static Efl.Eo.FunctionWrapper<efl_animation_repeat_count_get_api_delegate> efl_animation_repeat_count_get_ptr = new Efl.Eo.FunctionWrapper<efl_animation_repeat_count_get_api_delegate>(Module, "efl_animation_repeat_count_get");
646 private static int repeat_count_get(System.IntPtr obj, System.IntPtr pd)
648 Eina.Log.Debug("function efl_animation_repeat_count_get was called");
649 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
652 int _ret_var = default(int);
655 _ret_var = ((Animation)wrapper).GetRepeatCount();
659 Eina.Log.Warning($"Callback error: {e.ToString()}");
660 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
668 return efl_animation_repeat_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
672 private static efl_animation_repeat_count_get_delegate efl_animation_repeat_count_get_static_delegate;
675 private delegate void efl_animation_repeat_count_set_delegate(System.IntPtr obj, System.IntPtr pd, int count);
678 public delegate void efl_animation_repeat_count_set_api_delegate(System.IntPtr obj, int count);
680 public static Efl.Eo.FunctionWrapper<efl_animation_repeat_count_set_api_delegate> efl_animation_repeat_count_set_ptr = new Efl.Eo.FunctionWrapper<efl_animation_repeat_count_set_api_delegate>(Module, "efl_animation_repeat_count_set");
682 private static void repeat_count_set(System.IntPtr obj, System.IntPtr pd, int count)
684 Eina.Log.Debug("function efl_animation_repeat_count_set was called");
685 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
691 ((Animation)wrapper).SetRepeatCount(count);
695 Eina.Log.Warning($"Callback error: {e.ToString()}");
696 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
703 efl_animation_repeat_count_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), count);
707 private static efl_animation_repeat_count_set_delegate efl_animation_repeat_count_set_static_delegate;
710 private delegate double efl_animation_start_delay_get_delegate(System.IntPtr obj, System.IntPtr pd);
713 public delegate double efl_animation_start_delay_get_api_delegate(System.IntPtr obj);
715 public static Efl.Eo.FunctionWrapper<efl_animation_start_delay_get_api_delegate> efl_animation_start_delay_get_ptr = new Efl.Eo.FunctionWrapper<efl_animation_start_delay_get_api_delegate>(Module, "efl_animation_start_delay_get");
717 private static double start_delay_get(System.IntPtr obj, System.IntPtr pd)
719 Eina.Log.Debug("function efl_animation_start_delay_get was called");
720 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
723 double _ret_var = default(double);
726 _ret_var = ((Animation)wrapper).GetStartDelay();
730 Eina.Log.Warning($"Callback error: {e.ToString()}");
731 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
739 return efl_animation_start_delay_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
743 private static efl_animation_start_delay_get_delegate efl_animation_start_delay_get_static_delegate;
746 private delegate void efl_animation_start_delay_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec);
749 public delegate void efl_animation_start_delay_set_api_delegate(System.IntPtr obj, double sec);
751 public static Efl.Eo.FunctionWrapper<efl_animation_start_delay_set_api_delegate> efl_animation_start_delay_set_ptr = new Efl.Eo.FunctionWrapper<efl_animation_start_delay_set_api_delegate>(Module, "efl_animation_start_delay_set");
753 private static void start_delay_set(System.IntPtr obj, System.IntPtr pd, double sec)
755 Eina.Log.Debug("function efl_animation_start_delay_set was called");
756 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
762 ((Animation)wrapper).SetStartDelay(sec);
766 Eina.Log.Warning($"Callback error: {e.ToString()}");
767 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
774 efl_animation_start_delay_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec);
778 private static efl_animation_start_delay_set_delegate efl_animation_start_delay_set_static_delegate;
780 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
781 private delegate Efl.IInterpolator efl_animation_interpolator_get_delegate(System.IntPtr obj, System.IntPtr pd);
783 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
784 public delegate Efl.IInterpolator efl_animation_interpolator_get_api_delegate(System.IntPtr obj);
786 public static Efl.Eo.FunctionWrapper<efl_animation_interpolator_get_api_delegate> efl_animation_interpolator_get_ptr = new Efl.Eo.FunctionWrapper<efl_animation_interpolator_get_api_delegate>(Module, "efl_animation_interpolator_get");
788 private static Efl.IInterpolator interpolator_get(System.IntPtr obj, System.IntPtr pd)
790 Eina.Log.Debug("function efl_animation_interpolator_get was called");
791 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
794 Efl.IInterpolator _ret_var = default(Efl.IInterpolator);
797 _ret_var = ((Animation)wrapper).GetInterpolator();
801 Eina.Log.Warning($"Callback error: {e.ToString()}");
802 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
810 return efl_animation_interpolator_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
814 private static efl_animation_interpolator_get_delegate efl_animation_interpolator_get_static_delegate;
817 private delegate void efl_animation_interpolator_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.IInterpolator interpolator);
820 public delegate void efl_animation_interpolator_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.IInterpolator interpolator);
822 public static Efl.Eo.FunctionWrapper<efl_animation_interpolator_set_api_delegate> efl_animation_interpolator_set_ptr = new Efl.Eo.FunctionWrapper<efl_animation_interpolator_set_api_delegate>(Module, "efl_animation_interpolator_set");
824 private static void interpolator_set(System.IntPtr obj, System.IntPtr pd, Efl.IInterpolator interpolator)
826 Eina.Log.Debug("function efl_animation_interpolator_set was called");
827 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
833 ((Animation)wrapper).SetInterpolator(interpolator);
837 Eina.Log.Warning($"Callback error: {e.ToString()}");
838 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
845 efl_animation_interpolator_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), interpolator);
849 private static efl_animation_interpolator_set_delegate efl_animation_interpolator_set_static_delegate;
852 private delegate double efl_animation_apply_delegate(System.IntPtr obj, System.IntPtr pd, double progress, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Canvas.Object target);
855 public delegate double efl_animation_apply_api_delegate(System.IntPtr obj, double progress, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Canvas.Object target);
857 public static Efl.Eo.FunctionWrapper<efl_animation_apply_api_delegate> efl_animation_apply_ptr = new Efl.Eo.FunctionWrapper<efl_animation_apply_api_delegate>(Module, "efl_animation_apply");
859 private static double animation_apply(System.IntPtr obj, System.IntPtr pd, double progress, Efl.Canvas.Object target)
861 Eina.Log.Debug("function efl_animation_apply was called");
862 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
865 double _ret_var = default(double);
868 _ret_var = ((Animation)wrapper).AnimationApply(progress, target);
872 Eina.Log.Warning($"Callback error: {e.ToString()}");
873 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
881 return efl_animation_apply_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress, target);
885 private static efl_animation_apply_delegate efl_animation_apply_static_delegate;
888 private delegate double efl_playable_length_get_delegate(System.IntPtr obj, System.IntPtr pd);
891 public delegate double efl_playable_length_get_api_delegate(System.IntPtr obj);
893 public static Efl.Eo.FunctionWrapper<efl_playable_length_get_api_delegate> efl_playable_length_get_ptr = new Efl.Eo.FunctionWrapper<efl_playable_length_get_api_delegate>(Module, "efl_playable_length_get");
895 private static double length_get(System.IntPtr obj, System.IntPtr pd)
897 Eina.Log.Debug("function efl_playable_length_get was called");
898 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
901 double _ret_var = default(double);
904 _ret_var = ((Animation)wrapper).GetLength();
908 Eina.Log.Warning($"Callback error: {e.ToString()}");
909 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
917 return efl_playable_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
921 private static efl_playable_length_get_delegate efl_playable_length_get_static_delegate;
923 [return: MarshalAs(UnmanagedType.U1)]
924 private delegate bool efl_playable_get_delegate(System.IntPtr obj, System.IntPtr pd);
926 [return: MarshalAs(UnmanagedType.U1)]
927 public delegate bool efl_playable_get_api_delegate(System.IntPtr obj);
929 public static Efl.Eo.FunctionWrapper<efl_playable_get_api_delegate> efl_playable_get_ptr = new Efl.Eo.FunctionWrapper<efl_playable_get_api_delegate>(Module, "efl_playable_get");
931 private static bool playable_get(System.IntPtr obj, System.IntPtr pd)
933 Eina.Log.Debug("function efl_playable_get was called");
934 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
937 bool _ret_var = default(bool);
940 _ret_var = ((Animation)wrapper).GetPlayable();
944 Eina.Log.Warning($"Callback error: {e.ToString()}");
945 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
953 return efl_playable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
957 private static efl_playable_get_delegate efl_playable_get_static_delegate;
959 [return: MarshalAs(UnmanagedType.U1)]
960 private delegate bool efl_playable_seekable_get_delegate(System.IntPtr obj, System.IntPtr pd);
962 [return: MarshalAs(UnmanagedType.U1)]
963 public delegate bool efl_playable_seekable_get_api_delegate(System.IntPtr obj);
965 public static Efl.Eo.FunctionWrapper<efl_playable_seekable_get_api_delegate> efl_playable_seekable_get_ptr = new Efl.Eo.FunctionWrapper<efl_playable_seekable_get_api_delegate>(Module, "efl_playable_seekable_get");
967 private static bool seekable_get(System.IntPtr obj, System.IntPtr pd)
969 Eina.Log.Debug("function efl_playable_seekable_get was called");
970 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
973 bool _ret_var = default(bool);
976 _ret_var = ((Animation)wrapper).GetSeekable();
980 Eina.Log.Warning($"Callback error: {e.ToString()}");
981 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
989 return efl_playable_seekable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
993 private static efl_playable_seekable_get_delegate efl_playable_seekable_get_static_delegate;
995 #pragma warning restore CA1707, SA1300, SA1600