Interface

ClipScope

An interface that introduces the clip property to a Style receiver scope.

Source set: Common
@Deprecated(
    DeprecatedStyleScope,
    replaceWith = ReplaceWith(""),
    level = DeprecationLevel.WARNING,
)
public interface ClipScope

An interface that introduces the clip property to a Style receiver scope.

Functions

clip

Source set: Common
public fun clip(value: Boolean = true)

Clips the component to its bounds. If a ShapeScope.shape is also applied, it clips to the shape. When clip is true content that overflows the component's bounds is not drawn.

This property is not inherited

Parameters

value true to clip (default), false to allow drawing outside bounds.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: