Struct libnotcurses_sys::c_api::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_intitems: *mut ncmenu_itemshortcut: 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.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more