pub struct ZwpTabletPadDialV2 { /* private fields */ }Expand description
pad dial
A rotary control, e.g. a dial or a wheel.
Events on a dial are logically grouped by the zwp_tablet_pad_dial_v2.frame event.
See also the Request enum for this interface.
Implementations§
Source§impl ZwpTabletPadDialV2
impl ZwpTabletPadDialV2
Sourcepub fn delta(&self, value120: i32)
pub fn delta(&self, value120: i32)
delta movement
Sent whenever the position on a dial changes.
This event carries the wheel delta as multiples or fractions of 120 with each multiple of 120 representing one logical wheel detent. For example, an axis_value120 of 30 is one quarter of a logical wheel step in the positive direction, a value120 of -240 are two logical wheel steps in the negative direction within the same hardware event. See the wl_pointer.axis_value120 for more details.
The value120 must not be zero.
Sourcepub fn frame(&self, time: u32)
pub fn frame(&self, time: u32)
end of a dial event sequence
Indicates the end of a set of events that represent one logical hardware dial event. A client is expected to accumulate the data in all events within the frame before proceeding.
All zwp_tablet_pad_dial_v2 events before a zwp_tablet_pad_dial_v2.frame event belong logically together.
A zwp_tablet_pad_dial_v2.frame event is sent for every logical event group, even if the group only contains a single zwp_tablet_pad_dial_v2 event. Specifically, a client may get a sequence: delta, frame, delta, frame, etc.
Trait Implementations§
Source§impl Borrow<ObjectId> for ZwpTabletPadDialV2
impl Borrow<ObjectId> for ZwpTabletPadDialV2
Source§impl Clone for ZwpTabletPadDialV2
impl Clone for ZwpTabletPadDialV2
Source§fn clone(&self) -> ZwpTabletPadDialV2
fn clone(&self) -> ZwpTabletPadDialV2
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more