2 CGRect measurement functions