pub struct LayoutStateHierarchical {
pub triggered: bool,
pub row_dist: f32,
pub col_dist: f32,
pub center_parent: bool,
pub orientation: Orientation,
}
Fields§
§triggered: bool
Run only once unless reset via GraphView::reset_layout or by setting triggered = false
.
row_dist: f32
Distance between levels (rows). Interpreted as Y step for TopDown and X step for LeftRight.
col_dist: f32
Distance between siblings/columns. Interpreted as X step for TopDown and Y step for LeftRight.
center_parent: bool
Center a parent above/beside the span of its children.
orientation: Orientation
Layout orientation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for State
impl<'de> Deserialize<'de> for State
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
Source§impl Layout<State> for Hierarchical
impl Layout<State> for Hierarchical
impl LayoutState for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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