onRedrawNeeded

fun onRedrawNeeded(request: () -> Unit)

Lets the engine ask the host's window to draw again when something changed (a shape, a selection, a step undone). attachTo does this; call it yourself to use a window attachTo does not know.