Implement Painter drawing primitives.
Fix gradient export to cairo_pattern_t routine.
Fix brush constructors.