getStateImage

open fun getStateImage(isEnabled: Boolean, isPressed: Boolean): ButtonImage

Gets the ButtonImage of the button depending on the state

Return

the ButtonImage to set as the image of the button in the current state

Parameters

isEnabled

if true the button is enabled

isPressed

if true the button is pressed