Struct nuklear::FontAtlas [−][src]
#[repr(C)]pub struct FontAtlas { /* fields omitted */ }
Methods
impl FontAtlas[src]
impl FontAtlaspub fn new(alloc: &mut Allocator) -> FontAtlas[src]
pub fn new(alloc: &mut Allocator) -> FontAtlaspub fn add_font_with_config(&mut self, cfg: &FontConfig) -> Option<FontID>[src]
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>[src]
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)[src]
pub fn bake(&mut self, format: FontAtlasFormat) -> (&[u8], u32, u32)pub fn end(&mut self, hnd: Handle, null_texture: Option<&mut DrawNullTexture>)[src]
pub fn end(&mut self, hnd: Handle, null_texture: Option<&mut DrawNullTexture>)pub fn cleanup(&mut self)[src]
pub fn cleanup(&mut self)pub fn begin(&mut self)[src]
pub fn begin(&mut self)pub fn pixels(&self) -> &[u8][src]
pub fn pixels(&self) -> &[u8]pub fn tex_width(&self) -> u16[src]
pub fn tex_width(&self) -> u16pub fn tex_height(&self) -> u16[src]
pub fn tex_height(&self) -> u16pub fn custom(&self) -> Recti[src]
pub fn custom(&self) -> Rectipub fn cursors(&self) -> &[Cursor][src]
pub fn cursors(&self) -> &[Cursor]pub fn glyphs(&self) -> &[FontGlyph][src]
pub fn glyphs(&self) -> &[FontGlyph]pub fn fonts_iterator(&self) -> FontIterator[src]
pub fn fonts_iterator(&self) -> FontIteratorpub fn font(&self, id: FontID) -> Option<&Font>[src]
pub fn font(&self, id: FontID) -> Option<&Font>Trait Implementations
impl Clone for FontAtlas[src]
impl Clone for FontAtlasfn clone(&self) -> FontAtlas[src]
fn clone(&self) -> FontAtlasReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for FontAtlas[src]
impl Debug for FontAtlasfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl AsRef<nk_font_atlas> for FontAtlas[src]
impl AsRef<nk_font_atlas> for FontAtlasfn as_ref(&self) -> &nk_font_atlas[src]
fn as_ref(&self) -> &nk_font_atlasPerforms the conversion.
impl AsMut<nk_font_atlas> for FontAtlas[src]
impl AsMut<nk_font_atlas> for FontAtlasfn as_mut(&mut self) -> &mut nk_font_atlas[src]
fn as_mut(&mut self) -> &mut nk_font_atlasPerforms the conversion.
impl AsRef<FontAtlas> for nk_font_atlas[src]
impl AsRef<FontAtlas> for nk_font_atlasimpl AsMut<FontAtlas> for nk_font_atlas[src]
impl AsMut<FontAtlas> for nk_font_atlasimpl Default for FontAtlas[src]
impl Default for FontAtlasimpl Drop for FontAtlas[src]
impl Drop for FontAtlas