pub fn quad(
bounds: Bounds<Pixels>,
corner_radii: impl Into<Corners<Pixels>>,
background: impl Into<Background>,
border_widths: impl Into<Edges<Pixels>>,
border_color: impl Into<Background>,
border_style: BorderStyle,
) -> PaintQuad👎Deprecated:
replaced with builder syntax for PaintQuad
Expand description
Returns a quad with bounds, radii, background, border widths, border color and border style.
Use fill or outline when you need only some properties. Radii larger than bounds produce sharp corners where the arcs meet; clamp radii when that is not wanted.