csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.0 KiB
41 lines
1.0 KiB
// -----------------------------------------------------------------------
|
|
// <copyright file="StreamGeometryContext.cs" company="Steven Kirk">
|
|
// Copyright 2014 MIT Licence. See licence.md for more information.
|
|
// </copyright>
|
|
// -----------------------------------------------------------------------
|
|
|
|
namespace Perspex.Media
|
|
{
|
|
using System;
|
|
using Perspex.Platform;
|
|
|
|
public class StreamGeometryContext : IDisposable
|
|
{
|
|
private IStreamGeometryContextImpl impl;
|
|
|
|
public StreamGeometryContext(IStreamGeometryContextImpl impl)
|
|
{
|
|
this.impl = impl;
|
|
}
|
|
|
|
public void BeginFigure(Point startPoint, bool isFilled)
|
|
{
|
|
this.impl.BeginFigure(startPoint, isFilled);
|
|
}
|
|
|
|
public void LineTo(Point point)
|
|
{
|
|
this.impl.LineTo(point);
|
|
}
|
|
|
|
public void EndFigure(bool isClosed)
|
|
{
|
|
this.impl.EndFigure(isClosed);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
this.impl.Dispose();
|
|
}
|
|
}
|
|
}
|
|
|