18 instantiations of RectF
Microsoft.Maui (1)
Animations\AnimationLerpingExtensions.cs (1)
27 => new RectF(start.Location.Lerp(end.Location, progress), start.Size.Lerp(end.Size, progress));
Microsoft.Maui.Controls (2)
Platform\AlertManager\AlertManager.iOS.cs (2)
113 alert.View.Frame = new RectF((float)oldFrame.X, (float)oldFrame.Y, (float)oldFrame.Width, (float)oldFrame.Height - AlertPadding * 2); 142 alert.View.Frame = new RectF((float)oldFrame.X, (float)oldFrame.Y, (float)oldFrame.Width, (float)oldFrame.Height - AlertPadding * 2);
Microsoft.Maui.Controls.Compatibility (1)
iOS\VisualElementTracker.cs (1)
263 var target = new RectF(x, y, width, height);
Microsoft.Maui.Graphics (12)
CanvasExtensions.cs (3)
250 var rectangle = new RectF(x, y, width, height); 380 target.SetFillPaint(paint, new RectF((float)point1.X, (float)point1.Y, (float)point2.X, (float)point2.Y)); 385 target.SetFillPaint(paint, new RectF(point1.X, point1.Y, point2.X, point2.Y));
PathF.cs (1)
1449 _cachedBounds = new RectF(l, t, r - l, b - t);
PictureExtensions.cs (1)
9 return new RectF(target.X, target.Y, target.Width, target.Height);
Rect.cs (1)
220 public static implicit operator RectF(Rect rect) => new RectF((float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.Height);
RectF.cs (5)
20 public static RectF Zero = new RectF(); 43 return new RectF(left, top, right - left, bottom - top); 127 return new RectF(x, y, width, height); 210 return new RectF(MathF.Round(X), MathF.Round(Y), MathF.Round(Width), MathF.Round(Height)); 234 rectangleF = new RectF(x, y, w, h);
ScalingCanvas.cs (1)
205 _canvas.SetFillPaint(paint, new RectF(rectangle.X * _scaleX, rectangle.Y * _scaleY, rectangle.Width * _scaleX, rectangle.Height * _scaleY));
Microsoft.Maui.Graphics.Skia (2)
SKGraphicsExtensions.cs (1)
71 return new RectF(target.Left, target.Top, MathF.Abs(target.Right - target.Left), MathF.Abs(target.Bottom - target.Top));
SkiaCanvas.cs (1)
659 var rect = new RectF(x, y, width, height);
105 references to RectF
Microsoft.Maui (16)
Animations\AnimationLerpingExtensions.cs (3)
26 public static RectF Lerp(this RectF start, RectF end, double progress)
Animations\Lerp.cs (5)
89 [typeof(RectF)] = new Lerp 94 var start = (RectF)s; 95 var end = (RectF)e;
Graphics\RectangleExtensions.cs (1)
27 public static bool ContainsAny(this RectF rect, PointF[] points)
Graphics\ShapeDrawable.cs (4)
52 public void Draw(ICanvas canvas, RectF dirtyRect) 54 var rect = dirtyRect; 72 void DrawStrokePath(ICanvas canvas, RectF dirtyRect, PathF path) 115 void DrawFillPath(ICanvas canvas, RectF dirtyRect, PathF path)
VisualDiagnostics\RectangleAdorner.cs (1)
70 public virtual void Draw(ICanvas canvas, RectF dirtyRect)
VisualDiagnostics\RectangleGridAdorner.cs (1)
25 public override void Draw(ICanvas canvas, RectF dirtyRect)
WindowOverlay\WindowOverlay.cs (1)
80 public void Draw(ICanvas canvas, RectF dirtyRect)
Microsoft.Maui.Controls (2)
Shapes\Shape.cs (2)
281 RectF pathBounds = path.GetBoundsByFlattening(1); 385 RectF pathBounds = this.GetPath().GetBoundsByFlattening(1);
Microsoft.Maui.Controls.Compatibility (1)
iOS\VisualElementTracker.cs (1)
263 var target = new RectF(x, y, width, height);
Microsoft.Maui.Graphics (76)
AbstractCanvas.cs (1)
230 public abstract void SetFillPaint(Paint paint, RectF rectangle);
CanvasExtensions.cs (18)
15 public static void DrawRectangle(this ICanvas target, RectF rect) 25 public static void FillRectangle(this ICanvas target, RectF rect) 35 public static void DrawRoundedRectangle(this ICanvas target, RectF rect, float cornerRadius) 54 public static void DrawRoundedRectangle(this ICanvas target, RectF rect, float topLeftCornerRadius, float topRightCornerRadius, float bottomLeftCornerRadius, float bottomRightCornerRadius) 61 public static void DrawRoundedRectangle(this ICanvas target, RectF rect, float xRadius, float yRadius) 73 public static void FillRoundedRectangle(this ICanvas target, RectF rect, float cornerRadius) 92 public static void FillRoundedRectangle(this ICanvas target, RectF rect, float topLeftCornerRadius, float topRightCornerRadius, float bottomLeftCornerRadius, float bottomRightCornerRadius) 99 public static void FillRoundedRectangle(this ICanvas target, RectF rect, float xRadius, float yRadius) 111 public static void DrawEllipse(this ICanvas target, RectF rect) 121 public static void FillEllipse(this ICanvas target, RectF rect) 151 public static void ClipRectangle(this ICanvas target, RectF rect) 171 RectF bounds, 250 var rectangle = new RectF(x, y, width, height); 265 public static void DrawArc(this ICanvas canvas, RectF bounds, float startAngle, float endAngle, bool clockwise, bool closed) 295 public static void FillArc(this ICanvas canvas, RectF bounds, float startAngle, float endAngle, bool clockwise) 359 target.SetFillPaint(paint, RectF.Zero); 373 public static void SubtractFromClip(this ICanvas target, RectF rect) 393 public static void SetFillPaint(this ICanvas target, Paint paint, RectF rectangle)
Converters\RectFTypeConverter.cs (4)
25 if (RectF.TryParse(value?.ToString(), out var r)) 28 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", value, typeof(RectF))); 33 if (!(value is RectF r))
Converters\RectTypeConverter.cs (3)
15 || destinationType == typeof(RectF) 37 if (destinationType == typeof(RectF)) 38 return (RectF)r;
ICanvas.cs (1)
328 public void SetFillPaint(Paint paint, RectF rectangle);
IDrawable.cs (1)
5 void Draw(ICanvas canvas, RectF dirtyRect);
ImageExtensions.cs (1)
69 canvas.SetFillPaint(paint, RectF.Zero);
PathF.cs (12)
20 private RectF? _cachedBounds; 1031 public void AppendEllipse(RectF rect) 1079 public void AppendRectangle(RectF rect, bool includeLast = false) 1104 public void AppendRoundedRectangle(RectF rect, float cornerRadius, bool includeLast = false) 1138 public void AppendRoundedRectangle(RectF rect, float topLeftCornerRadius, float topRightCornerRadius, float bottomLeftCornerRadius, float bottomRightCornerRadius, bool includeLast = false) 1143 public void AppendRoundedRectangle(RectF rect, float xCornerRadius, float yCornerRadius) 1392 public RectF Bounds 1397 return (RectF)_cachedBounds; 1411 return (RectF)_cachedBounds; 1415 public RectF GetBoundsByFlattening(float flatness = 0.001f) 1418 return (RectF)_cachedBounds; 1450 return (RectF)_cachedBounds;
PictureCanvas.cs (1)
259 public void SetFillPaint(Paint paint, RectF rectangle)
PictureExtensions.cs (1)
5 public static RectF GetBounds(this IPicture target)
PlatformImage.cs (1)
172 public void Draw(ICanvas canvas, RectF dirtyRect)
Rect.cs (1)
220 public static implicit operator RectF(Rect rect) => new RectF((float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.Height);
RectF.cs (30)
20 public static RectF Zero = new RectF(); 41 public static RectF FromLTRB(float left, float top, float right, float bottom) 46 public bool Equals(RectF other) 55 return obj is RectF && Equals((RectF)obj); 70 public static bool operator ==(RectF r1, RectF r2) 75 public static bool operator !=(RectF r1, RectF r2) 81 public bool Contains(RectF rect) 96 public bool IntersectsWith(RectF r) 101 public RectF Union(RectF r) 106 public static RectF Union(RectF r1, RectF r2) 111 public RectF Intersect(RectF r) 116 public static RectF Intersect(RectF r1, RectF r2) 180 public RectF Inflate(SizeF sz) 185 public RectF Inflate(float width, float height) 187 RectF r = this; 195 public RectF Offset(float dx, float dy) 197 RectF r = this; 203 public RectF Offset(PointF dr) 208 public RectF Round() 221 public static implicit operator Rect(RectF rect) => new Rect(rect.X, rect.Y, rect.Width, rect.Height); 223 public static bool TryParse(string value, out RectF rectangleF)
ScalingCanvas.cs (1)
203 public void SetFillPaint(Paint paint, RectF rectangle)
Microsoft.Maui.Graphics.Skia (7)
SKGraphicsExtensions.cs (2)
64 public static SKRect AsSKRect(this RectF target) 69 public static RectF AsRectangleF(this SKRect target)
SkiaCanvas.cs (2)
224 public override void SetFillPaint(Paint paint, RectF rectangle) 659 var rect = new RectF(x, y, width, height);
SkiaImage.cs (1)
147 public void Draw(ICanvas canvas, RectF dirtyRect)
SkiaTextLayout.cs (2)
10 private readonly RectF _rect; 23 RectF rect,
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (3)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvas.cs (1)
377 public override void SetFillPaint(Paint paint, RectF rectangle)
src\Graphics\src\Graphics\Platforms\Windows\PlatformGraphicsView.cs (1)
30 private RectF _dirty;
src\Graphics\src\Graphics\Platforms\Windows\PlatformImage.cs (1)
138 public void Draw(ICanvas canvas, RectF dirtyRect)