pub struct Eraser { /* private fields */ }Expand description
An eraser is a tool intended for erasing.
This is represented in the physical design of the tool. Typically an eraser is on the back end of a Stylus to emulate a traditional pencil + eraser setup.
Erasers never exist on their own, they are part of a Tool::StylusWithEraser and always coupled with a corresponding Stylus.
Trait Implementations§
Source§impl ToolFeatures for Eraser
impl ToolFeatures for Eraser
Source§fn name(&self) -> &str
fn name(&self) -> &str
The name of this eraser given by the manufacturer, e.g. “Grip Pen”. This name is suitable for presentation.
This name may not be unique. Using this name is not usually required, the eraser does not live without its corresponding stylus and the stylus name is a better option for presentation.
Source§fn vendor_id(&self) -> VendorId
fn vendor_id(&self) -> VendorId
The vendor ID of the eraser. Theoretically this may be different to the Stylus::vendor_id() but no such devices have been observed in the wild yet.
The buttons on this Eraser, if any