PillButtonShaper

class PillButtonShaper : AuroraButtonShaper, RectangularButtonShaper

Button shaper that returns buttons with completely rounded corners.

Author

Kirill Grouchnikov

Constructors

Link copied to clipboard
fun PillButtonShaper()

Functions

Link copied to clipboard
open override fun getButtonOutline(width: Float, height: Float, extraInsets: Float, isInner: Boolean, sides: Sides, drawScope: DrawScope): Outline

Returns the outline path.

Link copied to clipboard
open override fun getCornerRadius(width: Float, height: Float, insets: Float, drawScope: DrawScope): Float

Returns the corner radius of a button.

Link copied to clipboard
open override fun getPreferredSize(uiPreferredWidth: Float, uiPreferredHeight: Float): Size

Returns the preferred size for the specified button dimensions.

Properties

Link copied to clipboard
open override val displayName: String

The display name of this trait.