struct Core::Portable::IGraphicsCommandSink

Sink for graphics commands.

#include <coregraphics.h>

struct IGraphicsCommandSink
{
    // methods

    virtual void setClip(RectRef rect) = 0;
    virtual void fillRect(RectRef rect, ColorRef color) = 0;
    virtual void drawHorizontalLine(int y, int x0, int x1, ColorRef color) = 0;
    virtual void drawVerticalLine(int x, int y0, int y1, ColorRef color) = 0;
    virtual void drawLine(int x0, int y0, int x1, int y1, ColorRef color) = 0;

    virtual void drawString(
        const BitmapFont& font,
        Point pos,
        CStringPtr text,
        int length,
        ColorRef color
    ) = 0;

    virtual void drawBitmap(
        int dstX,
        int dstY,
        const Bitmap& bitmap,
        int srcX,
        int srcY,
        int width,
        int height
    ) = 0;
};