Added size() to get/set window size.