Struct runa_wayland_protocols::wayland::wl_pointer::v9::events::AxisDiscrete
source · pub struct AxisDiscrete {
pub axis: Axis,
pub discrete: i32,
}
Expand description
axis click event
Discrete step information for scroll and other axes.
This event carries the axis value of the wl_pointer.axis event in discrete steps (e.g. mouse wheel clicks).
This event is deprecated with wl_pointer version 8 - this event is not sent to clients supporting version 8 or later.
This event does not occur on its own, it is coupled with a wl_pointer.axis event that represents this axis value on a continuous scale. The protocol guarantees that each axis_discrete event is always followed by exactly one axis event with the same axis number within the same wl_pointer.frame. Note that the protocol allows for other events to occur between the axis_discrete and its coupled axis event, including other axis_discrete or axis events. A wl_pointer.frame must not contain more than one axis_discrete event per axis type.
This event is optional; continuous scrolling devices like two-finger scrolling on touchpads do not have discrete steps and do not generate this event.
The discrete value carries the directional information. e.g. a value of -2 is two steps towards the negative direction of this axis.
The axis number is identical to the axis number in the associated axis event.
The order of wl_pointer.axis_discrete and wl_pointer.axis_source is not guaranteed.
Fields§
§axis: Axis
§discrete: i32
Implementations§
Trait Implementations§
source§impl Clone for AxisDiscrete
impl Clone for AxisDiscrete
source§fn clone(&self) -> AxisDiscrete
fn clone(&self) -> AxisDiscrete
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AxisDiscrete
impl Debug for AxisDiscrete
source§impl<'a> Deserialize<'a> for AxisDiscrete
impl<'a> Deserialize<'a> for AxisDiscrete
source§impl PartialEq<AxisDiscrete> for AxisDiscrete
impl PartialEq<AxisDiscrete> for AxisDiscrete
source§fn eq(&self, other: &AxisDiscrete) -> bool
fn eq(&self, other: &AxisDiscrete) -> bool
self
and other
values to be equal, and is used
by ==
.