Esempio n. 1
0
                private static void point_record(System.IntPtr obj, System.IntPtr pd, int tool, Eina.Vector2.NativeStruct pos, uint timestamp, Efl.Pointer.Action action)
                {
                    Eina.Log.Debug("function efl_gesture_touch_point_record was called");
                    var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                    if (ws != null)
                    {
                        Eina.Vector2 _in_pos = pos;

                        try
                        {
                            ((GestureTouch)ws.Target).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);
                    }
                }
Esempio n. 2
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();
 }