Enum input::event::tablet_tool::ProximityState [] [src]

pub enum ProximityState {
    Out,
    In,
}

The state of proximity for a tool on a device.

The proximity of a tool is a binary state signalling whether the tool is within a detectable distance of the tablet device. A tool that is out of proximity cannot generate events.

On some hardware a tool goes out of proximity when it ceases to touch the surface. On /// other hardware, the tool is still detectable within a short distance (a few cm) off the surface.

Variants

Out of proximity

In proximity

Trait Implementations

impl Debug for ProximityState
[src]

Formats the value using the given formatter.

impl Clone for ProximityState
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ProximityState
[src]

impl PartialEq for ProximityState
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ProximityState
[src]

impl Hash for ProximityState
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.