pub struct NodeLayout {
pub kind: NodeLayoutKind,
pub min_pin_row_height: f32,
pub equal_pin_row_heights: bool,
}Expand description
Controls how node elements are laid out.
Fields§
§kind: NodeLayoutKindControls method of laying out node elements.
min_pin_row_height: f32Controls minimal height of pin rows.
equal_pin_row_heights: boolControls how pin rows heights are set. If true, all pin rows will have the same height, matching the largest content. False by default.
Implementations§
Source§impl NodeLayout
impl NodeLayout
Sourcepub const fn coil() -> Self
pub const fn coil() -> Self
Creates new NodeLayout with Coil kind and flexible pin heights.
Sourcepub const fn sandwich() -> Self
pub const fn sandwich() -> Self
Creates new NodeLayout with Sandwich kind and flexible pin heights.
Sourcepub const fn flipped_sandwich() -> Self
pub const fn flipped_sandwich() -> Self
Creates new NodeLayout with FlippedSandwich kind and flexible pin heights.
Sourcepub const fn with_equal_pin_rows(self) -> Self
pub const fn with_equal_pin_rows(self) -> Self
Returns new NodeLayout with same kind and specified pin heights.
Sourcepub const fn with_min_pin_row_height(self, min_pin_row_height: f32) -> Self
pub const fn with_min_pin_row_height(self, min_pin_row_height: f32) -> Self
Returns new NodeLayout with same kind and specified minimum pin row height.
Trait Implementations§
Source§impl Clone for NodeLayout
impl Clone for NodeLayout
Source§fn clone(&self) -> NodeLayout
fn clone(&self) -> NodeLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeLayout
impl Debug for NodeLayout
Source§impl Default for NodeLayout
impl Default for NodeLayout
Source§impl From<NodeLayoutKind> for NodeLayout
impl From<NodeLayoutKind> for NodeLayout
Source§fn from(kind: NodeLayoutKind) -> Self
fn from(kind: NodeLayoutKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NodeLayout
impl PartialEq for NodeLayout
impl Copy for NodeLayout
impl StructuralPartialEq for NodeLayout
Auto Trait Implementations§
impl Freeze for NodeLayout
impl RefUnwindSafe for NodeLayout
impl Send for NodeLayout
impl Sync for NodeLayout
impl Unpin for NodeLayout
impl UnwindSafe for NodeLayout
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