pub struct TouchDevice { /* private fields */ }Expand description
Handles raw touch events.
This class is supposed to be used on per-toplevel basis; don’t use a shared one.
Implementations§
Source§impl TouchDevice
impl TouchDevice
Sourcepub fn new() -> Rc<TouchDevice>
pub fn new() -> Rc<TouchDevice>
Creates a touch device.
Sourcepub fn platform_capture_lost(&self)
pub fn platform_capture_lost(&self)
Notifies the device that the capture of its pointers was lost in the platform.
Trait Implementations§
Source§impl IInputDevice for TouchDevice
impl IInputDevice for TouchDevice
Source§fn process_raw_event(&self, ev: &dyn IRawInputEventArgs)
fn process_raw_event(&self, ev: &dyn IRawInputEventArgs)
Processes raw event. Is called after preprocessing by the input
manager.
Source§fn as_pointer_device(&self) -> Option<&dyn IPointerDevice>
fn as_pointer_device(&self) -> Option<&dyn IPointerDevice>
The device as a pointer device, if it is one.
Source§impl IPointerDevice for TouchDevice
impl IPointerDevice for TouchDevice
Source§fn try_get_pointer(&self, ev: &RawPointerEventArgs) -> Option<Rc<dyn IPointer>>
fn try_get_pointer(&self, ev: &RawPointerEventArgs) -> Option<Rc<dyn IPointer>>
Gets a pointer for specific event args. Read more
Auto Trait Implementations§
impl !Freeze for TouchDevice
impl !RefUnwindSafe for TouchDevice
impl !Send for TouchDevice
impl !Sync for TouchDevice
impl !UnwindSafe for TouchDevice
impl Unpin for TouchDevice
impl UnsafeUnpin for TouchDevice
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more