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.
56 lines
2.4 KiB
56 lines
2.4 KiB
// -----------------------------------------------------------------------
|
|
// <copyright file="IStreamGeometryContextImpl.cs" company="Steven Kirk">
|
|
// Copyright 2015 MIT Licence. See licence.md for more information.
|
|
// </copyright>
|
|
// -----------------------------------------------------------------------
|
|
|
|
namespace Perspex.Platform
|
|
{
|
|
using System;
|
|
using Perspex.Media;
|
|
|
|
/// <summary>
|
|
/// Describes a geometry using drawing commands.
|
|
/// </summary>
|
|
public interface IStreamGeometryContextImpl : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// Draws an arc to the specified point.
|
|
/// </summary>
|
|
/// <param name="point">The destination point.</param>
|
|
/// <param name="size">The radii of an oval whose perimeter is used to draw the angle.</param>
|
|
/// <param name="rotationAngle">The rotation angle of the oval that specifies the curve.</param>
|
|
/// <param name="isLargeArc">true to draw the arc greater than 180 degrees; otherwise, false.</param>
|
|
/// <param name="sweepDirection">
|
|
/// A value that indicates whether the arc is drawn in the Clockwise or Counterclockwise direction.
|
|
/// </param>
|
|
void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection);
|
|
|
|
/// <summary>
|
|
/// Begins a new figure.
|
|
/// </summary>
|
|
/// <param name="startPoint">The starting point for the figure.</param>
|
|
/// <param name="isFilled">Whether the figure is filled.</param>
|
|
void BeginFigure(Point startPoint, bool isFilled);
|
|
|
|
/// <summary>
|
|
/// Draws a Bezier curve to the specified point.
|
|
/// </summary>
|
|
/// <param name="point1">The first control point used to specify the shape of the curve.</param>
|
|
/// <param name="point2">The second control point used to specify the shape of the curve.</param>
|
|
/// <param name="point3">The destination point for the end of the curve.</param>
|
|
void BezierTo(Point point1, Point point2, Point point3);
|
|
|
|
/// <summary>
|
|
/// Draws a line to the specified point.
|
|
/// </summary>
|
|
/// <param name="point">The destination point.</param>
|
|
void LineTo(Point point);
|
|
|
|
/// <summary>
|
|
/// Ends the figure started by <see cref="BeginFigure(Point, bool)"/>.
|
|
/// </summary>
|
|
/// <param name="isClosed">Whether the figure is closed.</param>
|
|
void EndFigure(bool isClosed);
|
|
}
|
|
}
|
|
|