Skip to main content
Rust4PM

SceneNode

One node: a shape at a position, plus whatever is drawn inside it.
Used as Input

0

functions accept this type(+1 nested)

Used as Output

0

functions return this type(+8 nested)

Type Definition

286 nested items
struct— One node: a shape at a position, plus whatever is drawn inside it.
attrs:Attrs— Escape-hatch attributes available on every drawable.
id:Option<String>— The element's id.
style:Option<String>— Inline CSS, emitted as the style attribute.
content:Vec<NodeContent>— What is drawn inside, in list order, over the fill and border.
fill:Option<String>— Fill colour. Falls back to the theme's node background.
rect:SceneRect— An axis-aligned rectangle, given by its top-left corner and its size.
h*:f64— Height.
w*:f64— Width.
x*:f64— Left edge.
y*:f64— Top edge.
shape:Shape— Node outline shape.
stroke:Option<Stroke>— Border stroke. None draws a 1-unit border in the theme's node border colour.
variant 2:()

Example JSON Value

{}