public override bool TouchesBegan (System.Collections.Generic.IEnumerable<NGraphics.Point> points) { _startPoint = points.FirstOrDefault (); _startPoint.X -= _image.TranslationX; _startPoint.Y -= _image.TranslationY; return true; }
public override bool TouchesMoved (System.Collections.Generic.IEnumerable<NGraphics.Point> points) { var newPoint = points.FirstOrDefault (); var diff = new NGraphics.Point (newPoint.X - _startPoint.X, newPoint.Y - _startPoint.Y); _image.TranslationX = diff.X; _image.TranslationY = diff.Y; return true; }
/// <summary> /// Handles the end. /// </summary> /// <returns><c>true</c>, if end was handled, <c>false</c> otherwise.</returns> /// <param name="point">Point.</param> private bool HandleEnd(NGraphics.Point point, bool allowCancel) { _ellipse.FadeTo(0.0, 50); return(true); }
public static CoreGraphics.CGPoint ToCGPoint(this NGraphics.Point sender) { return(new CoreGraphics.CGPoint((float)sender.X, (float)sender.Y)); }
public static FigmaSharp.Views.Point ToLFormsPoint(this NGraphics.Point sender) { return(new FigmaSharp.Views.Point((float)sender.X, (float)sender.Y)); }
public static LiteForms.Point ToLFormsPoint(this NGraphics.Point sender) { return(new LiteForms.Point((float)sender.X, (float)sender.Y)); }