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)
A path filled with a paint.
Stroke(BezPath, f32, Color)
A path’s outline, stroked in one color, as wide in pixels as the f32
says.
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 Forget for Draw
impl Freeze for Drawwhere
*const u8 is !null: Freeze,
PhantomData<PathEl>: Freeze,
PhantomData<Srgb>: Freeze,
*const ColorStop is !null: Freeze,
PhantomData<ColorStop>: Freeze,
*const ArcInner<dyn AsRef<[u8]> + Sync + Send> is !null: Freeze,
PhantomData<ArcInner<dyn AsRef<[u8]> + Sync + Send>>: Freeze,
PhantomData<i16>: Freeze,
PhantomData<Glyph>: Freeze,
impl Move for Draw
impl Send for Draw
impl Sync for Draw
impl Unpin for Draw
impl UnsafeUnpin for Drawwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PathEl>: UnsafeUnpin,
PhantomData<Srgb>: UnsafeUnpin,
*const ColorStop is !null: UnsafeUnpin,
PhantomData<ColorStop>: UnsafeUnpin,
*const ArcInner<dyn AsRef<[u8]> + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn AsRef<[u8]> + Sync + Send>>: UnsafeUnpin,
PhantomData<i16>: UnsafeUnpin,
PhantomData<Glyph>: UnsafeUnpin,
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