[][src]Struct bear_lib_terminal::terminal::config::font::Bitmap

pub struct Bitmap { /* fields omitted */ }

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]

impl Clone for 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]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Bitmap

impl Sync for Bitmap

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]