Package: gtk

Function gtk:snapshot-append-layout

Lambda List

gtk:snapshot-append-layout (snapshot layout color)

Arguments

snapshot -- a gtk:snapshot object
layout -- a pango:layout instance to render
color -- a gdk:rgba instance for the foreground color to render the layout in

Details

Creates render nodes for rendering layout in the given foregound color and appends them to the current node of snapshot without changing the current node. The current foreground color of the theme for a widget can be obtained with the gtk:widget-color function.

Note that if the layout does not produce any visible output, then nodes may not be added to the snapshot.
 

See also

#2025-2-12