Function layout_2013::display_list::border::radii

source ·
pub fn radii(abs_bounds: Rect<Au>, border_style: &Border) -> BorderRadius
Expand description

Determine the four corner radii of a border.

Radii may either be absolute or relative to the absolute bounds. Each corner radius has a width and a height which may differ. Lastly overlapping radii are shrank so they don’t collide anymore.