pub struct GlyphAtlas { /* private fields */ }Implementations§
Source§impl GlyphAtlas
impl GlyphAtlas
pub fn new(config: AtlasConfig) -> Self
pub fn config(&self) -> AtlasConfig
pub fn used_size(&self) -> [u32; 2]
pub fn entry(&self, key: &GlyphKey) -> Option<AtlasEntry>
pub fn ensure_glyph( &mut self, key: GlyphKey, size: [u32; 2], ) -> Option<AtlasEntry>
Trait Implementations§
Source§impl Clone for GlyphAtlas
impl Clone for GlyphAtlas
Auto Trait Implementations§
impl Freeze for GlyphAtlas
impl RefUnwindSafe for GlyphAtlas
impl Send for GlyphAtlas
impl Sync for GlyphAtlas
impl Unpin for GlyphAtlas
impl UnsafeUnpin for GlyphAtlas
impl UnwindSafe for GlyphAtlas
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more