Function libnotcurses_sys::nctree_offer_input[][src]

pub unsafe extern "C" fn nctree_offer_input(
    n: *mut nctree,
    ni: *const ncinput
) -> bool
Expand description

Offer input ‘ni’ to the nctree ‘n’. 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)