Struct embedded_graphics::style::Style[][src]

pub struct Style<P: PixelColor> {
    pub fill_color: Option<P>,
    pub stroke_color: Option<P>,
    pub stroke_width: u8,
}

Style properties for an object

Fields

Fill colour of the object

Has no effect for fonts

Stroke (border/line) color of the object

For fonts, this is the foreground colour of the text

Stroke width

Set the stroke width for an object. Has no effect on fonts.

Methods

impl<P> Style<P> where
    P: PixelColor
[src]

Create a new style with a given stroke value and defaults for everything else

Trait Implementations

impl<P: Debug + PixelColor> Debug for Style<P>
[src]

Formats the value using the given formatter. Read more

impl<P: Copy + PixelColor> Copy for Style<P>
[src]

impl<P: Clone + PixelColor> Clone for Style<P>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<P> Default for Style<P> where
    P: PixelColor
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<P> Send for Style<P> where
    P: Send

impl<P> Sync for Style<P> where
    P: Sync