Package: gdk

Function gdk:cairo-context-cairo-create

Lambda List

gdk:cairo-context-cairo-create (context)

Arguments

context -- a gdk:cairo-context object that is currently drawing

Return Value

The cairo:context-t instance with the Cairo context to be used to draw the contents of the gdk:surface object. NULL is returned when context is not drawing.

Details

Retrieves a Cairo context to be used to draw on the gdk:surface object of context. A call to the gdk:draw-context-begin-frame function with this context must have been done or this function will return NULL. The returned context is guaranteed to be valid until the gdk:draw-context-end-frame function is called.
 

See also

2024-7-12