pub struct Transform {
pub parent: Option<Id>,
pub offset: Vec2,
pub item: Option<(RunId, OrderKey)>,
}Expand description
A scene node’s place: its offset from its parent’s — or, for a child of a run, the run’s place for it, read from the run’s prefix sums whenever it is asked for, so a sibling’s change of size moves it without touching it.
Fields§
§parent: Option<Id>The parent node its offset is from; None at the root.
offset: Vec2Its offset from its parent’s place.
item: Option<(RunId, OrderKey)>For a child of a run, the run and its key there, whose place is read
from the run’s prefix sums; None for any other node.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Transform
impl Freeze for Transform
impl Move for Transform
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnsafeUnpin for Transform
impl UnwindSafe for Transformwhere
BoxRaw<[u8]>: UnwindSafe,
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