Foobar::rect() is a common Qt API convention which is very handy when you need a rect that looks like rect(0, 0, w, h).