Removing obsolete code.
Use std::min() and std::max().  Cleanup and docs.
Remove unnecessary constructor Rect(bool).
Clean up Rect class.
Tidy up class Widget.