Interface

Gdk-4.0GdkPaintableNamespace

interface PaintableNamespace {
    $gtype: GType<Gdk.Paintable>;
    prototype: Gdk.Paintable;
    new_empty(intrinsic_width: number, intrinsic_height: number): Gdk.Paintable;
}
Index

Properties

Methods

Properties

prototype: Gdk.Paintable

Methods

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

    This is often useful for implementing the Gdk.Paintable.get_current_image virtual function when the paintable is in an incomplete state (like a GtkMediaStream before receiving the first frame).

    Parameters

    • intrinsic_width: number

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

    • intrinsic_height: number

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

    Returns Gdk.Paintable