Struct cursive::menu::MenuTree [] [src]

pub struct MenuTree {
    pub children: Vec<MenuItem>,
}

Root of a menu tree.

Fields

Menu items

Methods

impl MenuTree
[src]

Creates a new, empty tree.

Returns the number of children, including delimiters.

Remove every children from this tree.

Returns true if this tree has no children.

Adds a delimiter to the end of this tree.

Adds a delimiter to the end of this tree - chainable variant.

Adds a actionnable leaf to the end of this tree.

Adds a actionnable leaf to the end of this tree - chainable variant.

Adds a submenu to the end of this tree.

Adds a submenu to the end of this tree - chainable variant.

Trait Implementations

impl Default for MenuTree
[src]

Returns the "default value" for a type. Read more