Widgets pass the state to draw_widget.