Struct input::event::tablet_tool::TabletToolTipEvent
source · pub struct TabletToolTipEvent { /* private fields */ }
Expand description
Signals that a tool has come in contact with the surface of a device with the
DeviceCapability::TabletTool
capability.
On devices without distance proximity detection, the TabletToolTipEvent
is sent
immediately after TabletToolProximityEvent
for the tip down event, and
immediately before for the tip up event.
The decision when a tip touches the surface is device-dependent and may be
derived from pressure data or other means. If the tip state is changed by axes
changing state, the TabletToolTipEvent
includes the changed axes and no
additional axis event is sent for this state change. In other words, a caller
must look at both TabletToolAxisEvent
and TabletToolTipEvent
events to know
the current state of the axes.
If a button state change occurs at the same time as a tip state change, the order of events is device-dependent.
Implementations
Trait Implementations
sourceimpl AsRaw<libinput_event_tablet_tool> for TabletToolTipEvent
impl AsRaw<libinput_event_tablet_tool> for TabletToolTipEvent
sourcefn as_raw(&self) -> *const libinput_event_tablet_tool
fn as_raw(&self) -> *const libinput_event_tablet_tool
sourceimpl Context for TabletToolTipEvent
impl Context for TabletToolTipEvent
sourceimpl Debug for TabletToolTipEvent
impl Debug for TabletToolTipEvent
sourceimpl Drop for TabletToolTipEvent
impl Drop for TabletToolTipEvent
sourceimpl EventTrait for TabletToolTipEvent
impl EventTrait for TabletToolTipEvent
sourceimpl Hash for TabletToolTipEvent
impl Hash for TabletToolTipEvent
sourceimpl PartialEq<TabletToolTipEvent> for TabletToolTipEvent
impl PartialEq<TabletToolTipEvent> for TabletToolTipEvent
impl Eq for TabletToolTipEvent
impl StructuralEq for TabletToolTipEvent
Auto Trait Implementations
impl !RefUnwindSafe for TabletToolTipEvent
impl !Send for TabletToolTipEvent
impl !Sync for TabletToolTipEvent
impl Unpin for TabletToolTipEvent
impl !UnwindSafe for TabletToolTipEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> TabletToolEventTrait for Twhere
T: AsRaw<libinput_event_tablet_tool> + Context,
impl<T> TabletToolEventTrait for Twhere
T: AsRaw<libinput_event_tablet_tool> + Context,
sourcefn distance_has_changed(&self) -> bool
fn distance_has_changed(&self) -> bool
sourcefn distance(&self) -> f64
fn distance(&self) -> f64
sourcefn pressure_has_changed(&self) -> bool
fn pressure_has_changed(&self) -> bool
TabletToolButtonEvent
s this function always returns false
.sourcefn pressure(&self) -> f64
fn pressure(&self) -> f64
sourcefn rotation_has_changed(&self) -> bool
fn rotation_has_changed(&self) -> bool
sourcefn rotation(&self) -> f64
fn rotation(&self) -> f64
sourcefn slider_has_changed(&self) -> bool
fn slider_has_changed(&self) -> bool
sourcefn slider_position(&self) -> f64
fn slider_position(&self) -> f64
sourcefn tilt_x_has_changed(&self) -> bool
fn tilt_x_has_changed(&self) -> bool
sourcefn tilt_y_has_changed(&self) -> bool
fn tilt_y_has_changed(&self) -> bool
sourcefn tilt_x(&self) -> f64
fn tilt_x(&self) -> f64
sourcefn tilt_y(&self) -> f64
fn tilt_y(&self) -> f64
sourcefn wheel_has_changed(&self) -> bool
fn wheel_has_changed(&self) -> bool
sourcefn wheel_delta(&self) -> f64
fn wheel_delta(&self) -> f64
sourcefn wheel_delta_discrete(&self) -> f64
fn wheel_delta_discrete(&self) -> f64
sourcefn x_has_changed(&self) -> bool
fn x_has_changed(&self) -> bool
sourcefn y_has_changed(&self) -> bool
fn y_has_changed(&self) -> bool
sourcefn x(&self) -> f64
fn x(&self) -> f64
sourcefn y(&self) -> f64
fn y(&self) -> f64
sourcefn x_transformed(&self, width: u32) -> f64
fn x_transformed(&self, width: u32) -> f64
sourcefn y_transformed(&self, height: u32) -> f64
fn y_transformed(&self, height: u32) -> f64
sourcefn tool(&self) -> TabletTool
fn tool(&self) -> TabletTool
sourcefn into_tablet_tool_event(self) -> TabletToolEventwhere
Self: Sized,
fn into_tablet_tool_event(self) -> TabletToolEventwhere
Self: Sized,
TabletToolEvent
again