pub struct HitTestRegion {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
}Expand description
Axis-aligned rectangle used by hit-test snapshots.
Fields§
§x: f32Left edge in the chosen coordinate space.
y: f32Top edge in the chosen coordinate space.
width: f32Rectangle width.
height: f32Rectangle height.
Implementations§
Trait Implementations§
Source§impl Clone for HitTestRegion
impl Clone for HitTestRegion
Source§fn clone(&self) -> HitTestRegion
fn clone(&self) -> HitTestRegion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HitTestRegion
impl Debug for HitTestRegion
Source§impl PartialEq for HitTestRegion
impl PartialEq for HitTestRegion
impl Copy for HitTestRegion
impl StructuralPartialEq for HitTestRegion
Auto Trait Implementations§
impl Freeze for HitTestRegion
impl RefUnwindSafe for HitTestRegion
impl Send for HitTestRegion
impl Sync for HitTestRegion
impl Unpin for HitTestRegion
impl UnsafeUnpin for HitTestRegion
impl UnwindSafe for HitTestRegion
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