[][src]Struct sensehat_screen::fonts::FontFrame

pub struct FontFrame { /* fields omitted */ }

A font that can be rendered as a PixelFrame with a stroke color, and a background color.

Methods

impl FontFrame[src]

pub fn new(
    font: FontUnicode,
    stroke: PixelColor,
    background: PixelColor
) -> Self
[src]

Create a new font frame with a stroke color, and a background color.

pub fn pixel_frame(&self) -> PixelFrame[src]

The PixelFrame for this font.

Trait Implementations

impl BackgroundColor for FontFrame[src]

impl StrokeColor for FontFrame[src]

impl PartialEq<FontFrame> for FontFrame[src]

impl From<FontFrame> for PixelFrame[src]

impl Debug for FontFrame[src]

Auto Trait Implementations

impl Send for FontFrame

impl Sync for FontFrame

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]