Implement Window::get_cx() to reduce code repetition.