quartz 2d, C++ wrapper