Package: gsk

Function gsk:renderer-realize

Lambda List

gsk:renderer-realize (renderer surface)

Arguments

renderer -- a gsk:renderer instance
surface -- a gdk:surface object

Return Value

The boolean whether the renderer was successfully realized.

Details

Creates the resources needed by the renderer to render the scene graph.

Since GTK 4.6, the surface may be nil, which allows using renderers without having to create a surface. Since GTK 4.14, it is recommended to use the gsk:renderer-realize-for-display function for this case.

Note that it is mandatory to call the gsk:renderer-unrealize function before destroying the renderer.
 

See also

2026-02-08