102 references to Point
Microsoft.Maui (3)
Animations\AnimationLerpingExtensions.cs (1)
33 new Point(start.X.Lerp(end.X, progress), start.Y.Lerp(end.Y, progress));
Core\Extensions\VisualTreeElementExtensions.cs (1)
114 GetVisualTreeElements(visualElement, new Point(x, y));
VisualDiagnostics\AdornerModel.cs (1)
122 Point pixelPoint = new Point(
Microsoft.Maui.Controls (80)
Brush\BrushTypeConverter.cs (16)
279 startPoint = new Point(0, 1); 280 endPoint = new Point(0, 0); 283 startPoint = new Point(1, 0); 284 endPoint = new Point(0, 0); 287 startPoint = new Point(0, 0); 288 endPoint = new Point(0, 1); 292 startPoint = new Point(0, 0); 293 endPoint = new Point(1, 0); 340 var position = new Point(0.5, 0.5); 348 return new Point(hasPositionX ? positionX : position.X, hasPositionY ? positionY : position.Y); 352 return new Point(0.5, 0.5); 360 return new Point(0, 0.5); 362 return new Point(1, 0.5); 364 return new Point(0.5, 0); 366 return new Point(0.5, 1); 369 return new Point(0.5, 0.5);
Frame\Frame.cs (1)
102 return new Shadow() { Radius = 5, Opacity = 0.8f, Offset = new Point(0, 0), Brush = Brush.Black };
LegacyLayouts\Layout.cs (1)
467 CompressedLayout.SetHeadlessOffset((VisualElement)LogicalChildrenInternal[i], isHeadless ? new Point(headlessOffset.X + Bounds.X, headlessOffset.Y + Bounds.Y) : new Point());
LinearGradientBrush.cs (2)
33 nameof(StartPoint), typeof(Point), typeof(LinearGradientBrush), new Point(0, 0)); 44 nameof(EndPoint), typeof(Point), typeof(LinearGradientBrush), new Point(1, 1));
Platform\GestureManager\GesturePlatformManager.iOS.cs (6)
132 var childGestures = view.GetChildElements(new Point(originPoint.X, originPoint.Y)); 191 return new Point((int)originPoint.X, (int)originPoint.Y); 202 return new Point(windowX, windowY); 211 return new Point(x, y); 226 return new Point((int)result.Value.X, (int)result.Value.Y); 284 var scaledPoint = new Point(originPoint.X / view.Width, originPoint.Y / view.Height);
Platform\iOS\DragAndDropDelegate.cs (3)
343 return new Point(x, y); 350 return new Point(dragLocation.X, dragLocation.Y); 355 return new Point(dragLocation.X, dragLocation.Y);
RadialGradientBrush.cs (1)
40 nameof(Center), typeof(Point), typeof(RadialGradientBrush), new Point(0.5, 0.5));
ScrollView\ScrollView.cs (2)
64 return new Point(ScrollX, ScrollY); 89 return new Point(x, y);
Shapes\ArcSegment.cs (1)
28 BindableProperty.Create(nameof(Point), typeof(Point), typeof(ArcSegment), new Point(0, 0));
Shapes\BezierSegment.cs (3)
25 BindableProperty.Create(nameof(Point1), typeof(Point), typeof(BezierSegment), new Point(0, 0)); 29 BindableProperty.Create(nameof(Point2), typeof(Point), typeof(BezierSegment), new Point(0, 0)); 33 BindableProperty.Create(nameof(Point3), typeof(Point), typeof(BezierSegment), new Point(0, 0));
Shapes\GeometryHelper.cs (15)
56 figDst.StartPoint = matx.Transform(new Point(rectGeoSrc.Rect.Left, rectGeoSrc.Rect.Top)); 57 segDst.Points.Add(matx.Transform(new Point(rectGeoSrc.Rect.Right, rectGeoSrc.Rect.Top))); 58 segDst.Points.Add(matx.Transform(new Point(rectGeoSrc.Rect.Right, rectGeoSrc.Rect.Bottom))); 59 segDst.Points.Add(matx.Transform(new Point(rectGeoSrc.Rect.Left, rectGeoSrc.Rect.Bottom))); 60 segDst.Points.Add(matx.Transform(new Point(rectGeoSrc.Rect.Left, rectGeoSrc.Rect.Top))); 78 Point pt = matx.Transform(new Point(x, y)); 250 points.Add(new Point(x, y)); 271 points.Add(new Point(x, y)); 288 Point midPoint = new Point((pt1.X + pt2.X) / 2, (pt1.Y + pt2.Y) / 2); 289 Point vect = new Point(pt2.X - pt1.X, pt2.Y - pt1.Y); 296 vectRotated = new Point(-vect.Y, vect.X); 298 vectRotated = new Point(vect.Y, -vect.X); 303 vectRotated = new Point(vectRotated.X / vectRotatedLength, vectRotated.Y / vectRotatedLength); 311 Point center = new Point( 352 Point pt = matx.Transform(new Point(x, y));
Shapes\LineSegment.cs (1)
23 BindableProperty.Create(nameof(Point), typeof(Point), typeof(LineSegment), new Point(0, 0));
Shapes\Matrix.cs (6)
209 return new Point(x, y); 225 points[i] = new Point(x, y); 739 Point point0 = matrix.Transform(new Point(rect.Right, rect.Top)); 740 Point point1 = matrix.Transform(new Point(rect.Right, rect.Top)); 741 Point point2 = matrix.Transform(new Point(rect.Right, rect.Bottom)); 742 Point point3 = matrix.Transform(new Point(rect.Left, rect.Bottom));
Shapes\PathFigure.cs (1)
31 BindableProperty.Create(nameof(StartPoint), typeof(Point), typeof(PathFigure), new Point(0, 0));
Shapes\PathFigureCollectionConverter.cs (5)
91 secondLastPoint = new Point(0, 0); 92 lastPoint = new Point(0, 0); 93 lastStart = new Point(0, 0); 332 return new Point( 446 return new Point(x, y);
Shapes\PointCollectionConverter.cs (1)
47 pointCollection.Add(new Point(x, number));
Shapes\QuadraticBezierSegment.cs (2)
24 BindableProperty.Create(nameof(Point1), typeof(Point), typeof(QuadraticBezierSegment), new Point(0, 0)); 28 BindableProperty.Create(nameof(Point2), typeof(Point), typeof(QuadraticBezierSegment), new Point(0, 0));
Shapes\RoundRectangleGeometry.cs (12)
76 new EllipseGeometry(new Point(Rect.Location.X + CornerRadius.TopLeft, Rect.Location.Y + CornerRadius.TopLeft), CornerRadius.TopLeft, CornerRadius.TopLeft)); 80 new EllipseGeometry(new Point(Rect.Location.X + Rect.Width - CornerRadius.TopRight, Rect.Location.Y + CornerRadius.TopRight), CornerRadius.TopRight, CornerRadius.TopRight)); 84 new EllipseGeometry(new Point(Rect.Location.X + Rect.Width - CornerRadius.BottomRight, Rect.Location.Y + Rect.Height - CornerRadius.BottomRight), CornerRadius.BottomRight, CornerRadius.BottomRight)); 88 new EllipseGeometry(new Point(Rect.Location.X + CornerRadius.BottomLeft, Rect.Location.Y + Rect.Height - CornerRadius.BottomLeft), CornerRadius.BottomLeft, CornerRadius.BottomLeft)); 93 StartPoint = new Point(Rect.Location.X + CornerRadius.TopLeft, Rect.Location.Y), 96 new LineSegment { Point = new Point(Rect.Location.X + Rect.Width - CornerRadius.TopRight, Rect.Location.Y) }, 97 new LineSegment { Point = new Point(Rect.Location.X + Rect.Width, Rect.Location.Y + CornerRadius.TopRight) }, 98 new LineSegment { Point = new Point(Rect.Location.X + Rect.Width, Rect.Location.Y + Rect.Height - CornerRadius.BottomRight) }, 99 new LineSegment { Point = new Point(Rect.Location.X + Rect.Width - CornerRadius.BottomRight, Rect.Location.Y + Rect.Height) }, 100 new LineSegment { Point = new Point(Rect.Location.X + CornerRadius.BottomLeft, Rect.Location.Y + Rect.Height) }, 101 new LineSegment { Point = new Point(Rect.Location.X, Rect.Location.Y + Rect.Height - CornerRadius.BottomLeft) }, 102 new LineSegment { Point = new Point(Rect.Location.X, Rect.Location.Y + CornerRadius.TopLeft) }
VisualElement\VisualElement.cs (1)
265 BindableProperty.Create("TransformOrigin", typeof(Point), typeof(VisualElement), new Point(.5d, .5d),
Microsoft.Maui.Controls.Compatibility (5)
iOS\EventTracker.cs (2)
115 var childGestures = view.GetChildElements(new Point(originPoint.X, originPoint.Y)); 333 var scaledPoint = new Point(originPoint.X / view.Width, originPoint.Y / view.Height);
iOS\Extensions\CompatibilityColorExtensions.cs (1)
44 return new Point(point.X, point.Y);
iOS\Renderers\SwipeViewRenderer.cs (2)
775 _swipeDirection = SwipeDirectionHelper.GetSwipeDirection(new Point(_initialPoint.X, _initialPoint.Y), new Point(point.X, point.Y));
Microsoft.Maui.Graphics (14)
LinearGradientPaint.cs (2)
7 StartPoint = new Point(0, 0); 8 EndPoint = new Point(1, 1);
PathF.cs (3)
1561 flattenedPoints.Add(new Point(vector.X, vector.Y)); 1575 flattenedPoints.Add(new Point(vectors[i].X, vectors[i].Y)); 1587 flattenedPoints.Add(new Point(vectors[3].X, vectors[3].Y));
Point.cs (4)
80 return new Point((double)Math.Round(X), (double)Math.Round(Y)); 92 return new Point(pt.X + sz.Width, pt.Y + sz.Height); 102 return new Point(pt.X - sz.Width, pt.Y - sz.Height); 139 point = new Point(x, y);
PointF.cs (1)
124 public static implicit operator Point(PointF p) => new Point(p.X, p.Y);
RadialGradientPaint.cs (1)
7 Center = new Point(0.5, 0.5);
Rect.cs (2)
168 get => new Point(X, Y); 176 public Point Center => new Point(X + Width / 2, Y + Height / 2);
Size.cs (1)
73 return new Point(size.Width, size.Height);