pub struct ZwlrVirtualPointerV1(/* private fields */);

Implementations§

source§

impl ZwlrVirtualPointerV1

source

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.

source

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.

source

pub fn button(&self, time: u32, button: u32, state: ButtonState)

button event

A button was pressed or released.

source

pub fn axis(&self, time: u32, axis: Axis, value: f64)

axis event

Scroll and other axis requests.

source

pub fn frame(&self)

end of a pointer event sequence

Indicates the set of events that logically belong together.

source

pub fn axis_source(&self, axis_source: AxisSource)

axis source event

Source information for scroll and other axis.

source

pub fn axis_stop(&self, time: u32, axis: Axis)

axis stop event

Stop notification for scroll and other axes.

source

pub fn axis_discrete(&self, time: u32, axis: Axis, value: f64, discrete: i32)

axis click event

Discrete step information for scroll and other axes.

This event allows the client to extend data normally sent using the axis event with discrete value.

source

pub fn destroy(&self)

destroy the virtual pointer object

This is a destructor, you cannot send requests to this object any longer once this method is called.

Trait Implementations§

source§

impl AsRef<Proxy<ZwlrVirtualPointerV1>> for ZwlrVirtualPointerV1

source§

fn as_ref(&self) -> &Proxy<Self>

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for ZwlrVirtualPointerV1

source§

fn clone(&self) -> ZwlrVirtualPointerV1

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ZwlrVirtualPointerV1

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<Proxy<ZwlrVirtualPointerV1>> for ZwlrVirtualPointerV1

source§

fn from(value: Proxy<Self>) -> Self

Converts to this type from the input type.
source§

impl From<ZwlrVirtualPointerV1> for Proxy<ZwlrVirtualPointerV1>

source§

fn from(value: ZwlrVirtualPointerV1) -> Self

Converts to this type from the input type.
source§

impl Interface for ZwlrVirtualPointerV1

§

type Request = Request

Set of requests associated to this interface Read more
§

type Event = Event

Set of events associated to this interface Read more
source§

const NAME: &'static str = "zwlr_virtual_pointer_v1"

Name of this interface
source§

const VERSION: u32 = 2u32

Maximum supported version of this interface Read more
source§

fn c_interface() -> *const wl_interface

Pointer to the C representation of this interface
source§

impl PartialEq for ZwlrVirtualPointerV1

source§

fn eq(&self, other: &ZwlrVirtualPointerV1) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for ZwlrVirtualPointerV1

source§

impl StructuralEq for ZwlrVirtualPointerV1

source§

impl StructuralPartialEq for ZwlrVirtualPointerV1

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.