pub struct Node {
pub attr: Attribute,
pub class: Vec<Class>,
pub style: Vec<Style>,
pub children: Vec<Rc<RefCell<Node>>>,
pub pre: Option<Weak<RefCell<Node>>>,
pub state: Option<StateKV>,
pub gesture: Option<GestureKV>,
}
Expand description
Virtual UI Node
Fields§
§attr: Attribute
Node attribute
class: Vec<Class>
Node Class
style: Vec<Style>
Node Class
children: Vec<Rc<RefCell<Node>>>
Node children
pre: Option<Weak<RefCell<Node>>>
Node parent
state: Option<StateKV>
Node state
gesture: Option<GestureKV>
Node Gestures
Implementations§
Trait Implementations§
Source§impl<W> Into<Node> for GestureDetector<W>
impl<W> Into<Node> for GestureDetector<W>
impl Eq for Node
Auto Trait Implementations§
impl Freeze for Node
impl !RefUnwindSafe for Node
impl !Send for Node
impl !Sync for Node
impl Unpin for Node
impl !UnwindSafe for Node
Blanket Implementations§
Source§impl<T> AlignItems for T
impl<T> AlignItems for T
Source§fn align_items(self, value: FlexPosition) -> Node
fn align_items(self, value: FlexPosition) -> Node
AlignItem Style
Source§impl<T> BackgroundColor for T
impl<T> BackgroundColor for T
Source§fn background_color(self, value: Color) -> Node
fn background_color(self, value: Color) -> Node
Custom Color
Source§impl<T> BorderBottom for T
impl<T> BorderBottom for T
Source§fn border_bottom(self, value: BoxBorder) -> Node
fn border_bottom(self, value: BoxBorder) -> Node
Border Bottom
Source§impl<T> BorderLeft for T
impl<T> BorderLeft for T
Source§fn border_left(self, value: BoxBorder) -> Node
fn border_left(self, value: BoxBorder) -> Node
Border Left
Source§impl<T> BorderRight for T
impl<T> BorderRight for T
Source§fn border_right(self, value: BoxBorder) -> Node
fn border_right(self, value: BoxBorder) -> Node
Border Right
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ColumnCount for T
impl<T> ColumnCount for T
Source§fn column_count(self, value: Unit) -> Node
fn column_count(self, value: Unit) -> Node
ColumnCount Style
Source§impl<T> ColumnRuleColor for T
impl<T> ColumnRuleColor for T
Source§fn column_rule_color(self, value: Color) -> Node
fn column_rule_color(self, value: Color) -> Node
ColumnRuleColor Style
Source§impl<T> ColumnRuleStyle for T
impl<T> ColumnRuleStyle for T
Source§fn column_rule_style(self, value: MultiColumnLineStyle) -> Node
fn column_rule_style(self, value: MultiColumnLineStyle) -> Node
ColumnRuleStyle Style
Source§impl<T> FontStretch for T
impl<T> FontStretch for T
Source§fn font_stretch(self, value: Unit) -> Node
fn font_stretch(self, value: Unit) -> Node
Font Stretch Style
Source§impl<T> FontWeight for T
impl<T> FontWeight for T
Source§fn font_weight(self, value: Unit) -> Node
fn font_weight(self, value: Unit) -> Node
Font Weight Style
Source§impl<T> GridAutoColumns for T
impl<T> GridAutoColumns for T
Source§fn grid_auto_columns(self, value: GridAuto) -> Node
fn grid_auto_columns(self, value: GridAuto) -> Node
GridAutoColumn Style
Source§impl<T> GridAutoFlow for T
impl<T> GridAutoFlow for T
Source§fn grid_auto_flow(self, value: GridFlow) -> Node
fn grid_auto_flow(self, value: GridFlow) -> Node
GridAutoFlow Style
Source§impl<T> GridAutoRows for T
impl<T> GridAutoRows for T
Source§fn grid_auto_rows(self, value: GridAuto) -> Node
fn grid_auto_rows(self, value: GridAuto) -> Node
GridAutoColumn Style
Source§impl<T> GridColumnGap for T
impl<T> GridColumnGap for T
Source§fn grid_column_gap(self, value: Unit) -> Node
fn grid_column_gap(self, value: Unit) -> Node
GridColumnGap Style
Source§impl<T> GridRowGap for T
impl<T> GridRowGap for T
Source§fn grid_row_rap(self, value: Unit) -> Node
fn grid_row_rap(self, value: Unit) -> Node
GridColumnGap Style
Source§impl<T> GridTemplateColumns for T
impl<T> GridTemplateColumns for T
Source§fn grid_template_columns(self, value: GridTemplate) -> Node
fn grid_template_columns(self, value: GridTemplate) -> Node
GridTemplateColumns Style
Source§impl<T> GridTemplateRows for T
impl<T> GridTemplateRows for T
Source§fn grid_tempalte_row(self, value: GridTemplate) -> Node
fn grid_tempalte_row(self, value: GridTemplate) -> Node
GridTemplateRow Style
Source§impl<T> JustifyContent for T
impl<T> JustifyContent for T
Source§fn justify_content(self, value: FlexPosition) -> Node
fn justify_content(self, value: FlexPosition) -> Node
AlignItem Style
Source§impl<T> LineHeight for T
impl<T> LineHeight for T
Source§fn line_hegiht(self, value: Unit) -> Node
fn line_hegiht(self, value: Unit) -> Node
Line Height Style
Source§impl<T> MarginBottom for T
impl<T> MarginBottom for T
Source§fn margin_bottom(self, value: Unit) -> Node
fn margin_bottom(self, value: Unit) -> Node
Margin Bottom
Source§impl<T> MarginLeft for T
impl<T> MarginLeft for T
Source§fn margin_left(self, value: Unit) -> Node
fn margin_left(self, value: Unit) -> Node
Margin left
Source§impl<T> MarginRight for T
impl<T> MarginRight for T
Source§fn margin_right(self, value: Unit) -> Node
fn margin_right(self, value: Unit) -> Node
Margin right
Source§impl<T> OutlineWidth for T
impl<T> OutlineWidth for T
Source§fn outline_width(self, value: Unit) -> Node
fn outline_width(self, value: Unit) -> Node
Box Outline Width
Source§impl<T> PaddingBottom for T
impl<T> PaddingBottom for T
Source§fn padding_bottom(self, value: Unit) -> Node
fn padding_bottom(self, value: Unit) -> Node
Padding Bottom
Source§impl<T> PaddingLeft for T
impl<T> PaddingLeft for T
Source§fn padding_left(self, value: Unit) -> Node
fn padding_left(self, value: Unit) -> Node
Padding left
Source§impl<T> PaddingRight for T
impl<T> PaddingRight for T
Source§fn padding_right(self, value: Unit) -> Node
fn padding_right(self, value: Unit) -> Node
Padding right
Source§impl<T> PaddingTop for T
impl<T> PaddingTop for T
Source§fn padding_top(self, value: Unit) -> Node
fn padding_top(self, value: Unit) -> Node
Padding Top