pub enum Node {
Show 15 variants
Empty {},
Text {
content: String,
},
TextField {
content: String,
},
Button {
label: Box<Identified<Node>>,
},
Picker {
title: String,
selection: Id,
content: Box<Identified<Node>>,
},
Child {
wrapped: Box<Identified<Node>>,
},
Group {
children: Vec<Identified<Node>>,
},
VStack {
spacing: f64,
wrapped: Box<Identified<Node>>,
},
HStack {
spacing: f64,
wrapped: Box<Identified<Node>>,
},
ZStack {
spacing: f64,
wrapped: Box<Identified<Node>>,
},
List {
wrapped: Box<Identified<Node>>,
},
Overlay {
wrapped: Box<Identified<Node>>,
alignment: Alignment,
overlayed: Box<Identified<Node>>,
},
Shape {
shape: ShapeNode,
},
Gestured {
wrapped: Box<Identified<Node>>,
gesture: Identified<GestureNode>,
},
Modified {
wrapped: Box<Identified<Node>>,
modifier: ModifierNode,
},
}
Expand description
A rendered UI component tree.
Variants§
Empty
Text
TextField
Button
Fields
§
label: Box<Identified<Node>>
Picker
Child
Fields
§
wrapped: Box<Identified<Node>>
Group
Fields
§
children: Vec<Identified<Node>>
VStack
HStack
ZStack
List
Fields
§
wrapped: Box<Identified<Node>>
Overlay
Shape
Gestured
Modified
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Diff for Node
impl Diff for Node
Source§fn record_diff<'a>(
&'a self,
old: &'a Self,
id_path: &IdPath,
difference: &mut Difference<&'a Self>,
)
fn record_diff<'a>( &'a self, old: &'a Self, id_path: &IdPath, difference: &mut Difference<&'a Self>, )
Appends the difference to “construct” this type from the given other one
to the given difference.
Source§fn diff<'a>(&'a self, old: &'a Self) -> Difference<&'a Self>
fn diff<'a>(&'a self, old: &'a Self) -> Difference<&'a Self>
Computes the difference to “construct” this type from the given other one.
impl StructuralPartialEq 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> 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