pub struct HitResult {
pub id: UiId,
pub rect: UiRect,
pub interaction: InteractionRole,
pub policy: EventPolicy,
pub action: Option<UiAction>,
pub action_target: Option<UiId>,
pub capture_handlers: Vec<UiEventHandler>,
pub bubble_handlers: Vec<UiEventHandler>,
pub click_handler: Option<UiEventHandler>,
}Fields§
§id: UiId§rect: UiRect§interaction: InteractionRole§policy: EventPolicy§action: Option<UiAction>§action_target: Option<UiId>§capture_handlers: Vec<UiEventHandler>§bubble_handlers: Vec<UiEventHandler>§click_handler: Option<UiEventHandler>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HitResult
impl !UnwindSafe for HitResult
impl Freeze for HitResult
impl Send for HitResult
impl Sync for HitResult
impl Unpin for HitResult
impl UnsafeUnpin for HitResult
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