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
shapeSize | the size of the shape |
density | the current density of the screen. |
Returns
resolved size of the corner in pixels |