pub struct NodeBody {
pub layout: NodeLayout,
pub background_color: Color,
pub padding: Padding,
pub socket_text_gap: f32,
pub column_gap: f32,
}Expand description
Defines how the node body should be rendered.
Fields§
§layout: NodeLayoutThe layout for the sockets.
background_color: ColorThe background color.
padding: PaddingThe padding of the body.
socket_text_gap: f32The space between a socket shape and its name text.
column_gap: f32The space between the two columns when layout is NodeLayout::Double.
Trait Implementations§
impl StructuralPartialEq for NodeBody
Auto Trait Implementations§
impl Freeze for NodeBody
impl RefUnwindSafe for NodeBody
impl Send for NodeBody
impl Sync for NodeBody
impl Unpin for NodeBody
impl UnsafeUnpin for NodeBody
impl UnwindSafe for NodeBody
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