This lets you draw on the window (or its backing buffer) using basic 2D primitives.
Be sure to call this in a limited scope because your changes will not actually appear on the window until ScreenPainter's destructor runs.
an instance of ScreenPainter, which has the drawing methods on it to draw on this window.
See Implementation
The manualInvalidations parameter overload was added on December 30, 2021 (dub v10.5)
This lets you draw on the window (or its backing buffer) using basic 2D primitives.
Be sure to call this in a limited scope because your changes will not actually appear on the window until ScreenPainter's destructor runs.