Skip to main content

round_shape

Function round_shape 

Source
pub fn round_shape(shape: &mut Shape, window: Rect, corners: CornerRadius)
Expand description

Rounds shape’s corners that cover window’s, by corners: a rectangle (and those in a list of shapes) over a corner of the window or within a line’s width of it (the shell inside the window’s line), its radius less what it stands in from the corner. A plain fill reaching past the window is cut back to it first; a line, a picture or a shadow keeps its place.