pub struct PathCollectionData {
pub master_transform: Affine2D,
pub paths: Vec<Path>,
pub path_transforms: Vec<Affine2D>,
pub offsets: Vec<Point>,
pub facecolors: Vec<Rgba>,
pub edgecolors: Vec<Rgba>,
pub hatchcolors: Vec<Rgba>,
pub linewidths: Vec<f64>,
pub dashes: Vec<Dashes>,
pub antialiased: Vec<bool>,
pub urls: Vec<Option<String>>,
}Expand description
The arguments of a PathCollection owned rather than borrowed, for
a drawing kept until it is drawn (what a program drew through a
renderer of its own, see pltrs::artist::Drawing).
Fields§
§master_transform: Affine2DApplied after each item’s own transform.
paths: Vec<Path>Item shapes.
path_transforms: Vec<Affine2D>Per-item transforms applied before master_transform.
offsets: Vec<Point>Per-item translations in display coordinates.
facecolors: Vec<Rgba>Face colours; empty = no fills.
edgecolors: Vec<Rgba>Edge colours; empty = no strokes.
hatchcolors: Vec<Rgba>Hatch colours.
linewidths: Vec<f64>Edge line widths in points.
dashes: Vec<Dashes>Edge dash patterns.
antialiased: Vec<bool>Per-item anti-aliasing.
urls: Vec<Option<String>>Per-item hyperlinks.
Implementations§
Source§impl PathCollectionData
impl PathCollectionData
Sourcepub fn view(&self) -> PathCollection<'_>
pub fn view(&self) -> PathCollection<'_>
The collection these arguments describe.
Trait Implementations§
Source§impl Clone for PathCollectionData
impl Clone for PathCollectionData
Source§impl Debug for PathCollectionData
impl Debug for PathCollectionData
Source§impl Default for PathCollectionData
impl Default for PathCollectionData
Source§impl PartialEq for PathCollectionData
impl PartialEq for PathCollectionData
impl StructuralPartialEq for PathCollectionData
Auto Trait Implementations§
impl Forget for PathCollectionData
impl Freeze for PathCollectionData
impl Move for PathCollectionData
impl RefUnwindSafe for PathCollectionData
impl Send for PathCollectionData
impl Sync for PathCollectionData
impl Unpin for PathCollectionData
impl UnsafeUnpin for PathCollectionData
impl UnwindSafe for PathCollectionData
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