Paintable.newEmpty

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).

interface Paintable
static
newEmpty

Parameters

intrinsicWidth int

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

intrinsicHeight int

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

Return Value

Type: gdk.paintable.Paintable