Make the Gui classes respond to on_resize events.