Inherits Cairo::Surface.
Public Member Functions | |
Win32PrintingSurface (cairo_surface_t*cobject, bool has_reference=false) | |
virtual | ~Win32PrintingSurface () |
Static Public Member Functions | |
static RefPtr < Win32PrintingSurface > | create (HDC hdc) |
Creates a cairo surface that targets the given DC. |
Cairo::Win32PrintingSurface::Win32PrintingSurface | ( | cairo_surface_t * | cobject, | |
bool | has_reference = false | |||
) | [explicit] |
virtual Cairo::Win32PrintingSurface::~Win32PrintingSurface | ( | ) | [virtual] |
static RefPtr<Win32PrintingSurface> Cairo::Win32PrintingSurface::create | ( | HDC | hdc | ) | [static] |
Creates a cairo surface that targets the given DC.
The DC will be queried for its initial clip extents, and this will be used as the size of the cairo surface. The DC should be a printing DC; antialiasing will be ignored, and GDI will be used as much as possible to draw to the surface.
The returned surface will be wrapped using the paginated surface to provide correct complex rendering behaviour; show_page() and associated methods must be used for correct output.
hdc | the DC to create a surface for. |