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 wl_tablet_pad_dial.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 wp_tablet_pad_dial events before a wp_tablet_pad_dial.frame event belong logically together.
A wp_tablet_pad_dial.frame event is sent for every logical event group, even if the group only contains a single wp_tablet_pad_dial 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 moreSource§impl Debug for ZwpTabletPadDialV2
impl Debug for ZwpTabletPadDialV2
Source§impl Hash for ZwpTabletPadDialV2
impl Hash for ZwpTabletPadDialV2
Source§impl PartialEq<Weak<ZwpTabletPadDialV2>> for ZwpTabletPadDialV2
impl PartialEq<Weak<ZwpTabletPadDialV2>> for ZwpTabletPadDialV2
Source§impl PartialEq for ZwpTabletPadDialV2
impl PartialEq for ZwpTabletPadDialV2
Source§impl Resource for ZwpTabletPadDialV2
impl Resource for ZwpTabletPadDialV2
Source§fn object_data(&self) -> Option<&Arc<dyn Any + Send + Sync>>
fn object_data(&self) -> Option<&Arc<dyn Any + Send + Sync>>
Source§fn handle(&self) -> &WeakHandle
fn handle(&self) -> &WeakHandle
Source§fn from_id(conn: &DisplayHandle, id: ObjectId) -> Result<Self, InvalidId>
fn from_id(conn: &DisplayHandle, id: ObjectId) -> Result<Self, InvalidId>
Source§fn send_event(&self, evt: Self::Event<'_>) -> Result<(), InvalidId>
fn send_event(&self, evt: Self::Event<'_>) -> Result<(), InvalidId>
Source§fn parse_request(
conn: &DisplayHandle,
msg: Message<ObjectId, OwnedFd>,
) -> Result<(Self, Self::Request), DispatchError>
fn parse_request( conn: &DisplayHandle, msg: Message<ObjectId, OwnedFd>, ) -> Result<(Self, Self::Request), DispatchError>
Source§fn write_event<'a>(
&self,
conn: &DisplayHandle,
msg: Self::Event<'a>,
) -> Result<Message<ObjectId, BorrowedFd<'a>>, InvalidId>
fn write_event<'a>( &self, conn: &DisplayHandle, msg: Self::Event<'a>, ) -> Result<Message<ObjectId, BorrowedFd<'a>>, InvalidId>
Source§fn is_alive(&self) -> bool
fn is_alive(&self) -> bool
impl Eq for ZwpTabletPadDialV2
Auto Trait Implementations§
impl Freeze for ZwpTabletPadDialV2
impl !RefUnwindSafe for ZwpTabletPadDialV2
impl Send for ZwpTabletPadDialV2
impl Sync for ZwpTabletPadDialV2
impl Unpin for ZwpTabletPadDialV2
impl !UnwindSafe for ZwpTabletPadDialV2
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.