CanvasKt

public final class CanvasKt


Summary

Public methods

static final void
CanvasKt.withClip(
    Canvas receiver,
    Rect clipRect,
    @ExtensionFunctionType Function1<CanvasUnit> block
)

Wrap the specified block in calls to Canvas.save/Canvas.clipRect and Canvas.restoreToCount.

static final void
CanvasKt.withClip(
    Canvas receiver,
    RectF clipRect,
    @ExtensionFunctionType Function1<CanvasUnit> block
)

Wrap the specified block in calls to Canvas.save/Canvas.clipRect and Canvas.restoreToCount.

static final void
CanvasKt.withClip(
    Canvas receiver,
    int left,
    int top,
    int right,
    int bottom,
    @ExtensionFunctionType Function1<CanvasUnit> block
)

Wrap the specified block in calls to Canvas.save/Canvas.clipRect and Canvas.restoreToCount.

static final void
CanvasKt.withClip(
    Canvas receiver,
    float left,
    float top,
    float right,
    float bottom,
    @ExtensionFunctionType Function1<CanvasUnit> block
)

Wrap the specified block in calls to Canvas.save/Canvas.clipRect and Canvas.restoreToCount.

static final void
CanvasKt.withClip(
    Canvas receiver,
    Path clipPath,
    @ExtensionFunctionType Function1<CanvasUnit> block
)

Wrap the specified block in calls to Canvas.save/Canvas.clipPath a