Skip to main content

Module node_api

Module node_api 

Source
Expand description

Nodes of your own: a struct that draws itself with a DrawCtx.

Most code reaches this through #[derive(Node)] in oxframe, which writes the builder, the handle and the signals. The functions here are what that derive calls; they are public so the expansion compiles in your crate.

Traits§

Draw
What a node of your own draws, in its own coordinates (origin at the center of its box, y down).

Type Aliases§

SizeFn
Size of a node, computed from its current values.