[−][src]Struct nuklear::FontAtlas
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]
&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 AsMut<FontAtlas> for nk_font_atlas
[src]
impl AsMut<nk_font_atlas> for FontAtlas
[src]
fn as_mut(&mut self) -> &mut nk_font_atlas
[src]
impl AsRef<FontAtlas> for nk_font_atlas
[src]
impl AsRef<nk_font_atlas> for FontAtlas
[src]
fn as_ref(&self) -> &nk_font_atlas
[src]
impl Clone for FontAtlas
[src]
impl Default for FontAtlas
[src]
impl Drop for FontAtlas
[src]
Auto Trait Implementations
impl RefUnwindSafe for FontAtlas
impl !Send for FontAtlas
impl !Sync for FontAtlas
impl Unpin for FontAtlas
impl UnwindSafe for FontAtlas
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,