pub struct InputOutput {
pub response: Response,
pub changed: bool,
pub cleared: bool,
pub reset: bool,
pub submitted: bool,
pub button: Option<usize>,
pub menu: Option<(usize, usize)>,
pub choice: Option<usize>,
}Expand description
What an input did in a frame.
Fields§
§response: ResponseThe field’s response (the text), with the state’s tooltips.
changed: boolThe value changed (typed, cleared, chosen, reset, committed).
cleared: boolThe clear ✕ was pressed.
reset: boolThe reset arrow was pressed.
submitted: boolEnter was pressed in the field (in a multi-line field,
Ctrl+Enter, or Enter with Input::submit_on_enter).
An attached button (its action, for a split button), by index.
A split button’s menu item: the button’s index and the item’s.
choice: Option<usize>A choice from the dropdown, by index (the value is set to it).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InputOutput
impl !RefUnwindSafe for InputOutput
impl Send for InputOutput
impl Sync for InputOutput
impl Unpin for InputOutput
impl UnsafeUnpin for InputOutput
impl !UnwindSafe for InputOutput
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