Gdk.CairoContext

g GObject.Object GObject.Object Gdk.DrawContext Gdk.DrawContext GObject.Object->Gdk.DrawContext Gdk.CairoContext Gdk.CairoContext Gdk.DrawContext->Gdk.CairoContext

Subclasses:

None

Methods

Inherited:

Gdk.DrawContext (6), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

cairo_create ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Gdk.DrawContext (2)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gdk.CairoContext(**kwargs)
Bases:

Gdk.DrawContext

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:

cairo.Context or None

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.