realize


Description:

public bool realize (Surface? surface) throws Error

Creates the resources needed by the renderer.

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] for this case.

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

Parameters:

this

a renderer

surface

the surface that renderer will be used on

Returns:

whether the renderer was successfully realized