pub trait TabletToolProximityEvent<B: InputBackend>: TabletToolEvent<B> + Event<B> {
// Required method
fn state(&self) -> ProximityState;
}
Expand description
Trait for tablet tool proximity events.
Required Methods§
Sourcefn state(&self) -> ProximityState
fn state(&self) -> ProximityState
Returns the new proximity state of a tool from a proximity event.
Used to check whether or not a tool came in or out of proximity during an
TabletToolProximityEvent
.
See Handling of proximity events for recommendations on proximity handling.
Implementations on Foreign Types§
Source§impl TabletToolProximityEvent<LibinputInputBackend> for TabletToolProximityEvent
Available on crate feature backend_libinput
only.
impl TabletToolProximityEvent<LibinputInputBackend> for TabletToolProximityEvent
Available on crate feature
backend_libinput
only.