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.

Constructors

this
this(void* ptr, Flag!"Take" take)

Members

Functions

cairoCreate
cairo.context.Context cairoCreate()

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

self
CairoContext self()

Returns this, for use in with statements.

Properties

gType
GType gType [@property getter]

Static functions

getGType
GType getGType()

Inherited Members

From DrawContext

getGType
GType getGType()
gType
GType gType [@property getter]
self
DrawContext self()

Returns this, for use in with statements.

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.