RadiusSchema

@Serializable
data class RadiusSchema(val topStart: Int, val topEnd: Int, val bottomStart: Int, val bottomEnd: Int)

Per-corner radius in dp, used by BorderSchema and ShapeSchema.RoundedCornerRectangle.

Maps to RoundedCornerShape(topStart, topEnd, bottomStart, bottomEnd) in Compose. All values are in dp and must be non-negative integers.

DSL helper (mosaic-server):

radius(topStart = 8, topEnd = 8, bottomStart = 8, bottomEnd = 8)   // all corners
radius(topStart = 16, topEnd = 16, bottomStart = 0, bottomEnd = 0) // top-only

Notes: Corner radii are layout-direction-aware (topStart/topEnd flip in RTL layouts).

Constructors

Link copied to clipboard
constructor(topStart: Int, topEnd: Int, bottomStart: Int, bottomEnd: Int)

Properties

Link copied to clipboard
@SerialName(value = "bottomEnd")
val bottomEnd: Int
Link copied to clipboard
@SerialName(value = "bottomStart")
val bottomStart: Int
Link copied to clipboard
@SerialName(value = "topEnd")
val topEnd: Int
Link copied to clipboard
@SerialName(value = "topStart")
val topStart: Int