Struct egui::input_state::touch_state::ActiveTouch
source · struct ActiveTouch {
pos: Pos2,
force: Option<f32>,
}
Expand description
Describes an individual touch (finger or digitizer) on the touch surface. Instances exist as long as the finger/pen touches the surface.
Fields§
§pos: Pos2
Current position of this touch, in device coordinates (not necessarily screen position)
force: Option<f32>
Current force of the touch. A value in the interval [0.0 .. 1.0]
Note that a value of 0.0 either indicates a very light touch, or it means that the device is not capable of measuring the touch force.
Trait Implementations§
source§impl Clone for ActiveTouch
impl Clone for ActiveTouch
source§fn clone(&self) -> ActiveTouch
fn clone(&self) -> ActiveTouch
Returns a copy 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 ActiveTouch
impl Debug for ActiveTouch
impl Copy for ActiveTouch
Auto Trait Implementations§
impl Freeze for ActiveTouch
impl RefUnwindSafe for ActiveTouch
impl Send for ActiveTouch
impl Sync for ActiveTouch
impl Unpin for ActiveTouch
impl UnwindSafe for ActiveTouch
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)