using System; using CPF.Drawing; using CPF.ReoGrid.Common; using CPF.ReoGrid.Core; using CPF.ReoGrid.Drawing; using CPF.ReoGrid.Graphics; namespace CPF.ReoGrid.Rendering { internal interface IRenderer : IGraphics { void DrawRunningFocusRect(float x, float y, float w, float h, Color color, int runningOffset); void BeginCappedLine(LineCapStyles startCap, Size startSize, LineCapStyles endCap, Size endSize, Color color, float width); void DrawCappedLine(float x1, float y1, float x2, float y2); void EndCappedLine(); void BeginDrawLine(float width, Color color); void DrawLine(float x1, float y1, float x2, float y2); void EndDrawLine(); void DrawCellText(Cell cell, Color textColor, DrawMode drawMode, float scale); void UpdateCellRenderFont(Cell cell, UpdateFontReason reason); Size MeasureCellText(Cell cell, DrawMode drawMode, float scale); void BeginDrawHeaderText(float scale); void DrawHeaderText(string text, Brush brush, Rect rect); void DrawLeadHeadArrow(Rect bounds, Color startColor, Color endColor); CPFPen GetPen(Color color); void ReleasePen(CPFPen pen); Brush GetBrush(Color color); ResourcePoolManager ResourcePoolManager { get; } } }