CairoContext

gdk.cairo_context.CairoContext is an object representing the platform-specific draw context.

gdk.cairo_context.CairoContexts are created for a surface using gdk.surface.Surface.createCairoContext, and the context can then be used to draw on that surface.

Members

Functions

cairoCreate
cairo.context.Context cairoCreate()

Retrieves a Cairo context to be used to draw on the gdk.surface.Surface of context.

Inherited Members

From DrawContext

beginFrame
void beginFrame(cairo.region.Region region)

Indicates that you are beginning the process of redrawing region on the context's surface.

endFrame
void endFrame()

Ends a drawing operation started with gdk.draw_context.DrawContext.beginFrame.

getDisplay
gdk.display.Display getDisplay()

Retrieves the gdk.display.Display the context is created for

getFrameRegion
cairo.region.Region getFrameRegion()

Retrieves the region that is currently being repainted.

getSurface
gdk.surface.Surface getSurface()

Retrieves the surface that context is bound to.

isInFrame
bool isInFrame()

Returns true if context is in the process of drawing to its surface.