newEmpty

fun newEmpty(intrinsicWidth: <Error class: unknown class>, intrinsicHeight: <Error class: unknown class>): Paintable

Returns a paintable that has the given intrinsic size and draws nothing.

This is often useful for implementing the vfunc@Gdk.Paintable.get_current_image virtual function when the paintable is in an incomplete state (like a ../gtk4/class.MediaStream.html before receiving the first frame).

Return

a GdkPaintable

Parameters

intrinsicWidth

The intrinsic width to report. Can be 0 for no width.

intrinsicHeight

The intrinsic height to report. Can be 0 for no height.