pub struct HitTarget {
pub rect: Rect,
pub callback: Arc<dyn Fn() + Send + Sync>,
}Expand description
A clickable region registered during painting.
Fields§
§rect: Rect§callback: Arc<dyn Fn() + Send + Sync>Auto Trait Implementations§
impl !RefUnwindSafe for HitTarget
impl !UnwindSafe for HitTarget
impl Freeze for HitTarget
impl Send for HitTarget
impl Sync for HitTarget
impl Unpin for HitTarget
impl UnsafeUnpin for HitTarget
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