Struct libnotcurses_sys::c_api::ffi::ncmenu_section
source · #[repr(C)]pub struct ncmenu_section {
pub name: *const c_char,
pub itemcount: c_int,
pub items: *mut ncmenu_item,
pub shortcut: ncinput,
}Fields§
§name: *const c_charutf-8 c string
itemcount: c_int§items: *mut ncmenu_item§shortcut: ncinputshortcut, will be underlined if present in name
Implementations§
sourcepub fn new(name: &str, items: &mut [NcMenuItem], shortcut: NcInput) -> Self
pub fn new(name: &str, items: &mut [NcMenuItem], shortcut: NcInput) -> Self
New NcMenuSection for NcMenu.
sourcepub fn new_separator() -> Self
pub fn new_separator() -> Self
New NcMenuSection separator for NcMenu.