pub struct DrawItem {
pub node: NodeId,
pub transform: Affine,
pub prim: Primitive,
}Expand description
One thing to paint, in local coordinates of transform. Paints already
include the node’s opacity (unless the node draws into a layer).
Fields§
§node: NodeIdNode that produced this item (for hit testing and the inspector).
transform: AffineLocal → scene transform.
prim: PrimitiveWhat to draw.
Trait Implementations§
Auto Trait Implementations§
impl !Send for DrawItem
impl !Sync for DrawItem
impl Freeze for DrawItem
impl RefUnwindSafe for DrawItem
impl Unpin for DrawItem
impl UnsafeUnpin for DrawItem
impl UnwindSafe for DrawItem
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