#[repr(C)]pub struct MenuVTable {
pub drop: unsafe extern "C" fn(_: VRefMut<'_, MenuVTable>),
pub sub_menu: unsafe extern "C" fn(_: VRef<'_, MenuVTable>, _: Option<&MenuEntry>, _: &mut SharedVector<MenuEntry>),
pub activate: unsafe extern "C" fn(_: VRef<'_, MenuVTable>, _: &MenuEntry),
}
Expand description
Interface for native menu and menubar
Fields§
§drop: unsafe extern "C" fn(_: VRefMut<'_, MenuVTable>)
destructor
Return the list of items for the sub menu (or the main menu of parent is None)
activate: unsafe extern "C" fn(_: VRef<'_, MenuVTable>, _: &MenuEntry)
Handler when the menu entry is activated
Implementations§
Trait Implementations§
Source§impl VTableMeta for MenuVTable
impl VTableMeta for MenuVTable
Source§impl VTableMetaDrop for MenuVTable
impl VTableMetaDrop for MenuVTable
Source§fn new_box<X: HasStaticVTable<MenuVTable>>(value: X) -> VBox<MenuVTable>
fn new_box<X: HasStaticVTable<MenuVTable>>(value: X) -> VBox<MenuVTable>
allocate a new
VBox
Auto Trait Implementations§
impl Freeze for MenuVTable
impl RefUnwindSafe for MenuVTable
impl Send for MenuVTable
impl Sync for MenuVTable
impl Unpin for MenuVTable
impl UnwindSafe for MenuVTable
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