def _CalculateRect(self, bounds):
        """
        Calculate the rectangle that this decoration is going to paint
        """
        if self.side is None:
            return bounds
        if self.side == wx.LEFT:
            return (RectUtils.Left(bounds), RectUtils.Top(bounds), self.width, RectUtils.Height(bounds))
        if self.side == wx.RIGHT:
            return (RectUtils.Right(bounds) - self.width, RectUtils.Top(bounds), self.width, RectUtils.Height(bounds))
        if self.side == wx.TOP:
            return (RectUtils.Left(bounds), RectUtils.Top(bounds), RectUtils.Width(bounds), self.width)
        if self.side == wx.BOTTOM:
            return (RectUtils.Left(bounds), RectUtils.Bottom(bounds) - self.width, RectUtils.Width(bounds), self.width)

        return bounds

#----------------------------------------------------------------------------
dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/lib/ObjectListView/ListCtrlPrinter.py/RectangleDecoration._CalculateRect/original