[−][src]Struct bear_lib_terminal::terminal::config::font::Bitmap
A bitmap font override segment repr, constructed with bitmap()
.
Refer to the official documentation.
Methods
impl Bitmap
[src]
For all functions consult the corresponding attributes in the official docs.
pub fn size(self, size: Size) -> Self
[src]
The size of a single tile in the tileset.
pub fn resize(self, resize: Size) -> Self
[src]
The size to resize the image to.
pub fn resize_filter(self, resize_filter: ResizeFilter) -> Self
[src]
How to resize the image.
Default: ResizeFilter::Bilinear
.
pub fn resize_mode(self, resize_mode: ResizeMode) -> Self
[src]
Resize aspect method.
Default: ResizeMode::Stretch
.
pub fn raw_size(self, raw_size: Size) -> Self
[src]
Raw memory size, size
if not specified.
pub fn codepage(self, codepage: String) -> Self
[src]
Tileset's codepage.
Default: "ascii"
.
pub fn align(self, align: Align) -> Self
[src]
How tiles are to be aligned.
Default: Align::Center
.
pub fn spacing(self, spacing: Size) -> Self
[src]
Tile alignment area [cells].
Default: 1x1
.
Trait Implementations
impl ConfigPart for Bitmap
[src]
fn to_config_str(&self) -> String
[src]
impl Clone for Bitmap
[src]
fn clone(&self) -> Bitmap
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for Bitmap
[src]
impl PartialEq<Bitmap> for Bitmap
[src]
impl Debug for Bitmap
[src]
impl Hash for Bitmap
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut 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,