pub struct Frame {
pub quads: Vec<Vertex>,
pub glyphs: Vec<TextVertex>,
pub scissors: Vec<Scissor>,
pub glyph_scissors: Vec<Option<u16>>,
pub quad_scissors: Vec<Option<u16>>,
}Expand description
One assembled frame: solid quads, glyph quads, and their clip rectangles.
Fields§
§quads: Vec<Vertex>Solid quads, parents before children so children paint on top.
glyphs: Vec<TextVertex>Glyph quads with their atlas coordinates.
scissors: Vec<Scissor>Clip rectangles referenced by the per-node scissor indices.
glyph_scissors: Vec<Option<u16>>Scissor index per glyph, or None when the glyph is unclipped.
quad_scissors: Vec<Option<u16>>Scissor index per quad vertex, or None when unclipped.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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