Esempio n. 1
0
        void Draw.iDrawContext.drawRectangle(Rect rect, Draw.iBrush brush, float width)
        {
            applyTransform();

            rect.deflate(width * 0.5f);
            context.drawRectangle(ref rect, width, (iBrush)brush);
        }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 void Draw.iDrawContext.fillGeometry(Draw.iGeometry path, Draw.iBrush brush)
 {
     applyTransform();
     context.fillGeometry((iGeometry)path, (iBrush)brush);
 }
Esempio n. 5
0
 void Draw.iDrawContext.fillRectangle(Rect rect, Draw.iBrush brush) =>
 throw new NotImplementedException();
Esempio n. 6
0
 void Draw.iDrawContext.drawConsoleText(string text, int width, float fontSize, Vector2 position, Draw.iBrush foreground, Draw.iBrush background) =>
 throw new NotImplementedException();
Esempio n. 7
0
 void Draw.iDrawContext.drawText(string text, iFont font, Rect layoutRect, Draw.iBrush foreground, Draw.iBrush background) =>
 throw new NotImplementedException();