Skip to main content

IPointerDevice

Trait IPointerDevice 

Source
pub trait IPointerDevice: IInputDevice {
    // Required method
    fn try_get_pointer(
        &self,
        ev: &RawPointerEventArgs,
    ) -> Option<Rc<dyn IPointer>>;
}
Expand description

Represents a pointer device: a mouse, a touch surface or a pen.

Required Methods§

Source

fn try_get_pointer(&self, ev: &RawPointerEventArgs) -> Option<Rc<dyn IPointer>>

Gets a pointer for specific event args.

If the pointer doesn’t exist or wasn’t yet created this method will return None.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§