{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

ClipKt

public final class ClipKt


Summary

Public methods

static final @NonNull Modifier
clip(@NonNull Modifier receiver, @NonNull Shape shape)

Clip the content to shape.

static final @NonNull Modifier

Clip the content to the bounds of a layer defined at this modifier.

Public methods

clip

public static final @NonNull Modifier clip(@NonNull Modifier receiver, @NonNull Shape shape)

Clip the content to shape.

Parameters
@NonNull Shape shape

the content will be clipped to this Shape.

clipToBounds

public static final @NonNull Modifier clipToBounds(@NonNull Modifier receiver)

Clip the content to the bounds of a layer defined at this modifier.