6 writes to X
Microsoft.Maui.Graphics (5)
RectF.cs (5)
31 X = x; 152 set => X = value; 172 X = value.X; 188 r.X -= width; 198 r.X += dx;
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (1)
src\Graphics\src\Graphics\Platforms\Windows\PlatformGraphicsView.cs (1)
82 _dirty.X = 0f;
46 references to X
Microsoft.Maui.Controls (2)
Shapes\Shape.cs (2)
298 (float)(pathBounds.X + viewBounds.Left - pathBounds.Left), 403 result.Width += pathBounds.X;
Microsoft.Maui.Graphics (37)
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 (8)
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); 1148 float minX = Math.Min(rect.X, rect.X + rect.Width); 1150 float maxX = Math.Max(rect.X, rect.X + rect.Width);
RectF.cs (16)
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); 62 int hashCode = X.GetHashCode(); 83 return X <= rect.X && Right >= rect.Right && Y <= rect.Y && Bottom >= rect.Bottom; 118 float x = Math.Max(r1.X, r2.X); 145 get => X + Width; 146 set => Width = value - X; 151 get => X; 169 get => new PointF(X, Y); 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)); 215 x = X; 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 (4)
SkiaCanvas.cs (3)
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;
SkiaTextLayout.cs (1)
57 var x = _rect.X;
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (3)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvas.cs (3)
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;