Properties

Link copied to clipboard

the ButtonStateStyle.WithImageAndText that the button is in by default

Link copied to clipboard

the ButtonStateStyle.WithImageAndText that the button is in when disabled

Link copied to clipboard
open override val font: KalugaFont

the KalugaFont that the text is in

Link copied to clipboard

the ImageGravity to determine placement of the ButtonImage relative to the text

Link copied to clipboard
open override val imageSize: ImageSize
Link copied to clipboard
open override val padding: Padding

the Padding of the content of the button

Link copied to clipboard

the ButtonStateStyle.WithImageAndText that the button is in when pressed

Link copied to clipboard

the spacing between the ButtonImage and text

Link copied to clipboard

the KalugaTextAlignment of the text

Link copied to clipboard
open override val textSize: Float

the size of the text

Functions

Link copied to clipboard
open fun getStateImage(isEnabled: Boolean, isPressed: Boolean): ButtonImage

Gets the ButtonImage of the button depending on the state

Link copied to clipboard

Gets the StateStyle of the button depending on the state

Link copied to clipboard
open fun getStateTextStyle(isEnabled: Boolean, isPressed: Boolean): KalugaTextStyle

Gets the KalugaTextStyle of the button depending on the state