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 and Canvas.restoreToCount.

static final void
CanvasKt.withMatrix(
    Canvas receiver,
    Matrix matrix,
    @ExtensionFunctionType Function1<CanvasUnit> block
)

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

static final void
CanvasKt.withRotation(
    Canvas receiver,
    float degrees,
    float pivotX,
    float pivotY,
    @ExtensionFunctionType Function1<CanvasUnit> block
)

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

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

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

static final void
CanvasKt.withScale(
    Canvas receiver,
    float x,
    float y,
    float pivotX,
    float pivotY,
    @ExtensionFunctionType Function1<CanvasUnit> block
)

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

static final void
CanvasKt.withSkew(
    Canvas receiver,
    float x,
    float y,
    @ExtensionFunctionType Function1<CanvasUnit> block
)

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

static final void
CanvasKt.withTranslation(
    Canvas receiver,
    float x,
    float y,
    @ExtensionFunctionType Function1<CanvasUnit> block
)

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

Public methods

CanvasKt.withClip

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

Wrap the specified block in calls to