pub type NcMenuSection = ncmenu_section;Expand description
Section for NcMenu.
Aliased Type§
#[repr(C)]pub struct NcMenuSection {
pub name: *const i8,
pub itemcount: i32,
pub items: *mut ncmenu_item,
pub shortcut: ncinput,
}Fields§
§name: *const i8utf-8 c string
itemcount: i32§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.