100 lines
3.0 KiB
C#
100 lines
3.0 KiB
C#
using System;
|
|
using CPF.Drawing;
|
|
using CPF.ReoGrid.Drawing;
|
|
|
|
namespace CPF.ReoGrid.Graphics
|
|
{
|
|
public interface IGraphics
|
|
{
|
|
DrawingContext PlatformGraphics { get; set; }
|
|
|
|
void DrawLine(float x1, float y1, float x2, float y2, Color color);
|
|
|
|
void DrawLine(float x1, float y1, float x2, float y2, Color color, float width, LineStyles style);
|
|
|
|
void DrawLine(Point startPoint, Point endPoint, Color color);
|
|
|
|
void DrawLine(Point startPoint, Point endPoint, Color color, float width, LineStyles style);
|
|
|
|
void DrawLine(CPFPen p, float x1, float y1, float x2, float y2);
|
|
|
|
void DrawLine(CPFPen p, Point startPoint, Point endPoint);
|
|
|
|
void DrawLines(Point[] points, int start, int length, Color color, float width, LineStyles style);
|
|
|
|
void DrawRectangle(Rect rect, Color color);
|
|
|
|
void DrawRectangle(Rect rect, Color color, float width, LineStyles lineStyle);
|
|
|
|
void DrawRectangle(float x, float y, float width, float height, Color color);
|
|
|
|
void DrawRectangle(CPFPen p, Rect rect);
|
|
|
|
void DrawRectangle(CPFPen p, float x, float y, float width, float height);
|
|
|
|
void FillRectangle(HatchStyles style, Color hatchColor, Color bgColor, Rect rect);
|
|
|
|
void FillRectangle(HatchStyles style, Color hatchColor, Color bgColor, float x, float y, float width, float height);
|
|
|
|
void FillRectangle(Rect rect, Color color);
|
|
|
|
void FillRectangle(float x, float y, float width, float height, Color color);
|
|
|
|
void FillRectangle(Brush b, float x, float y, float width, float height);
|
|
|
|
void FillRectangleLinear(Color startColor, Color endColor, float angle, Rect rect);
|
|
|
|
void DrawAndFillRectangle(Rect rect, Color lineColor, Color fillColor);
|
|
|
|
void DrawAndFillRectangle(Rect rect, Color lineColor, Color fillColor, float weight, LineStyles lineStyle);
|
|
|
|
void DrawEllipse(Color color, Rect rectangle);
|
|
|
|
void DrawEllipse(Color color, float x, float y, float width, float height);
|
|
|
|
void DrawEllipse(CPFPen pen, Rect rectangle);
|
|
|
|
void FillEllipse(Color fillColor, Rect rectangle);
|
|
|
|
void FillEllipse(Brush b, Rect rectangle);
|
|
|
|
void FillEllipse(Brush b, float x, float y, float widht, float height);
|
|
|
|
void DrawPolygon(Color color, float lineWidth, LineStyles lineStyle, params Point[] points);
|
|
|
|
void FillPolygon(Color color, params Point[] points);
|
|
|
|
void FillPath(Color color, PathGeometry graphicsPath);
|
|
|
|
void DrawPath(Color color, PathGeometry graphicsPath);
|
|
|
|
void DrawImage(Image image, float x, float y, float width, float height);
|
|
|
|
void DrawImage(Image image, Rect rect);
|
|
|
|
void DrawText(string text, string fontName, float size, Color color, Rect rect, ReoGridHorAlign halign = ReoGridHorAlign.Center, ReoGridVerAlign valign = ReoGridVerAlign.Middle);
|
|
|
|
void ScaleTransform(float sx, float sy);
|
|
|
|
void TranslateTransform(float x, float y);
|
|
|
|
void RotateTransform(float angle);
|
|
|
|
void ResetTransform();
|
|
|
|
void PushClip(Rect clip);
|
|
|
|
void PopClip();
|
|
|
|
void PushTransform();
|
|
|
|
void PushTransform(Matrix t);
|
|
|
|
Matrix PopTransform();
|
|
|
|
bool IsAntialias { get; set; }
|
|
|
|
void Reset();
|
|
}
|
|
}
|