pub struct PendingClearRect {
pub page_index: u32,
pub x: u16,
pub y: u16,
pub width: u16,
pub height: u16,
}Expand description
An atlas region that must be cleared to transparent.
Accumulated during eviction (GlyphAtlas::maintain) for every evicted
glyph. The application must drain these via
GlyphAtlas::drain_pending_clear_rects after calling maintain so
that freed atlas regions are zeroed before the slot is reused on a
subsequent frame. This prevents stale pixel data from bleeding through
when the renderer composites (SrcOver) onto the atlas.
Fields§
§page_index: u32Which atlas page contains this region.
x: u16X position of the padded region in the atlas (pixels).
y: u16Y position of the padded region in the atlas (pixels).
width: u16Width of the padded region (pixels).
height: u16Height of the padded region (pixels).
Trait Implementations§
Source§impl Clone for PendingClearRect
impl Clone for PendingClearRect
Source§fn clone(&self) -> PendingClearRect
fn clone(&self) -> PendingClearRect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PendingClearRect
impl Debug for PendingClearRect
impl Copy for PendingClearRect
Auto Trait Implementations§
impl Freeze for PendingClearRect
impl RefUnwindSafe for PendingClearRect
impl Send for PendingClearRect
impl Sync for PendingClearRect
impl Unpin for PendingClearRect
impl UnsafeUnpin for PendingClearRect
impl UnwindSafe for PendingClearRect
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