Paintable.newEmpty

gdk.paintable.Paintable newEmpty(int intrinsicWidth, int intrinsicHeight)

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

This is often useful for implementing the vfuncGdk.Paintable.get_current_image virtual function when the paintable is in an incomplete state (like a

GtkMediaStream before receiving

the first frame).

Parameters

intrinsicWidthThe intrinsic width to report. Can be 0 for no width.
intrinsicHeightThe intrinsic height to report. Can be 0 for no height.

Returns

a [gdk.paintable.Paintable]