pub struct Sense {
pub clicked: bool,
pub click_time: Option<f64>,
pub hovered_time: Option<f64>,
pub captured_time: Option<f64>,
}
Fields§
§clicked: bool
§click_time: Option<f64>
§hovered_time: Option<f64>
§captured_time: Option<f64>
Implementations§
source§impl Sense
impl Sense
pub fn is_hovered(&self) -> bool
pub fn is_captured(&self) -> bool
pub fn set_hovered(&mut self, hovered: bool)
pub fn set_captured(&mut self, captured: bool)
pub fn click(&mut self)
pub fn take_clicked(&mut self) -> bool
pub fn update(&mut self, delta_time: f64)
pub fn handle_event(&mut self, _event: &Event)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Sense
impl Send for Sense
impl Sync for Sense
impl Unpin for Sense
impl UnwindSafe for Sense
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
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.