5 writes to Width
Microsoft.Maui.Graphics (4)
RectF.cs (4)
33
Width
= width;
146
set =>
Width
= value - X;
162
Width
= value.Width;
190
r.
Width
+= width * 2;
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (1)
src\Graphics\src\Graphics\Platforms\Windows\PlatformGraphicsView.cs (1)
84
_dirty.
Width
= (float)sender.ActualWidth;
45 references to Width
Microsoft.Maui.Controls (2)
Shapes\Shape.cs (2)
310
float calculatedWidth = (float)(viewBounds.Width / pathBounds.
Width
);
336
(viewBounds.Width - minScale * pathBounds.
Width
) / 2),
Microsoft.Maui.Graphics (31)
CanvasExtensions.cs (11)
17
target.DrawRectangle(rect.X, rect.Y, rect.
Width
, rect.Height);
27
target.FillRectangle(rect.X, rect.Y, rect.
Width
, rect.Height);
37
target.DrawRoundedRectangle(rect.X, rect.Y, rect.
Width
, rect.Height, cornerRadius);
75
target.FillRoundedRectangle(rect.X, rect.Y, rect.
Width
, rect.Height, cornerRadius);
113
target.DrawEllipse(rect.X, rect.Y, rect.
Width
, rect.Height);
123
target.FillEllipse(rect.X, rect.Y, rect.
Width
, rect.Height);
153
target.ClipRectangle(rect.X, rect.Y, rect.
Width
, rect.Height);
177
target.DrawString(value, bounds.X, bounds.Y, bounds.
Width
, bounds.Height, horizontalAlignment, verticalAlignment, textFlow, lineSpacingAdjustment);
267
canvas.DrawArc(bounds.X, bounds.Y, bounds.
Width
, bounds.Height, startAngle, endAngle, clockwise, closed);
297
canvas.FillArc(bounds.X, bounds.Y, bounds.
Width
, bounds.Height, startAngle, endAngle, clockwise);
375
target.SubtractFromClip(rect.X, rect.Y, rect.
Width
, rect.Height);
Converters\RectFTypeConverter.cs (1)
46
return $"{r.X.ToString(CultureInfo.InvariantCulture)}, {r.Y.ToString(CultureInfo.InvariantCulture)}, {r.
Width
.ToString(CultureInfo.InvariantCulture)}, {r.Height.ToString(CultureInfo.InvariantCulture)}";
PathF.cs (7)
1033
AppendEllipse(rect.X, rect.Y, rect.
Width
, rect.Height);
1081
AppendRectangle(rect.X, rect.Y, rect.
Width
, rect.Height, includeLast);
1106
AppendRoundedRectangle(rect.X, rect.Y, rect.
Width
, rect.Height, cornerRadius, includeLast);
1140
AppendRoundedRectangle(rect.X, rect.Y, rect.
Width
, rect.Height, topLeftCornerRadius, topRightCornerRadius, bottomLeftCornerRadius, bottomRightCornerRadius, includeLast);
1145
xCornerRadius = Math.Min(xCornerRadius, rect.
Width
/ 2);
1148
float minX = Math.Min(rect.X, rect.X + rect.
Width
);
1150
float maxX = Math.Max(rect.X, rect.X + rect.
Width
);
RectF.cs (11)
24
return string.Format("{{X={0} Y={1} Width={2} Height={3}}}", X.ToString(CultureInfo.InvariantCulture), Y.ToString(CultureInfo.InvariantCulture),
Width
.ToString(CultureInfo.InvariantCulture),
48
return X.Equals(other.X) && Y.Equals(other.Y) &&
Width
.Equals(other.
Width
) && Height.Equals(other.Height);
64
hashCode = (hashCode * 397) ^
Width
.GetHashCode();
145
get => X +
Width
;
155
public bool IsEmpty => (
Width
<= 0) || (Height <= 0);
159
get => new SizeF(
Width
, Height);
177
public PointF Center => new PointF(X +
Width
/ 2, Y + Height / 2);
210
return new RectF(MathF.Round(X), MathF.Round(Y), MathF.Round(
Width
), MathF.Round(Height));
217
width =
Width
;
221
public static implicit operator Rect(RectF rect) => new Rect(rect.X, rect.Y, rect.
Width
, rect.Height);
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 (6)
SkiaCanvas.cs (4)
242
float x1 = (float)(linearGradientPaint.StartPoint.X * rectangle.
Width
) + rectangle.X;
245
float x2 = (float)(linearGradientPaint.EndPoint.X * rectangle.
Width
) + rectangle.X;
289
float centerX = (float)(radialGradientPaint.Center.X * rectangle.
Width
) + rectangle.X;
291
float radius = (float)radialGradientPaint.Radius * Math.Max(rectangle.Height, rectangle.
Width
);
SkiaImage.cs (1)
149
canvas.DrawImage(this, dirtyRect.Left, dirtyRect.Top, MathF.Round(dirtyRect.
Width
), MathF.Round(dirtyRect.Height));
SkiaTextLayout.cs (1)
59
var width = _rect.
Width
;
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (6)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvas.cs (4)
469
float x1 = (float)(linearGradientPaint.StartPoint.X * rectangle.
Width
) + rectangle.X;
472
float x2 = (float)(linearGradientPaint.EndPoint.X * rectangle.
Width
) + rectangle.X;
484
float centerX = (float)(radialGradientPaint.Center.X * rectangle.
Width
) + rectangle.X;
486
float radius = (float)radialGradientPaint.Radius * Math.Max(rectangle.Height, rectangle.
Width
);
src\Graphics\src\Graphics\Platforms\Windows\PlatformGraphicsView.cs (1)
89
_canvas.CanvasSize = new global::Windows.Foundation.Size(_dirty.
Width
, _dirty.Height);
src\Graphics\src\Graphics\Platforms\Windows\PlatformImage.cs (1)
140
canvas.DrawImage(this, dirtyRect.Left, dirtyRect.Top, Math.Abs(dirtyRect.
Width
), Math.Abs(dirtyRect.Height));