Guide API
Skip to main content

ov_draw

Function ov_draw 

Source
pub fn ov_draw<L: OutlineViewer + ?Sized>(this: &mut L, ctx: &mut DrawCtx<'_>)
Expand description

Render every visible node.

Per visible node: compute the color (focused / selected / normal), fill the row, draw the graph then the text (the text uses the dim color when the node is not expanded), shifted left by delta.x. After the traversal the remaining rows are blank-filled.

NOTE: this: &mut L (not &L) — the abs_origin cache write requires mutability. The drawing is logically read-only, but the origin is stored here to feed Context::start_mouse_track (the Button::abs_origin pattern).