pub struct ContextMenu { /* private fields */ }Expand description
Context menu triggered by right-click on a region.
Wraps DropdownMenu with right-click trigger and cursor-position anchoring.
Implementations§
Source§impl ContextMenu
impl ContextMenu
Sourcepub fn show(
&mut self,
ctx: &Context,
trigger: &Response,
content: impl FnOnce(&mut MenuBuilder),
) -> ContextMenuResponse
pub fn show( &mut self, ctx: &Context, trigger: &Response, content: impl FnOnce(&mut MenuBuilder), ) -> ContextMenuResponse
Show the context menu. Opens when trigger is right-clicked.
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