Fill rect with color; radius rounds the corners and border draws an outline inside.
- ui: the UI whose display list gets the entry.
- rect: the area to fill, in points.
- color: the fill colour.
- radius: corner radius in points.
- border: outline width in points.
- border_color: outline colour.
draw_rect :: (
ui: *UI_State,
rect: Rect,
color: Color,
radius: float = 0,
border: float = 0,
border_color: Color = .{}
)
Fill rect with color; radius rounds the corners and border draws an outline inside.