Repository navigation
v0.14.0: Release 0.14.0: nodes of your own.
Nodes of your own, behind the unstable-node-api feature.
Added
#[derive(Node)]on a struct that implementsDrawmakes it a node.
Fields marked#[signal]get a setter on the builder (Gauge::new())
and a signal on the handle (GaugeHandle), sogauge.value().to(0.8, 1.0)
animates them. Other fields are set once.Draw::drawpaints with the sameDrawCtxasCustom, and
Draw::sizegives the box that layout,Camera::fitandcheckuse.
The node gets position, opacity, effects, flex properties and theme
colors like any built-in one, andchecknames it by its type.DrawCtx::arcstrokes or fills an arc, for gauges and rings.oxframe init --template node my-nodemakes a crate with a node, a demo
scene and a reference test.- The
gaugeexample.