[][src]Enum wayland_protocols::wlr::unstable::virtual_pointer::v1::client::zwlr_virtual_pointer_v1::Request

#[non_exhaustive]pub enum Request {
    Motion {
        time: u32,
        dx: f64,
        dy: f64,
    },
    MotionAbsolute {
        time: u32,
        x: u32,
        y: u32,
        x_extent: u32,
        y_extent: u32,
    },
    Button {
        time: u32,
        button: u32,
        state: ButtonState,
    },
    Axis {
        time: u32,
        axis: Axis,
        value: f64,
    },
    Frame,
    AxisSource {
        axis_source: AxisSource,
    },
    AxisStop {
        time: u32,
        axis: Axis,
    },
    AxisDiscrete {
        time: u32,
        axis: Axis,
        value: f64,
        discrete: i32,
    },
    Destroy,
}

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Motion

pointer relative motion event

The pointer has moved by a relative amount to the previous request.

Values are in the global compositor space.

Fields of Motion

time: u32dx: f64dy: f64
MotionAbsolute

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.

Fields of MotionAbsolute

time: u32x: u32y: u32x_extent: u32y_extent: u32
Button

button event

A button was pressed or released.

Fields of Button

time: u32button: u32state: ButtonState
Axis

axis event

Scroll and other axis requests.

Fields of Axis

time: u32axis: Axisvalue: f64
Frame

end of a pointer event sequence

Indicates the set of events that logically belong together.

AxisSource

axis source event

Source information for scroll and other axis.

Fields of AxisSource

axis_source: AxisSource
AxisStop

axis stop event

Stop notification for scroll and other axes.

Fields of AxisStop

time: u32axis: Axis
AxisDiscrete

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.

Fields of AxisDiscrete

time: u32axis: Axisvalue: f64discrete: i32
Destroy

destroy the virtual pointer object

This is a destructor, once sent this object cannot be used any longer.

Trait Implementations

impl Debug for Request[src]

impl MessageGroup for Request[src]

type Map = ProxyMap

The wrapper type for ObjectMap allowing the mapping of Object and NewId arguments to the object map during parsing. Read more

Auto Trait Implementations

impl RefUnwindSafe for Request

impl Send for Request

impl Sync for Request

impl Unpin for Request

impl UnwindSafe for Request

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.