Struct runa_wayland_protocols::wayland::wl_pointer::v9::events::AxisValue120
source · pub struct AxisValue120 {
pub axis: Axis,
pub value120: i32,
}
Expand description
axis high-resolution scroll event
Discrete high-resolution scroll information.
This event carries high-resolution wheel scroll information, with each multiple of 120 representing one logical scroll step (a wheel detent). For example, an axis_value120 of 30 is one quarter of a logical scroll step in the positive direction, a value120 of -240 are two logical scroll steps in the negative direction within the same hardware event. Clients that rely on discrete scrolling should accumulate the value120 to multiples of 120 before processing the event.
The value120 must not be zero.
This event replaces the wl_pointer.axis_discrete event in clients supporting wl_pointer version 8 or later.
Where a wl_pointer.axis_source event occurs in the same wl_pointer.frame, the axis source applies to this event.
The order of wl_pointer.axis_value120 and wl_pointer.axis_source is not guaranteed.
Fields§
§axis: Axis
§value120: i32
Implementations§
Trait Implementations§
source§impl Clone for AxisValue120
impl Clone for AxisValue120
source§fn clone(&self) -> AxisValue120
fn clone(&self) -> AxisValue120
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AxisValue120
impl Debug for AxisValue120
source§impl<'a> Deserialize<'a> for AxisValue120
impl<'a> Deserialize<'a> for AxisValue120
source§impl PartialEq<AxisValue120> for AxisValue120
impl PartialEq<AxisValue120> for AxisValue120
source§fn eq(&self, other: &AxisValue120) -> bool
fn eq(&self, other: &AxisValue120) -> bool
self
and other
values to be equal, and is used
by ==
.