1.3 <GdkCairoContext>

Class: <GdkCairoContext>

It derives from <GdkDrawContext>.

Represents the platform-specific draw context.

<GdkCairoContext>s are created for a surface using surface:create-cairo-context, and the context can then be used to draw on that surface.

Procedures

Method: cairo-context:cairo-create self ⇒ %return
Method: cairo-create self ⇒ %return

Retrieves a Cairo context to be used to draw on the <GdkSurface> of context.

A call to draw-context:begin-frame with this context must have been done or this function will return #f.

The returned context is guaranteed to be valid until draw-context:end-frame is called.

self

Passed: a <GdkCairoContext>.

a <GdkCairoContext> that is currently drawing

%return

Returned: a <CairoContext>, or #f.

a Cairo context to draw on ‘GdkSurface