public final class Shapes


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

See also
surface

Summary

Public constructors

Shapes(@NonNull Shape small, @NonNull Shape medium, @NonNull Shape large)

Public methods

final @NonNull Shapes
copy(@NonNull Shape small, @NonNull Shape medium, @NonNull Shape large)

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

boolean
equals(Object other)
final @NonNull Shape

a shape with 4 fully rounded corners.

final @NonNull Shape

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

final @NonNull Shape

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

int
@NonNull String

Public constructors

Shapes

Added in 1.0.0-alpha01
public Shapes(@NonNull Shape small, @NonNull Shape medium, @NonNull Shape large)

Public methods

copy

Added in 1.0.0-alpha01
public final @NonNull Shapes copy(@NonNull Shape small, @NonNull Shape medium, @NonNull Shape large)

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

equals

public boolean equals(Object other)

getLarge

Added in 1.0.0-alpha01
public final @NonNull Shape getLarge()

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

getMedium

Added in 1.0.0-alpha01
public final @NonNull Shape getMedium()

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.

getSmall

Added in 1.0.0-alpha01
public final @NonNull Shape getSmall()

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

hashCode

public int hashCode()

toString

public @NonNull String toString()