Struct layout2d::node_data::NodeData [] [src]

pub struct NodeData<T: Clone> {
    pub min_width: Option<f32>,
    pub min_height: Option<f32>,
    pub max_width: Option<f32>,
    pub max_height: Option<f32>,
    pub width: Option<f32>,
    pub height: Option<f32>,
    pub flex_direction: FlexDirection,
    pub data: T,
}

Fields

Minimum width of this node

Minimum height of this node

Maximum width of this node

Maximum height of this node

Width of the node (must be initialized for the root node)

Width of the node. (must be initialized for the root node)

What direction the children should flex to

Abstract data of the node, defined by the renderer / application (not inside this library)

Methods

impl<T: Clone> NodeData<T>
[src]

[src]

Creates a new node

[src]

Creates an empty node

Trait Implementations

impl<T: Debug + Clone> Debug for NodeData<T>
[src]

[src]

Formats the value using the given formatter.

impl<T: Clone + Clone> Clone for NodeData<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more