i_slint_core::window

Struct MenuTO

Source
#[repr(C)]
pub struct MenuTO { /* private fields */ }
Expand description

Invariant, same as vtable::Inner: vtable and ptr has to be valid and ptr an instance matching the vtable

Implementations§

Source§

impl MenuTO

Source

pub fn sub_menu(&self, _1: Option<&MenuEntry>, _2: &mut SharedVector<MenuEntry>)

Return the list of items for the sub menu (or the main menu of parent is None)

Source

pub fn activate(&self, _1: &MenuEntry)

Handler when the menu entry is activated

Source

pub fn get_vtable(&self) -> &MenuVTable

Returns a reference to the VTable

Source

pub fn as_ptr(&self) -> *const u8

Return a raw pointer to the object