Example #1
0
                private static Efl.Canvas.GestureState state_get(System.IntPtr obj, System.IntPtr pd)
                {
                    Eina.Log.Debug("function efl_gesture_state_get was called");
                    var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                    if (ws != null)
                    {
                        Efl.Canvas.GestureState _ret_var = default(Efl.Canvas.GestureState);
                        try
                        {
                            _ret_var = ((Gesture)ws.Target).GetState();
                        }
                        catch (Exception e)
                        {
                            Eina.Log.Warning($"Callback error: {e.ToString()}");
                            Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                        }

                        return(_ret_var);
                    }
                    else
                    {
                        return(efl_gesture_state_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))));
                    }
                }
Example #2
0
 private static void state_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.GestureState state)
 {
     Eina.Log.Debug("function efl_gesture_state_set was called");
     Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
     if (wrapper != null)
     {
         try {
             ((Gesture)wrapper).SetState(state);
         } catch (Exception e) {
             Eina.Log.Warning($"Callback error: {e.ToString()}");
             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
         }
     }
     else
     {
         efl_gesture_state_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), state);
     }
 }
Example #3
0
 /// <summary>This property holds the current state of the gesture.</summary>
 /// <param name="state">gesture state</param>
 virtual public void SetState(Efl.Canvas.GestureState state)
 {
     Efl.Canvas.Gesture.NativeMethods.efl_gesture_state_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), state);
     Eina.Error.RaiseIfUnhandledException();
 }