pub struct SceneItem {
pub path: BezPath,
pub node: NodeId,
pub style: NodeId,
pub paint: ScenePaint,
pub kind: PaintKind,
pub opacity: f64,
pub clips: Vec<u32>,
pub blend: BlendMode,
}Fields§
§path: BezPathWorld space, transforms folded in.
node: NodeIdThe shape node that produced this geometry (used for picking).
style: NodeIdThe style node (Fill/Stroke) whose paint produced this item. Lets the gradient tool / inspector target the exact style to edit.
paint: ScenePaintResolved paint. Gradient coordinates are in world space (the owning shape’s local transform is folded in during evaluation), matching the vertex positions the renderer bakes colors from.
kind: PaintKind§opacity: f64§clips: Vec<u32>Clip stack applied to this item, outermost → innermost.
blend: BlendModeTrait Implementations§
Source§impl<'de> Deserialize<'de> for SceneItem
impl<'de> Deserialize<'de> for SceneItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for SceneItem
Auto Trait Implementations§
impl Freeze for SceneItem
impl RefUnwindSafe for SceneItem
impl Send for SceneItem
impl Sync for SceneItem
impl Unpin for SceneItem
impl UnsafeUnpin for SceneItem
impl UnwindSafe for SceneItem
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