Struct easy_imgui_sys::ImFont

source ·
#[repr(C)]
pub struct ImFont {
Show 20 fields pub IndexAdvanceX: ImVector<f32>, pub FallbackAdvanceX: f32, pub FontSize: f32, pub IndexLookup: ImVector<ImWchar>, pub Glyphs: ImVector<ImFontGlyph>, pub FallbackGlyph: *const ImFontGlyph, pub ContainerAtlas: *mut ImFontAtlas, pub ConfigData: *const ImFontConfig, pub ConfigDataCount: c_short, pub FallbackChar: ImWchar, pub EllipsisChar: ImWchar, pub EllipsisCharCount: c_short, pub EllipsisWidth: f32, pub EllipsisCharStep: f32, pub DirtyLookupTables: bool, pub Scale: f32, pub Ascent: f32, pub Descent: f32, pub MetricsTotalSurface: c_int, pub Used4kPagesMap: [ImU8; 34],
}

Fields§

§IndexAdvanceX: ImVector<f32>§FallbackAdvanceX: f32§FontSize: f32§IndexLookup: ImVector<ImWchar>§Glyphs: ImVector<ImFontGlyph>§FallbackGlyph: *const ImFontGlyph§ContainerAtlas: *mut ImFontAtlas§ConfigData: *const ImFontConfig§ConfigDataCount: c_short§FallbackChar: ImWchar§EllipsisChar: ImWchar§EllipsisCharCount: c_short§EllipsisWidth: f32§EllipsisCharStep: f32§DirtyLookupTables: bool§Scale: f32§Ascent: f32§Descent: f32§MetricsTotalSurface: c_int§Used4kPagesMap: [ImU8; 34]

Implementations§

source§

impl ImFont

source

pub unsafe fn FindGlyph(&self, c: ImWchar) -> *const ImFontGlyph

source

pub unsafe fn FindGlyphNoFallback(&self, c: ImWchar) -> *const ImFontGlyph

source

pub unsafe fn CalcTextSizeA( &self, size: f32, max_width: f32, wrap_width: f32, text_begin: *const c_char, text_end: *const c_char, remaining: *mut *const c_char ) -> ImVec2

source

pub unsafe fn CalcWordWrapPositionA( &self, scale: f32, text: *const c_char, text_end: *const c_char, wrap_width: f32 ) -> *const c_char

source

pub unsafe fn RenderChar( &self, draw_list: *mut ImDrawList, size: f32, pos: *const ImVec2, col: ImU32, c: ImWchar )

source

pub unsafe fn RenderText( &self, draw_list: *mut ImDrawList, size: f32, pos: *const ImVec2, col: ImU32, clip_rect: *const ImVec4, text_begin: *const c_char, text_end: *const c_char, wrap_width: f32, cpu_fine_clip: bool )

source

pub unsafe fn BuildLookupTable(&mut self)

source

pub unsafe fn ClearOutputData(&mut self)

source

pub unsafe fn GrowIndex(&mut self, new_size: c_int)

source

pub unsafe fn AddGlyph( &mut self, src_cfg: *const ImFontConfig, c: ImWchar, x0: f32, y0: f32, x1: f32, y1: f32, u0: f32, v0: f32, u1: f32, v1: f32, advance_x: f32 )

source

pub unsafe fn AddRemapChar( &mut self, dst: ImWchar, src: ImWchar, overwrite_dst: bool )

source

pub unsafe fn SetGlyphVisible(&mut self, c: ImWchar, visible: bool)

source

pub unsafe fn IsGlyphRangeUnused( &mut self, c_begin: c_uint, c_last: c_uint ) -> bool

source

pub unsafe fn new() -> Self

source

pub unsafe fn destruct(&mut self)

Trait Implementations§

source§

impl Debug for ImFont

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

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>,

§

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>,

§

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.