Enum input_sys::libinput_tablet_tool_proximity_state
[−]
[src]
#[repr(u32)]pub enum libinput_tablet_tool_proximity_state { LIBINPUT_TABLET_TOOL_PROXIMITY_STATE_OUT, LIBINPUT_TABLET_TOOL_PROXIMITY_STATE_IN, }
@ingroup device
The state of proximity for a tool on a device. The device must have the @ref LIBINPUT_DEVICE_CAP_TABLET_TOOL capability.
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
LIBINPUT_TABLET_TOOL_PROXIMITY_STATE_OUTLIBINPUT_TABLET_TOOL_PROXIMITY_STATE_INTrait Implementations
impl Debug for libinput_tablet_tool_proximity_state[src]
impl Copy for libinput_tablet_tool_proximity_state[src]
impl Clone for libinput_tablet_tool_proximity_state[src]
fn clone(&self) -> libinput_tablet_tool_proximity_state
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl PartialEq for libinput_tablet_tool_proximity_state[src]
fn eq(&self, __arg_0: &libinput_tablet_tool_proximity_state) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Eq for libinput_tablet_tool_proximity_state[src]
impl Hash for libinput_tablet_tool_proximity_state[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.