#[repr(C)]pub struct FontAtlas { /* private fields */ }
Implementations§
Source§impl FontAtlas
impl FontAtlas
pub fn new(alloc: &mut Allocator) -> FontAtlas
pub fn add_font_with_config(&mut self, cfg: &FontConfig) -> Option<FontID>
pub fn add_font_with_bytes( &mut self, font_bytes: &[u8], font_size: f32, ) -> Option<FontID>
pub fn bake(&mut self, format: FontAtlasFormat) -> (&[u8], u32, u32)
pub fn end(&mut self, hnd: Handle, null_texture: Option<&mut DrawNullTexture>)
pub fn cleanup(&mut self)
pub fn begin(&mut self)
pub fn pixels(&self) -> &[u8] ⓘ
pub fn tex_width(&self) -> u16
pub fn tex_height(&self) -> u16
pub fn custom(&self) -> Recti
pub fn cursors(&self) -> &[Cursor]
pub fn glyphs(&self) -> &[FontGlyph]
pub fn fonts_iterator(&self) -> FontIterator<'_>
pub fn font(&self, id: FontID) -> Option<&Font>
Trait Implementations§
Source§impl AsMut<FontAtlas> for nk_font_atlas
impl AsMut<FontAtlas> for nk_font_atlas
Source§impl AsMut<nk_font_atlas> for FontAtlas
impl AsMut<nk_font_atlas> for FontAtlas
Source§fn as_mut(&mut self) -> &mut nk_font_atlas
fn as_mut(&mut self) -> &mut nk_font_atlas
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<FontAtlas> for nk_font_atlas
impl AsRef<FontAtlas> for nk_font_atlas
Source§impl AsRef<nk_font_atlas> for FontAtlas
impl AsRef<nk_font_atlas> for FontAtlas
Source§fn as_ref(&self) -> &nk_font_atlas
fn as_ref(&self) -> &nk_font_atlas
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for FontAtlas
impl RefUnwindSafe for FontAtlas
impl !Send for FontAtlas
impl !Sync for FontAtlas
impl Unpin for FontAtlas
impl UnwindSafe for FontAtlas
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