#define EFL_BETA
#pragma warning disable CS1591
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.ComponentModel;
namespace Efl {
namespace Canvas {
/// Efl animation class
/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development.
[Efl.Canvas.Animation.NativeMethods]
[Efl.Eo.BindingEntity]
public class Animation : Efl.Object, Efl.IPlayable
{
/// Pointer to the native class description.
public override System.IntPtr NativeClass
{
get
{
if (((object)this).GetType() == typeof(Animation))
{
return GetEflClassStatic();
}
else
{
return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
}
}
}
[System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr
efl_canvas_animation_class_get();
/// Initializes a new instance of the class.
/// Parent instance.
public Animation(Efl.Object parent= null
) : base(efl_canvas_animation_class_get(), parent)
{
FinishInstantiation();
}
/// Subclasses should override this constructor if they are expected to be instantiated from native code.
/// Do not call this constructor directly.
/// Tag struct storing the native handle of the object being constructed.
protected Animation(ConstructingHandle ch) : base(ch)
{
}
/// Initializes a new instance of the class.
/// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.
/// The native pointer to be wrapped.
protected Animation(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
{
}
/// Initializes a new instance of the class.
/// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.
/// The pointer to the base native Eo class.
/// The Efl.Object parent of this instance.
protected Animation(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
{
}
/// Keep final state property
/// true to keep final state, false otherwise.
virtual public bool GetFinalStateKeep() {
var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_final_state_keep_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// Keep final state property
/// true to keep final state, false otherwise.
virtual public void SetFinalStateKeep(bool keep) {
Efl.Canvas.Animation.NativeMethods.efl_animation_final_state_keep_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),keep);
Eina.Error.RaiseIfUnhandledException();
}
/// Duration property
/// Duration value.
virtual public double GetDuration() {
var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_duration_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// Duration property
/// Duration value.
virtual public void SetDuration(double sec) {
Efl.Canvas.Animation.NativeMethods.efl_animation_duration_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),sec);
Eina.Error.RaiseIfUnhandledException();
}
/// Repeat mode property
/// 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.
virtual public Efl.Canvas.AnimationRepeatMode GetRepeatMode() {
var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_repeat_mode_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// Repeat mode property
/// 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.
virtual public void SetRepeatMode(Efl.Canvas.AnimationRepeatMode mode) {
Efl.Canvas.Animation.NativeMethods.efl_animation_repeat_mode_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),mode);
Eina.Error.RaiseIfUnhandledException();
}
/// Repeat count property
/// Repeat count. EFL_ANIMATION_REPEAT_INFINITE repeats animation infinitely.
virtual public int GetRepeatCount() {
var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_repeat_count_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// Repeat count property
/// Repeat count. EFL_ANIMATION_REPEAT_INFINITE repeats animation infinitely.
virtual public void SetRepeatCount(int count) {
Efl.Canvas.Animation.NativeMethods.efl_animation_repeat_count_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),count);
Eina.Error.RaiseIfUnhandledException();
}
/// Start delay property
/// Delay time, in seconds, from when the animation starts until the animation is animated
virtual public double GetStartDelay() {
var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_start_delay_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// Start delay property
/// Delay time, in seconds, from when the animation starts until the animation is animated
virtual public void SetStartDelay(double sec) {
Efl.Canvas.Animation.NativeMethods.efl_animation_start_delay_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),sec);
Eina.Error.RaiseIfUnhandledException();
}
/// Interpolator property
/// Interpolator which indicates interpolation function. Efl_Interpolator is required.
virtual public Efl.IInterpolator GetInterpolator() {
var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_interpolator_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// Interpolator property
/// Interpolator which indicates interpolation function. Efl_Interpolator is required.
virtual public void SetInterpolator(Efl.IInterpolator interpolator) {
Efl.Canvas.Animation.NativeMethods.efl_animation_interpolator_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),interpolator);
Eina.Error.RaiseIfUnhandledException();
}
/// Final applied progress.
virtual public double AnimationApply(double progress, Efl.Canvas.Object target) {
var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_apply_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),progress, target);
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// Get the length of play for the media file.
/// The length of the stream in seconds.
virtual public double GetLength() {
var _ret_var = Efl.IPlayableConcrete.NativeMethods.efl_playable_length_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
virtual public bool GetPlayable() {
var _ret_var = Efl.IPlayableConcrete.NativeMethods.efl_playable_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// Get whether the media file is seekable.
/// true if seekable.
virtual public bool GetSeekable() {
var _ret_var = Efl.IPlayableConcrete.NativeMethods.efl_playable_seekable_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// Keep final state property
/// true to keep final state, false otherwise.
public bool FinalStateKeep {
get { return GetFinalStateKeep(); }
set { SetFinalStateKeep(value); }
}
/// Duration property
/// Duration value.
public double Duration {
get { return GetDuration(); }
set { SetDuration(value); }
}
/// Repeat mode property
/// 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.
public Efl.Canvas.AnimationRepeatMode RepeatMode {
get { return GetRepeatMode(); }
set { SetRepeatMode(value); }
}
/// Repeat count property
/// Repeat count. EFL_ANIMATION_REPEAT_INFINITE repeats animation infinitely.
public int RepeatCount {
get { return GetRepeatCount(); }
set { SetRepeatCount(value); }
}
/// Start delay property
/// Delay time, in seconds, from when the animation starts until the animation is animated
public double StartDelay {
get { return GetStartDelay(); }
set { SetStartDelay(value); }
}
/// Interpolator property
/// Interpolator which indicates interpolation function. Efl_Interpolator is required.
public Efl.IInterpolator Interpolator {
get { return GetInterpolator(); }
set { SetInterpolator(value); }
}
/// Get the length of play for the media file.
/// The length of the stream in seconds.
public double Length {
get { return GetLength(); }
}
public bool Playable {
get { return GetPlayable(); }
}
/// Get whether the media file is seekable.
/// true if seekable.
public bool Seekable {
get { return GetSeekable(); }
}
private static IntPtr GetEflClassStatic()
{
return Efl.Canvas.Animation.efl_canvas_animation_class_get();
}
/// Wrapper for native methods and virtual method delegates.
/// For internal use by generated code only.
public new class NativeMethods : Efl.Object.NativeMethods
{
private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas);
/// Gets the list of Eo operations to override.
/// The list of Eo operations to be overload.
public override System.Collections.Generic.List GetEoOps(System.Type type)
{
var descs = new System.Collections.Generic.List();
var methods = Efl.Eo.Globals.GetUserMethods(type);
if (efl_animation_final_state_keep_get_static_delegate == null)
{
efl_animation_final_state_keep_get_static_delegate = new efl_animation_final_state_keep_get_delegate(final_state_keep_get);
}
if (methods.FirstOrDefault(m => m.Name == "GetFinalStateKeep") != null)
{
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) });
}
if (efl_animation_final_state_keep_set_static_delegate == null)
{
efl_animation_final_state_keep_set_static_delegate = new efl_animation_final_state_keep_set_delegate(final_state_keep_set);
}
if (methods.FirstOrDefault(m => m.Name == "SetFinalStateKeep") != null)
{
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) });
}
if (efl_animation_duration_get_static_delegate == null)
{
efl_animation_duration_get_static_delegate = new efl_animation_duration_get_delegate(duration_get);
}
if (methods.FirstOrDefault(m => m.Name == "GetDuration") != null)
{
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) });
}
if (efl_animation_duration_set_static_delegate == null)
{
efl_animation_duration_set_static_delegate = new efl_animation_duration_set_delegate(duration_set);
}
if (methods.FirstOrDefault(m => m.Name == "SetDuration") != null)
{
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) });
}
if (efl_animation_repeat_mode_get_static_delegate == null)
{
efl_animation_repeat_mode_get_static_delegate = new efl_animation_repeat_mode_get_delegate(repeat_mode_get);
}
if (methods.FirstOrDefault(m => m.Name == "GetRepeatMode") != null)
{
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) });
}
if (efl_animation_repeat_mode_set_static_delegate == null)
{
efl_animation_repeat_mode_set_static_delegate = new efl_animation_repeat_mode_set_delegate(repeat_mode_set);
}
if (methods.FirstOrDefault(m => m.Name == "SetRepeatMode") != null)
{
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) });
}
if (efl_animation_repeat_count_get_static_delegate == null)
{
efl_animation_repeat_count_get_static_delegate = new efl_animation_repeat_count_get_delegate(repeat_count_get);
}
if (methods.FirstOrDefault(m => m.Name == "GetRepeatCount") != null)
{
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) });
}
if (efl_animation_repeat_count_set_static_delegate == null)
{
efl_animation_repeat_count_set_static_delegate = new efl_animation_repeat_count_set_delegate(repeat_count_set);
}
if (methods.FirstOrDefault(m => m.Name == "SetRepeatCount") != null)
{
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) });
}
if (efl_animation_start_delay_get_static_delegate == null)
{
efl_animation_start_delay_get_static_delegate = new efl_animation_start_delay_get_delegate(start_delay_get);
}
if (methods.FirstOrDefault(m => m.Name == "GetStartDelay") != null)
{
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) });
}
if (efl_animation_start_delay_set_static_delegate == null)
{
efl_animation_start_delay_set_static_delegate = new efl_animation_start_delay_set_delegate(start_delay_set);
}
if (methods.FirstOrDefault(m => m.Name == "SetStartDelay") != null)
{
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) });
}
if (efl_animation_interpolator_get_static_delegate == null)
{
efl_animation_interpolator_get_static_delegate = new efl_animation_interpolator_get_delegate(interpolator_get);
}
if (methods.FirstOrDefault(m => m.Name == "GetInterpolator") != null)
{
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) });
}
if (efl_animation_interpolator_set_static_delegate == null)
{
efl_animation_interpolator_set_static_delegate = new efl_animation_interpolator_set_delegate(interpolator_set);
}
if (methods.FirstOrDefault(m => m.Name == "SetInterpolator") != null)
{
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) });
}
if (efl_animation_apply_static_delegate == null)
{
efl_animation_apply_static_delegate = new efl_animation_apply_delegate(animation_apply);
}
if (methods.FirstOrDefault(m => m.Name == "AnimationApply") != null)
{
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) });
}
if (efl_playable_length_get_static_delegate == null)
{
efl_playable_length_get_static_delegate = new efl_playable_length_get_delegate(length_get);
}
if (methods.FirstOrDefault(m => m.Name == "GetLength") != null)
{
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) });
}
if (efl_playable_get_static_delegate == null)
{
efl_playable_get_static_delegate = new efl_playable_get_delegate(playable_get);
}
if (methods.FirstOrDefault(m => m.Name == "GetPlayable") != null)
{
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) });
}
if (efl_playable_seekable_get_static_delegate == null)
{
efl_playable_seekable_get_static_delegate = new efl_playable_seekable_get_delegate(seekable_get);
}
if (methods.FirstOrDefault(m => m.Name == "GetSeekable") != null)
{
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) });
}
descs.AddRange(base.GetEoOps(type));
return descs;
}
/// Returns the Eo class for the native methods of this class.
/// The native class pointer.
public override IntPtr GetEflClass()
{
return Efl.Canvas.Animation.efl_canvas_animation_class_get();
}
#pragma warning disable CA1707, CS1591, SA1300, SA1600
[return: MarshalAs(UnmanagedType.U1)]
private delegate bool efl_animation_final_state_keep_get_delegate(System.IntPtr obj, System.IntPtr pd);
[return: MarshalAs(UnmanagedType.U1)]
public delegate bool efl_animation_final_state_keep_get_api_delegate(System.IntPtr obj);
public static Efl.Eo.FunctionWrapper efl_animation_final_state_keep_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_final_state_keep_get");
private static bool final_state_keep_get(System.IntPtr obj, System.IntPtr pd)
{
Eina.Log.Debug("function efl_animation_final_state_keep_get was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
bool _ret_var = default(bool);
try
{
_ret_var = ((Animation)ws.Target).GetFinalStateKeep();
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
return _ret_var;
}
else
{
return efl_animation_final_state_keep_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
}
}
private static efl_animation_final_state_keep_get_delegate efl_animation_final_state_keep_get_static_delegate;
private delegate void efl_animation_final_state_keep_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool keep);
public delegate void efl_animation_final_state_keep_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool keep);
public static Efl.Eo.FunctionWrapper efl_animation_final_state_keep_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_final_state_keep_set");
private static void final_state_keep_set(System.IntPtr obj, System.IntPtr pd, bool keep)
{
Eina.Log.Debug("function efl_animation_final_state_keep_set was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
try
{
((Animation)ws.Target).SetFinalStateKeep(keep);
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
}
else
{
efl_animation_final_state_keep_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), keep);
}
}
private static efl_animation_final_state_keep_set_delegate efl_animation_final_state_keep_set_static_delegate;
private delegate double efl_animation_duration_get_delegate(System.IntPtr obj, System.IntPtr pd);
public delegate double efl_animation_duration_get_api_delegate(System.IntPtr obj);
public static Efl.Eo.FunctionWrapper efl_animation_duration_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_duration_get");
private static double duration_get(System.IntPtr obj, System.IntPtr pd)
{
Eina.Log.Debug("function efl_animation_duration_get was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
double _ret_var = default(double);
try
{
_ret_var = ((Animation)ws.Target).GetDuration();
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
return _ret_var;
}
else
{
return efl_animation_duration_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
}
}
private static efl_animation_duration_get_delegate efl_animation_duration_get_static_delegate;
private delegate void efl_animation_duration_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec);
public delegate void efl_animation_duration_set_api_delegate(System.IntPtr obj, double sec);
public static Efl.Eo.FunctionWrapper efl_animation_duration_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_duration_set");
private static void duration_set(System.IntPtr obj, System.IntPtr pd, double sec)
{
Eina.Log.Debug("function efl_animation_duration_set was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
try
{
((Animation)ws.Target).SetDuration(sec);
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
}
else
{
efl_animation_duration_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec);
}
}
private static efl_animation_duration_set_delegate efl_animation_duration_set_static_delegate;
private delegate Efl.Canvas.AnimationRepeatMode efl_animation_repeat_mode_get_delegate(System.IntPtr obj, System.IntPtr pd);
public delegate Efl.Canvas.AnimationRepeatMode efl_animation_repeat_mode_get_api_delegate(System.IntPtr obj);
public static Efl.Eo.FunctionWrapper efl_animation_repeat_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_repeat_mode_get");
private static Efl.Canvas.AnimationRepeatMode repeat_mode_get(System.IntPtr obj, System.IntPtr pd)
{
Eina.Log.Debug("function efl_animation_repeat_mode_get was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
Efl.Canvas.AnimationRepeatMode _ret_var = default(Efl.Canvas.AnimationRepeatMode);
try
{
_ret_var = ((Animation)ws.Target).GetRepeatMode();
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
return _ret_var;
}
else
{
return efl_animation_repeat_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
}
}
private static efl_animation_repeat_mode_get_delegate efl_animation_repeat_mode_get_static_delegate;
private delegate void efl_animation_repeat_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.AnimationRepeatMode mode);
public delegate void efl_animation_repeat_mode_set_api_delegate(System.IntPtr obj, Efl.Canvas.AnimationRepeatMode mode);
public static Efl.Eo.FunctionWrapper efl_animation_repeat_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_repeat_mode_set");
private static void repeat_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.AnimationRepeatMode mode)
{
Eina.Log.Debug("function efl_animation_repeat_mode_set was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
try
{
((Animation)ws.Target).SetRepeatMode(mode);
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
}
else
{
efl_animation_repeat_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode);
}
}
private static efl_animation_repeat_mode_set_delegate efl_animation_repeat_mode_set_static_delegate;
private delegate int efl_animation_repeat_count_get_delegate(System.IntPtr obj, System.IntPtr pd);
public delegate int efl_animation_repeat_count_get_api_delegate(System.IntPtr obj);
public static Efl.Eo.FunctionWrapper efl_animation_repeat_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_repeat_count_get");
private static int repeat_count_get(System.IntPtr obj, System.IntPtr pd)
{
Eina.Log.Debug("function efl_animation_repeat_count_get was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
int _ret_var = default(int);
try
{
_ret_var = ((Animation)ws.Target).GetRepeatCount();
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
return _ret_var;
}
else
{
return efl_animation_repeat_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
}
}
private static efl_animation_repeat_count_get_delegate efl_animation_repeat_count_get_static_delegate;
private delegate void efl_animation_repeat_count_set_delegate(System.IntPtr obj, System.IntPtr pd, int count);
public delegate void efl_animation_repeat_count_set_api_delegate(System.IntPtr obj, int count);
public static Efl.Eo.FunctionWrapper efl_animation_repeat_count_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_repeat_count_set");
private static void repeat_count_set(System.IntPtr obj, System.IntPtr pd, int count)
{
Eina.Log.Debug("function efl_animation_repeat_count_set was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
try
{
((Animation)ws.Target).SetRepeatCount(count);
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
}
else
{
efl_animation_repeat_count_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), count);
}
}
private static efl_animation_repeat_count_set_delegate efl_animation_repeat_count_set_static_delegate;
private delegate double efl_animation_start_delay_get_delegate(System.IntPtr obj, System.IntPtr pd);
public delegate double efl_animation_start_delay_get_api_delegate(System.IntPtr obj);
public static Efl.Eo.FunctionWrapper efl_animation_start_delay_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_start_delay_get");
private static double start_delay_get(System.IntPtr obj, System.IntPtr pd)
{
Eina.Log.Debug("function efl_animation_start_delay_get was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
double _ret_var = default(double);
try
{
_ret_var = ((Animation)ws.Target).GetStartDelay();
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
return _ret_var;
}
else
{
return efl_animation_start_delay_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
}
}
private static efl_animation_start_delay_get_delegate efl_animation_start_delay_get_static_delegate;
private delegate void efl_animation_start_delay_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec);
public delegate void efl_animation_start_delay_set_api_delegate(System.IntPtr obj, double sec);
public static Efl.Eo.FunctionWrapper efl_animation_start_delay_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_start_delay_set");
private static void start_delay_set(System.IntPtr obj, System.IntPtr pd, double sec)
{
Eina.Log.Debug("function efl_animation_start_delay_set was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
try
{
((Animation)ws.Target).SetStartDelay(sec);
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
}
else
{
efl_animation_start_delay_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec);
}
}
private static efl_animation_start_delay_set_delegate efl_animation_start_delay_set_static_delegate;
[return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))]
private delegate Efl.IInterpolator efl_animation_interpolator_get_delegate(System.IntPtr obj, System.IntPtr pd);
[return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))]
public delegate Efl.IInterpolator efl_animation_interpolator_get_api_delegate(System.IntPtr obj);
public static Efl.Eo.FunctionWrapper efl_animation_interpolator_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_interpolator_get");
private static Efl.IInterpolator interpolator_get(System.IntPtr obj, System.IntPtr pd)
{
Eina.Log.Debug("function efl_animation_interpolator_get was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
Efl.IInterpolator _ret_var = default(Efl.IInterpolator);
try
{
_ret_var = ((Animation)ws.Target).GetInterpolator();
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
return _ret_var;
}
else
{
return efl_animation_interpolator_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
}
}
private static efl_animation_interpolator_get_delegate efl_animation_interpolator_get_static_delegate;
private delegate void efl_animation_interpolator_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IInterpolator interpolator);
public delegate void efl_animation_interpolator_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IInterpolator interpolator);
public static Efl.Eo.FunctionWrapper efl_animation_interpolator_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_interpolator_set");
private static void interpolator_set(System.IntPtr obj, System.IntPtr pd, Efl.IInterpolator interpolator)
{
Eina.Log.Debug("function efl_animation_interpolator_set was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
try
{
((Animation)ws.Target).SetInterpolator(interpolator);
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
}
else
{
efl_animation_interpolator_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), interpolator);
}
}
private static efl_animation_interpolator_set_delegate efl_animation_interpolator_set_static_delegate;
private delegate double efl_animation_apply_delegate(System.IntPtr obj, System.IntPtr pd, double progress, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object target);
public delegate double efl_animation_apply_api_delegate(System.IntPtr obj, double progress, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object target);
public static Efl.Eo.FunctionWrapper efl_animation_apply_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_apply");
private static double animation_apply(System.IntPtr obj, System.IntPtr pd, double progress, Efl.Canvas.Object target)
{
Eina.Log.Debug("function efl_animation_apply was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
double _ret_var = default(double);
try
{
_ret_var = ((Animation)ws.Target).AnimationApply(progress, target);
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
return _ret_var;
}
else
{
return efl_animation_apply_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress, target);
}
}
private static efl_animation_apply_delegate efl_animation_apply_static_delegate;
private delegate double efl_playable_length_get_delegate(System.IntPtr obj, System.IntPtr pd);
public delegate double efl_playable_length_get_api_delegate(System.IntPtr obj);
public static Efl.Eo.FunctionWrapper efl_playable_length_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_playable_length_get");
private static double length_get(System.IntPtr obj, System.IntPtr pd)
{
Eina.Log.Debug("function efl_playable_length_get was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
double _ret_var = default(double);
try
{
_ret_var = ((Animation)ws.Target).GetLength();
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
return _ret_var;
}
else
{
return efl_playable_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
}
}
private static efl_playable_length_get_delegate efl_playable_length_get_static_delegate;
[return: MarshalAs(UnmanagedType.U1)]
private delegate bool efl_playable_get_delegate(System.IntPtr obj, System.IntPtr pd);
[return: MarshalAs(UnmanagedType.U1)]
public delegate bool efl_playable_get_api_delegate(System.IntPtr obj);
public static Efl.Eo.FunctionWrapper efl_playable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_playable_get");
private static bool playable_get(System.IntPtr obj, System.IntPtr pd)
{
Eina.Log.Debug("function efl_playable_get was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
bool _ret_var = default(bool);
try
{
_ret_var = ((Animation)ws.Target).GetPlayable();
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
return _ret_var;
}
else
{
return efl_playable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
}
}
private static efl_playable_get_delegate efl_playable_get_static_delegate;
[return: MarshalAs(UnmanagedType.U1)]
private delegate bool efl_playable_seekable_get_delegate(System.IntPtr obj, System.IntPtr pd);
[return: MarshalAs(UnmanagedType.U1)]
public delegate bool efl_playable_seekable_get_api_delegate(System.IntPtr obj);
public static Efl.Eo.FunctionWrapper efl_playable_seekable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_playable_seekable_get");
private static bool seekable_get(System.IntPtr obj, System.IntPtr pd)
{
Eina.Log.Debug("function efl_playable_seekable_get was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
bool _ret_var = default(bool);
try
{
_ret_var = ((Animation)ws.Target).GetSeekable();
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
return _ret_var;
}
else
{
return efl_playable_seekable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
}
}
private static efl_playable_seekable_get_delegate efl_playable_seekable_get_static_delegate;
#pragma warning restore CA1707, CS1591, SA1300, SA1600
}
}
}
}
#if EFL_BETA
#pragma warning disable CS1591
public static class Efl_CanvasAnimation_ExtensionMethods {
public static Efl.BindableProperty FinalStateKeep(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Animation {
return new Efl.BindableProperty("final_state_keep", fac);
}
public static Efl.BindableProperty Duration(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Animation {
return new Efl.BindableProperty("duration", fac);
}
public static Efl.BindableProperty RepeatMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Animation {
return new Efl.BindableProperty("repeat_mode", fac);
}
public static Efl.BindableProperty RepeatCount(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Animation {
return new Efl.BindableProperty("repeat_count", fac);
}
public static Efl.BindableProperty StartDelay(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Animation {
return new Efl.BindableProperty("start_delay", fac);
}
public static Efl.BindableProperty Interpolator(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Animation {
return new Efl.BindableProperty("interpolator", fac);
}
}
#pragma warning restore CS1591
#endif