ImFont

Struct ImFont 

Source
#[repr(C)]
pub struct ImFont {
Show 16 fields pub font_size: c_float, pub scale: c_float, pub display_offset: ImVec2, pub glyphs: ImVector<ImFontGlyph>, pub index_advance_x: ImVector<c_float>, pub index_lookup: ImVector<ImWchar>, pub fallback_glyph: *const ImFontGlyph, pub fallback_advance_x: c_float, pub fallback_char: ImWchar, pub config_data_count: c_short, pub config_data: *mut ImFontConfig, pub container_atlas: *mut ImFontAtlas, pub ascent: c_float, pub descent: c_float, pub dirty_lookup_tables: bool, pub metrics_total_surface: c_int,
}

Fields§

§font_size: c_float§scale: c_float§display_offset: ImVec2§glyphs: ImVector<ImFontGlyph>§index_advance_x: ImVector<c_float>§index_lookup: ImVector<ImWchar>§fallback_glyph: *const ImFontGlyph§fallback_advance_x: c_float§fallback_char: ImWchar§config_data_count: c_short§config_data: *mut ImFontConfig§container_atlas: *mut ImFontAtlas§ascent: c_float§descent: c_float§dirty_lookup_tables: bool§metrics_total_surface: c_int

Auto Trait Implementations§

§

impl Freeze for ImFont

§

impl RefUnwindSafe for ImFont

§

impl !Send for ImFont

§

impl !Sync for ImFont

§

impl Unpin for ImFont

§

impl UnwindSafe for ImFont

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.