void Draw.iDrawContext.drawRectangle(Rect rect, Draw.iBrush brush, float width) { applyTransform(); rect.deflate(width * 0.5f); context.drawRectangle(ref rect, width, (iBrush)brush); }
void Draw.iDrawContext.fillAndStroke(Draw.iGeometry geometry, Draw.iBrush fill, Draw.iBrush stroke, float strokeWidth, Draw.iStrokeStyle strokeStyle) { applyTransform(); context.fillGeometry((iGeometry)geometry, (iBrush)fill); context.drawGeometry((iGeometry)geometry, (iBrush)stroke, strokeWidth, (iStrokeStyle)strokeStyle); }
void Draw.iDrawContext.drawGeometry(Draw.iGeometry geometry, Draw.iBrush brush, float strokeWidth, Draw.iStrokeStyle strokeStyle) { applyTransform(); context.drawGeometry((iGeometry)geometry, (iBrush)brush, strokeWidth, (iStrokeStyle)strokeStyle); }
void Draw.iDrawContext.fillGeometry(Draw.iGeometry path, Draw.iBrush brush) { applyTransform(); context.fillGeometry((iGeometry)path, (iBrush)brush); }
void Draw.iDrawContext.fillRectangle(Rect rect, Draw.iBrush brush) => throw new NotImplementedException();
void Draw.iDrawContext.drawConsoleText(string text, int width, float fontSize, Vector2 position, Draw.iBrush foreground, Draw.iBrush background) => throw new NotImplementedException();
void Draw.iDrawContext.drawText(string text, iFont font, Rect layoutRect, Draw.iBrush foreground, Draw.iBrush background) => throw new NotImplementedException();