#[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_char
utf-8 c string
itemcount: c_int
§items: *mut ncmenu_item
§shortcut: ncinput
shortcut, 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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more