[][src]Struct imgui::Font

#[repr(C)]pub struct Font {
    pub fallback_advance_x: f32,
    pub font_size: f32,
    pub config_data_count: i16,
    pub fallback_char: ImWchar,
    pub ellipsis_char: ImWchar,
    pub dirty_lookup_tables: bool,
    pub scale: f32,
    pub ascent: f32,
    pub descent: f32,
    pub metrics_total_surface: c_int,
    pub used_4k_pages_map: [u8; 2],
    // some fields omitted
}

Runtime data for a single font within a font atlas

Fields

fallback_advance_x: f32font_size: f32config_data_count: i16fallback_char: ImWcharellipsis_char: ImWchardirty_lookup_tables: boolscale: f32ascent: f32descent: f32metrics_total_surface: c_intused_4k_pages_map: [u8; 2]

Implementations

impl Font[src]

pub fn id(&self) -> FontId[src]

Returns the identifier of this font

Trait Implementations

impl RawCast<ImFont> for Font[src]

Auto Trait Implementations

impl RefUnwindSafe for Font

impl !Send for Font

impl !Sync for Font

impl Unpin for Font

impl UnwindSafe for Font

Blanket Implementations

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

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

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

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

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

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.