43 references to _rect
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (43)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvas.cs (43)
183 _size.Width = _rect.Width / 2; 184 _size.Height = _rect.Height / 2; 186 var startPoint = GeometryUtil.EllipseAngleToPoint((float)_rect.X, (float)_rect.Y, (float)_rect.Width, (float)_rect.Height, -startAngle); 187 var endPoint = GeometryUtil.EllipseAngleToPoint((float)_rect.X, (float)_rect.Y, (float)_rect.Width, (float)_rect.Height, -endAngle); 264 _rect.X = x; 265 _rect.Width = CanvasSize.Width; 269 _rect.X = x - CanvasSize.Width; 270 _rect.Width = CanvasSize.Width; 274 _rect.X = x - _canvasSize.Width; 275 _rect.Width = _canvasSize.Width * 2; 280 _rect.Y = y - CurrentState.FontSize; 281 _rect.Height = CurrentState.FontSize * 2; 283 _point1.X = (float)_rect.X; 284 _point1.Y = (float)_rect.Y; 290 (float)_rect.Width, 291 (float)_rect.Height); 539 Draw(s => s.DrawImage(platformImage.PlatformRepresentation, _rect, WRect.Empty, CurrentState.Alpha, CanvasImageInterpolation.Linear)); 571 _size.Width = _rect.Width / 2; 572 _size.Height = _rect.Height / 2; 574 var startPoint = GeometryUtil.EllipseAngleToPoint((float)_rect.X, (float)_rect.Y, (float)_rect.Width, (float)_rect.Height, -startAngle); 575 var endPoint = GeometryUtil.EllipseAngleToPoint((float)_rect.X, (float)_rect.Y, (float)_rect.Width, (float)_rect.Height, -endAngle); 604 Draw(s => s.DrawRectangle(_rect, CurrentState.PlatformStrokeBrush, CurrentState.StrokeSize, CurrentState.PlatformStrokeStyle)); 612 if (cornerRadius > _rect.Width / 2) 614 cornerRadius = (float)_rect.Width / 2; 617 if (cornerRadius > _rect.Height / 2) 619 cornerRadius = (float)_rect.Height / 2; 622 Draw(s => s.DrawRoundedRectangle(_rect, cornerRadius, cornerRadius, CurrentState.PlatformStrokeBrush, CurrentState.StrokeSize, CurrentState.PlatformStrokeStyle)); 853 _rect.X = Math.Min(x, x + width); 854 _rect.Y = Math.Min(y, y + height); 855 _rect.Width = Math.Abs(width); 856 _rect.Height = Math.Abs(height);