private static void animation_del(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation)
 {
     Eina.Log.Debug("function efl_animation_group_animation_del was called");
     Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
     if (wrapper != null)
     {
         try {
             ((AnimationGroup)wrapper).DelAnimation(animation);
         } catch (Exception e) {
             Eina.Log.Warning($"Callback error: {e.ToString()}");
             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
         }
     }
     else
     {
         efl_animation_group_animation_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animation);
     }
 }
 /// <summary>Add the given animation to the animation group.</summary>
 /// <param name="animation">The animation which needs to be added to the animation group</param>
 /// <returns></returns>
 virtual public void AddAnimation(Efl.Canvas.Animation animation)
 {
     Efl.Canvas.AnimationGroupNativeInherit.efl_animation_group_animation_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), animation);
     Eina.Error.RaiseIfUnhandledException();
 }
Example #3
0
 /// <summary>Delete the given animation from the animation group.</summary>
 /// <param name="animation">The animation which needs to be deleted from the animation group</param>
 virtual public void DelAnimation(Efl.Canvas.Animation animation)
 {
     Efl.Canvas.AnimationGroup.NativeMethods.efl_animation_group_animation_del_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)), animation);
     Eina.Error.RaiseIfUnhandledException();
 }
Example #4
0
                private static void animation_add(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation)
                {
                    Eina.Log.Debug("function efl_animation_group_animation_add was called");
                    var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                    if (ws != null)
                    {
                        try
                        {
                            ((AnimationGroup)ws.Target).AddAnimation(animation);
                        }
                        catch (Exception e)
                        {
                            Eina.Log.Warning($"Callback error: {e.ToString()}");
                            Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                        }
                    }
                    else
                    {
                        efl_animation_group_animation_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animation);
                    }
                }