[−][src]Struct sensehat_screen::fonts::FontFrame
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]
font: FontUnicode,
stroke: PixelColor,
background: PixelColor
) -> Self
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]
fn set_background_color(&mut self, color: PixelColor)[src]
fn get_background_color(&self) -> PixelColor[src]
impl StrokeColor for FontFrame[src]
fn set_stroke_color(&mut self, color: PixelColor)[src]
fn get_stroke_color(&self) -> PixelColor[src]
impl PartialEq<FontFrame> for FontFrame[src]
impl From<FontFrame> for PixelFrame[src]
impl Debug for FontFrame[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,