Struct wayland_protocols::wlr::unstable::virtual_pointer::v1::client::zwlr_virtual_pointer_v1::ZwlrVirtualPointerV1
source · pub struct ZwlrVirtualPointerV1(/* private fields */);
Implementations§
source§impl ZwlrVirtualPointerV1
impl ZwlrVirtualPointerV1
sourcepub fn motion(&self, time: u32, dx: f64, dy: f64)
pub fn motion(&self, time: u32, dx: f64, dy: f64)
pointer relative motion event
The pointer has moved by a relative amount to the previous request.
Values are in the global compositor space.
sourcepub fn motion_absolute(
&self,
time: u32,
x: u32,
y: u32,
x_extent: u32,
y_extent: u32
)
pub fn motion_absolute( &self, time: u32, x: u32, y: u32, x_extent: u32, y_extent: u32 )
pointer absolute motion event
The pointer has moved in an absolute coordinate frame.
Value of x can range from 0 to x_extent, value of y can range from 0 to y_extent.
button event
A button was pressed or released.
sourcepub fn axis(&self, time: u32, axis: Axis, value: f64)
pub fn axis(&self, time: u32, axis: Axis, value: f64)
axis event
Scroll and other axis requests.
sourcepub fn frame(&self)
pub fn frame(&self)
end of a pointer event sequence
Indicates the set of events that logically belong together.
sourcepub fn axis_source(&self, axis_source: AxisSource)
pub fn axis_source(&self, axis_source: AxisSource)
axis source event
Source information for scroll and other axis.
sourcepub fn axis_stop(&self, time: u32, axis: Axis)
pub fn axis_stop(&self, time: u32, axis: Axis)
axis stop event
Stop notification for scroll and other axes.
Trait Implementations§
source§impl Clone for ZwlrVirtualPointerV1
impl Clone for ZwlrVirtualPointerV1
source§fn clone(&self) -> ZwlrVirtualPointerV1
fn clone(&self) -> ZwlrVirtualPointerV1
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ZwlrVirtualPointerV1
impl Debug for ZwlrVirtualPointerV1
source§impl From<Proxy<ZwlrVirtualPointerV1>> for ZwlrVirtualPointerV1
impl From<Proxy<ZwlrVirtualPointerV1>> for ZwlrVirtualPointerV1
source§impl From<ZwlrVirtualPointerV1> for Proxy<ZwlrVirtualPointerV1>
impl From<ZwlrVirtualPointerV1> for Proxy<ZwlrVirtualPointerV1>
source§fn from(value: ZwlrVirtualPointerV1) -> Self
fn from(value: ZwlrVirtualPointerV1) -> Self
Converts to this type from the input type.
source§impl Interface for ZwlrVirtualPointerV1
impl Interface for ZwlrVirtualPointerV1
source§fn c_interface() -> *const wl_interface
fn c_interface() -> *const wl_interface
Pointer to the C representation of this interface
source§impl PartialEq for ZwlrVirtualPointerV1
impl PartialEq for ZwlrVirtualPointerV1
source§fn eq(&self, other: &ZwlrVirtualPointerV1) -> bool
fn eq(&self, other: &ZwlrVirtualPointerV1) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ZwlrVirtualPointerV1
impl StructuralEq for ZwlrVirtualPointerV1
impl StructuralPartialEq for ZwlrVirtualPointerV1
Auto Trait Implementations§
impl !RefUnwindSafe for ZwlrVirtualPointerV1
impl Send for ZwlrVirtualPointerV1
impl Sync for ZwlrVirtualPointerV1
impl Unpin for ZwlrVirtualPointerV1
impl !UnwindSafe for ZwlrVirtualPointerV1
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
Mutably borrows from an owned value. Read more