ShapeScope

Known direct subclasses
DrawStyleScope

This interface is deprecated. This scope type is being removed.

Known indirect subclasses
StyleScope

This interface is deprecated. This scope type is being removed.


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

See also
StyleScope

Summary

Public functions

Unit
shape(value: Shape)

This function is deprecated. This scope type is being removed.

Cmn

Public functions

shape

fun shape(value: Shape): Unit

Sets the Shape for the component. This shape is used for clipping (ClipScope.clip), background rendering (BackgroundScope.background), and border rendering.

If shape is not specified then a androidx.compose.ui.graphics.RectangleShape is used.

This property is not inherited

Parameters
value: Shape

The shape to apply.