pub struct Response {
pub hovered: bool,
pub pressed: bool,
pub focused: bool,
pub clicked: bool,
pub changed: bool,
pub rect: Option<Rect>,
}Expand description
Minimal interaction result for immediate-style authoring helpers.
This type is intentionally small and ecosystem-friendly. Higher-level authoring facades may extend or wrap it with richer signals (drag lifecycle, click variants, etc.), but this core contract should remain stable once third-party widget crates depend on it.
Fields§
§hovered: bool§pressed: bool§focused: bool§clicked: bool§changed: bool§rect: Option<Rect>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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