pub enum Place {
NextTo {
other: NodeId,
side: Side,
gap: f64,
},
AlignTo {
other: NodeId,
edge: Edge,
},
ToEdge {
edge: Edge,
},
CenterIn {
other: NodeId,
},
}Expand description
How a node is placed. Resolved every frame; not set by scene code directly.
Variants§
NextTo
Outside other, on side, separated by gap pixels.
Fields
AlignTo
This node’s edge lines up with the neighbor’s same edge.
ToEdge
Against the safe area, on edge. The other axis stays where it is.
CenterIn
Same center as other. The view centers on the frame.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Place
impl RefUnwindSafe for Place
impl Send for Place
impl Sync for Place
impl Unpin for Place
impl UnsafeUnpin for Place
impl UnwindSafe for Place
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