Trait OffsetOutline
Other items inembedded_graphics::primitives
pub trait OffsetOutline { fn offset(&self, offset: i32) -> Self; }
Offset outline trait.
fn offset(&self, offset: i32) -> Self
Offsets the outline of the shape.
The offset is applied perpendicular to each element of the outline. Offset values greater than zero will expand the shape and values less than zero will shrink the shape.
impl OffsetOutline for Circle
impl OffsetOutline for Ellipse
impl OffsetOutline for Rectangle
impl OffsetOutline for RoundedRectangle
impl OffsetOutline for Sector