pub struct GlyphAtlas { /* private fields */ }Implementations§
Source§impl GlyphAtlas
impl GlyphAtlas
pub fn new(width: u32, height: u32) -> Self
pub fn size(&self) -> (u32, u32)
pub fn version(&self) -> u64
pub fn epoch(&self) -> u64
pub fn pixels(&self) -> &[u8] ⓘ
pub fn take_dirty(&mut self) -> Option<AtlasDirty>
pub fn copy_rect(&self, x: u32, y: u32, w: u32, h: u32, out: &mut Vec<u8>)
pub fn entry(&self, key: &CacheKey) -> Option<AtlasEntry>
pub fn sprite(&self, key: u64) -> Option<AtlasEntry>
pub fn insert_sprite( &mut self, key: u64, w: u32, h: u32, alpha: &[u8], ) -> AtlasEntry
Auto Trait Implementations§
impl !Freeze for GlyphAtlas
impl !RefUnwindSafe for GlyphAtlas
impl !Sync for GlyphAtlas
impl Send 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