#[non_exhaustive]pub struct Response {
pub hovered: bool,
pub active: bool,
pub clicked: bool,
pub changed: bool,
pub submitted: bool,
pub lost_focus: bool,
}Expand description
What a widget did this frame.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hovered: boolThe pointer is over it, and no other widget is held.
active: boolIt is held: the button went down on it and is not up yet, or went up this frame.
clicked: boolThe button went down on it and up over it, the press and the release each where they happened.
changed: boolIts value changed.
submitted: boolA text field: Enter was pressed while it had the keyboard, which it keeps.
lost_focus: boolA text field: it lost the keyboard, to Escape or to a press elsewhere.
Trait Implementations§
impl Copy for Response
impl Eq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Forget for Response
impl Freeze for Response
impl Move for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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