pub struct ToolbarKeys<'a, const N: usize> {
pub focus: &'a Focus,
pub keys: [Option<KeyEvent>; N],
}Expand description
Event-handling uses this as parameters.
A Focus instance is needed to switch Focus between the toolbar and other widgets.
KeyEvents are in order of the tools.
Fields§
§focus: &'a FocusFocus
keys: [Option<KeyEvent>; N]Keys.
Trait Implementations§
Source§impl<const N: usize> HandleEvent<Event, ToolbarKeys<'_, N>, ToolbarOutcome> for ToolbarState
impl<const N: usize> HandleEvent<Event, ToolbarKeys<'_, N>, ToolbarOutcome> for ToolbarState
Source§fn handle(
&mut self,
event: &Event,
qualifier: ToolbarKeys<'_, N>,
) -> ToolbarOutcome
fn handle( &mut self, event: &Event, qualifier: ToolbarKeys<'_, N>, ) -> ToolbarOutcome
Handle an event. Read more
Auto Trait Implementations§
impl<'a, const N: usize> Freeze for ToolbarKeys<'a, N>
impl<'a, const N: usize> !RefUnwindSafe for ToolbarKeys<'a, N>
impl<'a, const N: usize> !Send for ToolbarKeys<'a, N>
impl<'a, const N: usize> !Sync for ToolbarKeys<'a, N>
impl<'a, const N: usize> Unpin for ToolbarKeys<'a, N>
impl<'a, const N: usize> !UnwindSafe for ToolbarKeys<'a, N>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more