Apply the border, drawing it in the given box.
Get square for corner next counter-clockwise to the given side. Note: returned rectangles may have negative size; rect start position will always point to the corner itself.
Get the rectangle for the given side of the border.
Interface for borders