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 compact() -> Self
pub const fn compact() -> Self
Creates new NodeLayout with compact kind and flexible pin heights.
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