pub struct NativeMenuBar {
pub menus: Vec<NativeMenu>,
}Expand description
原生应用菜单栏。
Windows/macOS 由桌面宿主安装为系统菜单;Linux 当前没有统一原生菜单栏, 宿主会记录警告并忽略(应用可继续使用框架内 Menu 组件)。
Fields§
Implementations§
Source§impl NativeMenuBar
impl NativeMenuBar
Trait Implementations§
Source§impl Clone for NativeMenuBar
impl Clone for NativeMenuBar
Source§impl Debug for NativeMenuBar
impl Debug for NativeMenuBar
Source§impl Default for NativeMenuBar
impl Default for NativeMenuBar
impl Eq for NativeMenuBar
Source§impl PartialEq for NativeMenuBar
impl PartialEq for NativeMenuBar
impl StructuralPartialEq for NativeMenuBar
Auto Trait Implementations§
impl Forget for NativeMenuBar
impl Freeze for NativeMenuBar
impl Move for NativeMenuBar
impl RefUnwindSafe for NativeMenuBar
impl Send for NativeMenuBarwhere
RawVecInner: Send,
impl Sync for NativeMenuBarwhere
RawVecInner: Sync,
impl Unpin for NativeMenuBar
impl UnsafeUnpin for NativeMenuBar
impl UnwindSafe for NativeMenuBarwhere
RawVecInner: UnwindSafe,
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