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
impl ImFont
pub unsafe fn FindGlyph(&self, c: ImWchar) -> *const ImFontGlyph
pub unsafe fn FindGlyphNoFallback(&self, c: ImWchar) -> *const ImFontGlyph
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
pub unsafe fn CalcWordWrapPositionA( &self, scale: f32, text: *const c_char, text_end: *const c_char, wrap_width: f32, ) -> *const c_char
pub unsafe fn RenderChar( &self, draw_list: *mut ImDrawList, size: f32, pos: *const ImVec2, col: ImU32, c: ImWchar, )
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, )
pub unsafe fn BuildLookupTable(&mut self)
pub unsafe fn ClearOutputData(&mut self)
pub unsafe fn GrowIndex(&mut self, new_size: c_int)
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, )
pub unsafe fn AddRemapChar( &mut self, dst: ImWchar, src: ImWchar, overwrite_dst: bool, )
pub unsafe fn SetGlyphVisible(&mut self, c: ImWchar, visible: bool)
pub unsafe fn IsGlyphRangeUnused( &mut self, c_begin: c_uint, c_last: c_uint, ) -> bool
pub unsafe fn new() -> Self
pub unsafe fn destruct(&mut self)
Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more