PillButtonShaper

class PillButtonShaper : AuroraButtonShaper, RectangularButtonShaper

Button shaper that returns buttons with completely rounded corners.

Author

Kirill Grouchnikov

Constructors

PillButtonShaper
Link copied to clipboard
fun PillButtonShaper()

Functions

getButtonOutline
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.

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

Returns the corner radius of a button.

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

Returns the preferred size for the specified button dimensions.

Properties

displayName
Link copied to clipboard
open override val displayName: String

The display name of this trait.