pub struct Hit {
pub action: String,
pub area: Rect,
}Expand description
What a click on a node does, and where it lands: its box in the design’s coordinates, cut by its clipping frames.
Fields§
§action: StringThe action the node’s on_click names.
area: RectWhere the click lands, in the design’s coordinates.
Trait Implementations§
impl StructuralPartialEq for Hit
Auto Trait Implementations§
impl Forget for Hit
impl Freeze for Hit
impl Move for Hit
impl RefUnwindSafe for Hit
impl Send for Hitwhere
RawVecInner: Send,
impl Sync for Hitwhere
RawVecInner: Sync,
impl Unpin for Hit
impl UnsafeUnpin for Hit
impl UnwindSafe for Hitwhere
RawVecInner: UnwindSafe,
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