docs: def adjustContentsMargins( self ):
          """
          Adjusts the contents for this widget based on the anchor and \
          mode.
          """
          anchor = self.anchor()
          mode   = self.currentMode()
          
          # margins for a dialog
          if ( mode == XPopupWidget.Mode.Dialog ):
              self.setContentsMargins(0, 0, 0, 0)
          
          # margins for a top anchor point
          elif ( anchor & (XPopupWidget.Anchor.TopLeft |
                           XPopupWidget.Anchor.TopCenter |
                           XPopupWidget.Anchor.TopRight) ):
              self.setContentsMargins(0, self.popupPadding() + 5, 0, 0)
          
          # margins for a bottom anchor point
          elif ( anchor & (XPopupWidget.Anchor.BottomLeft |
                           XPopupWidget.Anchor.BottomCenter |
                           XPopupWidget.Anchor.BottomRight) ):
              self.setContentsMargins(0, 0, 0, self.popupPadding())
          
          # margins for a left anchor point
          elif ( anchor & (XPopupWidget.Anchor.LeftTop |
                           XPopupWidget.Anchor.LeftCenter |
                           XPopupWidget.Anchor.LeftBottom) ):
              self.setContentsMargins(self.popupPadding(), 0, 0, 0)
          
          # margins for a right anchor point
          else:
              self.setContentsMargins(0, 0, self.popupPadding(), 0)
          
          self.adjustMask()