------ #### RaUIV4 V4.0.2311.0701 - *.[全新]整合了MyDb、ryControls、MyDb_MySQL等dll文件到RaUI一个项目。 - *.[新增]新增ApkOp类,可以轻松获取APK信息。 - *.[新增]新增JsonExt扩展类,让Json操作更简单。 - *.[新增]新增WebP类,可以支持webp格式的图片。 - *.[改进]ryQuickSQL中的AddField方法改为自动替换已存在的同名值。 - *.[修复]ryQuickSQL中的AddFieldCalc方法无法正常计算的BUG。
65 lines
1.7 KiB
C#
65 lines
1.7 KiB
C#
// "Therefore those skilled at the unorthodox
|
|
// are infinite as heaven and earth,
|
|
// inexhaustible as the great rivers.
|
|
// When they come to an end,
|
|
// they begin again,
|
|
// like the days and months;
|
|
// they die and are reborn,
|
|
// like the four seasons."
|
|
//
|
|
// - Sun Tsu,
|
|
// "The Art of War"
|
|
|
|
using System;
|
|
|
|
namespace TheArtOfDev.HtmlRenderer.Adapters
|
|
{
|
|
/// <summary>
|
|
/// Adapter for platform specific graphics path object - used to render (draw/fill) path shape.
|
|
/// </summary>
|
|
public abstract class RGraphicsPath : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// Start path at the given point.
|
|
/// </summary>
|
|
public abstract void Start(double x, double y);
|
|
|
|
/// <summary>
|
|
/// Add stright line to the given point from te last point.
|
|
/// </summary>
|
|
public abstract void LineTo(double x, double y);
|
|
|
|
/// <summary>
|
|
/// Add circular arc of the given size to the given point from the last point.
|
|
/// </summary>
|
|
public abstract void ArcTo(double x, double y, double size, Corner corner);
|
|
|
|
/// <summary>
|
|
/// Release path resources.
|
|
/// </summary>
|
|
public abstract void Dispose();
|
|
|
|
/// <summary>
|
|
/// The 4 corners that are handled in arc rendering.
|
|
/// </summary>
|
|
public enum Corner
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
TopLeft,
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
TopRight,
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
BottomLeft,
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
BottomRight,
|
|
}
|
|
}
|
|
} |