pub struct Response {
pub hovered: bool,
pub pressed: bool,
pub focused: bool,
pub clicked: bool,
pub changed: bool,
pub index: Option<usize>,
pub column: Option<usize>,
pub checked: bool,
}Expand description
What a piece reports after .build(cx).
Fields§
§hovered: boolThe pointer is over the piece (any part of it).
pressed: boolThe piece is held (a press, or a splitter drag).
focused: boolKeyboard focus is on the piece or one of its parts.
clicked: boolThe piece itself was clicked (a dialog: its close button).
changed: boolThe value changed this frame (.bind targets are already updated).
index: Option<usize>The part picked this frame: tab, row, option, menu item or footer button.
column: Option<usize>A table’s header column clicked this frame (for sorting).
checked: boolThe state a checkbox or switch shows after this frame.
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