pub struct Chunk {
pub transform: Id,
pub space: Space,
pub origin: Vec2,
pub commands: Vec<Command>,
pub cut: Option<Rect>,
pub covers: Vec<Rect>,
pub bounds: Option<Rect>,
pub action: Option<(String, Rect)>,
pub made: Made,
/* private fields */
}Expand description
One scene node’s own commands, in its own coordinates, and their index.
Fields§
§transform: Id§space: SpaceThe space its coordinates are in: the design’s, or a run child’s.
origin: Vec2Where its coordinates’ origin is in its space’s.
commands: Vec<Command>§cut: Option<Rect>What cuts it in its space’s coordinates: its clipping frames’ boxes, those inside its space.
covers: Vec<Rect>What it covers for the drawing’s area, in its own coordinates, uncut: each shape, line and blur by itself.
bounds: Option<Rect>What its commands can touch in the design’s coordinates, cut —
None when that is nothing.
action: Option<(String, Rect)>Its node’s interaction, if it has one, in its own coordinates: the
box (0, 0, width, height).
made: MadeThe property-tree nodes its own layers made.
Implementations§
Source§impl Chunk
impl Chunk
pub fn new( transform: Id, space: Space, origin: Vec2, (commands, made): (Vec<Command>, Made), covers: Vec<KRect>, action: Option<(String, KRect)>, cut: Option<KRect>, ) -> Chunk
Auto Trait Implementations§
impl !RefUnwindSafe for Chunk
impl !UnwindSafe for Chunk
impl Freeze for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnsafeUnpin for Chunk
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