cairo_set_target_surface 3 cairo_set_target_surface set surface for painting operations void cairo_set_target_surface (cairo_t *cr, cairo_surface_t *surface) cr : a cairo_t surface : an allocated cairo_surface_t Description functions cairo_set_target_surface Selects surfacee as the surface to draw on. If there already is a surface set, it will be substituted by surface. It references surfacee to ensure that it will be calid at least until another surface was selected or the cairo_t is destroyed.