docs: def direction( self ):
          """
          Returns the current direction parameter for this widget.
          
          :return     <XPopupWidget.Direction>
          """
          anchor = self.anchor()
          if ( anchor & (XPopupWidget.Anchor.TopLeft |
                         XPopupWidget.Anchor.TopCenter |
                         XPopupWidget.Anchor.TopRight) ):
              return XPopupWidget.Direction.North
          
          elif ( anchor & (XPopupWidget.Anchor.BottomLeft |
                           XPopupWidget.Anchor.BottomCenter |
                           XPopupWidget.Anchor.BottomRight) ):
              return XPopupWidget.Direction.South
          
          elif ( anchor & (XPopupWidget.Anchor.LeftTop |
                           XPopupWidget.Anchor.LeftCenter |
                           XPopupWidget.Anchor.LeftBottom) ):
              return XPopupWidget.Direction.East
          
          else:
              return XPopupWidget.Direction.West