Struct runa_wayland_protocols::wayland::wl_pointer::v9::events::AxisSource
source · pub struct AxisSource {
pub axis_source: AxisSource,
}
Expand description
axis source event
Source information for scroll and other axes.
This event does not occur on its own. It is sent before a wl_pointer.frame event and carries the source information for all events within that frame.
The source specifies how this event was generated. If the source is wl_pointer.axis_source.finger, a wl_pointer.axis_stop event will be sent when the user lifts the finger off the device.
If the source is wl_pointer.axis_source.wheel, wl_pointer.axis_source.wheel_tilt or wl_pointer.axis_source.continuous, a wl_pointer.axis_stop event may or may not be sent. Whether a compositor sends an axis_stop event for these sources is hardware-specific and implementation-dependent; clients must not rely on receiving an axis_stop event for these scroll sources and should treat scroll sequences from these scroll sources as unterminated by default.
This event is optional. If the source is unknown for a particular axis event sequence, no event is sent. Only one wl_pointer.axis_source event is permitted per frame.
The order of wl_pointer.axis_discrete and wl_pointer.axis_source is not guaranteed.
Fields§
§axis_source: AxisSource
Implementations§
Trait Implementations§
source§impl Clone for AxisSource
impl Clone for AxisSource
source§fn clone(&self) -> AxisSource
fn clone(&self) -> AxisSource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AxisSource
impl Debug for AxisSource
source§impl<'a> Deserialize<'a> for AxisSource
impl<'a> Deserialize<'a> for AxisSource
source§impl PartialEq<AxisSource> for AxisSource
impl PartialEq<AxisSource> for AxisSource
source§fn eq(&self, other: &AxisSource) -> bool
fn eq(&self, other: &AxisSource) -> bool
self
and other
values to be equal, and is used
by ==
.