Gdk.CairoContext¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gdk.CairoContext(**kwargs)¶
- Bases:
- Abstract:
Yes
GdkCairoContext
is an object representing the platform-specific draw context.``GdkCairoContext``s are created for a surface using [method`Gdk`.Surface.create_cairo_context], and the context can then be used to draw on that surface.
- cairo_create()[source]¶
- Returns:
a Cairo context to draw on `:obj:Gdk.Surface
- Return type:
Retrieves a Cairo context to be used to draw on the
GdkSurface
of context.A call to [method`Gdk`.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 [method`Gdk`.DrawContext.end_frame] is called.