Пример #1
0
                private static Eina.Vector2.NativeStruct momentum_get(System.IntPtr obj, System.IntPtr pd)
                {
                    Eina.Log.Debug("function efl_gesture_flick_momentum_get was called");
                    var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                    if (ws != null)
                    {
                        Eina.Vector2 _ret_var = default(Eina.Vector2);
                        try
                        {
                            _ret_var = ((GestureFlick)ws.Target).GetMomentum();
                        }
                        catch (Exception e)
                        {
                            Eina.Log.Warning($"Callback error: {e.ToString()}");
                            Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                        }

                        return(_ret_var);
                    }
                    else
                    {
                        return(efl_gesture_flick_momentum_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))));
                    }
                }
Пример #2
0
 private static Eina.Vector2.NativeStruct distance(System.IntPtr obj, System.IntPtr pd, int tool)
 {
     Eina.Log.Debug("function efl_gesture_touch_distance was called");
     Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
     if (wrapper != null)
     {
         Eina.Vector2 _ret_var = default(Eina.Vector2);
         try {
             _ret_var = ((GestureTouch)wrapper).Distance(tool);
         } catch (Exception e) {
             Eina.Log.Warning($"Callback error: {e.ToString()}");
             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
         }
         return(_ret_var);
     }
     else
     {
         return(efl_gesture_touch_distance_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), tool));
     }
 }
Пример #3
0
        private static void point_record(System.IntPtr obj, System.IntPtr pd, int tool, Eina.Vector2.NativeStruct pos, double timestamp, Efl.Pointer.Action action)
        {
            Eina.Log.Debug("function efl_gesture_touch_point_record was called");
            Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
            if (wrapper != null)
            {
                Eina.Vector2 _in_pos = pos;

                try {
                    ((GestureTouch)wrapper).PointRecord(tool, _in_pos, timestamp, action);
                } catch (Exception e) {
                    Eina.Log.Warning($"Callback error: {e.ToString()}");
                    Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                }
            }
            else
            {
                efl_gesture_touch_point_record_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), tool, pos, timestamp, action);
            }
        }
Пример #4
0
        private static void hotspot_set(System.IntPtr obj, System.IntPtr pd, Eina.Vector2.NativeStruct hotspot)
        {
            Eina.Log.Debug("function efl_gesture_hotspot_set was called");
            Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
            if (wrapper != null)
            {
                Eina.Vector2 _in_hotspot = hotspot;

                try {
                    ((Gesture)wrapper).SetHotspot(_in_hotspot);
                } catch (Exception e) {
                    Eina.Log.Warning($"Callback error: {e.ToString()}");
                    Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                }
            }
            else
            {
                efl_gesture_hotspot_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hotspot);
            }
        }
Пример #5
0
 /// <summary>Touch point record method</summary>
 /// <param name="tool">The finger id</param>
 /// <param name="pos">Position of the event</param>
 /// <param name="timestamp">The timestamp of the event</param>
 /// <param name="action">action of the event</param>
 virtual public void PointRecord(int tool, Eina.Vector2 pos, uint timestamp, Efl.Pointer.Action action)
 {
     Eina.Vector2.NativeStruct _in_pos = pos;
     Efl.Canvas.GestureTouch.NativeMethods.efl_gesture_touch_point_record_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), tool, _in_pos, timestamp, action);
     Eina.Error.RaiseIfUnhandledException();
 }
Пример #6
0
 /// <summary>This property holds the hotspot of the current gesture.</summary>
 /// <param name="hotspot">hotspot co-ordinate</param>
 /// <returns></returns>
 virtual public void SetHotspot(Eina.Vector2 hotspot)
 {
     Eina.Vector2.NativeStruct _in_hotspot = hotspot;
     Efl.Canvas.GestureNativeInherit.efl_gesture_hotspot_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_hotspot);
     Eina.Error.RaiseIfUnhandledException();
 }