realize

open fun realize(surface: <Error class: unknown class>? = null): <Error class: unknown class><Boolean>

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

Since GTK 4.6, the surface may be NULL, which allows using renderers without having to create a surface. Since GTK 4.14, it is recommended to use method@Gsk.Renderer.realize_for_display instead.

Note that it is mandatory to call method@Gsk.Renderer.unrealize before destroying the renderer.

Return

Whether the renderer was successfully realized

Parameters

surface

the GdkSurface renderer will be used on