3. Graphics contexts

Graphics contexts are used to describe current color and clip area.

typedef void MT_GC;

MT_GC        *mt_gc_new_with_foreground(MT_COLOR *col);
void          mt_gc_destroy(MT_GC *gc);
void          mt_gc_set_clip_rectangle(MT_RECTANGLE *rect, ...);
MT_RECTANGLE *mt_gc_get_clip_rectangle(MT_GC *gc);
void          mt_gc_set_foreground(MT_GC *gc, MT_COLOR *col);