Context.this

Creates a new Context with all graphics state parameters set to default values and with target as a target surface. The target surface should be constructed with a backend-specific function such as new ImageSurface().

This function references target, so you can immediately call Surface.dispose() on it if you don't need to maintain a separate reference to it.

  1. this(Surface target)
    struct Context
  2. this(cairo_t* ptr)

Meta