pub struct Interact<F> {
pub handler: F,
pub require_focus: bool,
}Expand description
handles unclaimed keyboard and text input
Fields§
§handler: F§require_focus: boolonly handles events while this widget itself is focused
Implementations§
Source§impl<F> Interact<F>
impl<F> Interact<F>
Sourcepub fn handler(self, value: F) -> Self
pub fn handler(self, value: F) -> Self
sets Self::handler
Sourcepub fn require_focus(self, value: bool) -> Self
pub fn require_focus(self, value: bool) -> Self
sets Self::require_focus
Trait Implementations§
impl<F: Copy> Copy for Interact<F>
Auto Trait Implementations§
impl<F> Forget for Interact<F>
impl<F> Freeze for Interact<F>where
F: Freeze,
impl<F> Move for Interact<F>
impl<F> RefUnwindSafe for Interact<F>where
F: RefUnwindSafe,
impl<F> Send for Interact<F>where
F: Send,
impl<F> Sync for Interact<F>where
F: Sync,
impl<F> Unpin for Interact<F>where
F: Unpin,
impl<F> UnsafeUnpin for Interact<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for Interact<F>where
F: 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