pub struct CollectionItem<'a> {
pub path: &'a Path,
pub path_index: usize,
pub offset: Point,
pub transform: Affine2D,
pub gc: Rc<GraphicsContext>,
pub fill: Option<Rgba>,
}Expand description
One resolved item of a PathCollection.
Fields§
§path: &'a PathThe shape.
path_index: usizeIndex of the shape in PathCollection::raw_paths (in paths
for items in ItemCycle::Agg).
offset: PointTranslation of the item in display coordinates.
transform: Affine2DFull transform to display coordinates (offset included).
gc: Rc<GraphicsContext>The graphics context with per-item overrides applied, shared with the items before it until an override changes it.
fill: Option<Rgba>Face colour, or None when the item is not filled.
Trait Implementations§
Source§impl<'a> Clone for CollectionItem<'a>
impl<'a> Clone for CollectionItem<'a>
Auto Trait Implementations§
impl<'a> !Send for CollectionItem<'a>
impl<'a> !Sync for CollectionItem<'a>
impl<'a> Forget for CollectionItem<'a>
impl<'a> Freeze for CollectionItem<'a>
impl<'a> Move for CollectionItem<'a>
impl<'a> RefUnwindSafe for CollectionItem<'a>
impl<'a> Unpin for CollectionItem<'a>
impl<'a> UnsafeUnpin for CollectionItem<'a>
impl<'a> UnwindSafe for CollectionItem<'a>
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