If you want to draw to the screen within a Microsoft Windows application, you should use this Surface type.
Public Member Functions | |
HDC | get_dc () const |
Returns the HDC associated with this surface, or NULL if none. | |
Win32Surface (cairo_surface_t *cobject, bool has_reference=false) | |
Create a C++ wrapper for the C instance. | |
virtual | ~Win32Surface () |
Static Public Member Functions | |
static RefPtr< Win32Surface > | create (Format format, int width, int height) |
Creates a device-independent-bitmap surface not associated with any particular existing surface or device context. | |
static RefPtr< Win32Surface > | create (HDC hdc) |
Creates a cairo surface that targets the given DC. |
|
Create a C++ wrapper for the C instance. This C++ instance should then be given to a RefPtr.
|
|
|
|
Creates a device-independent-bitmap surface not associated with any particular existing surface or device context. The created bitmap will be unititialized.
|
|
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. Also, if the DC is a raster DC, it will be queried for its pixel format and the cairo surface format will be set appropriately.
|
|
Returns the HDC associated with this surface, or NULL if none. Also returns NULL if the surface is not a win32 surface.
|