pub struct UiResponse {}Expand description
Current presentation state and one-tick events for an identified region.
Fields§
§id: UiIdOriginal stable identity.
enabled: boolWhether the current region is enabled.
hovered: boolTopmost pointer hit, including disabled regions.
focused: boolKeyboard focus.
pressed: boolPointer press began here.
held: boolPointer is held by this region, including outside its bounds.
released: boolPointer capture ended, including cancellation.
activated: boolButton release inside its region, or focused keyboard activation.
drag_started: boolDrag began on this tick.
drag_delta: Vec2UI-unit motion since the preceding update; zero for unavailable positions.
drag_total: Vec2UI-unit motion from drag start to the latest available position.
drag_ended: boolDrag ended, including cancellation.
cancelled: boolCapture cancelled by focus loss, removal, disable, cancel, or lost button state.
Trait Implementations§
Source§impl Clone for UiResponse
impl Clone for UiResponse
impl Copy for UiResponse
Auto Trait Implementations§
impl Freeze for UiResponse
impl RefUnwindSafe for UiResponse
impl Send for UiResponse
impl Sync for UiResponse
impl Unpin for UiResponse
impl UnsafeUnpin for UiResponse
impl UnwindSafe for UiResponse
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