ClassicButtonShaper

Button shaper that returns rectangular buttons with slightly rounded corners.

Author

Kirill Grouchnikov

Constructors

ClassicButtonShaper
Link copied to clipboard
fun ClassicButtonShaper()

Types

Companion
Link copied to clipboard
object Companion

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.