pub struct ContextMenuResult {
pub should_close: bool,
pub clicked_item: Option<String>,
pub hovered_index: Option<usize>,
}Expand description
Result of context menu input handling
Contains information about what happened during input handling, allowing the application to respond appropriately.
Fields§
§should_close: boolWhether menu should close
clicked_item: Option<String>Item that was clicked (id)
hovered_index: Option<usize>Currently hovered item index
Implementations§
Trait Implementations§
Source§impl Clone for ContextMenuResult
impl Clone for ContextMenuResult
Source§fn clone(&self) -> ContextMenuResult
fn clone(&self) -> ContextMenuResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextMenuResult
impl Debug for ContextMenuResult
Source§impl Default for ContextMenuResult
impl Default for ContextMenuResult
Source§fn default() -> ContextMenuResult
fn default() -> ContextMenuResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContextMenuResult
impl RefUnwindSafe for ContextMenuResult
impl Send for ContextMenuResult
impl Sync for ContextMenuResult
impl Unpin for ContextMenuResult
impl UnsafeUnpin for ContextMenuResult
impl UnwindSafe for ContextMenuResult
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