Interface

CornerSize

Defines size of a corner in pixels.

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

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: