MaterialButtonBehavior

class MaterialButtonBehavior(textMetrics: TextMetrics, animate: Animator, scheduler: Scheduler, fontConfig: MaterialTheme.Companion.FontConfig?, fonts: FontLoader, textColor: Color, backgroundColor: Color, cornerRadius: Double = 0.0, focusManager: FocusManager? = null) : CommonTextButtonBehavior<Button> , PointerListener(source)

Constructors

Link copied to clipboard
constructor(textMetrics: TextMetrics, animate: Animator, scheduler: Scheduler, fontConfig: MaterialTheme.Companion.FontConfig?, fonts: FontLoader, textColor: Color, backgroundColor: Color, cornerRadius: Double = 0.0, focusManager: FocusManager? = null)

Inherited properties

Link copied to clipboard
protected open val selectionChanged: (Button, Boolean, Boolean) -> Unit
Link copied to clipboard
protected open val textChanged: (Button, String, String) -> Unit

Functions

Link copied to clipboard
open override fun clipCanvasToBounds(view: Button): Boolean
Link copied to clipboard
open override fun install(view: Button)
Link copied to clipboard
open override fun pressed(event: PointerEvent)
Link copied to clipboard
open override fun released(event: PointerEvent)
Link copied to clipboard
open override fun render(view: Button, canvas: Canvas)
Link copied to clipboard
open override fun uninstall(view: Button)

Inherited functions

Link copied to clipboard
Link copied to clipboard
open fun clicked(event: PointerEvent)
Link copied to clipboard
open fun contains(view: Button, point: Point): Boolean
Link copied to clipboard
open override fun dragged(event: PointerEvent)
Link copied to clipboard
protected open fun enabledChanged(button: Button)
Link copied to clipboard
open override fun entered(event: PointerEvent)
Link copied to clipboard
open override fun exited(event: PointerEvent)
Link copied to clipboard
fun font(button: Button): Font?
Link copied to clipboard
protected fun icon(button: Button): Icon<Button>?
Link copied to clipboard
fun iconPosition(button: Button, text: String, icon: Icon<Button>, stringPosition: Point, bounds: Rectangle): Point
fun iconPosition(button: Button, text: String, icon: Icon<Button>, textSpacing: TextSpacing, stringPosition: Point, bounds: Rectangle): Point
Link copied to clipboard
Link copied to clipboard
open fun moved(event: PointerEvent)
Link copied to clipboard
protected open fun pointerChanged(button: Button)
Link copied to clipboard
open override fun pressed(event: KeyEvent)
Link copied to clipboard
open override fun released(event: KeyEvent)
Link copied to clipboard
protected open fun stylesChanged(button: Button)
Link copied to clipboard
fun textPosition(button: Button, text: String, icon: Icon<Button>?, bounds: Rectangle, textSpacing: TextSpacing): Point