Source set: Common
public interface CornerSize
Defines size of a corner in pixels. For example for rounded shape it can be a corner radius.
Functions
toPx
Source set: Common
public 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. |
Return
resolved size of the corner in pixels