pub struct HitRect {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
pub node_id: NodeId,
}Expand description
Axis-aligned bounding box for a layout element (pixel coordinates)
Fields§
§x: i32§y: i32§width: i32§height: i32§node_id: NodeIdImplementations§
Trait Implementations§
impl Copy for HitRect
impl Eq for HitRect
impl StructuralPartialEq for HitRect
Auto Trait Implementations§
impl Freeze for HitRect
impl RefUnwindSafe for HitRect
impl Send for HitRect
impl Sync for HitRect
impl Unpin for HitRect
impl UnwindSafe for HitRect
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)