18 instantiations of SizeF
Microsoft.Maui (1)
Animations\AnimationLerpingExtensions.cs (1)
21 new SizeF(start.Width.Lerp(end.Width, progress), start.Height.Lerp(end.Height, progress));
Microsoft.Maui.Controls (1)
Compatibility\iOS\Extensions\UIViewExtensions.cs (1)
46 var s = self.SizeThatFits(new SizeF((float)widthConstraint, (float)heightConstraint));
Microsoft.Maui.Graphics (10)
CanvasDefaults.cs (1)
6 public static readonly SizeF DefaultShadowOffset = new SizeF(5, 5);
PointF.cs (2)
86 return new SizeF(pt.X, pt.Y); 96 return new SizeF(ptA.X - ptB.X, ptA.Y - ptB.Y);
RectF.cs (1)
159 get => new SizeF(Width, Height);
Size.cs (1)
106 public static implicit operator SizeF(Size s) => new SizeF((float)s.Width, (float)s.Height);
SizeF.cs (5)
48 return new SizeF(s1.Width + s2.Width, s1.Height + s2.Height); 53 return new SizeF(s1.Width - s2.Width, s1.Height - s2.Height); 58 return new SizeF(s1.Width * value, s1.Height * value); 63 return new SizeF(s1.Width / value, s1.Height / value); 88 return new SizeF(size.X, size.Y);
Microsoft.Maui.Graphics.Skia (5)
SKGraphicsExtensions.cs (1)
344 return new SizeF(target.Width, target.Height);
SkiaStringSizeService.cs (4)
10 return new SizeF(); 19 return new SizeF(width, fontSize); 25 return new SizeF(); 34 return new SizeF(width, fontSize);
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (1)
src\Graphics\src\Graphics\Platforms\Windows\PlatformStringSizeService.cs (1)
54 return new SizeF((float)textLayout.DrawBounds.Width, (float)textLayout.DrawBounds.Height);
78 references to SizeF
Microsoft.Maui (8)
Animations\AnimationLerpingExtensions.cs (3)
20 public static SizeF Lerp(this SizeF start, SizeF end, double progress) =>
Animations\Lerp.cs (5)
129 [typeof(SizeF)] = new Lerp 134 var start = (SizeF)s; 135 var end = (SizeF)e;
Microsoft.Maui.Controls (1)
Shapes\Shape.cs (1)
386 SizeF boundsByFlattening = pathBounds.Size;
Microsoft.Maui.Graphics (59)
AbstractCanvas.cs (3)
229 public abstract void SetShadow(SizeF offset, float blur, Color color); 317 public SizeF GetStringSize(string value, IFont font, float fontSize) => 320 public SizeF GetStringSize(string aString, IFont font, float aFontSize, HorizontalAlignment aHorizontalAlignment, VerticalAlignment aVerticalAlignment) =>
CanvasDefaults.cs (1)
6 public static readonly SizeF DefaultShadowOffset = new SizeF(5, 5);
Converters\SizeFTypeConverter.cs (4)
24 if (SizeF.TryParse(value?.ToString(), out var s)) 27 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", value, typeof(SizeF))); 32 if (!(value is SizeF size))
Converters\SizeTypeConverter.cs (3)
15 || destinationType == typeof(SizeF) 35 if (destinationType == typeof(SizeF)) 36 return (SizeF)size;
ICanvas.cs (3)
321 public void SetShadow(SizeF offset, float blur, Color color); 347 public SizeF GetStringSize(string value, IFont font, float fontSize); 358 public SizeF GetStringSize(string value, IFont font, float fontSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment);
IStringSizeService.cs (2)
5 SizeF GetStringSize(string value, IFont font, float fontSize); 7 SizeF GetStringSize(string value, IFont font, float fontSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment);
PictureCanvas.cs (3)
249 public void SetShadow(SizeF offset, float blur, Color color) 264 public SizeF GetStringSize(string value, IFont font, float fontSize) 269 public SizeF GetStringSize(string value, IFont font, float fontSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment)
Point.cs (3)
36 public Point(SizeF sz) : this() 90 public static Point operator +(Point pt, SizeF sz) 100 public static Point operator -(Point pt, SizeF sz)
PointF.cs (5)
30 public PointF(SizeF sz) : this() 84 public static explicit operator SizeF(PointF pt) 89 public static PointF operator +(PointF pt, SizeF sz) 94 public static SizeF operator -(PointF ptA, PointF ptB) 99 public static PointF operator -(PointF pt, SizeF sz)
RectF.cs (3)
37 public RectF(PointF loc, SizeF sz) : this(loc.X, loc.Y, sz.Width, sz.Height) 157 public SizeF Size 180 public RectF Inflate(SizeF sz)
ScalingCanvas.cs (3)
271 public void SetShadow(SizeF offset, float blur, Color color) 281 public SizeF GetStringSize(string value, IFont font, float fontSize) 284 public SizeF GetStringSize(string value, IFont font, float fontSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment)
Size.cs (1)
106 public static implicit operator SizeF(Size s) => new SizeF((float)s.Width, (float)s.Height);
SizeF.cs (25)
13 public static readonly SizeF Zero; 41 public SizeF TransformNormalBy(in Matrix3x2 transform) 43 return (SizeF)Vector2.TransformNormal((Vector2)this, transform); 46 public static SizeF operator +(SizeF s1, SizeF s2) 51 public static SizeF operator -(SizeF s1, SizeF s2) 56 public static SizeF operator *(SizeF s1, float value) 61 public static SizeF operator /(SizeF s1, float value) 66 public static bool operator ==(SizeF s1, SizeF s2) 71 public static bool operator !=(SizeF s1, SizeF s2) 76 public static explicit operator PointF(SizeF size) 81 public static explicit operator Vector2(SizeF size) 86 public static explicit operator SizeF(Vector2 size) 91 public bool Equals(SizeF other) 100 return obj is SizeF && Equals((SizeF)obj); 122 public static implicit operator Size(SizeF s) => new Size(s.Width, s.Height); 124 public static bool TryParse(string value, out SizeF sizeF)
Microsoft.Maui.Graphics.Skia (6)
SKGraphicsExtensions.cs (2)
342 public static SizeF AsSize(this SKSize target) 347 public static SKSize AsSizeF(this SizeF target)
SkiaCanvas.cs (2)
722 SizeF offset, 726 var actualOffset = offset;
SkiaStringSizeService.cs (2)
7 public SizeF GetStringSize(string value, IFont font, float fontSize) 22 public SizeF GetStringSize(string value, IFont font, float fontSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (4)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvas.cs (1)
372 public override void SetShadow(SizeF offset, float blur, Color color)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvasState.cs (1)
400 public void SetShadow(SizeF offset, float blur, Color color)
src\Graphics\src\Graphics\Platforms\Windows\PlatformStringSizeService.cs (2)
22 public SizeF GetStringSize(string value, IFont font, float textSize) 25 public SizeF GetStringSize(string value, IFont font, float textSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment)