ClassicButtonShaper

Button shaper that returns rectangular buttons with slightly rounded corners.

Author

Kirill Grouchnikov

Constructors

Link copied to clipboard
fun ClassicButtonShaper()

Types

Link copied to clipboard
object Companion

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.