Struct nuklear::FontAtlas [−][src]
#[repr(C)]pub struct FontAtlas { /* fields omitted */ }
Methods
impl FontAtlas
[src]
impl FontAtlas
pub fn new(alloc: &mut Allocator) -> FontAtlas
[src]
pub fn new(alloc: &mut Allocator) -> FontAtlas
pub 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) -> u16
pub fn tex_height(&self) -> u16
[src]
pub fn tex_height(&self) -> u16
pub fn custom(&self) -> Recti
[src]
pub fn custom(&self) -> Recti
pub 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) -> FontIterator
pub 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 FontAtlas
fn clone(&self) -> FontAtlas
[src]
fn clone(&self) -> FontAtlas
Returns 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 FontAtlas
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl AsRef<nk_font_atlas> for FontAtlas
[src]
impl AsRef<nk_font_atlas> for FontAtlas
fn as_ref(&self) -> &nk_font_atlas
[src]
fn as_ref(&self) -> &nk_font_atlas
Performs the conversion.
impl AsMut<nk_font_atlas> for FontAtlas
[src]
impl AsMut<nk_font_atlas> for FontAtlas
fn as_mut(&mut self) -> &mut nk_font_atlas
[src]
fn as_mut(&mut self) -> &mut nk_font_atlas
Performs the conversion.
impl AsRef<FontAtlas> for nk_font_atlas
[src]
impl AsRef<FontAtlas> for nk_font_atlas
impl AsMut<FontAtlas> for nk_font_atlas
[src]
impl AsMut<FontAtlas> for nk_font_atlas
impl Default for FontAtlas
[src]
impl Default for FontAtlas
impl Drop for FontAtlas
[src]
impl Drop for FontAtlas