Function libnotcurses_sys::ncmenu_offer_input[][src]

pub unsafe extern "C" fn ncmenu_offer_input(
    n: *mut ncmenu,
    nc: *const ncinput
) -> bool
Expand description

Offer the input to the ncmenu. If it’s relevant, this function returns true, and the input ought not be processed further. If it’s irrelevant to the menu, false is returned. Relevant inputs include:

  • mouse movement over a hidden menu
  • a mouse click on a menu section (the section is unrolled)
  • a mouse click outside of an unrolled menu (the menu is rolled up)
  • left or right on an unrolled menu (navigates among sections)
  • up or down on an unrolled menu (navigates among items)
  • escape on an unrolled menu (the menu is rolled up)