[][src]Struct nuklear::FontAtlas

#[repr(C)]pub struct FontAtlas { /* fields omitted */ }

Implementations

impl FontAtlas[src]

pub fn new(alloc: &mut Allocator) -> FontAtlas[src]

pub fn add_font_with_config(&mut self, cfg: &FontConfig) -> Option<FontID>[src]

pub fn add_font_with_bytes(
    &mut self,
    font_bytes: &[u8],
    font_size: f32
) -> Option<FontID>
[src]

pub fn bake(&mut self, format: FontAtlasFormat) -> (&[u8], u32, u32)[src]

pub fn end(&mut self, hnd: Handle, null_texture: Option<&mut DrawNullTexture>)[src]

pub fn cleanup(&mut self)[src]

pub fn begin(&mut self)[src]

pub fn pixels(&self) -> &[u8][src]

pub fn tex_width(&self) -> u16[src]

pub fn tex_height(&self) -> u16[src]

pub fn custom(&self) -> Recti[src]

pub fn cursors(&self) -> &[Cursor][src]

pub fn glyphs(&self) -> &[FontGlyph][src]

pub fn fonts_iterator(&self) -> FontIterator<'_>[src]

pub fn font(&self, id: FontID) -> Option<&Font>[src]

Trait Implementations

impl AsMut<FontAtlas> for nk_font_atlas[src]

impl AsMut<nk_font_atlas> for FontAtlas[src]

impl AsRef<FontAtlas> for nk_font_atlas[src]

impl AsRef<nk_font_atlas> for FontAtlas[src]

impl Clone for FontAtlas[src]

impl Default for FontAtlas[src]

impl Drop for FontAtlas[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.