onPress

fun <S : Drawable> S.onPress(func: S.(Event.Mouse.Pressed) -> Unit): S