Trait embedded_graphics::primitives::OffsetOutline

source ·
pub trait OffsetOutline {
    // Required method
    fn offset(&self, offset: i32) -> Self;
}
Expand description

Offset outline trait.

Required Methods§

source

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.

Object Safety§

This trait is not object safe.

Implementors§