CairoContext#
Superclasses: DrawContext, Object
Represents the platform-specific draw context.
GdkCairoContexts are created for a surface using
create_cairo_context, and the context
can then be used to draw on that surface.
Methods#
- class CairoContext
- cairo_create() Context | None#
Retrieves a Cairo context to be used to draw on the
GdkSurfaceofcontext.A call to
begin_framewith thiscontextmust have been done or this function will returnNone.The returned context is guaranteed to be valid until
end_frameis called.Deprecated since version 4.18: Drawing content with Cairo should be done via Cairo rendernodes, not by using renderers.