[−][src]Struct nuklear::FontAtlas
Methods
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]
&mut self,
font_bytes: &[u8],
font_size: f32
) -> Option<FontID>
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 Clone for FontAtlas
[src]
fn clone(&self) -> FontAtlas
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Drop for FontAtlas
[src]
impl AsMut<nk_font_atlas> for FontAtlas
[src]
fn as_mut(&mut self) -> &mut nk_font_atlas
[src]
impl AsMut<FontAtlas> for nk_font_atlas
[src]
impl AsRef<nk_font_atlas> for FontAtlas
[src]
fn as_ref(&self) -> &nk_font_atlas
[src]
impl AsRef<FontAtlas> for nk_font_atlas
[src]
impl Default for FontAtlas
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,