Struct libnotcurses_sys::ffi::nctree[][src]

#[repr(C)]
pub struct nctree { /* fields omitted */ }

Implementations

Creates an NcTree with the specified options.

C style function: nctree_create().

Destroys an NcTree created with new().

C style function: nctree_destroy().

Returns the focused item, if any items are present.

This is not a copy; be careful to use it only for the duration of a critical section.

C style function: nctree_focused().

Changes the focus to the next item, and returns it.

C style function: nctree_next().

Changes the focus to the previous item, and returns it.

C style function: nctree_prev().

Offers the input to this NcTree.

If it’s relevant, this function returns true, and the input ought not be processed further. If it’s irrelevant to the tree, false is returned.

Relevant inputs include:

  • a mouse click on an item (focuses item)
  • a mouse scrollwheel event (srolls tree)
  • up, down, pgup, or pgdown (navigates among items)

C style function: nctree_offer_input().

Returns the NcPlane backing this NcTree.

C style function: nctree_plane().

Redraws the NcTree in its entirety.

The tree will be cleared, and items will be laid out, using the focused item as a fulcrum.

Item-drawing callbacks will be invoked for each visible item.

C style function: nctree_redraw().

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.