Source/IShapeDescriptor.cs
(完整代码) 1KBusing System;
using System.Text;
using System.Drawing.Drawing2D;
using System.Drawing;
namespace DevComponents.DotNetBar
{
public interface IShapeDescriptor
{
/// <summary>
/// Returns the shape that fits given bounds.
/// </summary>
/// <param name="bounds">Bounds to fit shape in.</param>
/// <returns>GraphicsPath representing shape or null if shape cannot be created.</returns>
GraphicsPath GetShape(Rectangle bounds);
/// <summary>
/// Returns the inner shape based on the specified border size.
/// </summary>
/// <param name="bounds">Bounds to fit shape in.</param>
/// <returns>GraphicsPath representing shape or null if shape cannot be created.</returns>
GraphicsPath GetInnerShape(Rectangle bounds, int borderSize);
/// <summary>
/// Returns whether shape can be drawn given the bounds.
/// </summary>
/// <param name="bounds">Bounds to test.</param>
/// <returns>true if shape can be drawn inside of bounds otherwise false.</returns>
bool CanDrawShape(Rectangle bounds);
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。