CornerSize

Interface

Common
interface CornerSize

Defines size of a corner in pixels. For example for rounded shape it can be a corner radius.

Functions

fun toPx(shapeSize: Size, density: Density): Float

Converts the CornerSize to pixels.

Parameters

shapeSizethe size of the shape
densitythe current density of the screen.

Returns

resolved size of the corner in pixels