pub enum ToolInteraction {
Activated(ToolId),
Dropdown(ToolId),
Toggled(Vec<(ToolId, bool)>),
Ignored(ToolId),
}Expand description
The events a user click on a tool produces, decided by the shared rules so every lane reports the same interaction.
Variants§
Activated(ToolId)
A plain tool was activated: emit ToolActivated.
Dropdown(ToolId)
A dropdown tool was clicked: emit ToolDropdown (the menu itself is
app-composed).
Toggled(Vec<(ToolId, bool)>)
A checkable tool was toggled: emit one ToolToggled per entry, in
toolbar order (radio exclusivity therefore produces at most one extra
event for the member that was unchecked).
Ignored(ToolId)
A disabled or hidden tool consumed the click; nothing is emitted.
Trait Implementations§
Source§impl Clone for ToolInteraction
impl Clone for ToolInteraction
Source§impl Debug for ToolInteraction
impl Debug for ToolInteraction
impl Eq for ToolInteraction
Source§impl PartialEq for ToolInteraction
impl PartialEq for ToolInteraction
impl StructuralPartialEq for ToolInteraction
Auto Trait Implementations§
impl Forget for ToolInteraction
impl Freeze for ToolInteraction
impl Move for ToolInteraction
impl RefUnwindSafe for ToolInteraction
impl Send for ToolInteractionwhere
RawVecInner: Send,
impl Sync for ToolInteractionwhere
RawVecInner: Sync,
impl Unpin for ToolInteraction
impl UnsafeUnpin for ToolInteraction
impl UnwindSafe for ToolInteractionwhere
RawVecInner: UnwindSafe,
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