AuroraButtonShaper

interface AuroraButtonShaper : AuroraTrait

Button shaper interface.

Author

Kirill Grouchnikov

Functions

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

Returns the outline path.

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

Returns the preferred size for the specified button dimensions.

Properties

displayName
Link copied to clipboard
abstract val displayName: String

The display name of this trait.

Inheritors

ClassicButtonShaper
Link copied to clipboard
PillButtonShaper
Link copied to clipboard