simpleButtonRenderer
inline fun <T : Button> simpleButtonRenderer(crossinline render: (button: T, canvas: Canvas) -> Unit): CommonButtonBehavior<T>(source)
Creates a CommonButtonBehavior<Button> that uses render to draw a button's contents.
Return
a new CommonButtonBehavior
Parameters
render
called when updating the button
inline fun <T : Button> simpleButtonRenderer(focusManager: FocusManager?, crossinline render: (button: T, canvas: Canvas) -> Unit): CommonButtonBehavior<T>(source)
Creates a CommonButtonBehavior<Button> that uses render to draw a button's contents.
Return
a new CommonButtonBehavior
Parameters
focusManager
used by the backing behavior
render
called when updating the button
inline fun <T : Button> simpleButtonRenderer(focusManager: FocusManager?, crossinline contains: (T, Point) -> Boolean, crossinline render: (button: T, canvas: Canvas) -> Unit): CommonButtonBehavior<T>(source)
Creates a CommonButtonBehavior<Button> that uses render to draw a button's contents.
Return
a new CommonButtonBehavior
Parameters
focusManager
used by the backing behavior
contains
determines whether a Point is within the button
render
called when updating the button