Add some drawing code for various widget classes.