Properties

Link copied to clipboard
abstract var defaultStyle: StateStyle

the StateStyle that the button is in by default

Link copied to clipboard
abstract var disabledStyle: StateStyle?

the StateStyle that the button is in when disabled. If null defaultStyle will be used

Link copied to clipboard
abstract var imageSize: ImageSize
Link copied to clipboard
abstract var padding: Padding

Configured the Padding of the content of the button

Link copied to clipboard
abstract var pressedStyle: StateStyle?

the StateStyle that the button is in when pressed. If null defaultStyle will be used

Functions

Link copied to clipboard
abstract fun defaultStyle(dsl: StateStyleDSL.() -> Unit)

Sets defaultStyle using the creation using a StateStyleDSL The StateStyleDSL will be preconfigured with the layout of the previous defaultStyle

Link copied to clipboard
abstract fun disabledStyle(dsl: StateStyleDSL.() -> Unit)

Sets disabledStyle using the creation using a StateStyleDSL The StateStyleDSL will be preconfigured with the layout of the previous disabledStyle or defaultStyle if null

Link copied to clipboard
abstract fun pressedStyle(dsl: StateStyleDSL.() -> Unit)

Sets pressedStyle using the creation using a StateStyleDSL The StateStyleDSL will be preconfigured with the layout of the previous pressedStyle or defaultStyle if null

Link copied to clipboard
open fun setBackground(defaultColor: KalugaColor, pressedColor: KalugaColor = defaultColor, disabledColor: KalugaColor = defaultColor, shape: KalugaBackgroundStyle.Shape = KalugaBackgroundStyle.Shape.Rectangle())
Link copied to clipboard
open fun setImage(image: KalugaImage)
open fun setImage(image: TintedImage, pressedTint: KalugaColor = image.tint, disabledTint: KalugaColor = image.tint)
open fun setImage(image: KalugaImage, defaultTint: KalugaColor, pressedTint: KalugaColor = defaultTint, disabledTint: KalugaColor = defaultTint)