class Shapes


Glimmer surfaces can use different shapes. Shapes contains different levels of roundedness for different components.

See also
surface

Summary

Public constructors

Shapes(small: Shape, medium: Shape, large: Shape)

Public functions

Shapes
copy(small: Shape, medium: Shape, large: Shape)

Returns a copy of this Shapes, optionally overriding some of the values.

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Shape

a shape with 4 fully rounded corners.

Shape

a shape with 4 same-sized corners whose size are bigger than small and smaller than large.

Shape

a shape with 4 same-sized corners whose size are smaller than medium.

Public constructors

Shapes

Added in 1.0.0-alpha01
Shapes(
    small: Shape = RoundedCornerShape(24.dp),
    medium: Shape = RoundedCornerShape(40.dp),
    large: Shape = CircleShape
)

Public functions

copy

Added in 1.0.0-alpha01
fun copy(
    small: Shape = this.small,
    medium: Shape = this.medium,
    large: Shape = this.large
): Shapes

Returns a copy of this Shapes, optionally overriding some of the values.

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

large

Added in 1.0.0-alpha01
val largeShape

a shape with 4 fully rounded corners. This shape is used for components such as buttons.

medium

Added in 1.0.0-alpha01
val mediumShape

a shape with 4 same-sized corners whose size are bigger than small and smaller than large. This is the most commonly used shape, and is used in surface by default.

small

Added in 1.0.0-alpha01
val smallShape

a shape with 4 same-sized corners whose size are smaller than medium. This shape is used for components such as cards.