Hack the toolbar so that it works with the GUI examples. Requires fixing by someone. Also added get_vertical_text_align with a rect, although it was not required