Exemplo n.º 1
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);
            }
        }
Exemplo n.º 2
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);
                    }
                }
Exemplo n.º 3
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();
 }
Exemplo n.º 4
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();
 }