Draws a rounded rectangle. If compositing is disabled, just draws a normal rectangle.
| cr |
the context to draw with |
| x |
the x location of the rect |
| y |
the y location of the rect |
| width |
the width of the rect |
| height |
the height of the rect |
| top_radius |
the roundedness of the top edge |
| bottom_radius |
the roundedness of the bottom edge |
| line_width |
the line-width of the rect |