harfbuzzjs
    Preparing search index...

    Type Alias PaintPushClipRectangleFunc

    PaintPushClipRectangleFunc: (
        xmin: number,
        ymin: number,
        xmax: number,
        ymax: number,
        paintData: unknown,
        userData: unknown,
    ) => void

    A callback to clip subsequent paint calls to a rectangle.

    The coordinates of the rectangle are interpreted according to the current transform.

    This clip is applied in addition to the current clip, and remains in effect until a matching call to PaintFuncs.setPopClipFunc.

    Type Declaration

      • (
            xmin: number,
            ymin: number,
            xmax: number,
            ymax: number,
            paintData: unknown,
            userData: unknown,
        ): void
      • Parameters

        • xmin: number

          min X for the rectangle

        • ymin: number

          min Y for the rectangle

        • xmax: number

          max X for the rectangle

        • ymax: number

          max Y for the rectangle

        • paintData: unknown

          the data accompanying the paint functions in Font.paintGlyph

        • userData: unknown

          the user data pointer passed to PaintFuncs.setPushClipRectangleFunc

        Returns void