pub fn shape(s: &CustomShape) -> ViewExpand description
A Shape written in Rust, drawn with the foreground style.
let chevron = views::shape_fn(|p: &mut views::ShapePath, r: views::Rect| {
p.move_to(r.x, r.y + r.height);
p.line_to(r.x + r.width * 0.5, r.y);
p.line_to(r.x + r.width, r.y + r.height);
});
let v = shape(&chevron).frame(80.0, 80.0);