pub struct Response {
pub clicked: bool,
pub changed: bool,
pub hovered: bool,
pub component_id: Option<String>,
}
Expand description
Response from UI interactions
Fields§
§clicked: bool
§changed: bool
§hovered: bool
§component_id: Option<String>
Component ID for event handling
Implementations§
Source§impl Response
impl Response
pub fn new() -> Self
pub fn new_with_component_and_state( component_id: String, clicked: bool, changed: bool, ) -> Self
pub fn clicked(&self) -> bool
pub fn changed(&self) -> bool
pub fn hovered(&self) -> bool
pub fn with_clicked() -> Self
pub fn with_changed() -> Self
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin 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