pub struct Draw {
pub fills: Vec<(Rgba, Vec<[f32; 2]>)>,
pub strokes: Vec<(Rgba, Vec<[f32; 2]>)>,
}Expand description
Resolved vector output: filled polygons + stroked polylines, each with its own colour so one widget can mix theme slots (track vs fill vs accent).
Fields§
§fills: Vec<(Rgba, Vec<[f32; 2]>)>§strokes: Vec<(Rgba, Vec<[f32; 2]>)>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Draw
impl RefUnwindSafe for Draw
impl Send for Draw
impl Sync for Draw
impl Unpin for Draw
impl UnsafeUnpin for Draw
impl UnwindSafe 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