roundrect

fun MaterialTheme.roundrect(size: Pair<Dp, Dp>, corners: Pair<Dp, Dp>): EllipseRect

Helper function to create rectangles with equal corners with different (x, y) radii.

Return

A rounded rectangle with equal (x, y) radii corners.

Parameters

size

The (width, height) of the rectangle.

corners

The (x, y) radii of the corners.


fun MaterialTheme.roundrect(size: Dp, corners: Pair<Dp, Dp>): EllipseRect

Helper function to create squares with equal corners with different (x, y) radii.

Return

A rounded square with equal (x, y) radii corners.

Parameters

size

The side length of the square.

corners

The (x, y) radii of the corners.


fun MaterialTheme.roundrect(size: Pair<Dp, Dp>, radius: Dp): EllipseRect

Helper function to create rectangles with equal radii corners.

Return

A rounded rectangle with equal radii corners.

Parameters

size

The (width, height) of the rectangle.

radius

The radius of the corners.


fun MaterialTheme.roundrect(size: Dp, radius: Dp): EllipseRect

Helper function to create squares with equal radii corners.

Return

A rounded square with equal radii corners.

Parameters

size

The side length of the square.

radius

The radius of the corners.


Helper function to create rectangles with FourCorners.

Return

A rounded rectangle with FourCorners defined corners.

Parameters

size

The (width, height) of the rectangle.

radii

The FourCorners defined corners.


Helper function to create squares with FourCorners.

Return

A rounded square with FourCorners defined corners.

Parameters

size

The side length of the square.

radii

The FourCorners defined corners.