Shapes
public final class Shapes
Glimmer surfaces can use different shapes. Shapes contains different levels of roundedness for different components.
| See also | |
|---|---|
surface |
Summary
Public methods |
|
|---|---|
final @NonNull Shapes |
Returns a copy of this Shapes, optionally overriding some of the values. |
boolean |
|
final @NonNull Shape |
getLarge()a shape with 4 fully rounded corners. |
final @NonNull Shape |
a shape with 4 same-sized corners whose size are bigger than |
final @NonNull Shape |
getSmall()a shape with 4 same-sized corners whose size are smaller than |
int |
hashCode() |
@NonNull String |
toString() |
Public constructors
Public methods
copy
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.
getLarge
public final @NonNull Shape getLarge()
a shape with 4 fully rounded corners. This shape is used for components such as buttons.
getMedium
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
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.