pub struct ContextMenu {
pub id: UiId,
pub items: Vec<MenuItem>,
pub is_open: bool,
pub x: f32,
pub y: f32,
pub clicked: Option<UiId>,
/* private fields */
}Expand description
A context menu with submenus (up to 3 levels), keyboard navigation.
Fields§
§id: UiId§items: Vec<MenuItem>§is_open: bool§x: f32§y: f32§clicked: Option<UiId>Implementations§
Source§impl ContextMenu
impl ContextMenu
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ContextMenu
impl RefUnwindSafe for ContextMenu
impl Send for ContextMenu
impl Sync for ContextMenu
impl Unpin for ContextMenu
impl UnsafeUnpin for ContextMenu
impl UnwindSafe for ContextMenu
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