pub struct FontFrame { /* private fields */ }Expand description
A font that can be rendered as a PixelFrame with a stroke color, and a background color.
Implementations§
Source§impl FontFrame
impl FontFrame
Sourcepub fn new(
font: FontUnicode,
stroke: PixelColor,
background: PixelColor,
) -> Self
pub fn new( font: FontUnicode, stroke: PixelColor, background: PixelColor, ) -> Self
Create a new font frame with a stroke color, and a background color.
Sourcepub fn pixel_frame(&self) -> PixelFrame
pub fn pixel_frame(&self) -> PixelFrame
The PixelFrame for this font.
Trait Implementations§
Source§impl BackgroundColor for FontFrame
impl BackgroundColor for FontFrame
Source§fn set_background_color(&mut self, color: PixelColor)
fn set_background_color(&mut self, color: PixelColor)
Sets the background color.
Source§fn get_background_color(&self) -> PixelColor
fn get_background_color(&self) -> PixelColor
Gets the background color.
Source§impl From<FontFrame> for PixelFrame
impl From<FontFrame> for PixelFrame
Source§impl StrokeColor for FontFrame
impl StrokeColor for FontFrame
Source§fn set_stroke_color(&mut self, color: PixelColor)
fn set_stroke_color(&mut self, color: PixelColor)
Sets the stroke color.
Source§fn get_stroke_color(&self) -> PixelColor
fn get_stroke_color(&self) -> PixelColor
Gets the stroke color.
impl StructuralPartialEq for FontFrame
Auto Trait Implementations§
impl Freeze for FontFrame
impl RefUnwindSafe for FontFrame
impl Send for FontFrame
impl Sync for FontFrame
impl Unpin for FontFrame
impl UnwindSafe for FontFrame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more