pub struct HitTestNode {
pub shape: Option<RoundedCornerShape>,
pub click_actions: Vec<Rc<dyn Fn(Point)>>,
pub pointer_inputs: Vec<Rc<dyn Fn(PointerEvent)>>,
pub pointer_icon: Option<PointerIcon>,
pub clip: Option<Rect>,
}Fields§
§shape: Option<RoundedCornerShape>§click_actions: Vec<Rc<dyn Fn(Point)>>§pointer_inputs: Vec<Rc<dyn Fn(PointerEvent)>>§pointer_icon: Option<PointerIcon>The pointer’s appearance while it hovers this target. A region that only names an icon still becomes a hit target, which is how a decorative panel carries a cursor without handling clicks.
clip: Option<Rect>Trait Implementations§
Source§impl Clone for HitTestNode
impl Clone for HitTestNode
Source§fn clone(&self) -> HitTestNode
fn clone(&self) -> HitTestNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for HitTestNode
impl !Send for HitTestNode
impl !Sync for HitTestNode
impl !UnwindSafe for HitTestNode
impl Freeze for HitTestNode
impl Unpin for HitTestNode
impl UnsafeUnpin for HitTestNode
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