code: def rotateDirection(self, displayDirection):
          
          if self._needSwapWH(self._display_direction, displayDirection):
              self._display_size = ( self._display_size[1], self._display_size[0] )
              if self.redefineBuffer( { "size":self._display_size, "color_mode":self._buffer_color_mode } ):
                  self.View.resize(self._display_size[0], self._display_size[1])
          self._display_direction = displayDirection
docs: !
          \~english rotate screen direction
          @param displayDirection: Screen Direction. value can be chosen: 0, 90, 180, 270
          \~chinese 旋转显示屏方向
          @param displayDirection: 显示屏方向。可选值： 0, 90, 180, 270
          
          \~
          @note
          \~english after rotate the View resize to screen size 
          \~chinese 改变方向后，默认的 View 大小会更新为当前 Screen 的大小
          \~\n