pub struct FontBaked(/* private fields */);
Implementations§
Source§impl FontBaked
impl FontBaked
Sourcepub fn get(&self) -> &ImFontBaked
pub fn get(&self) -> &ImFontBaked
Gets a reference to the native wrapper struct.
Source§impl FontBaked
impl FontBaked
Sourcepub fn cast(r: &ImFontBaked) -> &FontBaked
pub fn cast(r: &ImFontBaked) -> &FontBaked
Converts a native reference into a wrapper reference.
Sourcepub fn cast_mut(r: &mut ImFontBaked) -> &mut FontBaked
pub fn cast_mut(r: &mut ImFontBaked) -> &mut FontBaked
Converts a native reference into a wrapper reference.
It is safe because if you have a reference to the native reference, you already can change anything.
Source§impl FontBaked
impl FontBaked
Sourcepub fn find_glyph(&self, c: char) -> &FontGlyph
pub fn find_glyph(&self, c: char) -> &FontGlyph
Gets information about a glyph for a font.
Sourcepub fn find_glyph_no_fallback(&self, c: char) -> Option<&FontGlyph>
pub fn find_glyph_no_fallback(&self, c: char) -> Option<&FontGlyph>
Just like find_glyph
but doesn’t use the fallback character for unavailable glyphs.
pub unsafe fn inner(&mut self) -> &mut ImFontBaked
pub fn set_ascent(&mut self, ascent: f32)
pub fn set_descent(&mut self, descent: f32)
Methods from Deref<Target = ImFontBaked>§
pub fn MetricsTotalSurface(&self) -> u32
pub fn WantDestroy(&self) -> u32
pub fn LoadNoFallback(&self) -> u32
pub fn LoadNoRenderOnLayout(&self) -> u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FontBaked
impl !RefUnwindSafe for FontBaked
impl !Send for FontBaked
impl !Sync for FontBaked
impl Unpin for FontBaked
impl !UnwindSafe for FontBaked
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