pub struct Node {Show 24 fields
pub id: NodeId,
pub kind: Kind,
pub name: String,
pub x: f32,
pub y: f32,
pub width: Size,
pub height: Size,
pub opacity: f32,
pub on_click: Option<String>,
pub fill: Option<Fill>,
pub stroke: Option<Color>,
pub stroke_width: f32,
pub radius: [f32; 4],
pub shadow: Option<Shadow>,
pub clip: bool,
pub layout: Layout,
pub gap: f32,
pub padding: [f32; 4],
pub align: Align,
pub justify: Align,
pub text: Option<TextStyle>,
pub vector: Option<Vector>,
pub image: Option<Image>,
pub children: Children<Node>,
}Expand description
One node of a scene.
Fields§
§id: NodeIdWhere the node came from — see NodeId — which no edit around it
changes.
kind: Kind§name: String§x: f32§y: f32§width: Size§height: Size§opacity: f32§on_click: Option<String>§fill: Option<Fill>§stroke: Option<Color>§stroke_width: f32§radius: [f32; 4]§shadow: Option<Shadow>§clip: bool§layout: Layout§gap: f32§padding: [f32; 4]§align: Align§justify: Align§text: Option<TextStyle>§vector: Option<Vector>§image: Option<Image>§children: Children<Node>Implementations§
Trait Implementations§
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 UnsafeUnpin 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