Struct sensehat_screen::fonts::FontFrame [−][src]
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]
impl FontFramepub fn new(
font: FontUnicode,
stroke: PixelColor,
background: PixelColor
) -> Self[src]
pub fn new(
font: FontUnicode,
stroke: PixelColor,
background: PixelColor
) -> SelfCreate a new font frame with a stroke color, and a background color.
pub fn pixel_frame(&self) -> PixelFrame[src]
pub fn pixel_frame(&self) -> PixelFrameThe PixelFrame for this font.
Trait Implementations
impl Debug for FontFrame[src]
impl Debug for FontFramefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for FontFrame[src]
impl PartialEq for FontFramefn eq(&self, other: &FontFrame) -> bool[src]
fn eq(&self, other: &FontFrame) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &FontFrame) -> bool[src]
fn ne(&self, other: &FontFrame) -> boolThis method tests for !=.
impl From<FontFrame> for PixelFrame[src]
impl From<FontFrame> for PixelFrameimpl BackgroundColor for FontFrame[src]
impl BackgroundColor for FontFramefn set_background_color(&mut self, color: PixelColor)[src]
fn set_background_color(&mut self, color: PixelColor)Sets the background color.
fn get_background_color(&self) -> PixelColor[src]
fn get_background_color(&self) -> PixelColorGets the background color.
impl StrokeColor for FontFrame[src]
impl StrokeColor for FontFramefn set_stroke_color(&mut self, color: PixelColor)[src]
fn set_stroke_color(&mut self, color: PixelColor)Sets the stroke color.
fn get_stroke_color(&self) -> PixelColor[src]
fn get_stroke_color(&self) -> PixelColorGets the stroke color.