1.5 <GskCairoNode>

Class: <GskCairoNode>

It derives from <GskRenderNode>.

A render node for a Cairo surface.

Procedures

Method: cairo-node:get-draw-context self ⇒ %return
Method: get-draw-context self ⇒ %return

Creates a Cairo context for drawing using the surface associated to the render node.

If no surface exists yet, a surface will be created optimized for rendering to renderer.

self

Passed: a <GskCairoNode>.

a <GskRenderNode> for a Cairo surface

%return

Returned: a <CairoContext>.

a Cairo context used for drawing; use cairo_destroy() when done drawing

Method: cairo-node:get-surface self ⇒ %return
Method: get-surface self ⇒ %return

Retrieves the Cairo surface used by the render node.

self

Passed: a <GskCairoNode>.

a <GskRenderNode> for a Cairo surface

%return

Returned: a <CairoSurface>.

a Cairo surface

Procedure: cairo-node:new bounds ⇒ %return

Creates a <GskRenderNode> that will render a cairo surface into the area given by bounds.

You can draw to the cairo surface using cairo-node:get-draw-context.

bounds

Passed: a <GrapheneRect>.

the rectangle to render to

%return

Returned: a <GskCairoNode>.

A new <GskRenderNode>