toPaintable

open fun toPaintable(size: <Error class: unknown class>? = null): <Error class: unknown class>?

Returns a paintable encapsulating the render node that was constructed by @snapshot.

After calling this function, it is no longer possible to add more nodes to @snapshot. The only function that should be called after this is method@GObject.Object.unref.

Return

a new GdkPaintable

Parameters

size

The size of the resulting paintable or null to use the bounds of the snapshot