ShapeSchema

@Serializable
sealed interface ShapeSchema

Discriminated union of Compose shapes used for ClipSchema and BorderSchema.radius.

Variants:

DSL helpers (mosaic-server):

circleShape()
rectangleShape()
roundedCornerShape(8) // uniform Int shorthand
roundedCornerShape(topStart = 8, topEnd = 8, bottomStart = 0, bottomEnd = 0)
roundedCornerShape(radius = radius(topStart = 8, topEnd = 8, bottomStart = 0, bottomEnd = 0))

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "circle")
data object Circle : ShapeSchema
Link copied to clipboard
@Serializable
@SerialName(value = "rectangle")
data object Rectangle : ShapeSchema
Link copied to clipboard
@Serializable
@SerialName(value = "rounded_corner_rectangle")
data class RoundedCornerRectangle(val radius: RadiusSchema) : ShapeSchema