(self)
Top left physical coordinates of letterbox relative to screen.
Top left physical coordinates of letterbox relative to screen.
Top left physical coordinates of letterbox relative to screen .
def _calculate_letterbox_shift(self):
        """Top left physical coordinates of letterbox relative to screen."""
        self._letterbox_shift = (
            int(max(0., self._display_size[0] - self._window_size[0]) // 2),
            int(max(0., self._display_size[1] - self._window_size[1]) // 2)
        )
def _calculate_letterbox_shift ( self ) : self . _letterbox_shift = ( int ( max ( 0. , self . _display_size [ 0 ] - self . _window_size [ 0 ] ) // 2 ) , int ( max ( 0. , self . _display_size [ 1 ] - self . _window_size [ 1 ] ) // 2 ) )