コード例 #1
0
		public override bool TouchesBegan (System.Collections.Generic.IEnumerable<NGraphics.Point> points)
		{
			_startPoint = points.FirstOrDefault ();
			_startPoint.X -= _image.TranslationX;
			_startPoint.Y -= _image.TranslationY;
			return true;
		}
コード例 #2
0
		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;
		}
コード例 #3
0
        /// <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);
        }
コード例 #4
0
 public static CoreGraphics.CGPoint ToCGPoint(this NGraphics.Point sender)
 {
     return(new CoreGraphics.CGPoint((float)sender.X, (float)sender.Y));
 }
コード例 #5
0
 public static FigmaSharp.Views.Point ToLFormsPoint(this NGraphics.Point sender)
 {
     return(new FigmaSharp.Views.Point((float)sender.X, (float)sender.Y));
 }
コード例 #6
0
ファイル: Extensions.cs プロジェクト: netonjm/LiteForms
 public static LiteForms.Point ToLFormsPoint(this NGraphics.Point sender)
 {
     return(new LiteForms.Point((float)sender.X, (float)sender.Y));
 }