class

Egui::TreeView

Inherits Reference < Object

Constructors

new(id : String, depth : Int32 = 0, base_id : Id = Id.from("tree"))
Source

Instance methods

leaf(text : String, selected : Bool = false, &on_click : -> ) : Nil

A leaf row — no children, the block is its click handler.

Source
node(text : String, selected : Bool = false, default_open : Bool = false, &block : self -> ) : Nil

A collapsible branch. Clicking the row toggles it; selected paints the row with the selection fill; the block lays out the children (already indented by style.spacing.indent).

Source
show(ui : Ui, &block : self -> ) : Nil
Source