Gdk.CairoContext¶
class — extends DrawContext
Represents the platform-specific draw context.
GdkCairoContexts are created for a surface using
Surface.create_cairo_context, and the context
can then be used to draw on that surface.
Methods¶
cairo_create¶
:::warning Deprecated since 4.18 This API is deprecated. :::
Retrieves a Cairo context to be used to draw on the GdkSurface
of context.
A call to DrawContext.begin_frame with this
context must have been done or this function will return None.
The returned context is guaranteed to be valid until
DrawContext.end_frame is called.