[−][src]Struct input::event::tablet_tool::TabletTool
An object representing a tool being used by a device with the
DeviceCapability::TabletTool
capability.
Tablet events generated by such a device are bound to a specific tool rather than
coming from the device directly. Depending on the hardware it is possible to track
the same physical tool across multiple Device
s, see
Tracking unique tools.
Methods
impl TabletTool
[src]
pub fn serial(&self) -> u64
[src]
Return the serial number of a tool.
If the tool does not report a serial number, this function returns zero. See Tracking unique tools for details.
pub fn tool_id(&self) -> u64
[src]
Return the tool ID for a tool object.
If nonzero, this number identifies the specific type of the tool with more
precision than the type returned in tool_type
,
see Vendor-specific tablet tool types.
Not all tablets support a tool ID.
Tablets known to support tool IDs include the Wacom Intuos 3, 4, 5, Wacom Cintiq and Wacom Intuos Pro series.
pub fn tool_type(&self) -> TabletToolType
[src]
Return the tool type for a tool object, see Vendor-specific tablet tool types for details.
pub fn has_button(&self, button: u32) -> bool
[src]
Check if a tablet tool has a button with the passed-in code (see linux/input.h).
pub fn has_distance(&self) -> bool
[src]
Return whether the tablet tool supports distance.
pub fn has_pressure(&self) -> bool
[src]
Return whether the tablet tool supports pressure.
pub fn has_rotation(&self) -> bool
[src]
Return whether the tablet tool supports z-rotation.v
pub fn has_slider(&self) -> bool
[src]
Return whether the tablet tool has a slider axis.
pub fn has_tilt(&self) -> bool
[src]
Return whether the tablet tool supports tilt.
pub fn has_wheel(&self) -> bool
[src]
Return whether the tablet tool has a relative wheel.
pub fn is_unique(&self) -> bool
[src]
Returns true
if the physical tool can be uniquely identified by libinput, or
false
otherwise.
If a tool can be uniquely identified, keeping a reference to the tool allows tracking the tool across proximity out sequences and across compatible tablets. See Tracking unique tools for more details.
pub fn tablet_tool_has_size(&self) -> bool
[src]
Returns whether the tablet tool has a ellipsis major and minor.
Where the underlying hardware only supports one of either major or minor, libinput emulated the other axis as a cicular contact, i.e. major == minor for all values of major.
Trait Implementations
impl AsRaw<libinput_tablet_tool> for TabletTool
[src]
fn as_raw(&self) -> *const libinput_tablet_tool
[src]
impl Clone for TabletTool
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Context for TabletTool
[src]
impl Debug for TabletTool
[src]
impl Drop for TabletTool
[src]
impl Eq for TabletTool
[src]
impl FromRaw<libinput_tablet_tool> for TabletTool
[src]
unsafe fn from_raw(ffi: *mut libinput_tablet_tool, context: &Libinput) -> Self
[src]
impl Hash for TabletTool
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<TabletTool> for TabletTool
[src]
impl StructuralEq for TabletTool
[src]
Auto Trait Implementations
impl !RefUnwindSafe for TabletTool
impl !Send for TabletTool
impl !Sync for TabletTool
impl Unpin for TabletTool
impl !UnwindSafe for TabletTool
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,