NcMenuSection

Type Alias NcMenuSection 

Source
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 i8

utf-8 c string

§itemcount: i32§items: *mut ncmenu_item§shortcut: ncinput

shortcut, will be underlined if present in name

Implementations§

Source§

impl NcMenuSection

§NcMenuSection Constructors

Source

pub fn new(name: &str, items: &mut [NcMenuItem], shortcut: NcInput) -> Self

New NcMenuSection for NcMenu.

Source

pub fn new_separator() -> Self

New NcMenuSection separator for NcMenu.