[−][src]Struct wayland_protocols::unstable::pointer_gestures::v1::server::zwp_pointer_gesture_pinch_v1::ZwpPointerGesturePinchV1
Implementations
impl ZwpPointerGesturePinchV1
[src]
pub fn begin(&self, serial: u32, time: u32, surface: &WlSurface, fingers: u32)
[src]
multi-finger pinch begin
This event is sent when a multi-finger pinch gesture is detected on the device.
pub fn update(&self, time: u32, dx: f64, dy: f64, scale: f64, rotation: f64)
[src]
multi-finger pinch motion
This event is sent when a multi-finger pinch gesture changes the position of the logical center, the rotation or the relative scale.
The dx and dy coordinates are relative coordinates in the surface coordinate space of the logical center of the gesture.
The scale factor is an absolute scale compared to the pointer_gesture_pinch.begin event, e.g. a scale of 2 means the fingers are now twice as far apart as on pointer_gesture_pinch.begin.
The rotation is the relative angle in degrees clockwise compared to the previous pointer_gesture_pinch.begin or pointer_gesture_pinch.update event.
pub fn end(&self, serial: u32, time: u32, cancelled: i32)
[src]
multi-finger pinch end
This event is sent when a multi-finger pinch gesture ceases to be valid. This may happen when one or more fingers are lifted or the gesture is cancelled.
When a gesture is cancelled, the client should undo state changes caused by this gesture. What causes a gesture to be cancelled is implementation-dependent.
Trait Implementations
impl AsRef<Resource<ZwpPointerGesturePinchV1>> for ZwpPointerGesturePinchV1
[src]
impl Clone for ZwpPointerGesturePinchV1
[src]
fn clone(&self) -> ZwpPointerGesturePinchV1
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ZwpPointerGesturePinchV1
[src]
impl Eq for ZwpPointerGesturePinchV1
[src]
impl From<Resource<ZwpPointerGesturePinchV1>> for ZwpPointerGesturePinchV1
[src]
impl From<ZwpPointerGesturePinchV1> for Resource<ZwpPointerGesturePinchV1>
[src]
fn from(value: ZwpPointerGesturePinchV1) -> Self
[src]
impl Interface for ZwpPointerGesturePinchV1
[src]
type Request = Request
Set of requests associated to this interface Read more
type Event = Event
Set of events associated to this interface Read more
const NAME: &'static str
[src]
const VERSION: u32
[src]
fn c_interface() -> *const wl_interface
[src]
impl PartialEq<ZwpPointerGesturePinchV1> for ZwpPointerGesturePinchV1
[src]
fn eq(&self, other: &ZwpPointerGesturePinchV1) -> bool
[src]
fn ne(&self, other: &ZwpPointerGesturePinchV1) -> bool
[src]
impl StructuralEq for ZwpPointerGesturePinchV1
[src]
impl StructuralPartialEq for ZwpPointerGesturePinchV1
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ZwpPointerGesturePinchV1
impl Send for ZwpPointerGesturePinchV1
impl Sync for ZwpPointerGesturePinchV1
impl Unpin for ZwpPointerGesturePinchV1
impl !UnwindSafe for ZwpPointerGesturePinchV1
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,