Package: cairo

Function cairo-get-target

Lambda List

cairo-get-target (cr)

Arguments

cr -- a cairo-t context

Return Value

The cairo-surface-t target surface. This object is owned by Cairo.

Details

Gets the target surface for the Cairo context as passed to the cairo-create function. To keep a reference to it, you must call the cairo-surface-reference function.

This function will always return a valid pointer, but the result can be a "nil" surface if cr is already in an error state.
 

See also

2021-12-12