pub struct TabletToolAxisEvent { /* private fields */ }
Expand description
One or more axes have changed state on a device with the
DeviceCapability::TabletTool
capability.
This event is only sent when the tool is in proximity, see
TabletToolProximityEvent
for details.
The proximity event contains the initial state of the axis as the tool comes into
proximity. An event of type TabletToolAxisEvent
is only sent when an axis value
changes from this initial state. It is possible for a tool to enter and leave
proximity without sending an event of type TabletToolAxisEvent
.
An event of type TabletToolAxisEvent
is sent when the tip state does not
change. See the documentation for TabletToolTipEvent
for more details.
Trait Implementations§
Source§impl AsRaw<libinput_event_tablet_tool> for TabletToolAxisEvent
impl AsRaw<libinput_event_tablet_tool> for TabletToolAxisEvent
Source§fn as_raw(&self) -> *const libinput_event_tablet_tool
fn as_raw(&self) -> *const libinput_event_tablet_tool
Receive a raw pointer representing this type.
Source§impl Context for TabletToolAxisEvent
impl Context for TabletToolAxisEvent
Source§impl Debug for TabletToolAxisEvent
impl Debug for TabletToolAxisEvent
Source§impl Drop for TabletToolAxisEvent
impl Drop for TabletToolAxisEvent
Source§impl EventTrait for TabletToolAxisEvent
impl EventTrait for TabletToolAxisEvent
Source§impl Hash for TabletToolAxisEvent
impl Hash for TabletToolAxisEvent
Source§impl PartialEq for TabletToolAxisEvent
impl PartialEq for TabletToolAxisEvent
impl Eq for TabletToolAxisEvent
Auto Trait Implementations§
impl Freeze for TabletToolAxisEvent
impl !RefUnwindSafe for TabletToolAxisEvent
impl !Send for TabletToolAxisEvent
impl !Sync for TabletToolAxisEvent
impl Unpin for TabletToolAxisEvent
impl !UnwindSafe for TabletToolAxisEvent
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
Source§impl<T> TabletToolEventTrait for T
impl<T> TabletToolEventTrait for T
Source§fn distance_has_changed(&self) -> bool
fn distance_has_changed(&self) -> bool
Check if the distance axis was updated in this event. Read more
Source§fn distance(&self) -> f64
fn distance(&self) -> f64
Returns the current distance from the tablet’s sensor, normalized to the range
[0, 1]. Read more
Source§fn pressure_has_changed(&self) -> bool
fn pressure_has_changed(&self) -> bool
Check if the pressure axis was updated in this event. For
TabletToolButtonEvent
s this function always returns false
.Source§fn pressure(&self) -> f64
fn pressure(&self) -> f64
Returns the current pressure being applied on the tool in use, normalized to the
range [0, 1]. Read more
Source§fn rotation_has_changed(&self) -> bool
fn rotation_has_changed(&self) -> bool
Check if the z-rotation axis was updated in this event. Read more
Source§fn rotation(&self) -> f64
fn rotation(&self) -> f64
Returns the current z rotation of the tool in degrees, clockwise from the tool’s
logical neutral position. Read more
Source§fn slider_has_changed(&self) -> bool
fn slider_has_changed(&self) -> bool
Check if the slider axis was updated in this event. Read more
Source§fn slider_position(&self) -> f64
fn slider_position(&self) -> f64
Returns the current position of the slider on the tool, normalized to the range
[-1, 1]. Read more
Source§fn tilt_x_has_changed(&self) -> bool
fn tilt_x_has_changed(&self) -> bool
Check if the tilt x axis was updated in this event. Read more
Source§fn tilt_y_has_changed(&self) -> bool
fn tilt_y_has_changed(&self) -> bool
Check if the tilt y axis was updated in this event. Read more
Source§fn tilt_x(&self) -> f64
fn tilt_x(&self) -> f64
Returns the current tilt along the X axis of the tablet’s current logical
orientation, in degrees off the tablet’s z axis. Read more
Source§fn tilt_y(&self) -> f64
fn tilt_y(&self) -> f64
Returns the current tilt along the Y axis of the tablet’s current logical
orientation, in degrees off the tablet’s z axis. Read more
Source§fn size_major_has_changed(&self) -> bool
fn size_major_has_changed(&self) -> bool
Check if the size major axis was updated in this event. Read more
Source§fn size_minor_has_changed(&self) -> bool
fn size_minor_has_changed(&self) -> bool
Check if the size minor axis was updated in this event. Read more
Source§fn size_major(&self) -> f64
fn size_major(&self) -> f64
Returns the current size in mm along the major axis of the touching ellipse.
This axis is not necessarily aligned with either x or y, the rotation must
be taken into account. Read more
Source§fn size_minor(&self) -> f64
fn size_minor(&self) -> f64
Returns the current size in mm along the minor axis of the touching ellipse.
This axis is not necessarily aligned with either x or y, the rotation must
be taken into account. Read more
Source§fn wheel_has_changed(&self) -> bool
fn wheel_has_changed(&self) -> bool
Check if the wheel axis was updated in this event. Read more
Source§fn wheel_delta(&self) -> f64
fn wheel_delta(&self) -> f64
Return the delta for the wheel in degrees.
Source§fn wheel_delta_discrete(&self) -> f64
fn wheel_delta_discrete(&self) -> f64
Return the delta for the wheel in discrete steps (e.g. wheel clicks).
Source§fn x_has_changed(&self) -> bool
fn x_has_changed(&self) -> bool
Check if the x axis was updated in this event. Read more
Source§fn y_has_changed(&self) -> bool
fn y_has_changed(&self) -> bool
Check if the y axis was updated in this event. Read more
Source§fn x(&self) -> f64
fn x(&self) -> f64
Returns the X coordinate of the tablet tool, in mm from the top left corner of
the tablet in its current logical orientation. Read more
Source§fn y(&self) -> f64
fn y(&self) -> f64
Returns the Y coordinate of the tablet tool, in mm from the top left corner of
the tablet in its current logical orientation. Read more
Source§fn x_transformed(&self, width: u32) -> f64
fn x_transformed(&self, width: u32) -> f64
Return the current absolute x coordinate of the tablet tool event, transformed
to screen coordinates. Read more
Source§fn y_transformed(&self, height: u32) -> f64
fn y_transformed(&self, height: u32) -> f64
Return the current absolute y coordinate of the tablet tool event, transformed
to screen coordinates. Read more
Source§fn tool(&self) -> TabletTool
fn tool(&self) -> TabletTool
Returns the tool that was in use during this event. Read more
Source§fn into_tablet_tool_event(self) -> TabletToolEventwhere
Self: Sized,
fn into_tablet_tool_event(self) -> TabletToolEventwhere
Self: Sized,
Convert into a general
TabletToolEvent
again