Struct wayland_protocols::unstable::relative_pointer::v1::server::zwp_relative_pointer_v1::ZwpRelativePointerV1
source · [−]pub struct ZwpRelativePointerV1(_);
Implementations
sourceimpl ZwpRelativePointerV1
impl ZwpRelativePointerV1
sourcepub fn relative_motion(
&self,
utime_hi: u32,
utime_lo: u32,
dx: f64,
dy: f64,
dx_unaccel: f64,
dy_unaccel: f64
)
pub fn relative_motion(
&self,
utime_hi: u32,
utime_lo: u32,
dx: f64,
dy: f64,
dx_unaccel: f64,
dy_unaccel: f64
)
relative pointer motion
Relative x/y pointer motion from the pointer of the seat associated with this object.
A relative motion is in the same dimension as regular wl_pointer motion events, except they do not represent an absolute position. For example, moving a pointer from (x, y) to (x’, y’) would have the equivalent relative motion (x’ - x, y’ - y). If a pointer motion caused the absolute pointer position to be clipped by for example the edge of the monitor, the relative motion is unaffected by the clipping and will represent the unclipped motion.
This event also contains non-accelerated motion deltas. The non-accelerated delta is, when applicable, the regular pointer motion delta as it was before having applied motion acceleration and other transformations such as normalization.
Note that the non-accelerated delta does not represent ‘raw’ events as they were read from some device. Pointer motion acceleration is device- and configuration-specific and non-accelerated deltas and accelerated deltas may have the same value on some devices.
Relative motions are not coupled to wl_pointer.motion events, and can be sent in combination with such events, but also independently. There may also be scenarios where wl_pointer.motion is sent, but there is no relative motion. The order of an absolute and relative motion event originating from the same physical motion is not guaranteed.
If the client needs button events or focus state, it can receive them from a wl_pointer object of the same seat that the wp_relative_pointer object is associated with.
Trait Implementations
sourceimpl Clone for ZwpRelativePointerV1
impl Clone for ZwpRelativePointerV1
sourcefn clone(&self) -> ZwpRelativePointerV1
fn clone(&self) -> ZwpRelativePointerV1
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ZwpRelativePointerV1
impl Debug for ZwpRelativePointerV1
sourceimpl From<ZwpRelativePointerV1> for Resource<ZwpRelativePointerV1>
impl From<ZwpRelativePointerV1> for Resource<ZwpRelativePointerV1>
sourcefn from(value: ZwpRelativePointerV1) -> Self
fn from(value: ZwpRelativePointerV1) -> Self
Converts to this type from the input type.
sourceimpl Interface for ZwpRelativePointerV1
impl Interface for ZwpRelativePointerV1
sourcefn c_interface() -> *const wl_interface
fn c_interface() -> *const wl_interface
Pointer to the C representation of this interface
sourceimpl PartialEq<ZwpRelativePointerV1> for ZwpRelativePointerV1
impl PartialEq<ZwpRelativePointerV1> for ZwpRelativePointerV1
sourcefn eq(&self, other: &ZwpRelativePointerV1) -> bool
fn eq(&self, other: &ZwpRelativePointerV1) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for ZwpRelativePointerV1
impl StructuralEq for ZwpRelativePointerV1
impl StructuralPartialEq for ZwpRelativePointerV1
Auto Trait Implementations
impl !RefUnwindSafe for ZwpRelativePointerV1
impl Send for ZwpRelativePointerV1
impl Sync for ZwpRelativePointerV1
impl Unpin for ZwpRelativePointerV1
impl !UnwindSafe for ZwpRelativePointerV1
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert 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
. Read more
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more