Struct nuklear_rust::NkFontAtlas
[−]
[src]
#[repr(C)]pub struct NkFontAtlas { /* fields omitted */ }
Methods
impl NkFontAtlas[src]
fn new(alloc: &mut NkAllocator) -> NkFontAtlas
fn add_font_with_config(&mut self, cfg: &NkFontConfig) -> Option<Box<NkFont>>
fn add_font_with_bytes(
&mut self,
font_bytes: &[u8],
font_size: f32
) -> Option<Box<NkFont>>
&mut self,
font_bytes: &[u8],
font_size: f32
) -> Option<Box<NkFont>>
fn bake<'a>(&'a mut self, format: NkFontAtlasFormat) -> (&'a [u8], u32, u32)
fn end(&mut self, hnd: NkHandle, null_texture: Option<&mut NkDrawNullTexture>)
fn clear(&mut self)
fn begin(&mut self)
fn pixels(&self) -> &[u8]
fn tex_width(&self) -> u16
fn tex_height(&self) -> u16
fn custom(&self) -> NkRecti
fn cursors(&self) -> &[NkCursor]
fn glyphs(&self) -> &[NkFontGlyph]
fn fonts(&self) -> &[NkFont]
fn configs(&self) -> &[NkFontConfig]
Trait Implementations
impl Clone for NkFontAtlas[src]
fn clone(&self) -> NkFontAtlas
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl AsRef<nk_font_atlas> for NkFontAtlas[src]
fn as_ref(&self) -> &nk_font_atlas
Performs the conversion.
impl AsMut<nk_font_atlas> for NkFontAtlas[src]
fn as_mut(&mut self) -> &mut nk_font_atlas
Performs the conversion.