new_empty


Description:

[ Version ( replacement = "Paintable.new_empty" ) ]
public static Paintable new_empty (int intrinsic_width, int intrinsic_height)

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

This is often useful for implementing the [[email protected]_current_image] virtual function when the paintable is in an incomplete state (like a [[email protected]] before receiving the first frame).

Parameters:

intrinsic_width

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

intrinsic_height

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

Returns:

a `GdkPaintable`




2022 vala-language.org