pub enum Draw {
Fill(BezPath, Paint),
Stroke(BezPath, f32, Color),
Glyphs(FontData, f32, Color, Vec<i16>, Vec<Glyph>),
}Expand description
One drawing command, in its chunk’s coordinates: what both vello backends replay. Every decision about the drawing is made before a command is made; a backend only translates it into its library’s call. The layers it is drawn in are nodes of the property trees, not commands.
Variants§
Fill(BezPath, Paint)
Stroke(BezPath, f32, Color)
Glyphs(FontData, f32, Color, Vec<i16>, Vec<Glyph>)
A glyph run: its font, size and color, its point on the font’s variation axes — empty for a static font — and its glyphs.
Auto Trait Implementations§
impl !RefUnwindSafe for Draw
impl !UnwindSafe for Draw
impl Freeze for Draw
impl Send for Draw
impl Sync for Draw
impl Unpin for Draw
impl UnsafeUnpin for Draw
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