pub struct HitRegion {
pub node_id: NodeId,
pub rect: Rect,
pub shape: Option<RoundedCornerShape>,
pub click_actions: Vec<ClickAction>,
pub pointer_inputs: Vec<Rc<dyn Fn(PointerEvent)>>,
pub z_index: usize,
pub hit_clip: Option<Rect>,
}Fields§
§node_id: NodeId§rect: Rect§shape: Option<RoundedCornerShape>§click_actions: Vec<ClickAction>§pointer_inputs: Vec<Rc<dyn Fn(PointerEvent)>>§z_index: usize§hit_clip: Option<Rect>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HitRegion
impl !RefUnwindSafe for HitRegion
impl !Send for HitRegion
impl !Sync for HitRegion
impl Unpin for HitRegion
impl !UnwindSafe for HitRegion
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