Enum android_activity::input::ToolType
source · #[repr(u32)]pub enum ToolType {
Unknown,
Finger,
Stylus,
Mouse,
Eraser,
Palm,
}Expand description
The tool type of a pointer.
See the NDK docs
Variants§
Unknown
Unknown tool type.
This constant is used when the tool type is not known or is not relevant, such as for a trackball or other non-pointing device.
Finger
The tool is a finger.
Stylus
The tool is a stylus.
Mouse
The tool is a mouse.
Eraser
The tool is an eraser or a stylus being used in an inverted posture.
Palm
The tool is a palm and should be rejected
Trait Implementations§
source§impl PartialEq<ToolType> for ToolType
impl PartialEq<ToolType> for ToolType
source§impl TryFrom<u32> for ToolType
impl TryFrom<u32> for ToolType
§type Error = TryFromPrimitiveError<ToolType>
type Error = TryFromPrimitiveError<ToolType>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for ToolType
impl TryFromPrimitive for ToolType
impl Copy for ToolType
impl Eq for ToolType
impl StructuralEq for ToolType
impl StructuralPartialEq for ToolType
Auto Trait Implementations§
impl RefUnwindSafe for ToolType
impl Send for ToolType
impl Sync for ToolType
impl Unpin for ToolType
impl UnwindSafe for ToolType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more