NcMenuItem

Type Alias NcMenuItem 

Source
pub type NcMenuItem = ncmenu_item;
Expand description

Item for NcMenu.

Aliased Type§

#[repr(C)]
pub struct NcMenuItem { pub desc: *const u8, pub shortcut: ncinput, }

Fields§

§desc: *const u8

utf-8 menu item, NULL for horizontal separator

§shortcut: ncinput

shortcut, all should be distinct

Implementations§

Source§

impl NcMenuItem

§NcMenuItem Constructors

Source

pub fn new(desc: &str, shortcut: NcInput) -> Self

New NcMenuItem for NcMenu.

Source

pub fn new_empty() -> Self

New empty NcMenuItem for NcMenu.