File: Shapes\Geometry.cs
Web Access
Project: src\src\Controls\src\Core\Controls.Core.csproj (Microsoft.Maui.Controls)
#nullable disable
using Microsoft.Maui.Graphics;
 
namespace Microsoft.Maui.Controls.Shapes
{
	/// <include file="../../../docs/Microsoft.Maui.Controls.Shapes/Geometry.xml" path="Type[@FullName='Microsoft.Maui.Controls.Shapes.Geometry']/Docs/*" />
	public abstract class Geometry : BindableObject, IGeometry
	{
		public abstract void AppendPath(PathF path);
 
		PathF IShape.PathForBounds(Graphics.Rect bounds)
		{
			var path = new PathF();
 
			AppendPath(path);
 
			return path;
		}
	}
}