Function conrod::widget::bordered_rectangle::border_triangles [] [src]

pub fn border_triangles(
    rect: Rect,
    border: Scalar
) -> Option<[Triangle<Point>; 8]>

The eight triangles that describe a rectangular border.

rect specifies the outer rectangle and border specifies the thickness of the border.

Returns None if border is less than or equal to 0.