109 instantiations of 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 (85)
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 (2)
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\EllipseGeometry.cs (1)
26
BindableProperty.Create(nameof(Center), typeof(Point), typeof(EllipseGeometry), new
Point
());
Shapes\GeometryHelper.cs (16)
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);
305
vectRotated = new
Point
();
311
Point center = new
Point
(
352
Point pt = matx.Transform(new
Point
(x, y));
Shapes\LineGeometry.cs (2)
25
BindableProperty.Create(nameof(StartPoint), typeof(Point), typeof(LineGeometry), new
Point
());
29
BindableProperty.Create(nameof(EndPoint), typeof(Point), typeof(LineGeometry), new
Point
());
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 (16)
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 (6)
17
public static Point Zero = new
Point
();
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);
128
public static implicit operator Point(Vector2 v) => new
Point
(v);
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);
293 references to Point
Microsoft.Maui (31)
Animations\AnimationLerpingExtensions.cs (3)
32
public static
Point
Lerp(this
Point
start,
Point
end, double progress) =>
Animations\Lerp.cs (5)
119
[typeof(
Point
)] = new Lerp
124
var
start = (
Point
)s;
125
var
end = (
Point
)e;
Core\Extensions\VisualTreeElementExtensions.cs (2)
120
/// <param name="point"><see cref="
Point
"/>.</param>
122
public static IReadOnlyList<IVisualTreeElement> GetVisualTreeElements(this IVisualTreeElement visualElement,
Point
point)
Core\IShadow.cs (1)
29
Point
Offset { get; }
Core\IVisualDiagnosticsOverlay.cs (1)
24
Point
Offset { get; }
Core\IWindowOverlayElement.cs (1)
15
bool Contains(
Point
point);
Core\WindowOverlayTappedEventArgs.cs (2)
9
public WindowOverlayTappedEventArgs(
Point
point, IList<IVisualTreeElement> elements, IList<IWindowOverlayElement> overlayElements)
20
public
Point
Point { get; }
Graphics\RectangleExtensions.cs (2)
21
public static bool Contains(this Rect rect,
Point
point) =>
25
public static bool ContainsAny(this Rect rect,
Point
[] points)
Primitives\SwipeDirection.cs (2)
23
public static SwipeDirection GetSwipeDirection(
Point
initialPoint,
Point
endPoint)
VisualDiagnostics\AdornerModel.cs (5)
120
public static
Point
RoundToPixel(
Point
point, double unitsPerPixel)
122
Point
pixelPoint = new Point(
149
public static bool AreClose(
Point
point1,
Point
point2)
VisualDiagnostics\RectangleAdorner.cs (4)
24
public RectangleAdorner(IView view, float density = 1,
Point
? offset = null, Color? fillColor = null, Color? strokeColor = null)
28
Offset = offset ??
Point
.Zero;
46
public
Point
Offset { get; }
55
public virtual bool Contains(
Point
point)
VisualDiagnostics\RectangleGridAdorner.cs (1)
20
public RectangleGridAdorner(IView view, float density = 1,
Point
? offset = null, Color? fillColor = null, Color? strokeColor = null)
VisualDiagnostics\VisualDiagnosticsOverlay.cs (1)
47
public
Point
Offset { get; internal set; }
WindowOverlay\WindowOverlay.cs (1)
132
void OnTappedInternal(
Point
point)
Microsoft.Maui.Controls (191)
Brush\Brush.cs (6)
33
var
startPoint = linearGradientPaint.StartPoint;
34
var
endPoint = linearGradientPaint.EndPoint;
41
var
center = radialGradientPaint.Center;
73
var
startPoint = linearGradientBrush.StartPoint;
74
var
endPoint = linearGradientBrush.EndPoint;
81
var
center = radialGradientBrush.Center;
Brush\BrushTypeConverter.cs (13)
202
var
center = GetGradientCenter();
229
var
startPoint = coordinates.Item1;
230
var
endPoint = coordinates.Item2;
240
void CreateRadialGradient(
Point
center)
271
Tuple<
Point
,
Point
> GetCoordinatesByAngle(double angle)
273
Point
startPoint;
274
Point
endPoint;
297
return new Tuple<
Point
,
Point
>(startPoint, endPoint);
318
Point
GetGradientCenter()
340
var
position = new Point(0.5, 0.5);
355
Point
GetGradientPositionByDirection(string direction)
CompressedLayout.cs (5)
34
BindableProperty.CreateReadOnly("HeadlessOffset", typeof(
Point
), typeof(CompressedLayout), default(
Point
));
42
public static
Point
GetHeadlessOffset(BindableObject bindable)
43
=> (
Point
)bindable.GetValue(HeadlessOffsetProperty);
45
internal static void SetHeadlessOffset(BindableObject bindable,
Point
value)
DragAndDrop\DragEventArgs.cs (3)
11
Func<IElement?,
Point
?>? _getPosition;
28
internal DragEventArgs(DataPackage dataPackage, Func<IElement?,
Point
?>? getPosition, PlatformDragEventArgs platformArgs)
56
public virtual
Point
? GetPosition(Element? relativeTo) =>
DragAndDrop\DragGestureRecognizer.cs (1)
111
internal DragStartingEventArgs SendDragStarting(View element, Func<IElement?,
Point
?>? getPosition = null, PlatformDragStartingEventArgs? platformArgs = null)
DragAndDrop\DragStartingEventArgs.cs (3)
12
Func<IElement?,
Point
?>? _getPosition;
26
internal DragStartingEventArgs(Func<IElement?,
Point
?>? getPosition, PlatformDragStartingEventArgs? platformArgs)
60
public virtual
Point
? GetPosition(Element? relativeTo) =>
DragAndDrop\DropEventArgs.cs (3)
11
Func<IElement?,
Point
?>? _getPosition;
29
internal DropEventArgs(DataPackageView? view, Func<IElement?,
Point
?>? getPosition, PlatformDropEventArgs platformArgs)
59
public virtual
Point
? GetPosition(Element? relativeTo) =>
Foldable\IFoldableService.cs (1)
18
Point
? GetLocationOnScreen(VisualElement visualElement);
IGestureController.cs (1)
9
IList<GestureElement> GetChildElements(
Point
point);
IPinchGestureController.cs (2)
10
void SendPinch(Element sender, double scale,
Point
currentScalePoint);
16
void SendPinchStarted(Element sender,
Point
intialScalePoint); //TODO: intial should be initial, but this is a breaking ABI change. Consider changing for .NET 8
IScrollViewController.cs (1)
9
Point
GetScrollPositionForElement(VisualElement item, ScrollToPosition position);
Label\Label.cs (1)
389
public override IList<GestureElement> GetChildElements(
Point
point)
LegacyLayouts\AbsoluteLayout.cs (2)
308
void Add(View view,
Point
position);
327
public void Add(View view,
Point
position)
LegacyLayouts\Layout.cs (1)
464
var
headlessOffset = CompressedLayout.GetHeadlessOffset(this);
LinearGradientBrush.cs (8)
22
public LinearGradientBrush(GradientStopCollection gradientStops,
Point
startPoint,
Point
endPoint)
33
nameof(StartPoint), typeof(
Point
), typeof(LinearGradientBrush), new Point(0, 0));
36
public
Point
StartPoint
38
get => (
Point
)GetValue(StartPointProperty);
44
nameof(EndPoint), typeof(
Point
), typeof(LinearGradientBrush), new Point(1, 1));
47
public
Point
EndPoint
49
get => (
Point
)GetValue(EndPointProperty);
PinchGestureRecognizer.cs (2)
14
void IPinchGestureController.SendPinch(Element sender, double delta,
Point
currentScalePoint)
47
void IPinchGestureController.SendPinchStarted(Element sender,
Point
initialScalePoint)
PinchGestureUpdatedEventArgs.cs (2)
11
public PinchGestureUpdatedEventArgs(GestureStatus status, double scale,
Point
origin) : this(status)
27
public
Point
ScaleOrigin { get; }
Platform\GestureManager\GesturePlatformManager.iOS.cs (3)
178
static
Point
? CalculatePosition(IElement? element, CGPoint originPoint, WeakReference? weakPlatformRecognizer, WeakReference weakEventTracker)
206
var
location = uiView.GetLocationOnScreen();
284
var
scaledPoint = new Point(originPoint.X / view.Width, originPoint.Y / view.Height);
Platform\iOS\DragAndDropDelegate.cs (1)
314
static internal
Point
? CalculatePosition(IElement relativeTo, WeakReference viewHandlerRef, WeakReference sessionRef)
Platform\iOS\Extensions\BrushExtensions.cs (4)
60
var
p1 = linearGradientBrush.StartPoint;
61
var
p2 = linearGradientBrush.EndPoint;
85
var
center = radialGradientBrush.Center;
185
static CGPoint GetRadialGradientBrushEndPoint(
Point
startPoint, double radius)
PointCollection.cs (3)
9
public sealed class PointCollection : ObservableCollection<
Point
>
15
public PointCollection(
Point
[] p)
20
public static implicit operator PointCollection(
Point
[] d)
PointerEventArgs.cs (3)
12
Func<IElement?,
Point
?>? _getPosition;
26
internal PointerEventArgs(Func<IElement?,
Point
?>? getPosition, PlatformPointerEventArgs? args = null)
40
public virtual
Point
? GetPosition(Element? relativeTo) =>
PointerGestureRecognizer.cs (5)
189
internal void SendPointerEntered(View sender, Func<IElement?,
Point
?>? getPosition, PlatformPointerEventArgs? platformArgs = null)
202
internal void SendPointerExited(View sender, Func<IElement?,
Point
?>? getPosition, PlatformPointerEventArgs? platformArgs = null)
215
internal void SendPointerMoved(View sender, Func<IElement?,
Point
?>? getPosition, PlatformPointerEventArgs? platformArgs = null)
228
internal void SendPointerPressed(View sender, Func<IElement?,
Point
?>? getPosition, PlatformPointerEventArgs? platformArgs = null)
241
internal void SendPointerReleased(View sender, Func<IElement?,
Point
?>? getPosition, PlatformPointerEventArgs? platformArgs = null)
RadialGradientBrush.cs (4)
29
public RadialGradientBrush(GradientStopCollection gradientStops,
Point
center, double radius)
40
nameof(Center), typeof(
Point
), typeof(RadialGradientBrush), new Point(0.5, 0.5));
43
public
Point
Center
45
get => (
Point
)GetValue(CenterProperty);
Region.cs (1)
64
public bool Contains(
Point
pt)
ScrollView\ScrollView.cs (2)
53
public
Point
GetScrollPositionForElement(VisualElement item, ScrollToPosition pos)
384
var
point = GetScrollPositionForElement(visualElement, args.Position);
Shadow.cs (3)
18
public static readonly BindableProperty OffsetProperty = BindableProperty.Create(nameof(Offset), typeof(
Point
), typeof(Shadow), null);
40
public
Point
Offset
42
get { return (
Point
)GetValue(OffsetProperty); }
Shapes\ArcSegment.cs (4)
17
public ArcSegment(
Point
point, Size size, double rotationAngle, SweepDirection sweepDirection, bool isLargeArc)
28
BindableProperty.Create(nameof(Point), typeof(
Point
), typeof(ArcSegment), new Point(0, 0));
47
public
Point
Point
50
get { return (
Point
)GetValue(PointProperty); }
Shapes\BezierSegment.cs (12)
16
public BezierSegment(
Point
point1,
Point
point2,
Point
point3)
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));
36
public
Point
Point1
39
get { return (
Point
)GetValue(Point1Property); }
43
public
Point
Point2
46
get { return (
Point
)GetValue(Point2Property); }
50
public
Point
Point3
53
get { return (
Point
)GetValue(Point3Property); }
Shapes\EllipseGeometry.cs (4)
17
public EllipseGeometry(
Point
center, double radiusX, double radiusY)
26
BindableProperty.Create(nameof(Center), typeof(
Point
), typeof(EllipseGeometry), new Point());
37
public
Point
Center
40
get { return (
Point
)GetValue(CenterProperty); }
Shapes\GeometryHelper.cs (35)
27
var points = new List<
Point
>();
78
Point
pt = matx.Transform(new Point(x, y));
103
Point
ptLast = figDst.StartPoint;
119
foreach (
Point
pt in polySegSrc.Points)
128
Point
pt0 = ptLast;
129
Point
pt1 = matx.Transform(bezSeg.Point1);
130
Point
pt2 = matx.Transform(bezSeg.Point2);
131
Point
pt3 = matx.Transform(bezSeg.Point3);
150
Point
pt0 = ptLast;
151
Point
pt1 = matx.Transform(polyBezSeg.Points[bez]);
152
Point
pt2 = matx.Transform(polyBezSeg.Points[bez + 1]);
153
Point
pt3 = matx.Transform(polyBezSeg.Points[bez + 2]);
167
Point
pt0 = ptLast;
168
Point
pt1 = matx.Transform(quadBezSeg.Point1);
169
Point
pt2 = matx.Transform(quadBezSeg.Point2);
188
Point
pt0 = ptLast;
189
Point
pt1 = matx.Transform(polyQuadBezSeg.Points[bez]);
190
Point
pt2 = matx.Transform(polyQuadBezSeg.Points[bez + 1]);
232
public static void FlattenCubicBezier(List<
Point
> points,
Point
ptStart,
Point
ptCtrl1,
Point
ptCtrl2,
Point
ptEnd, double tolerance)
255
public static void FlattenQuadraticBezier(List<
Point
> points,
Point
ptStart,
Point
ptCtrl,
Point
ptEnd, double tolerance)
277
public static void FlattenArc(List<
Point
> points,
Point
pt1,
Point
pt2, double radiusX, double radiusY, double angleRotation,
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);
294
Point
vectRotated;
311
Point
center = new Point(
352
Point
pt = matx.Transform(new Point(x, y));
Shapes\LineGeometry.cs (8)
17
public LineGeometry(
Point
startPoint,
Point
endPoint)
25
BindableProperty.Create(nameof(StartPoint), typeof(
Point
), typeof(LineGeometry), new Point());
29
BindableProperty.Create(nameof(EndPoint), typeof(
Point
), typeof(LineGeometry), new Point());
32
public
Point
StartPoint
35
get { return (
Point
)GetValue(StartPointProperty); }
39
public
Point
EndPoint
42
get { return (
Point
)GetValue(EndPointProperty); }
Shapes\LineSegment.cs (4)
16
public LineSegment(
Point
point)
23
BindableProperty.Create(nameof(Point), typeof(
Point
), typeof(LineSegment), new Point(0, 0));
26
public
Point
Point
29
get { return (
Point
)GetValue(PointProperty); }
Shapes\Matrix.cs (9)
200
public
Point
Transform(
Point
point)
202
Point
newPoint = point;
213
public void Transform(
Point
[] points)
219
var
point = points[i];
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 (3)
31
BindableProperty.Create(nameof(StartPoint), typeof(
Point
), typeof(PathFigure), new Point(0, 0));
49
public
Point
StartPoint
52
get { return (
Point
)GetValue(StartPointProperty); }
Shapes\PathFigureCollectionConverter.cs (6)
41
Point
lastStart = default;
42
Point
lastPoint = default;
43
Point
secondLastPoint = default;
196
Point
p;
330
Point
Reflect()
435
Point
ReadPoint(char cmd, bool allowcomma)
Shapes\PathGeometry.cs (3)
99
List<
Point
> points = new List<
Point
>();
129
foreach (
var
p in polyLineSegment.Points)
Shapes\PointCollectionConverter.cs (2)
15
=> sourceType == typeof(string) || sourceType == typeof(
Point
[]);
22
if (value is
Point
[] pointArray)
Shapes\QuadraticBezierSegment.cs (8)
16
public QuadraticBezierSegment(
Point
point1,
Point
point2)
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));
31
public
Point
Point1
34
get { return (
Point
)GetValue(Point1Property); }
38
public
Point
Point2
41
get { return (
Point
)GetValue(Point2Property); }
Shapes\StrokeShapeTypeConverter.cs (2)
52
Point
p1 = points[0];
57
Point
p2 = points[1];
TapGestureRecognizer.cs (1)
56
internal void SendTapped(View sender, Func<IElement?,
Point
?>? getPosition = null)
TappedEventArgs.cs (3)
9
Func<IElement?,
Point
?>? _getPosition;
17
internal TappedEventArgs(object? parameter, Func<IElement?,
Point
?>? getPosition) : this(parameter)
27
public virtual
Point
? GetPosition(Element? relativeTo) =>
View\View.cs (1)
216
public virtual IList<GestureElement> GetChildElements(
Point
point)
VisualElement\VisualElement.cs (2)
265
BindableProperty.Create("TransformOrigin", typeof(
Point
), typeof(VisualElement), new Point(.5d, .5d),
266
propertyChanged: (b, o, n) => { (((VisualElement)b).AnchorX, ((VisualElement)b).AnchorY) = (
Point
)n; });
Microsoft.Maui.Controls.Build.Tasks (6)
CompiledConverters\PointTypeConverter.cs (4)
15
if (!string.IsNullOrEmpty(value) &&
Point
.TryParse(value.Trim(), out
var
point))
23
throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(
Point
));
26
public IEnumerable<Instruction> CreatePoint(ILContext context, ModuleDefinition module,
Point
point)
CompiledConverters\StrokeShapeTypeConverter.cs (2)
49
var
p1 = points[0];
65
var
p2 = points[1];
Microsoft.Maui.Controls.Compatibility (13)
iOS\EventTracker.cs (1)
333
var
scaledPoint = new Point(originPoint.X / view.Width, originPoint.Y / view.Height);
iOS\Extensions\CompatibilityColorExtensions.cs (2)
42
public static
Point
ToPoint(this PointF point)
47
public static PointF ToPointF(this
Point
point)
iOS\Extensions\GeometryExtensions.cs (7)
75
Point
lastPoint = pathFigure.StartPoint;
96
lastPoint = points.Count > 0 ? points[points.Count - 1] :
Point
.Zero;
130
lastPoint = points.Count > 0 ? points[points.Count - 1] :
Point
.Zero;
166
lastPoint = points.Count > 0 ? points[points.Count - 1] :
Point
.Zero;
173
List<
Point
> points = new List<
Point
>();
193
lastPoint = points.Count > 0 ? points[points.Count - 1] :
Point
.Zero;
iOS\Extensions\PointCollectionExtensions.cs (2)
21
Point
[] array = new
Point
[pointCollection.Count];
iOS\Renderers\ScrollViewRenderer.cs (1)
280
var
positionOnScroll = ScrollView.GetScrollPositionForElement(e.Element as VisualElement, e.Position);
Microsoft.Maui.Controls.Foldable (3)
NoPlatformFoldableService.cs (1)
56
public
Point
? GetLocationOnScreen(VisualElement visualElement)
TwoPaneViewLayoutGuide.cs (2)
153
containerArea = new Rect(
Point
.Zero, DualScreenService.ScaledScreenSize);
168
containerArea = new Rect(
Point
.Zero, DualScreenService.ScaledScreenSize);
Microsoft.Maui.Graphics (49)
CanvasExtensions.cs (4)
189
public static void FillCircle(this ICanvas target,
Point
center, double radius)
216
public static void DrawCircle(this ICanvas target,
Point
center, double radius)
378
public static void SetFillPaint(this ICanvas target, Paint paint,
Point
point1,
Point
point2)
Converters\PointTypeConverter.cs (5)
29
return (
Point
)vec;
31
if (
Point
.TryParse(value?.ToString(), out
var
p))
34
throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", value, typeof(
Point
)));
39
if (!(value is
Point
p))
LinearGradientPaint.cs (6)
21
public LinearGradientPaint(
Point
startPoint,
Point
endPoint)
27
public LinearGradientPaint(PaintGradientStop[] gradientStops,
Point
startPoint,
Point
endPoint)
34
public
Point
StartPoint { get; set; }
36
public
Point
EndPoint { get; set; }
Point.cs (24)
17
public static
Point
Zero = new Point();
50
if (!(o is
Point
))
53
return this == (
Point
)o;
58
if (!(o is
Point
))
61
var
compareTo = (
Point
)o;
70
public
Point
Offset(double dx, double dy)
72
Point
p = this;
78
public
Point
Round()
85
public static explicit operator Size(
Point
pt)
90
public static
Point
operator +(
Point
pt, SizeF sz)
95
public static Size operator -(
Point
ptA,
Point
ptB)
100
public static
Point
operator -(
Point
pt, SizeF sz)
105
public static bool operator ==(
Point
ptA,
Point
ptB)
110
public static bool operator !=(
Point
ptA,
Point
ptB)
115
public double Distance(
Point
other)
126
public static implicit operator PointF(
Point
p) => new PointF((float)p.X, (float)p.Y);
128
public static implicit operator
Point
(Vector2 v) => new Point(v);
130
public static bool TryParse(string value, out
Point
point)
PointF.cs (1)
124
public static implicit operator
Point
(PointF p) => new Point(p.X, p.Y);
RadialGradientPaint.cs (3)
21
public RadialGradientPaint(
Point
center, double radius)
27
public RadialGradientPaint(PaintGradientStop[] gradientStops,
Point
center, double radius)
34
public
Point
Center { get; set; }
Rect.cs (5)
36
public Rect(
Point
loc, Size sz) : this(loc.X, loc.Y, sz.Width, sz.Height)
85
public bool Contains(
Point
pt)
166
public
Point
Location
176
public
Point
Center => new Point(X + Width / 2, Y + Height / 2);
202
public Rect Offset(
Point
dr)
Size.cs (1)
71
public static explicit operator
Point
(Size size)