Renderer.realize
bool realize(gdk.surface.Surface surface = null)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 [gsk.renderer.Renderer.realizeForDisplay] instead.
Note that it is mandatory to call [gsk.renderer.Renderer.unrealize] before destroying the renderer.
Parameters
surface | the [gdk.surface.Surface] renderer will be used on |
Returns
Whether the renderer was successfully realized
Throws
[ErrorWrap]