pub struct Bitmap { /* private fields */ }Expand description
A bitmap font override segment repr, constructed with bitmap().
Refer to the official documentation.
Implementations§
Source§impl Bitmap
For all functions consult the corresponding attributes in
the official docs.
impl Bitmap
For all functions consult the corresponding attributes in the official docs.
Sourcepub fn resize_filter(self, resize_filter: ResizeFilter) -> Self
pub fn resize_filter(self, resize_filter: ResizeFilter) -> Self
How to resize the image.
Default: ResizeFilter::Bilinear.
Sourcepub fn resize_mode(self, resize_mode: ResizeMode) -> Self
pub fn resize_mode(self, resize_mode: ResizeMode) -> Self
Resize aspect method.
Default: ResizeMode::Stretch.
Trait Implementations§
Source§impl ConfigPart for Bitmap
impl ConfigPart for Bitmap
fn to_config_str(&self) -> String
impl Eq for Bitmap
impl StructuralPartialEq for Bitmap
Auto Trait Implementations§
impl Freeze for Bitmap
impl RefUnwindSafe for Bitmap
impl Send for Bitmap
impl Sync for Bitmap
impl Unpin for Bitmap
impl UnwindSafe for Bitmap
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