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

Summary

Public functions

Float
toPx(shapeSize: Size, density: Density)

Converts the CornerSize to pixels.

Cmn

Public functions

toPx

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

Converts the CornerSize to pixels.

Parameters
shapeSize: Size

the size of the shape

density: Density

the current density of the screen.

Returns
Float

resolved size of the corner in pixels