pub struct Subcell {
pub x: u16,
pub y: u16,
pub width: u16,
pub height: u16,
}Expand description
Where in a cell a pixel-precise mouse event was (Mouse::pixel): the
pixel’s offset from the cell’s top left corner, and the cell’s size in
pixels.
Fields§
§x: u16Pixels from the cell’s left edge, below width.
y: u16Pixels from the cell’s top edge, below height.
width: u16The cell’s width in pixels, never 0.
height: u16The cell’s height in pixels, never 0.
Trait Implementations§
impl Copy for Subcell
impl Eq for Subcell
impl StructuralPartialEq for Subcell
Auto Trait Implementations§
impl Freeze for Subcell
impl RefUnwindSafe for Subcell
impl Send for Subcell
impl Sync for Subcell
impl Unpin for Subcell
impl UnsafeUnpin for Subcell
impl UnwindSafe for Subcell
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.