# tui/draw-tree Draw a widget tree into a DrawContext (leaf tagged map, container with `children`, or plain map). Walks the tree invoking each `draw` method. ## Syntax
[tui/draw-tree ctx tree bounds]
## Parameters - `ctx` — DrawContext (native resource received by the panel's `draw`) - `tree` — widget tree value (tagged map, container, or plain map) - `bounds` — map `%{ x y width height }` giving the drawing rectangle ## Examples
[tui/draw-tree $ctx $widget-state %{:x 0 :y 0 :width 80 :height 24}]
## Returns `nil`. ## See Also `tui/set-widget-tree`, `tui/dispatch-tree-event`