Snapshot.renderLayout

void renderLayout(gtk.style_context.StyleContext context, double x, double y, pango.layout.Layout layout)

Creates a render node for rendering layout according to the style information in context, and appends it to the current node of snapshot, without changing the current node.

Parameters

contextthe style context that defines the text
xX origin of the rectangle
yY origin of the rectangle
layoutthe [pango.layout.Layout] to render